Changeset 13124 for main/waeup.kofa/trunk/src/waeup/kofa/utils
- Timestamp:
- 1 Jul 2015, 16:24:58 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py
r13031 r13124 80 80 class KofaUtils(grok.GlobalUtility): 81 81 """A collection of parameters and methods subject to customization. 82 83 82 """ 84 83 grok.implements(IKofaUtils) … … 242 241 @property 243 242 def tzinfo(self): 243 """Time zone of the university. 244 """ 244 245 # For Nigeria: pytz.timezone('Africa/Lagos') 245 246 # For Germany: pytz.timezone('Europe/Berlin') … … 247 248 248 249 def fullname(self, firstname, lastname, middlename=None): 249 """ Full name constructor.250 """Construct fullname. 250 251 """ 251 252 # We do not necessarily have the middlename attribute … … 263 264 264 265 def sendCredentials(self, user, password=None, url_info=None, msg=None): 265 """Send credentials as email. 266 267 Input is the applicant for which credentials are sent and the 268 password. 269 270 Returns True or False to indicate successful operation. 266 """Send credentials as email. Input is the user for which credentials 267 are sent and the password. Method returns True or False to indicate 268 successful operation. 271 269 """ 272 270 subject = 'Your Kofa credentials' … … 308 306 309 307 def getPaymentItem(self, payment): 310 """Return payment item. 311 312 This method can be used to customize the display_item property method.308 """Return payment item. This method can be used to customize the 309 `display_item` property attribute, e.g. in order to hide bed coordinates 310 if maintenance fee is not paid. 313 311 """ 314 312 return payment.p_item … … 316 314 def expensive_actions_allowed(self, type=None, request=None): 317 315 """Tell, whether expensive actions are currently allowed. 318 319 316 Check system load/health (or other external circumstances) and 320 317 locally set values to see, whether expensive actions should be 321 318 allowed (`True`) or better avoided (`False`). 322 323 319 Use this to allow or forbid exports, report generations, or 324 320 similar actions.
Note: See TracChangeset for help on using the changeset viewer.