dabo Commit
Revision 3370
Date: 2007-09-13 14:02:40 -0700 (Thu, 13 Sep 2007)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/3370
Changed:
U trunk/dabo/lib/datanav2/Page.py
Log:
Fixed deprecation warning for SortLabel to only appear if the class is
instantiated.
Diff:
Modified: trunk/dabo/lib/datanav2/Page.py
===================================================================
--- trunk/dabo/lib/datanav2/Page.py 2007-09-13 13:24:01 UTC (rev 3369)
+++ trunk/dabo/lib/datanav2/Page.py 2007-09-13 21:02:40 UTC (rev 3370)
@@ -108,7 +108,9 @@
class SortLabel(dabo.ui.dLabel):
## Deprecated; older AppWizard apps use this.
- warnings.warn("SortLabel deprecated; use dabo.ui.dLabel instead.",
DeprecationWarning)
+ def __init__(self, *args, **kwargs):
+ warnings.warn("SortLabel deprecated; use dabo.ui.dLabel
instead.", DeprecationWarning)
+ super(SortLabel, self).__init__(*args, **kwargs)
class SelectPage(Page):
_______________________________________________
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/dabo-dev/[EMAIL PROTECTED]