Changeset 1864


Ignore:
Timestamp:
06/20/07 20:49:14 (12 years ago)
Author:
jukka
Message:

Oops, one thing was not saved before last commit.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LargeSectionFolder.py

    r1863 r1864  
    559559            to_mutator = to_schema['description'].getMutator(to_obj) 
    560560            copyvalue(from_accessor, to_mutator) 
    561         if from_obj.portal_type=='LeMillReference': 
     561        if from_obj_type=='LeMillReference': 
    562562            from_accessor=from_schema['description'].getEditAccessor(from_obj) 
    563563            to_mutator = to_schema['bodyText'].getMutator(to_obj) 
  • trunk/MultimediaMaterial.py

    r1863 r1864  
    7575            self._updateProperty('left_slots', ['here/portlet_material_actions/macros/portlet',]) 
    7676 
     77    def getOnlyText(self): 
     78        field=self.getField('bodyText') 
     79        values = field.get(self) 
     80        dump= '\n'.join([x for x in values if not field.isUid(x)]) 
     81        return dump 
     82 
    7783    security.declareProtected(MODIFY_CONTENT,'delChapter') 
    7884    def delChapter(self, REQUEST): 
Note: See TracChangeset for help on using the changeset viewer.