Commit e92cd978 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

provide a good default value for migrateToHBTree()'s new_generate_id_method...

provide a good default value for migrateToHBTree()'s new_generate_id_method argument, suggested by Tatuya.
parent 5be5084a
...@@ -552,7 +552,7 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn): ...@@ -552,7 +552,7 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn):
return self._folder_handler == HBTREE_HANDLER return self._folder_handler == HBTREE_HANDLER
security.declareProtected( Permissions.ManagePortal, 'migrateToHBTree' ) security.declareProtected( Permissions.ManagePortal, 'migrateToHBTree' )
def migrateToHBTree(self, migration_generate_id_method=None, new_generate_id_method=None, REQUEST=None): def migrateToHBTree(self, migration_generate_id_method=None, new_generate_id_method='_generatePerDayId', REQUEST=None):
""" """
Function to migrate from a BTree folder to HBTree folder. Function to migrate from a BTree folder to HBTree folder.
It will first call setId on all folder objects to have right id It will first call setId on all folder objects to have right id
......
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