#730: FastData ignores SQLObject title on Boolean columns
-------------------------------+--------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: TurboGears | Version: 0.9a3
Severity: normal | Keywords: fastdata
-------------------------------+--------------------------------------------
FastData data controllers pay attention to the "title" attribute of
SQLObjects in the list view for all column types, but not in the form view
for BoolCol columns.
Repro:
1. Quickstart a project
2. Create a model with:
{{{
#!python
class MenuItem(SQLObject):
name = StringCol(length=32, title="Item Name")
has_spam = BoolCol(title="Has Spam in It")
}}}
3. Create a controller:
{{{
#!python
import cherrypy
import turbogears
from turbogears import controllers, expose, redirect
from turbogears import identity
import tgfastdata
import model
class Root(tgfastdata.DataController):
sql_class=model.MenuItem
}}}
4. Run {{{tg-admin sql create}}}
5. Start the app and view http://localhost:8080
6. Notice that all headers use the title attribute.
7. Add a record. Notice the 'has_spam' field label.
This appears to work for all column types '''but''' BoolCol.
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/730>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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-tickets
-~----------~----~----~----~------~----~------~--~---