Commit 1ac91f5e authored by Jean-Paul Smets's avatar Jean-Paul Smets

back to previous compat


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3343 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c1488d58
...@@ -73,15 +73,14 @@ def initialize( context ): ...@@ -73,15 +73,14 @@ def initialize( context ):
import Document import Document
from zLOG import LOG from zLOG import LOG
LOG('In ERP5 initialize', 0, '') LOG('In ERP5 initialize', 0, '')
# For compatibility # For compatibility
import Document
Document.PredicateGroup = Document.Predicate
from Products.ERP5Type import Document as ERP5TypeDocument from Products.ERP5Type import Document as ERP5TypeDocument
Document.PredicateGroup = Document.Predicate
ERP5TypeDocument.PredicateGroup = Document.Predicate ERP5TypeDocument.PredicateGroup = Document.Predicate
# Initialize # Initialize
initializeProduct(context, this_module, globals(), initializeProduct(context, this_module, globals(),
document_module = Document, document_module = Document,
document_classes = document_classes, document_classes = document_classes + [Document.Predicate.PredicateGroup],
object_classes = object_classes, object_classes = object_classes,
portal_tools = portal_tools, portal_tools = portal_tools,
content_constructors = content_constructors, content_constructors = content_constructors,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment