[SQL-CVS] SQLObject/SQLObject Col.py,1.8,1.9
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <ian...@us...> - 2003-04-11 16:23:22
|
Update of /cvsroot/sqlobject/SQLObject/SQLObject In directory sc8-pr-cvs1:/tmp/cvs-serv25492/SQLObject Modified Files: Col.py Log Message: Pychecker-caught typos Index: Col.py =================================================================== RCS file: /cvsroot/sqlobject/SQLObject/SQLObject/Col.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Col.py 10 Apr 2003 04:46:54 -0000 1.8 --- Col.py 11 Apr 2003 16:23:18 -0000 1.9 *************** *** 17,21 **** # Col is essentially a column definition, it doesn't have # much logic to it. ! class Col: def __init__(self, name, dbName=None, default=NoDefault, --- 17,21 ---- # Col is essentially a column definition, it doesn't have # much logic to it. ! class Col(object): def __init__(self, name, dbName=None, default=NoDefault, *************** *** 91,96 **** def _get_joinName(self): ! assert self._name[-2:] == 'ID' ! return self._name[:-2] joinName = property(_get_joinName, None, None) --- 91,96 ---- def _get_joinName(self): ! assert self.name[-2:] == 'ID' ! return self.name[:-2] joinName = property(_get_joinName, None, None) *************** *** 108,112 **** def createSQL(self): ! return ' '.join([self._sqlType(self) + self._extraSQL()]) def _extraSQL(self): --- 108,112 ---- def createSQL(self): ! return ' '.join([self._sqlType() + self._extraSQL()]) def _extraSQL(self): |