Bugs item #1459482, was opened at 2006-03-27 09:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1459482&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: SQLObject release (specify)
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Can't access column called 'class' in SQLObject
Initial Comment:
A syntax error is generated when a column named "class"
is accessed using the SQLObject class interface in
SQLObject 0.7.
Example:
The class AltJEDic contains a column named "CLASS" that
should be mapped to the python object AltJEDic.class
class AltJEDic(SQLObject):
class sqlmeta:
fromDatabase = True
#idName = "sqlid"
table = "ALTJEDIC0111"
style = HinokiStyle()
However, when I try to use AltJEDic.class in a function
call, it fails with the following error:
# python verify-wordnet.py
File "verify-wordnet.py", line 190
if isSynonymRelGT(left_altjdic.class,
right_altjdic.class):
^
SyntaxError: invalid syntax
It seems that this is interfering with Python keywords.
Do we need to add a restriction on column (or SQLObject
class member names) or can this be worked around?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1459482&group_id=74338
|