Commit 78566b86 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Update the factory type information.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3317 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9fa92906
...@@ -258,36 +258,18 @@ be a problem).""" ...@@ -258,36 +258,18 @@ be a problem)."""
, 'product' : 'ERP5Type' , 'product' : 'ERP5Type'
, 'factory' : 'addFolder' , 'factory' : 'addFolder'
, 'filter_content_types' : 0 , 'filter_content_types' : 0
, 'immediate_view' : 'Base_metadataView' , 'immediate_view' : 'Folder_viewContentList'
, 'actions' : , 'actions' :
( { 'id' : 'view' ( { 'id' : 'view'
, 'name' : 'View' , 'name' : 'View'
, 'action' : 'Folder_list' , 'action' : 'Folder_viewContentList'
, 'permissions' : (Permissions.View,) , 'permissions' : (Permissions.View,)
, 'category' : 'object_view' , 'category' : 'object_view'
} }
, { 'id' : 'list' , { 'id' : 'list'
, 'name' : 'List' , 'name' : 'List'
, 'action' : 'Folder_list' , 'action' : 'Folder_viewContentList'
, 'permissions' : (Permissions.View,) , 'permissions' : (Permissions.View,)
, 'category' : 'object'
}
, { 'id' : 'localroles'
, 'name' : 'Local Roles'
, 'action' : 'folder_localrole_form'
, 'permissions' : (Permissions.ManageProperties,)
, 'category' : 'object_view'
}
, { 'id' : 'syndication'
, 'name' : 'Syndication'
, 'action' : 'synPropertiesForm'
, 'permissions' : (Permissions.ManageProperties,)
, 'category' : 'object_view'
}
, { 'id' : 'metadata'
, 'name' : 'Metadata'
, 'action' : 'Base_metadataView'
, 'permissions' : (Permissions.ManageProperties,)
, 'category' : 'object_view' , 'category' : 'object_view'
} }
) )
...@@ -515,7 +497,9 @@ be a problem).""" ...@@ -515,7 +497,9 @@ be a problem)."""
XXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXX
BUG here : when creating a new base category BUG here : when creating a new base category
""" """
self.activate(**kw).recursiveImmediateReindexObject(*args, **kw) #self.activate(**kw).recursiveImmediateReindexObject(*args, **kw)
self.recursiveQueueCataloggedObject(*args, **kw)
self.flushQueuedObjectList(*args, **kw)
security.declarePublic( 'recursiveImmediateReindexObject' ) security.declarePublic( 'recursiveImmediateReindexObject' )
def recursiveImmediateReindexObject(self, *args, **kw): def recursiveImmediateReindexObject(self, *args, **kw):
...@@ -525,8 +509,8 @@ be a problem).""" ...@@ -525,8 +509,8 @@ be a problem)."""
# Reindex self # Reindex self
root_indexable = int(getattr(self.getPortalObject(),'isIndexable',1)) root_indexable = int(getattr(self.getPortalObject(),'isIndexable',1))
if self.isIndexable and root_indexable: if self.isIndexable and root_indexable:
self.flushActivity(invoke = 0, method_id='immediateReindexObject') # This might create a recursive lock #self.flushActivity(invoke = 0, method_id='immediateReindexObject') # This might create a recursive lock
self.flushActivity(invoke = 0, method_id='recursiveImmediateReindexObject') # This might create a recursive lock #self.flushActivity(invoke = 0, method_id='recursiveImmediateReindexObject') # This might create a recursive lock
self.immediateReindexObject(*args, **kw) self.immediateReindexObject(*args, **kw)
# Reindex contents # Reindex contents
#LOG('recursiveImmediateReindexObject', 0, 'self = %r, self.objectValues = %r' % (self, self.objectValues())) #LOG('recursiveImmediateReindexObject', 0, 'self = %r, self.objectValues = %r' % (self, self.objectValues()))
...@@ -536,18 +520,26 @@ be a problem).""" ...@@ -536,18 +520,26 @@ be a problem)."""
security.declarePublic( 'recursiveQueueCataloggedObject' ) security.declarePublic( 'recursiveQueueCataloggedObject' )
def recursiveQueueCataloggedObject(self, *args, **kw): def recursiveQueueCataloggedObject(self, *args, **kw):
"""
Activate queueCataloggedObject recursively.
"""
if self.isIndexable:
self.activate(*args, **kw).recursiveImmediateQueueCataloggedObject(*args, **kw)
security.declarePublic( 'recursiveImmeidateQueueCataloggedObject' )
def recursiveImmediateQueueCataloggedObject(self, *args, **kw):
""" """
Apply queueCataloggedObject recursively Apply queueCataloggedObject recursively
""" """
# Index self # Index self
self.flushActivity(invoke = 0, method_id='queueCataloggedObject') # This might create a recursive lock #self.flushActivity(invoke = 0, method_id='immediateQueueCataloggedObject') # This might create a recursive lock
self.flushActivity(invoke = 0, method_id='recursiveQueueCataloggedObject') # This might create a recursive lock #self.flushActivity(invoke = 0, method_id='recursiveImmediateQueueCataloggedObject') # This might create a recursive lock
if self.isIndexable: if self.isIndexable:
self.queueCataloggedObject(*args, **kw) self.immediateQueueCataloggedObject(*args, **kw)
# Index contents # Index contents
for c in self.objectValues(): for c in self.objectValues():
if hasattr(aq_base(c), 'recursiveQueueCataloggedObject'): if hasattr(aq_base(c), 'recursiveImmediateQueueCataloggedObject'):
c.recursiveQueueCataloggedObject(*args, **kw) c.recursiveImmediateQueueCataloggedObject(*args, **kw)
security.declareProtected( Permissions.ModifyPortalContent, 'recursiveMoveObject' ) security.declareProtected( Permissions.ModifyPortalContent, 'recursiveMoveObject' )
def recursiveMoveObject(self): def recursiveMoveObject(self):
......
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