Changeset 2855
- Timestamp:
- 02/25/07 23:37:36 (2 years ago)
- Files:
-
- trunk/dabo/biz/dBizobj.py (modified) (3 diffs)
- trunk/dabo/db/dCursorMixin.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/biz/dBizobj.py
r2836 r2855 34 34 self._conn = conn 35 35 36 super(dBizobj, self).__init__(properties=properties, *args, **kwargs)37 38 36 cn = self._conn 39 37 if cn: … … 45 43 self.createCursor() 46 44 47 48 45 # We need to make sure the cursor is created *before* the call to 49 46 # initProperties() 50 47 self._initProperties() 48 super(dBizobj, self).__init__(properties=properties, *args, **kwargs) 51 49 self._afterInit() 52 50 self.__att_try_setFieldVal = True … … 721 719 is built. 722 720 """ 723 if self.DataSource and self.LinkField :721 if self.DataSource and self.LinkField and self.Parent: 724 722 if self.Parent.IsAdding: 725 723 # Parent is new and not yet saved, so we cannot have child records yet. trunk/dabo/db/dCursorMixin.py
r2848 r2855 1913 1913 def oldVal(self, fieldName, row=None): 1914 1914 """Returns the value of the field as it existed after the last requery.""" 1915 if self.RowCount < 1: 1916 raise dabo.dException.NoRecordsException 1915 1917 if row is None: 1916 1918 row = self.RowNumber
