31 |
|
|
32 |
__all__ = ['RecordSet'] |
__all__ = ['RecordSet'] |
33 |
|
|
34 |
from gnue.common.datasources import GDataObjects, GConditions |
from gnue.common.datasources import GConditions, Exceptions |
35 |
|
from gnue.common.datasources.drivers.Base import RecordSet as BaseRecordSet |
36 |
from gnue.common.apps import GDebug |
from gnue.common.apps import GDebug |
37 |
import string |
import string |
38 |
import types |
import types |
42 |
# |
# |
43 |
# |
# |
44 |
# |
# |
45 |
class RecordSet(GDataObjects.RecordSet): |
class RecordSet(BaseRecordSet): |
46 |
|
|
47 |
def _postChanges(self): |
def _postChanges(self): |
48 |
if not self.isPending(): return |
if not self.isPending(): return |
64 |
self._initialData.update(self._fields) |
self._initialData.update(self._fields) |
65 |
|
|
66 |
except self._parent._dataObject._DatabaseError, err: |
except self._parent._dataObject._DatabaseError, err: |
67 |
raise GDataObjects.ConnectionError, err |
raise Exceptions.ConnectionError, err |
68 |
|
|
69 |
self._updateFlag = 0 |
self._updateFlag = 0 |
70 |
self._insertFlag = 0 |
self._insertFlag = 0 |