Had to adjust the code in my previous reply.
The self.attrs['value'] = "true" needed to remain. Following is the working 
code:

class SproxCheckBox(CheckBox):
>     def prepare(self):
>         super(SproxCheckBox, self).prepare()
>         self.attrs['value'] = 'True'
>         if self.value == 'False':
>            self.attrs.pop("checked", None)
>

Sorry for the confusion. 

On Monday, January 21, 2013 3:42:36 PM UTC-6, Alessandro Molina wrote:
>
> Today Chris Perkins released the new version of Sprox, this is a minor 
> release with some major improvements for people using Sprox and the 
> TurboGears admin. Most notable change is initial support for SQLAlchemy 
> 0.8, some bugs might still be around, but things seem to work correctly.
>
> Other changes include:
>  - Fix MultipleSelection validation with TW2 not working correctly (crash 
> on safe_validate)
>  - Fix broken Unicode validation for strings on TW1
>  - Fix ming provider trying to cast already correctly casted datetimes
>  - When available use the new ming.odm namespace instead of the old 
> ming.orm
>  - Fix fields being removed even when specified in add_fields
>  

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to