dabo Commit
Revision 4962
Date: 2009-01-25 12:39:27 -0800 (Sun, 25 Jan 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/4962
Changed:
U trunk/dabo/biz/dBizobj.py
U trunk/dabo/dApp.py
U trunk/dabo/lib/RemoteConnector.py
U trunk/dabo/lib/autosuper/setup.py
Log:
Changed all occurrences of 'raise e' to simply 'raise'.
Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py 2009-01-25 16:01:13 UTC (rev 4961)
+++ trunk/dabo/biz/dBizobj.py 2009-01-25 20:39:27 UTC (rev 4962)
@@ -361,19 +361,19 @@
except dException.ConnectionLostException, e:
self.RowNumber = current_row
- raise e
+ raise
except dException.DBQueryException, e:
# Something failed; reset things.
if startTransaction:
self.rollbackTransaction()
# Pass the exception to the UI
self.RowNumber = current_row
- raise e
+ raise
except dException.dException, e:
if startTransaction:
self.rollbackTransaction()
self.RowNumber = current_row
- raise e
+ raise
if current_row >= 0:
try:
@@ -439,14 +439,14 @@
if startTransaction:
self.rollbackTransaction()
# Pass the exception to the UI
- raise e
+ raise
except dException.dException, e:
# Something failed; reset things.
if startTransaction:
self.rollbackTransaction()
# Pass the exception to the UI
- raise e
+ raise
# Two hook methods: one specific to Save(), and one which is
called after any change
# to the data (either save() or delete()).
@@ -502,11 +502,11 @@
except dException.DBQueryException, e:
if startTransaction:
self.rollbackTransaction()
- raise e
+ raise
except StandardError, e:
if startTransaction:
self.rollbackTransaction()
- raise e
+ raise
self.afterDeleteAllChildren()
@@ -558,11 +558,11 @@
except dException.DBQueryException, e:
if startTransaction:
self.rollbackTransaction()
- raise e
+ raise
except StandardError, e:
if startTransaction:
self.rollbackTransaction()
- raise e
+ raise
def deleteAll(self, startTransaction=True):
@@ -585,11 +585,11 @@
except dException.DBQueryException, e:
if startTransaction:
self.rollbackTransaction()
- raise e
+ raise
except StandardError, e:
if startTransaction:
self.rollbackTransaction()
- raise e
+ raise
def execute(self, sql, params=None):
@@ -769,7 +769,7 @@
dabo.errorLog.write(_("Error in
scanChangedRows: %s") % e)
self._CurrentCursor =
old_currentCursorKey
self._positionUsingPK(old_pk)
- raise e
+ raise
self._CurrentCursor = old_currentCursorKey
if old_pk is not None:
Modified: trunk/dabo/dApp.py
===================================================================
--- trunk/dabo/dApp.py 2009-01-25 16:01:13 UTC (rev 4961)
+++ trunk/dabo/dApp.py 2009-01-25 20:39:27 UTC (rev 4962)
@@ -703,7 +703,7 @@
# Not changed or not found; nothing to do
if code == 404 and errorOnNotFound:
# Re-raise the error
- raise e
+ raise
return
newFile = resp.read()
if newFile:
@@ -827,7 +827,7 @@
continue
break
else: # All attempts failed
- raise e
+ raise
return ret
Modified: trunk/dabo/lib/RemoteConnector.py
===================================================================
--- trunk/dabo/lib/RemoteConnector.py 2009-01-25 16:01:13 UTC (rev 4961)
+++ trunk/dabo/lib/RemoteConnector.py 2009-01-25 20:39:27 UTC (rev 4962)
@@ -77,7 +77,7 @@
continue
break
else:
- raise e
+ raise
return ret
typs = safeLoad(ptyps)
data = safeLoad(pdata)
@@ -181,7 +181,7 @@
errText = e.read()
errMsg = "\n".join(errText.splitlines()[4:])
dabo.errorLog.write(_("HTTP Error getting app list:
%s") % e)
- raise e
+ raise
# If they passed an app name, and it's in the returned app
list, run it
if path and (path in res):
return path
@@ -250,7 +250,7 @@
return
except urllib2.URLError, e:
# Right now re-raise it and let the UI handle it
- raise e
+ raise
pickleRet = res.read()
filecode, chgs, serverMf = pickle.loads(jsonDecode(pickleRet))
# Everything after this is relative to the app's home
directory, so
Modified: trunk/dabo/lib/autosuper/setup.py
===================================================================
--- trunk/dabo/lib/autosuper/setup.py 2009-01-25 16:01:13 UTC (rev 4961)
+++ trunk/dabo/lib/autosuper/setup.py 2009-01-25 20:39:27 UTC (rev 4962)
@@ -40,4 +40,4 @@
except ImportError, e:
setup(**params)
- raise e
+ raise
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]