I have a model defined like that. There is a reference to the build in auth 
user. The requirement is to create such submission via an unsecured 
controller and to register or login on the same page in one step.

db.define_table(
    'submission',
    Field('title', requires = IS_NOT_EMPTY()),
    Field('submitter', 'reference auth_user', default=auth.user_id, writable
=False, readable=False),
    
    Field('image_1', 'upload', default='', requires=IS_IMAGE(), uploadfolder
=upload_fs, uploadseparate=settings.upload_separate),
...


-- 

--- 
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.


Reply via email to