Ignore:
Timestamp:
10 Jun 2011, 12:00:04 (13 years ago)
Author:
uli
Message:

Rename 'getApplicationState' to 'state'. Properties are always named like
attributes (lowe_case_with_underscores; they appear as attributes in the

interface) and not like methods (camelCase).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py

    r6327 r6332  
    507507        return 'not yet admitted'
    508508
    509     #@property
    510     #def getApplicationState(self):
    511     #    state = IWorkflowState(self.context).getState()
    512     #    return state
    513 
    514509class ApplicantsManageActionButton(ManageActionButton):
    515510    grok.context(IApplicant)
     
    556551            for transition_object in TRANSITION_OBJECTS
    557552            if transition_object.transition_id in allowed_transitions_ids]
    558         #import pdb; pdb.set_trace()
    559553        return transitions
    560 
    561     #@property
    562     #def getApplicationState(self):
    563     #    state = IWorkflowState(self.context).getState()
    564     #    return state
    565554
    566555    @grok.action('Save')
Note: See TracChangeset for help on using the changeset viewer.