dabo Commit
Revision 6054
Date: 2010-10-02 11:39:51 -0700 (Sat, 02 Oct 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6054
Changed:
U trunk/dabo/lib/dates.py
U trunk/dabo/lib/eventMixin.py
Log:
Fixes to typos in the last commit.
Still seeing this error, and can't immediately figure it out:
Traceback (most recent call last):
File "/usr/lib64/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py",
line 14636, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "/home/pmcnett/dabo-full/trunk/dabo/ui/uiwx/dGrid.py", line 2165, in
_restoreSort
self.processSort(sortCol, toggleSort=False)
File "/home/pmcnett/dabo-full/trunk/dabo/ui/uiwx/dGrid.py", line 2734, in
processSort
eventData=eventData)
File "/home/pmcnett/dabo-full/trunk/dabo/ui/uiwx/dPemMixin.py", line 1001, in
raiseEvent
super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs)
File "/home/pmcnett/dabo-full/trunk/dabo/lib/eventMixin.py", line 81, in
raiseEvent
eventData=eventData, *args, **kwargs)
TypeError: type object got multiple values for keyword argument 'eventData'
Diff:
Modified: trunk/dabo/lib/dates.py
===================================================================
--- trunk/dabo/lib/dates.py 2010-10-02 18:27:01 UTC (rev 6053)
+++ trunk/dabo/lib/dates.py 2010-10-02 18:39:51 UTC (rev 6054)
@@ -136,7 +136,7 @@
m = regex.match(strVal)
if m is not None:
groups = m.groupdict()
- if "year" not in groups.:
+ if "year" not in groups:
curYear = datetime.date.today().year
if shortyear in groups:
groups["year"] = int("%s%s" %
(ustr(curYear)[:2],
Modified: trunk/dabo/lib/eventMixin.py
===================================================================
--- trunk/dabo/lib/eventMixin.py 2010-10-02 18:27:01 UTC (rev 6053)
+++ trunk/dabo/lib/eventMixin.py 2010-10-02 18:39:51 UTC (rev 6054)
@@ -73,7 +73,7 @@
eventData = kwargs["eventData"]
del kwargs["eventData"]
evtObject = self
- if eventObject in kwargs:
+ if "eventObject" in kwargs:
evtObject = kwargs["eventObject"]
del kwargs["eventObject"]
_______________________________________________
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]