Changeset 4182
- Timestamp:
- 06/25/08 16:09:08 (4 months ago)
- Files:
-
- trunk/dabo/biz/dBizobj.py (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/biz/dBizobj.py
r4057 r4182 354 354 try: 355 355 self.RowNumber = current_row 356 except: pass 356 except StandardError, e: 357 # Need to record what sort of error could be thrown 358 dabo.errorLog.write(_("Failed to set RowNumber. Error: %s") % e) 357 359 358 360 … … 639 641 currPK = self.getPK() 640 642 currRow = None 641 except :643 except dException.dException: 642 644 # No PK defined 643 645 currPK = None … … 709 711 try: 710 712 func(*args, **kwargs) 711 except: 712 # Reset things and bail: 713 except StandardError, e: 714 # Reset things and bail 715 dabo.errorLog.write(_("Error in scanChangedRows: %s") % e) 713 716 self._CurrentCursor = old_currentCursorKey 714 717 self._positionUsingPK(old_pk) 715 raise 718 raise e 716 719 717 720 self._CurrentCursor = old_currentCursorKey … … 890 893 in the cursor. 891 894 """ 892 try: 893 cc = self._CurrentCursor 894 except: 895 cc = None 895 cc = self._CurrentCursor 896 896 if cc is not None: 897 897 self._CurrentCursor.sort(col, ord, caseSensitive) … … 1037 1037 """Returns True if any record in the current record set has been changed.""" 1038 1038 if useCurrentParent is None: 1039 try: 1040 cc = self._CurrentCursor 1041 except: 1042 cc = None 1039 cc = self._CurrentCursor 1043 1040 else: 1044 1041 key = self.getParentLinkValue() … … 1065 1062 check all records. 1066 1063 """ 1067 try: 1068 cc = self._CurrentCursor 1069 except: 1070 cc = None 1064 cc = self._CurrentCursor 1071 1065 if cc is None: 1072 1066 # No cursor, no changes. … … 1405 1399 """ 1406 1400 ret = None 1407 try: 1408 cc = self._CurrentCursor 1409 except: 1410 cc = None 1401 cc = self._CurrentCursor 1411 1402 if cc is not None: 1412 1403 ret = self._CurrentCursor.getDataSet(flds, rowStart, rows) … … 1705 1696 try: 1706 1697 return self._CurrentCursor.getSQL() 1707 except :1698 except AttributeError: 1708 1699 return None 1709 1700 … … 1952 1943 try: 1953 1944 ret = self._CurrentCursor.RowCount 1954 except :1945 except AttributeError: 1955 1946 ret = None 1956 1947 return ret … … 1960 1951 try: 1961 1952 ret = self._CurrentCursor.RowNumber 1962 except :1953 except AttributeError: 1963 1954 ret = None 1964 1955 return ret
