set a size constraint on ECache's title
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 23 Apr 2009 08:05:51 +0200
changeset 1445 d3c9b075ceb7
parent 1444 ad182c8e14f7
child 1456 998ff29c3390
set a size constraint on ECache's title It's not a good idea to use text field with no size constraint and to index them. Somme BDD backends (MySQL for instance) simply don't support it.
schemas/base.py
--- a/schemas/base.py	Wed Apr 22 21:59:58 2009 -0700
+++ b/schemas/base.py	Thu Apr 23 08:05:51 2009 +0200
@@ -328,6 +328,6 @@
         'delete': ('managers',),
         }
 
-    name = String(required=True, unique=True, indexed=True, 
+    name = String(required=True, unique=True, indexed=True,  maxsize=128,
                   description=_('name of the cache'))
     timestamp = Datetime(default='NOW')