#730: FastData ignores SQLObject title on Boolean columns
-------------------------------+--------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: icc
Type: defect | Status: new
Priority: normal | Milestone:
Component: FastData | Version: 0.9a3
Severity: normal | Resolution:
Keywords: fastdata |
-------------------------------+--------------------------------------------
Changes (by icc):
* owner: anonymous => icc
Comment:
The fix for this is very easy. If someone could tell me the appropriate
patch style, and how to submit it, I would appreciate it. I just got
turned onto turbogears by my friend Brian Beck, and am hoping to help fix
bugs. Please email me, icc at case dot edu - many thanks!
The fix is as follows:
in formmaker.py, the column_boolean function is as such:
def column_boolean(column):
return widgets.CheckBox(column.name)
column_boolean = column_widget.when("isinstance(column,
col.SOBoolCol)")(column_boolean)
so it's no surprise that no other parameters are being seen by CheckBox().
the fix is obvious, looking at the other functions in this module:
def column_boolean(column):
parms = column_parms(column)
return widgets.CheckBox(**parms)
column_boolean = column_widget.when("isinstance(column,
col.SOBoolCol)")(column_boolean)
--
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
-~----------~----~----~----~------~----~------~--~---