Hi All, While i am trying to use the social plugin suggested by Massimo, i ran into another question. I clicked on the db admin, and try to see what I got for the Auth db. I didn't see it created, but read that it should be in the scaffolding by default.
I visited this page - http://127.0.0.1:8000/kdc2013/appadmin/index When I click on a db that links to an Auth table (e.g. the db.prototype). I am seeing this error - <type 'exceptions.AttributeError'> 'DAL' object has no attribute 'auth_user'. It doesn't seem to be with me. db.define_table('prototype', #editable = auth.has_membership('managers'), Field('title', 'string', unique=True, label='Prototype Name'), Field('lead_id', 'reference auth_user', default = auth.user_id), <<<<<<<<< Field('lead', 'string',label='Lead Engineer', default = ''), Field('domain', 'list:string', \ requires=[IS_IN_SET(DOMAIN_SET, multiple=True), IS_NOT_EMPTY()], \ widget=SQLFORM.widgets.multiple.widget, label='Domain(s)'), Field('status', 'string', default = 'New', \ requires=IS_IN_SET(('New Idea', 'Draft', 'Hacking', 'Prototype')), writable = False), Field('team', 'list:string', \ requires=[IS_IN_SET(Possible_Team_SET, multiple=True)], \ widget=SQLFORM.widgets.multiple.widget, label='Team Member(s)'), Field('demo_message', 'text',label='Key Messages of the Prototype'), Field('modified_on', 'datetime', update=request.utcnow,writable = False), format = '%(title)s') I follow the web2py book and not sure what i may do wrong. Is there a way that I can bring Auth back to test the social plugin? Thanks. This is in my "default controller." from gluon.tools import Auth auth = Auth(db) auth.define_tables() def user(): """ exposes: http://..../[app]/default/user/login http://..../[app]/default/user/logout http://..../[app]/default/user/register http://..../[app]/default/user/profile http://..../[app]/default/user/retrieve_password http://..../[app]/default/user/change_password use @auth.requires_login() @auth.requires_membership('group name') @auth.requires_permission('read','table name',record_id) to decorate functions that need access control """ return dict(form=auth()) this is my db.py from gluon.tools import Auth, Crud, Service, PluginManager, prettydate auth = Auth(db) crud, service, plugins = Crud(db), Service(), PluginManager() from plugin_timezone import tz_nice_detector_widget my_tz_nice_detector_widget = lambda field, value : tz_nice_detector_widget(field, value, autodetect=True) auth.settings.extra_fields['auth_user']= [ Field('user_timezone', 'string', widget=my_tz_nice_detector_widget), ] #auth.define_tables(username=False, signature=False) ########################## USE LDAP ########################################### auth.define_tables(username=True) auth.settings.create_user_groups=False auth.settings.actions_disabled=['change_password','request_reset_password','retrieve_username','profile'] -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.