hi,

is it possible to have DAL comment with HTML helper?
*from book it said :*
comment is a string (or a *helper *or something that can be serialized to a 
string) that contains a comment associated with this field, and will be 
displayed to the right of the input field in the autogenerated forms.

*code*
table.customer.comment = lambda customer, field: A(_class="glyphicon 
glyphicon-plus-sign", _data-toggle="modal", _data-target="#myModal")

*it return an error*
Traceback 

1.
2.
3.
4.
5.
6.
7.
8.
9.

Traceback (most recent call last):
  File "C:\web2py\gluon\restricted.py", line 226, in restricted
    ccode = compile2(code, layer)
  File "C:\web2py\gluon\restricted.py", line 209, in compile2
    return compile(code.rstrip().replace('\r\n', '\n') + '\n', layer, 'exec')
  File "C:/web2py/applications/delivery/models/db_wizard_6_sale_order.py" 
<https://127.0.0.1/admin/default/edit/delivery/models/db_wizard_6_sale_order.py>,
 line 38
    table.customer.comment = lambda customer, field: A(_class="glyphicon 
glyphicon-plus-sign", _data-toggle="modal", _data-target="#myModal")
SyntaxError: keyword can't be an expression



thanks and best regards,
stifan

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to