- Timestamp:
- 23 Jun 2011, 06:25:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser.py
r6455 r6459 139 139 if 'disable' in form: 140 140 try: 141 self.context.disable(entry, self.request.principal.id) 141 comment = u"Disabled by %s" % self.request.principal.id 142 self.context.disable(entry, comment) 142 143 self.flash('%s disabled.' % entry) 143 144 except InvalidTransitionError: … … 145 146 elif 'enable' in form: 146 147 try: 147 self.context.enable(entry, self.request.principal.id) 148 comment = u"Re-enabled by %s" % self.request.principal.id 149 self.context.enable(entry, comment) 148 150 self.flash('%s (re-)enabled.' % entry) 149 151 except InvalidTransitionError:
Note: See TracChangeset for help on using the changeset viewer.