I have the following definition in a table referencing the auth_user table. 
I try to create a table of 

VALOR_ESTADOS = (
'inactivo',
'activo',
'vacaciones',
'desarrollo',
'ediciĆ³n',
'otro',
)

db.define_table('estado',
Field <https://kilroysoft.no-ip.org/examples/global/vars/Field>('evaluador', 
'reference auth_user'),
Field 
<https://kilroysoft.no-ip.org/examples/global/vars/Field>('estado_actual', 
'string', length=20, default=VALOR_ESTADOS[0], requires=IS_IN_SET 
<https://kilroysoft.no-ip.org/examples/global/vars/IS_IN_SET>
(VALOR_ESTADOS)),
auth.signature
)

I have the following definition in a table referencing the auth_user table. 
I try to create a table of states for the people in the auth_user table, 
but I don't know how to replace the default IS_IN_DB validator created when 
you use 'reference table_name' and also make that for each new status I 
create, the names which already have statuses created don't appear in the 
list.

Any suggestions?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to