Changeset 461
- Timestamp:
- 04/10/08 01:47:27 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/call/call.py
r460 r461 29 29 number = number[1:] 30 30 if len(number) != 10: 31 raise forms.ValidationError('Please enter a 10-digit US telephone number.') 31 raise forms.ValidationError('Please enter a 10-digit US telephone ' 32 'number.') 32 33 return '1' + number 33 34 … … 57 58 logging.error('Denied access to ' + email) 58 59 return self.unavailable( 59 'Your account <b>%s</b> does not have permission to use this service.' %60 email)60 'Your account <b>%s</b> does not have permission to use ' 61 'this service.' % email) 61 62 return f(self) 62 63 return handle … … 65 66 def handle(self): 66 67 if not users.is_current_user_admin(): 67 return self.unavailable('This function requires you to be an administrator.') 68 return self.unavailable( 69 'This function requires you to be an administrator.') 68 70 return f(self) 69 71 return handle … … 118 120 if users.is_current_user_admin(): 119 121 return self.redirect('/numbers') 120 self.unavailable('No phone numbers have been configured. Please ask an administrator to log in and add a phone number.') 122 self.unavailable('No phone numbers have been configured. Please ask an ' 123 'administrator to log in and add a phone number.') 121 124 122 125 @login_required
Note:
See TracChangeset
for help on using the changeset viewer.