Remove exeption on size of char
- This is done by the database - The function is not only used to set value bzr revid: ced-abbbfeca10549aec408c53123e2d172b0612aab5
This commit is contained in:
+1
-5
@@ -147,11 +147,7 @@ class char(_column):
|
||||
u_symb = symb
|
||||
else:
|
||||
u_symb = unicode(symb)
|
||||
|
||||
if len(u_symb) > self.size:
|
||||
raise Exception, '%s size greater than %d' % (self.string, self.size)
|
||||
else:
|
||||
return u_symb.encode('utf8')
|
||||
return u_symb.encode('utf8')
|
||||
|
||||
class text(_column):
|
||||
_type = 'text'
|
||||
|
||||
Reference in New Issue
Block a user