Changeset 7234 for main/waeup.sirp/trunk/src/waeup/sirp/students
- Timestamp:
- 28 Nov 2011, 21:42:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r7230 r7234 375 375 @grok.action('Send message now') 376 376 def send(self, *args, **data): 377 useraccount = self.get_user_account 378 if useraccount is None: 379 self.flash("You don't have a user account.") 380 return 381 fullname = useraccount.title 382 email_from = useraccount.email 383 username = useraccount.name 377 fullname = self.request.principal.title 378 try: 379 email_from = self.request.principal.email 380 except AttributeError: 381 email_from = self.config.email_admin 382 username = self.request.principal.id 384 383 body = data['body'] 385 384 #subject = u'Mail from SIRP'
Note: See TracChangeset for help on using the changeset viewer.