Commit 8cab662c authored by Jean-Paul Smets's avatar Jean-Paul Smets

do not generate __init__.py for Document


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@245 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b390fa29
__init__.py
.AppleDouble .AppleDouble
*.pyc *.pyc
.AppleDouble .AppleDouble
*.pyc *.pyc
__init__.py
...@@ -107,37 +107,37 @@ be a problem).""" ...@@ -107,37 +107,37 @@ be a problem)."""
, 'product' : 'ERP5Type' , 'product' : 'ERP5Type'
, 'factory' : 'addFolder' , 'factory' : 'addFolder'
, 'filter_content_types' : 0 , 'filter_content_types' : 0
, 'immediate_view' : 'folder_view' , 'immediate_view' : 'Base_metadataView'
, 'actions' : , 'actions' :
( { 'id' : 'view' ( { 'id' : 'view'
, 'name' : 'View' , 'name' : 'View'
, 'action' : 'folder_list' , 'action' : 'Folder_list'
, 'permissions' : (Permissions.View,) , 'permissions' : (Permissions.View,)
, 'category' : 'folder' , 'category' : 'object_view'
} }
, { 'id' : 'edit' , { 'id' : 'list'
, 'name' : 'Edit' , 'name' : 'List'
, 'action' : 'folder_edit_form' , 'action' : 'Folder_list'
, 'permissions' : (Permissions.ManageProperties,) , 'permissions' : (Permissions.View,)
, 'category' : 'folder' , 'category' : 'object'
} }
, { 'id' : 'localroles' , { 'id' : 'localroles'
, 'name' : 'Local Roles' , 'name' : 'Local Roles'
, 'action' : 'folder_localrole_form' , 'action' : 'folder_localrole_form'
, 'permissions' : (Permissions.ManageProperties,) , 'permissions' : (Permissions.ManageProperties,)
, 'category' : 'folder' , 'category' : 'object_view'
} }
, { 'id' : 'syndication' , { 'id' : 'syndication'
, 'name' : 'Syndication' , 'name' : 'Syndication'
, 'action' : 'synPropertiesForm' , 'action' : 'synPropertiesForm'
, 'permissions' : (Permissions.ManageProperties,) , 'permissions' : (Permissions.ManageProperties,)
, 'category' : 'folder' , 'category' : 'object_view'
} }
, { 'id' : 'foldercontents' , { 'id' : 'metadata'
, 'name' : 'Folder contents' , 'name' : 'Metadata'
, 'action' : 'folder_contents' , 'action' : 'Base_metadataView'
, 'permissions' : (Permissions.ListFolderContents,) , 'permissions' : (Permissions.ManageProperties,)
, 'category' : 'folder' , 'category' : 'object_view'
} }
) )
} }
...@@ -443,6 +443,19 @@ be a problem).""" ...@@ -443,6 +443,19 @@ be a problem)."""
if hasattr(aq_base(c), 'recursiveImmediateReindexObject'): if hasattr(aq_base(c), 'recursiveImmediateReindexObject'):
c.recursiveImmediateReindexObject() c.recursiveImmediateReindexObject()
security.declareProtected( Permissions.ModifyPortalContent, 'recursiveMoveObject' )
def recursiveMoveObject(self):
"""
Called when the base of a hierarchy is renamed
"""
# Reindex self
if self.isIndexable:
self.moveObject()
# Reindex contents
for c in self.objectValues():
if hasattr(aq_base(c), 'recursiveMoveObject'):
c.recursiveMoveObject()
# Special Relation keyword : 'content' and 'container' # Special Relation keyword : 'content' and 'container'
security.declareProtected( Permissions.AccessContentsInformation, '_getCategoryMembershipList' ) security.declareProtected( Permissions.AccessContentsInformation, '_getCategoryMembershipList' )
def _getCategoryMembershipList(self, category, def _getCategoryMembershipList(self, category,
...@@ -539,6 +552,7 @@ be a problem).""" ...@@ -539,6 +552,7 @@ be a problem)."""
setProperty = Base.setProperty setProperty = Base.setProperty
getProperty = Base.getProperty getProperty = Base.getProperty
hasProperty = Base.hasProperty hasProperty = Base.hasProperty
view = Base.view
# Aliases # Aliases
getObjectIds = CMFBTreeFolder.objectIds getObjectIds = CMFBTreeFolder.objectIds
......
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