Changeset 13129
- Timestamp:
- 1 Jul 2015, 20:22:03 (10 years ago)
- 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 2322 2322 2323 2323 def update(self): 2324 P WCHANGE_STATES = getUtility(IStudentsUtils).PWCHANGE_STATES2325 if self.context.student.state not in P WCHANGE_STATES:2324 PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES 2325 if self.context.student.state not in PORTRAIT_CHANGE_STATES: 2326 2326 emit_lock_message(self) 2327 2327 return -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r13125 r13129 928 928 return None 929 929 930 SEPARATORS_DICT = { 931 } 930 SEPARATORS_DICT = {} 932 931 933 932 SKIP_UPLOAD_VIEWLETS = () 934 933 935 P WCHANGE_STATES = (ADMITTED,)934 PORTRAIT_CHANGE_STATES = (ADMITTED,) 936 935 937 936 #: A tuple containing all exporter names referring to students or … … 950 949 951 950 #: 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. 953 952 STUDENT_ID_PREFIX = u'K' -
main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py
r13076 r13129 556 556 @property 557 557 def target_url(self): 558 P WCHANGE_STATES = getUtility(IStudentsUtils).PWCHANGE_STATES559 if self.context.state not in P WCHANGE_STATES:558 PORTRAIT_CHANGE_STATES = getUtility(IStudentsUtils).PORTRAIT_CHANGE_STATES 559 if self.context.state not in PORTRAIT_CHANGE_STATES: 560 560 return '' 561 561 return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.