Changeset 1122 for ZMS/trunk/zmscontainerobject.py
- Timestamp:
- 21.07.2010 22:19:32 (22 months ago)
- File:
-
- 1 edited
-
ZMS/trunk/zmscontainerobject.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/zmscontainerobject.py
r1031 r1122 620 620 actions.append( action) 621 621 622 #-- Insert Commands. 623 actions.extend(self.filtered_command_actions(path,REQUEST,insert_actions=True)) 624 622 625 #-- Sort. 623 626 actions.sort() 624 627 625 #-- Headline ,628 #-- Headline. 626 629 if len(actions) > 0: 627 630 actions.insert(0,('----- %s -----'%self.getZMILangStr('ACTION_INSERT')%self.display_type(REQUEST),'')) … … 1001 1004 attr = self.getMetaobjAttr( meta_id, key) 1002 1005 zexp = attr[ 'custom'] 1003 filename = zexp.title_or_id()1004 fileid = filename[:filename.find('.')]1005 filepath = INSTANCE_HOME + '/import/' + filename1006 _fileutil.exportObj( zexp, filepath)1007 _fileutil.importZexp( self, filename)1008 1009 ##### Create ####1010 1006 id_prefix = _globals.id_prefix(REQUEST.get('id_prefix','e')) 1011 1007 new_id = self.getNewId(id_prefix) 1012 1013 ##### Rename #### 1014 self.manage_renameObject(fileid,new_id) 1015 1016 ##### Normalize Sort-IDs #### 1017 obj = getattr( self, new_id) 1018 obj.sort_id = _sort_id 1019 self.normalizeSortIds( id_prefix) 1008 _fileutil.import_zexp(self,zexp,new_id,id_prefix,_sort_id) 1020 1009 1021 1010 # Return with message.
Note: See TracChangeset
for help on using the changeset viewer.
