db_events.define_table('alerts',
Field('type', length=20, label='Clase' ),
Field('rule', label='Regla'),
Field('value', length=30, label='Valor'),
Field('detail', label='Detalle'),
Field('coords', length=20, label='Coordenadas'),
Field('checked', 'integer', label='Chequeada', default=0 ),# 1 to checked
Field('created_on', 'datetime', label='Recibida', default=request.now)
)def check_to_true():
if not request.args(0):
return ''
db_events.alerts(request.args(0)).update_record(checked=1)
links = [
dict(header='check the rec',
body=lambda row : A('check', _class='btn', _href='#', callback=URL('check_to_true', args=row.id))
)]
jQuery(this).closest('tr').remove();--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/asCPsD9UGb8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.