[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7484 - trunk/gnue-common/src/datasources/drivers/Base
From: |
jcater |
Subject: |
[gnue] r7484 - trunk/gnue-common/src/datasources/drivers/Base |
Date: |
Sun, 24 Apr 2005 17:04:24 -0500 (CDT) |
Author: jcater
Date: 2005-04-24 17:04:23 -0500 (Sun, 24 Apr 2005)
New Revision: 7484
Modified:
trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py
Log:
Fix support for primarykeyseq=".." support in DataSources
Modified: trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py 2005-04-24
21:45:10 UTC (rev 7483)
+++ trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py 2005-04-24
22:04:23 UTC (rev 7484)
@@ -174,7 +174,7 @@
# considered dirty, this is necessary so the appserver dbdriver
# includes them in the store call when executing the insert.
# TODO: Consider this cleaner solution: Connection.initialize takes a
- # second parameter with a field list, does the necessary requery itself,
+ # second parameter with a field list, does the necessary requery itself,
# and returns all fields with their new values. All those fields are
# considered non-dirty and then, simply all primarykeyFields could be set
# as dirty for new records. If the Base Connection._initialize returns a
@@ -315,7 +315,7 @@
def isEmpty (self):
"""
Return True if the record is empty.
-
+
"Empty" means that it has been newly inserted, but neither has any field
been changed nor has a detail for this record been inserted with a status
other than empty.
@@ -328,7 +328,7 @@
"""
Return True if the record has been newly inserted and has either changes
or a detail has been inserted.
-
+
Records with this status will be inserted into the database on post.
"""
return self.__status == 'inserted' or \
@@ -361,7 +361,7 @@
"""
Return True if the record has any local changes that make it necessary to
post it to the database.
-
+
The result is True if either isInserted, isModified, or isDeleted is True.
"""
# ... but we check __status instead of isXxxx to not have to evaluate
@@ -456,8 +456,8 @@
if len (self.__primarykeyFields) == 1 and \
self.getField (self.__primarykeyFields [0]) is None and \
self.__primarykeySeq is not None and \
- hasattr (self.__connection, 'getsequence'):
- pk = self.__connection.getsequence (self.__primarykeySeq)
+ hasattr (self.__connection, 'getSequence'):
+ pk = self.__connection.getSequence (self.__primarykeySeq)
self.setField (self.__primarykeyFields [0], pk)
# If we have a connection (i.e. we aren't static or unbound), do the post
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7484 - trunk/gnue-common/src/datasources/drivers/Base,
jcater <=