Changeset 433


Ignore:
Timestamp:
07/12/06 17:02:35 (13 years ago)
Author:
jukka
Message:

Fixed #505, spent 1h. Made a testing place for Collections, but its still too empty.

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Collection.py

    r365 r433  
    7272    archetype_name = "Collection"   
    7373    global_allow = 1 
     74    _at_rename_after_creation = True 
     75 
     76 
     77    def at_post_create_script(self): 
     78        self.at_post_edit_script() 
     79 
     80    def at_post_edit_script(self): 
     81        self._renameAfterCreation() 
     82 
     83    def after_add_rename(self): 
     84        self._renameAfterCreation() 
     85 
    7486 
    7587    def addRefsToResources(self, ref): 
  • trunk/skins/lemill/script_collection_add.py

    r345 r433  
    2828    new_id = context.generateUniqueId('Collection') 
    2929    new_ob_id = colls.invokeFactory(id=new_id, type_name='Collection', title=new_collection) 
    30     obj = getattr(colls, new_ob_id, None) 
     30    obj = getattr(colls, new_ob_id, None)     
     31    obj.after_add_rename() 
     32     
    3133    if not obj: 
    3234        raise 'ops' 
Note: See TracChangeset for help on using the changeset viewer.