Changeset 1815


Ignore:
Timestamp:
Feb 7, 2007 6:51:50 AM (12 years ago)
Author:
hazmat
Message:

aesthetics..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orgworkflow/trunk/workflow.py

    r1793 r1815  
    2424        self.context = context 
    2525 
     26    ################################# 
     27    # property management / accessors 
     28    ################################# 
    2629    def getState( self ): 
    2730        if self._state is not None: 
     
    3336            annotations[ APPROVAL_KEY ] = state 
    3437        return state 
    35      
    36     state = property( getState ) 
    3738 
    3839    def getUser( self ): 
    3940        return getSecurityManager().getUser() 
    40      
    41     user = property( getUser ) 
    4241 
    43     approval_users = property( getApprovalUsers ) 
    44     approval_groups = property( getApprovalGroups ) 
    45      
    4642    def setNextApprover( self, user_ids ): 
    4743        annotations = IAnnotations( context ) 
     
    5652        self.state['approval_groups'] = group_ids 
    5753 
     54    def getApprovalUsers( self ): 
     55        return self.state.get( 'approval_users', () ) 
     56     
     57    def getApprovalGroups( self ): 
     58        return self.state.get( 'approval_groups', () ) 
     59 
     60    state = property( getState )     
     61    user = property( getUser ) 
     62    approval_users = property( getApprovalUsers, setNextApprover ) 
     63    approval_groups = property( getApprovalGroups ) 
     64 
     65    ################################# 
     66    #  
     67    ################################# 
    5868    def approve( self, msg=None): 
    5969 
Note: See TracChangeset for help on using the changeset viewer.