I checked the documentation to make sure, and either one of the commented 
out lines works, but I keep getting this:
<class 'sqlite3.OperationalError'> near ".": syntax errorIt one (well both) 
of the commented out lines that give this error, because commenting them 
out makes the error go away.

db.define_table(
    'rsvp_list',
    Field('rsvp', notnull=True, requires=IS_IN_SET('Yes', 'Maybe', 'No')),
    Field('event_id', 'reference db.event', notnull=True, requires=IS_IN_DB(db, 
db.event, '%(event_name)s [%(id)%]')),
    #Field("person", db.auth_user, default=auth.user if auth.user else None)
    #Field('person', db.auth_user, notnull=True, default=auth.user_id))


How can I get this working?

Thanks for all suggestions,

Alec Taylor

-- 



Reply via email to