[SQL-CVS] r587 - trunk/SQLObject/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2005-02-09 08:35:07
|
Author: ianb Date: 2005-02-09 08:35:01 +0000 (Wed, 09 Feb 2005) New Revision: 587 Modified: trunk/SQLObject/sqlobject/sqlbuilder.py Log: Avoid tables with empty names Modified: trunk/SQLObject/sqlobject/sqlbuilder.py =================================================================== --- trunk/SQLObject/sqlobject/sqlbuilder.py 2005-02-09 08:34:41 UTC (rev 586) +++ trunk/SQLObject/sqlobject/sqlbuilder.py 2005-02-09 08:35:01 UTC (rev 587) @@ -329,6 +329,9 @@ def __init__(self, soClass): self.soClass = soClass + assert soClass._table, ( + "Bad table name in class %r: %r" + % (soClass, soClass._table)) Table.__init__(self, soClass._table) def __getattr__(self, attr): |