pedersen / tgtools

Automatically exported from code.google.com/p/tgtools
0 stars 0 forks source link

Broken forms in tgext.admin with genshi templates #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. paster quickstart.
2. Answer 'No' in prefer mako on project creation wizard
3. paster setup-app development.ini
4. Create a new permission or navigate to 
http://localhost:8080/admin/permissions/new

What is the expected output? What do you see instead?
Expected: a nice form to make a new permission.
Actual: a broken form, cropped, no submit buttons, with some fields (text 
areas) filled with html tags. Seems like this happens if a model (a form) is 
rendered with some text areas. I've also had this problem when I practiced the 
Movie database tutorial.

What version of the product are you using? On what operating system?
The default turbogears 2.1 (turbogears2-2.1, tgext.admin-0.3.10, ...), python 
2.6, win xp.

Please provide any additional information below.
Please see attached screenshots. The first one was created using mako while the 
other one was created using genshi.

Original issue reported on code.google.com by pram...@gmail.com on 8 Jan 2011 at 7:51

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I can also report this issue. Mostly as with the Original Poster, but on linux, 
in turbogears. Crumbled html follows textareas.

Switching from a textarea field to a textfield fixes it, so it looks like the 
bug is specific for textareas.

Original comment by ahmedba...@gmail.com on 31 Mar 2011 at 2:09

GoogleCodeExporter commented 9 years ago
You can work around this problem by declaring in your development.ini

[DEFAULT]
templating.genshi.method = xhtml

or

templating.genshi.method = html

Original comment by SnowYu....@gmail.com on 7 Apr 2011 at 2:00