It looks like Jon made a slice here:
http://www.web2pyslices.com/main/slices/take_slice/18

You can use the select button in the top right of each code block to
copy the code.

On Nov 20, 12:40 pm, David <digitalcry...@gmail.com> wrote:
> Again it was quotes from copy and paste that were giving me troubles.
>
> I got it working fine with CRUD by changing out all quotes, single
> quotes from the copy/pasted text.
>
> TY for this!  :0)
>
> On Nov 20, 12:18 pm, David <digitalcry...@gmail.com> wrote:
>
> > 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 web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to