Commit d6d7433e authored by Yoshinori Okuji's avatar Yoshinori Okuji

As discussed with seb, it should not be required to add portal_type here,...

As discussed with seb, it should not be required to add portal_type here, because here.getPortalType() must work. Add some comment on the purpose of having some hardcoded items. 

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20359 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 790354ca
...@@ -2354,13 +2354,15 @@ class Catalog(Folder, ...@@ -2354,13 +2354,15 @@ class Catalog(Folder,
#'request': getattr( ob, 'REQUEST', None ), #'request': getattr( ob, 'REQUEST', None ),
#'modules': SecureModuleImporter, #'modules': SecureModuleImporter,
#'user': getSecurityManager().getUser(), #'user': getSecurityManager().getUser(),
'isDelivery': ob.isDelivery, # XXX # XXX these below are defined, because there is no
'isMovement': ob.isMovement, # XXX # accessor for some attributes, and restricted environment
'isPredicate': ob.isPredicate, # XXX # may not access them directly.
'isDocument': ob.isDocument, # XXX 'isDelivery': ob.isDelivery,
'isInventory': ob.isInventory, # XXX 'isMovement': ob.isMovement,
'portal_type': ob.portal_type, # XXX 'isPredicate': ob.isPredicate,
'isInventoryMovement': ob.isInventoryMovement, # XXX 'isDocument': ob.isDocument,
'isInventory': ob.isInventory,
'isInventoryMovement': ob.isInventoryMovement,
} }
return getEngine().getContext(data) return getEngine().getContext(data)
......
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