dabo Commit
Revision 7225
Date: 2012-08-15 17:30:38 -0700 (Wed, 15 Aug 2012)
Author: Paul
Trac: http://trac.dabodev.com/changeset/7225
Changed:
U trunk/ide/ReportDesigner.py
Log:
Changed report designer to show the complete string expression on the design
surface,
instead of trying to shorten them. The only modification done now is to remove
one
level of matching quote characters so that the display of labels isn't crufted
up
with distractions.
Diff:
Modified: trunk/ide/ReportDesigner.py
===================================================================
--- trunk/ide/ReportDesigner.py 2012-08-10 21:33:02 UTC (rev 7224)
+++ trunk/ide/ReportDesigner.py 2012-08-16 00:30:38 UTC (rev 7225)
@@ -13,6 +13,7 @@
NEW_FILE_CAPTION = "< New >"
+SHORTEN_EXPRESSIONS_FOR_DISPLAY = False
rdc = None
@@ -51,6 +52,11 @@
def getShortExpr(self, expr):
"""Given an expression, return a shortened version for
display in designer."""
+ if not SHORTEN_EXPRESSIONS_FOR_DISPLAY:
+ expr = expr.strip()
+ if len(expr) > 1 and expr[0] == expr[-1] and
expr[0] in ("'", '"'):
+ expr = expr[1:-1]
+ return expr
if expr is None:
return "None"
if len(expr) < 3:
_______________________________________________
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]