same thing got me.
try,
class MyAuth(Auth):
def __init__(self, environment, T, db = db):
^^
On Feb 23, 7:55 am, Jason Brower <[email protected]> wrote:
> I have setup the auth modules as follows:'
> # Create the user table
> db.define_table('users',
> SQLField('nickname', length=25),
> SQLField('email', 'string'),
> SQLField('first_name', 'string'),
> SQLField('last_name', 'string'),
> SQLField('password', 'password'),
> SQLField('created', 'date', default=now),
> SQLField('deleted', 'string'),
> SQLField('verified', 'boolean', default= False),
> SQLField('position', 'string'),
> SQLField('profile_text', 'text'),
> SQLField('profile_photo', 'upload', default=''),
> SQLField('homepage', 'string'),
> SQLField('event','string'))
>
> class MyAuth(Auth):
> def __init__(self, environment, T, db = None):
> "Initialise parent class & make any necessary modifications"
> Auth.__init__(self,environment,db)
> self.messages.logged_in = T("Logged in")
> self.messages.email_sent = T("Email sent")
> self.messages.email_verified = T("Email verified")
> self.messages.logged_out = T("Logged out")
> self.messages.registration_succesful = T("Registration
> successful")
> self.messages.invalid_email = T("Invalid email")
> self.messages.invalid_login = T("Invalid login")
> self.messages.verify_email_subject = T("Password verify")
> self.messages.username_sent = T("Your username was emailed to
> you")
> self.messages.new_password_sent = T("A new password was emailed
> to you")
> self.messages.invalid_email = T("Invalid email")
> self.messages.password_changed = T("Password changed")
> self.messages.retrieve_username=str(T("Your username is"))+":
> %(username)s"
> self.messages.retrieve_username_subject="Username retrieve"
> self.messages.retrieve_password=str(T("Your password is"))+":
> %(password)s"
> self.messages.retrieve_password_subject = T("Password retrieve")
> self.messages.profile_updated = T("Profile updated")
> #Use my own table instead of the default table.
> self.settings.table_user=db.users
>
> Not the last line... With that I should see the new users profile
> information in the profile page, but I get this profileScreen.png, which
> I think is the default. I thought I would be getting information like
> userDatabase.png.
> Is there something I am missing?
> ---
> Regards,
> Jason Brower
>
> usersDatatbase.png
> 73KViewDownload
>
> profileScreen.png
> 62KViewDownload
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---