Changeset 461


Ignore:
Timestamp:
04/10/08 01:47:27 (12 years ago)
Author:
Nicholas Riley
Message:

Use string continuations to improve readability.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/call/call.py

    r460 r461  
    2929        number = number[1:]
    3030    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.')
    3233    return '1' + number
    3334
     
    5758                logging.error('Denied access to ' + email)
    5859                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)
    6162        return f(self)
    6263    return handle
     
    6566    def handle(self):
    6667        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.')
    6870        return f(self)
    6971    return handle
     
    118120        if users.is_current_user_admin():
    119121            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.')
    121124
    122125    @login_required
Note: See TracChangeset for help on using the changeset viewer.