Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /branches/1.5/turbogears/i18n/sagettext/model.py [r7404] .. [r7405] Maximize Restore

  Switch to side-by-side view

--- a/branches/1.5/turbogears/i18n/sagettext/model.py
+++ b/branches/1.5/turbogears/i18n/sagettext/model.py
@@ -1,7 +1,7 @@
 from datetime import datetime
 
 from sqlalchemy import (Table, Column, ForeignKey,
-    String, Unicode, Integer, DateTime)
+    DateTime, Integer, String, UnicodeText)
 from sqlalchemy.orm import relation, mapper
 
 from turbogears.database import metadata
@@ -9,14 +9,14 @@
 
 tg_domain_table = Table('tg_i18n_domain', metadata,
     Column('id', Integer, primary_key=True),
-    Column('name', Unicode, unique=True))
+    Column('name', String(255), 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('name', UnicodeText),
+    Column('text', UnicodeText, default=u''),
     Column('domain_id', Integer, ForeignKey(tg_domain_table.c.id)),
-    Column('locale', String(length=15)),
+    Column('locale', String(15)),
     Column('created', DateTime, default=datetime.now),
     Column('updated', DateTime, default=None))