Remove ISequenialIdInfo adapter on content link to suppress infinite recursion due to link indexing
authorThierry Florac <tflorac@ulthar.net>
Thu, 08 Feb 2018 12:27:48 +0100
changeset 377 20f42f602162
parent 376 62318b795eef
child 378 747671dffc66
Remove ISequenialIdInfo adapter on content link to suppress infinite recursion due to link indexing
src/pyams_content/shared/site/link.py
--- a/src/pyams_content/shared/site/link.py	Thu Feb 08 11:54:00 2018 +0100
+++ b/src/pyams_content/shared/site/link.py	Thu Feb 08 12:27:48 2018 +0100
@@ -80,10 +80,3 @@
     target = context.get_target()
     if target is not None:
         return IWorkflowPublicationInfo(target, None)
-
-
-@adapter_config(context=IContentLink, provides=ISequentialIdInfo)
-def content_link_sequence_info(context):
-    target = context.get_target()
-    if target is not None:
-        return ISequentialIdInfo(target, None)