dabo Commit
Revision 6119
Date: 2010-10-19 11:46:48 -0700 (Tue, 19 Oct 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6119
Changed:
U trunk/dabo/lib/dates.py
Log:
Fixed some typos from r6112.
Diff:
Modified: trunk/dabo/lib/dates.py
===================================================================
--- trunk/dabo/lib/dates.py 2010-10-19 00:02:02 UTC (rev 6118)
+++ trunk/dabo/lib/dates.py 2010-10-19 18:46:48 UTC (rev 6119)
@@ -138,7 +138,7 @@
groups = m.groupdict()
if "year" not in groups:
curYear = datetime.date.today().year
- if shortyear in groups:
+ if "shortyear" in groups:
groups["year"] = int("%s%s" %
(ustr(curYear)[:2],
groups["shortyear"]))
else:
@@ -196,7 +196,7 @@
groups[skip_group] = 0
if "year" not in groups:
curYear = datetime.date.today().year
- if shortyear in groups:
+ if "shortyear" in groups:
groups["year"] = int("%s%s" %
(ustr(curYear)[:2],
groups["shortyear"]))
else:
_______________________________________________
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]