Changeset 2402


Ignore:
Timestamp:
05/26/08 15:57:11 (11 years ago)
Author:
anonymous
Message:

Last commit should have had only version. Do not run archetype update yet! Fixes missing import.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Extensions/Install.py

    r2392 r2402  
    557557 
    558558 
     559    if doWeMigrate(old,'2.2.9'): 
     560        print >>out, "Starting migration from 2.2.9" 
     561        print >>out, "Set workflow state to object's property." 
     562        sections=['content','methods','tools','community','trash'] 
     563        wtool = getToolByName(self, 'portal_workflow') 
     564        return wtool.getInfoFor(self,'review_state',None)     
     565        for section in sections: 
     566            section=getattr(self, section) 
     567            for obj in section.objectValues(): 
     568                wstate=wtool.getInfoFor(obj,'review_state',None) 
     569                if wstate and hasattr(obj, 'state'): 
     570                    obj.setState(wstate) 
     571                    print '%s set to %s' % (obj.id, wstate) 
     572        print '*** workflow states converted to object states ***' 
     573        print >>out, "Migration from 2.2.9 complete" 
    559574 
    560575             
  • trunk/MemberFolder.py

    r2401 r2402  
    2727from AccessControl import ClassSecurityInfo, Unauthorized 
    2828from config import * 
    29 from SharedMetadata import coverImage, score, latest_edit_schema 
     29from SharedMetadata import coverImage, score, latest_edit_schema, state 
    3030from permissions import MODIFY_CONTENT 
    3131from Products.PloneLanguageTool.availablelanguages import countries 
  • trunk/SharedMetadata.py

    r2395 r2402  
    3131state = Schema(( 
    3232    StringField('state', 
    33               schemata="metadata", 
    3433              searchable=False, 
    3534              index='FieldIndex:schema', 
Note: See TracChangeset for help on using the changeset viewer.