That looks like you didn't tell your template engine that you want to
output literal html from your form.
You need to make sure, that it doesn't get html-escaped again.
If you use Mako:
${form() | n}
In Genshi it doesn't seem to be required if you use py:replace.
Also, you should propably use the more up-to-date version of the docs:
http://turbogears.org/2.1/docs/main/ToscaWidgets/forms.html , assuming you
are also using the current TG version.
Am Donnerstag, 19. April 2012 00:26:26 UTC+2 schrieb jeg:
>
>
> I tried this with
> http://turbogears.org/2.0/docs/main/ToscaWidgets/forms.html
> and it looked ok until I viewed the ".../new" page in the browser. The
> generated HTML is broken:
>
> <div id="content">
> <div class="currentpage">
> Now Viewing: ToscaSample New Movie
> </div>
> <h1>New Movie</h1>
> <form xmlns="http://www.w3.org/1999/xhtml" id="create_movie_form"
> action="" method="post" class="required movieform">
> <table border="0" cellspacing="0" cellpadding="2">
> <tr id="create_movie_form_title.container" class="even"
> title="">
> <td class="labelcol">
> <label id="create_movie_form_title.label"
> for="create_movie_form_title"
> -------- MORE OF THE SAME SORT OF CODE WITH < and > ----------------
> </form>
> <!-- End of main_content -->
> <div id="footer">
>
> Any idea what could cause this?
>
>
> Alessandro Molina-2 wrote:
> >
> > TurboGears projects can be quickstarted without database and auth,
> > just run the quickstart with -x -n options:
> >
> > $ paster quickstart -x -n myproject
> >
> >
> --
> View this message in context:
> http://old.nabble.com/Is-it-possible-to-not-use-a-database--tp33709401p33711080.html
> Sent from the Turbogears General mailing list archive at Nabble.com.
>
>
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/turbogears/-/az_ItLYEkloJ.
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?hl=en.