we have settings and we have messages. The latter do not need T. auth.messages are a special class and values are treated as-if they had a T.
Massimo On May 13, 9:25 pm, Álvaro Justen [Turicas] <[email protected]> wrote: > On Wed, May 13, 2009 at 11:15 PM, mdipierro <[email protected]> wrote: > > Please test this throughly!!! > > > I have been working a lot on the Auth in trunk in order to clean up > > some confusing configuration options. These are the most important > > ones: > > > mail=Mail() # > > mailer > > mail.settings.server='smtp.gmail.com:587' # your SMTP > > server > > mail.settings.sender='[email protected]' # your > > email > > mail.settings.login='username:password' # your > > credentials > > auth.settings.mailer=mail # for user email > > verification > > > auth.settings.registration_requires_verification = True # set to > > False by default > > auth.settings.registration_requires_approval = True # set to True by > > default > > > #you MUST write the message for the verificaiton email > > #since web2py does not know its own URL > > > auth.messages.verify_email = > > \ > > 'Click on the linkhttp://.../verify_email/%(key)sto verify your > > email' > > > If a registration requires email verification, registration_key is set > > to a UUID > > If a registration does not require email verification or has been > > verfified but it requires approval, registration_key is set to > > 'pending' > > If access should be blocked, registration_key can be set manually to > > 'block'. > > Good work! > > > > > self.settings.register_log = 'User %(id)s Registered' > > self.settings.login_log = 'User %(id)s Logged-in' > > self.settings.logout_log = 'User %(id)s Logged-out' > > self.settings.profile_log = 'User %(id)s Profile updated' > > self.settings.verify_email_log = \ > > self.settings.retrieve_username_log = \ > > self.settings.retrieve_password_log = \ > > self.settings.change_password_log = \ > > self.settings.add_group_log = 'Group %(group_id)s created' > > self.settings.del_group_log = 'Group %(group_id)s deleted' > > self.settings.add_membership_log = None > > self.settings.del_membership_log = None > > self.settings.has_membership_log = None > > self.settings.add_permission_log = None > > self.settings.del_permission_log = None > > self.settings.has_permission_log = None > > ... > > self.settings.submit_button = 'Submit' > > self.settings.delete_label = 'Check to delete:' > > If think these "settings" must be "messages" so we can translate all of them. > > -- > Álvaro Justen > Peta5 - Telecomunicações e Software Livre > 21 3021-6001 / 9898-0141 > http://www.peta5.com.br/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

