Hi!
I have the same problem as Lukasz, but giving uppercase names to my
widgets doesn't make any diference.
I still don't have the values shown in th form.
@expose(template="ppi.templates.manter")
def manter(self, *args):
ano, plano, clec = args[:3]
p = session.query(PPI).get_by(t_year=ano, t_dimx=plano, t_ceco
= clec)
return dict(form=manter_form, values=p, action="/ppi/guardar")
class formPPI(widgets.WidgetsList):
t_dimx = widgets.TextField(label="Objectivo",
validator=validators.NotEmpty )
t_ceco = widgets.TextField(label=u'Económica',
validator=validators.NotEmpty )
(...)
ppi_tab = Table('ttfvbs061100', metadata,
Column('t_year', Integer, primary_key=True,
autoincrement=False),
Column('t_dimx', String(), primary_key=True),
Column('t_ceco', String(), primary_key=True),
autoload = True)
Paulino
On 5 Set, 17:44, Paul Johnston <[EMAIL PROTECTED]> wrote:
> Hi,
>
> >CONCLUSION: When usingsqlalchemyand widgets we need to name our
> >attributes in the widget using CAPITAL letters. when we usesqlalchemy
> >autoload function.
>
> Yes, this is expected behaviour. Widget names have to match column names
> (case sensitively). WhenSQLAlchemyreflects tables on some DBs, the
> columns are upper-cased.
>
> This definitely should be documented somewhere, although I'm not quite
> sure where. Do we have a "common gotchas" page?
>
> Paul
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---