Author: phd
Date: 2009-09-30 09:53:49 -0600 (Wed, 30 Sep 2009)
New Revision: 4026
Modified:
SQLObject/trunk/docs/News.txt
SQLObject/trunk/sqlobject/col.py
Log:
Removed the last remained string exceptions.
Modified: SQLObject/trunk/docs/News.txt
===================================================================
--- SQLObject/trunk/docs/News.txt 2009-09-30 15:48:38 UTC (rev 4025)
+++ SQLObject/trunk/docs/News.txt 2009-09-30 15:53:49 UTC (rev 4026)
@@ -53,6 +53,8 @@
* Removed all deprecated attribute and functions.
+* Removed the last remained string exceptions.
+
SQLObject 0.11.2
================
Modified: SQLObject/trunk/sqlobject/col.py
===================================================================
--- SQLObject/trunk/sqlobject/col.py 2009-09-30 15:48:38 UTC (rev 4025)
+++ SQLObject/trunk/sqlobject/col.py 2009-09-30 15:53:49 UTC (rev 4026)
@@ -354,7 +354,8 @@
# class attribute, return the descriptor itself
return self
if obj.sqlmeta._obsolete:
- raise '@@: figure out the exception for a delete'
+ raise RuntimeError('The object <%s %s> is obsolete' % (
+ obj__class__.__name__, obj.id))
if obj.sqlmeta.cacheColumns:
columns = obj.sqlmeta._columnCache
if columns is None:
@@ -975,7 +976,7 @@
return "VARCHAR(%i)" % (length), checkConstraint
def _maxdbType(self):
- raise "Enum type is not supported"
+ raise TypeError("Enum type is not supported on MAX DB")
def _getlength(self, obj):
"""
|