Ignore:
Timestamp:
1 Jul 2015, 20:22:03 (9 years ago)
Author:
Henrik Bettermann
Message:

Change misleading attribute name.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r13108 r13129  
    23222322
    23232323    def update(self):
    2324         PWCHANGE_STATES = getUtility(IStudentsUtils).PWCHANGE_STATES
    2325         if self.context.student.state not in PWCHANGE_STATES:
     2324        PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES
     2325        if self.context.student.state not in PORTRAIT_CHANGE_STATES:
    23262326            emit_lock_message(self)
    23272327            return
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r13125 r13129  
    928928        return None
    929929
    930     SEPARATORS_DICT = {
    931         }
     930    SEPARATORS_DICT = {}
    932931
    933932    SKIP_UPLOAD_VIEWLETS = ()
    934933
    935     PWCHANGE_STATES = (ADMITTED,)
     934    PORTRAIT_CHANGE_STATES = (ADMITTED,)
    936935
    937936    #: A tuple containing all exporter names referring to students or
     
    950949
    951950    #: A prefix used when generating new student ids. Each student id will
    952     #: start with this string. The default is 'K' for ``Kofa``.
     951    #: start with this string. The default is 'K' for Kofa.
    953952    STUDENT_ID_PREFIX = u'K'
  • main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py

    r13076 r13129  
    556556    @property
    557557    def target_url(self):
    558         PWCHANGE_STATES = getUtility(IStudentsUtils).PWCHANGE_STATES
    559         if self.context.state not in PWCHANGE_STATES:
     558        PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES
     559        if self.context.state not in PORTRAIT_CHANGE_STATES:
    560560            return ''
    561561        return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.