dabo Commit
Revision 5831
Date: 2010-05-21 11:09:16 -0700 (Fri, 21 May 2010)
Author: Nate
Trac: http://trac.dabodev.com/changeset/5831
Changed:
U trunk/dabo/db/dCursorMixin.py
Log:
Trailing Whitespace removed - No Code Changes
Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py 2010-05-19 14:32:03 UTC (rev 5830)
+++ trunk/dabo/db/dCursorMixin.py 2010-05-21 18:09:16 UTC (rev 5831)
@@ -129,7 +129,7 @@
# Flag preference cursors so that they don't fill up the logs
self._isPrefCursor = False
-
+
# Get the parameter for the backend type
self._paramPlaceholder = None
@@ -810,8 +810,8 @@
def getPK(self, row=None):
- """ Returns the value of the PK field in the current or passed
record number.
- If that record is a new unsaved record, return the temp PK
value. If this is a
+ """ Returns the value of the PK field in the current or passed
record number.
+ If that record is a new unsaved record, return the temp PK
value. If this is a
compound PK, return a tuple containing each field's values.
"""
if self.RowCount <= 0:
@@ -1235,9 +1235,9 @@
'valOrExpr' will be treated as a literal value, unless it is
prefixed
with an equals sign. All expressions will therefore be a string
beginning with '='. Literals can be of any type.
-
- NOTE: this does NOT work with the memento framework for
- determining modified records. It is strongly recommended that
+
+ NOTE: this does NOT work with the memento framework for
+ determining modified records. It is strongly recommended that
instead of calling this directly that the bizobj.replace()
method
be used in any programming.
"""
@@ -1323,7 +1323,7 @@
self._syncAuxProperties()
if allRows:
- # This branch doesn't happen when called from dBizobj
(not sure if
+ # This branch doesn't happen when called from dBizobj
(not sure if
# we really need the allRows arg at all).
rows =
self.getChangedRows(includeNewUnchanged=includeNewUnchanged)
else:
@@ -1333,7 +1333,7 @@
rows = []
if self.isChanged(allRows=False,
includeNewUnchanged=includeNewUnchanged):
rows = [self.RowNumber]
- for row in rows:
+ for row in rows:
saverow(row)
@@ -1341,7 +1341,7 @@
rec = self._records[row]
recKey = self.pkExpression(rec)
newrec = kons.CURSOR_TMPKEY_FIELD in rec
-
+
newPKVal = None
if newrec and self.AutoPopulatePK:
# Some backends do not provide a means to retrieve
@@ -1786,7 +1786,7 @@
kf = self.KeyField
return bool([v[kf] for v in self._records if v[kf] == pk])
-
+
def moveToPK(self, pk):
""" Find the record with the passed primary key, and make it
active.
@@ -1984,7 +1984,7 @@
def makeUpdClause(self, diff):
"""Create the 'set field=val' section of the Update statement.
Return a 2-tuple
- containing the sql portion as the first element, and the
parameters for the
+ containing the sql portion as the first element, and the
parameters for the
values as the second.
"""
retSql = []
@@ -2749,7 +2749,7 @@
separate the fields with commas. (str)"""))
ParamPlaceholder = property(_getParamPlaceholder, None, None,
- _("""The character(s) used to indicate a parameter in
an SQL statement.
+ _("""The character(s) used to indicate a parameter in
an SQL statement.
This can be different for different backend systems.
Read-only. (str)"""))
Record = property(_getRecord, None, None,
_______________________________________________
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]