On Tue, Jun 06, 2006 at 11:30:02AM +0200, Ivan Horvath wrote:
>   but it makes an assertionerror requesting to specify forceDBName
>   = True argument for every column.

col.py:141:

        if not forceDBName:
            assert sqlbuilder.sqlIdentifier(name), 'Name must be SQL-safe 
(letters, numbers, underscores): %s (or use forceDBName=True)' \
               % repr(name)

   The assertion error means your column names are not SQL identifiers.
SQLBuioder consider a name a valid identifier:

safeSQLRE = re.compile(r'^[a-zA-Z_][a-zA-Z0-9_\.]*$')
def sqlIdentifier(obj):
    return type(obj) is type("") and not not safeSQLRE.search(obj.strip())

   safeSQLRE was fixed after 0.7.0 so you probably need upgrade. 0.7.1
beta1 was released two weeks ago.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.


_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to