Does this work with crud? I put the db.product.description =
advanced_editor in my controller but it is not launching? Perhaps I
am doing this wrong?
I am still new to all of this.
Code
====
def edit():
""" Edit a product """
thisproduct = db.product[request.args(0)]
if not thisproduct:
redirect(URL(r=request, f='index'))
db.product.description.widget = advanced_editor
form = crud.update(db.product, thisproduct,
next = URL(r=request, f='show', args=request.args))
return dict(form=form)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---