dabo Commit
Revision 6996
Date: 2011-12-01 09:23:48 -0800 (Thu, 01 Dec 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6996

Changed:
U   trunk/dabo/biz/dBizobj.py
U   trunk/dabo/db/dCursorMixin.py

Log:
Fixed mis-spelling of 'dissociate' throughout - somehow I typed a triple 's' 
instead of a double.


Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py   2011-11-30 01:17:01 UTC (rev 6995)
+++ trunk/dabo/biz/dBizobj.py   2011-12-01 17:23:48 UTC (rev 6996)
@@ -2192,30 +2192,30 @@
                return self._mmAssociatedDbCall(bizOrDS, "mmAssociateValues", 
otherField, listOfValues)
 
 
-       def mmDisssociateValue(self, bizOrDS, otherField, otherVal):
+       def mmDissociateValue(self, bizOrDS, otherField, otherVal):
                """
                Removes the association between the current record and the 
specified value
                in the 'other' table of a M-M relationship. If no such 
association exists,
                nothing happens.
                """
-               return self._mmAssociatedDbCall(bizOrDS, "mmDisssociateValue", 
otherField, otherVal)
+               return self._mmAssociatedDbCall(bizOrDS, "mmDissociateValue", 
otherField, otherVal)
 
 
-       def mmDisssociateValues(self, bizOrDS, otherField, listOfValues):
+       def mmDissociateValues(self, bizOrDS, otherField, listOfValues):
                """
                Removes the association between the current record and every 
item in 'listOfValues'
                in the 'other' table of a M-M relationship. If no such 
association exists,
                nothing happens.
                """
-               return self._mmAssociatedDbCall(bizOrDS, "mmDisssociateValues", 
otherField, listOfValues)
+               return self._mmAssociatedDbCall(bizOrDS, "mmDissociateValues", 
otherField, listOfValues)
 
 
-       def mmDisssociateAll(self, bizOrDS):
+       def mmDissociateAll(self, bizOrDS):
                """
                Removes all associations between the current record and the 
associated
                M-M table.
                """
-               return self._mmAssociatedDbCall(bizOrDS, "mmDisssociateAll")
+               return self._mmAssociatedDbCall(bizOrDS, "mmDissociateAll")
 
 
        def mmSetFullAssociation(self, bizOrDS, otherField, listOfValues):

Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py       2011-11-30 01:17:01 UTC (rev 6995)
+++ trunk/dabo/db/dCursorMixin.py       2011-12-01 17:23:48 UTC (rev 6996)
@@ -1170,16 +1170,16 @@
                        self.mmAddToBoth(keyField, pk, otherField, val)
 
 
-       def mmDisssociateValue(self, otherField, otherVal):
+       def mmDissociateValue(self, otherField, otherVal):
                """
                Removes the association between the current record and the 
specified value
                in the 'other' table of a M-M relationship. If no such 
association exists,
                nothing happens.
                """
-               self.mmDisssociateValues(otherField, [otherVal])
+               self.mmDissociateValues(otherField, [otherVal])
 
 
-       def mmDisssociateValues(self, otherField, listOfValues):
+       def mmDissociateValues(self, otherField, listOfValues):
                """
                Removes the association between the current record and every 
item in 'listOfValues'
                in the 'other' table of a M-M relationship. If no such 
association exists,
@@ -1194,22 +1194,22 @@
                        sql = self._qMarkToParamPlaceholder("delete from %s 
where %s = ? and %s = ?"
                                        % (self._assocTable, 
self._assocPKColThis, self._assocPKColOther))
                        try:
-                               dabo.dbActivityLog.info("mmDisssociateValues() 
SQL: %s, PARAMS: %s" % (
+                               dabo.dbActivityLog.info("mmDissociateValues() 
SQL: %s, PARAMS: %s" % (
                                                
sql.decode(self.Encoding).replace("\n", " "), str((self._assocTable,
                                        self._assocPKColThis, 
self._assocPKColOther))))
                        except StandardError:
                                # A problem with writing to the log, most 
likely due to encoding issues
                                try:
-                                       
dabo.dbActivityLog.info("mmDisssociateValues() SQL (failed to log PARAMS): %r" 
% sql)
+                                       
dabo.dbActivityLog.info("mmDissociateValues() SQL (failed to log PARAMS): %r" % 
sql)
                                except StandardError:
-                                       
dabo.dbActivityLog.info("mmDisssociateValues() (failed to log SQL and PARAMS)")
+                                       
dabo.dbActivityLog.info("mmDissociateValues() (failed to log SQL and PARAMS)")
                        try:
                                aux.execute(sql, (thisPK, otherPK))
                        except dException.NoRecordsException:
                                pass
 
 
-       def mmDisssociateAll(self):
+       def mmDissociateAll(self):
                """
                Removes all associations between the current record and the 
associated
                M-M table.
@@ -1218,10 +1218,10 @@
                sql = self._qMarkToParamPlaceholder("delete from %s where %s = 
?"
                                % (self._assocTable, self._assocPKColThis))
                try:
-                       dabo.dbActivityLog.info("mmDisssociateAll() SQL: %s" % (
+                       dabo.dbActivityLog.info("mmDissociateAll() SQL: %s" % (
                                        sql.decode(self.Encoding).replace("\n", 
" ")))
                except StandardError:
-                       dabo.dbActivityLog.info("mmDisssociateAll() (failed to 
log SQL")
+                       dabo.dbActivityLog.info("mmDissociateAll() (failed to 
log SQL")
                try:
                        aux.execute(sql, (self.getPK(),))
                except dException.NoRecordsException:
@@ -1233,7 +1233,7 @@
                Adds and/or removes association records so that the current 
record
                is associated with every item in listOfValues, and none other.
                """
-               self.mmDisssociateAll()
+               self.mmDissociateAll()
                self.mmAssociateValues(otherField, listOfValues)
 
 



_______________________________________________
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]

Reply via email to