I created an instance of SAContext using this:
sac = SAContext(uri="postgres:/voltron:[EMAIL PROTECTED]:5432/test",
engine_options={"echo": False, "convert_unicode":True})
links = Table(
"links",
sac.metadata,
Column("id", Integer, primary_key=True),
Column("name", String(255))
)
using "pint[links]" I get something which I dont understand, all the
fields have the attribute convert_unicode = False. I thought that all
does the the setting in the SAContext propagate to the field
definitions of the table? The database was created with utf-8 encoding
on. Do I have to assign True to the convert_unicode attribute of the
fields in the Table object also?
# a part of what is printed looks like this
"Column('name',String(length=255,convert_unicode=False)"
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---