All,
I think there is problem in the i18n model. I discovered this in
running my create_all scripts (i am using elixir and sqlalchemy) in
moving to 1.5, I don't directly use i18n but since its included by the
framework, running create_all attempts

In the model py for i18n they have this:

tg_domain_table = Table('tg_i18n_domain', metadata,
    Column('id', Integer, primary_key=True),
    Column('name', Unicode, unique=True))

tg_message_table = Table('tg_i18n_message', metadata,
    Column('id', Integer, primary_key=True),
    Column('name', Unicode),
    Column('text', Unicode, default=u''),
    Column('domain_id', Integer, ForeignKey(tg_domain_table.c.id)),
    Column('locale', String(length=15)),
    Column('created', DateTime, default=datetime.now),
    Column('updated', DateTime, default=None))

The problem is Oracle isn't allowing Unicode columns without a length.
(wonderful invalid size message)

The solution I think is to simply change the model to set a specific
size

[
My work around was a hack that but I didn't/couldn't touch the core
1.5 code

def hack_i18n_tables():
    from sqlalchemy import (Table, Column, ForeignKey,
        String, Unicode, Integer, DateTime)
    from turbogears.i18n.sagettext.model import tg_domain_table,
tg_message_table
    for key in ('name',):
      tg_domain_table.columns[key].type = Unicode(1024)

    for key in ('name','text',):
      tg_message_table.columns[key].type = Unicode(1024)
]

Better way to handle suggestions welcome,
Brandon

-- 
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