I'm using tgext.admin with Mako templates and Turbogears v2.1b1.

How can I resolve the issue with Boolean columns not being updated in
tgext.admin?  My Unicode fields are updated with no problem, and the
"Boolean columns not updating" issue is irrespective of whether or not
I specify a default for the Boolean columns.

Here's my model:
<blockquote>
# -*- coding: utf-8 -*-
"""Post model module."""

from sqlalchemy import *
from sqlalchemy.orm import mapper, relation
from sqlalchemy import Table, ForeignKey, Column
from sqlalchemy.types import Integer, Unicode, Boolean
#from sqlalchemy.orm import relation, backref

from myapp.model import DeclarativeBase, metadata, DBSession

class Post(DeclarativeBase):
    __tablename__ = 'posts'

    id = Column(Integer, primary_key=True)
    website_id = Column(Integer, ForeignKey('websites.id'))

    headline = Column(Unicode)
    body = Column(Unicode)
    ready = Column(Boolean)
    is_posted = Column(Boolean)
    post_num = Column(Integer)

    def __repr__(self):
        return '<Post: headline=%r>' % (
                self.headline)

    def __unicode__(self):
        return self.headline
</blockquote>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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?hl=en.

Reply via email to