Changeset 10706 for main/waeup.kofa/trunk
- Timestamp:
- 6 Nov 2013, 10:56:11 (11 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
r10694 r10706 2357 2357 2358 2358 def update(self): 2359 if self.context.student.state != ADMITTED: 2359 PWCHANGE_STATES = getUtility(IStudentsUtils).PWCHANGE_STATES 2360 if self.context.student.state not in PWCHANGE_STATES: 2360 2361 emit_lock_message(self) 2361 2362 return -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r10702 r10706 34 34 from waeup.kofa.interfaces import MessageFactory as _ 35 35 from waeup.kofa.students.interfaces import IStudentsUtils 36 from waeup.kofa.students.workflow import ADMITTED 36 37 from waeup.kofa.browser.pdf import ( 37 38 ENTRY1_STYLE, format_html, NOTE_STYLE, HEADING_STYLE, … … 848 849 SKIP_UPLOAD_VIEWLETS = () 849 850 851 PWCHANGE_STATES = (ADMITTED) 852 850 853 #: A prefix used when generating new student ids. Each student id will 851 854 #: start with this string. The default is 'K' for ``Kofa``. -
main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py
r10694 r10706 557 557 @property 558 558 def target_url(self): 559 if self.context.state != ADMITTED: 559 PWCHANGE_STATES = getUtility(IStudentsUtils).PWCHANGE_STATES 560 if self.context.state not in PWCHANGE_STATES: 560 561 return '' 561 562 return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.