http://www.turbogears.org/2.0/docs/main/ToscaWidgets/forms.html contains an
error. Below is a patch that fixes it.


--- forms.rst   2008-10-30 00:25:01.000000000 -0600
+++ forms.rst.new       2008-11-03 23:05:27.000000000 -0700
@@ -114,7 +114,7 @@
          # Passing the form in the return dict is no longer kosher, you can 
          # set pylons.c.form instead and use c.form in your template
          # (remember to 'import pylons' too)
-         pylons.c.form = model_form
+         pylons.c.form = create_movie_form
          return dict(modelname='Movie')
 
 Run the application, surf to `http://localhost:8080/new_form/ 
<http://localhost:8080/new_form/>`_ You will see a form that looks like this:

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to