dabo Commit
Revision 5545
Date: 2009-12-02 11:44:08 -0800 (Wed, 02 Dec 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5545
Changed:
U trunk/dabo/ui/uiwx/__init__.py
Log:
Revert the changes in r5372, which automatically sorted the file extensions
passed to any of the getFile-type functions alphabetically. It seemed like a
good idea at the time, but I noticed that it sort of broke the Editor: whenever
I wanted to open a file, it defaulted to selecting only .cdxml files, which are
probably the least likely type I would ever edit in the Dabo editor. It was a
pain to constantly have to select the *.py option.
Now the order that options appear is fully under the control of the developer
again. If you want an alphabetical sort, then you can sort the args before
passing them.
Diff:
Modified: trunk/dabo/ui/uiwx/__init__.py
===================================================================
--- trunk/dabo/ui/uiwx/__init__.py 2009-12-02 18:56:29 UTC (rev 5544)
+++ trunk/dabo/ui/uiwx/__init__.py 2009-12-02 19:44:08 UTC (rev 5545)
@@ -1067,15 +1067,6 @@
fileDict.update(dabo.custom_extensions)
tmplt = "%s (*.%s)|*.%s"
normArgs = list(set([arg.lower() for arg in args]))
- normArgs.sort()
- try:
- # Move the asterisk, if present, to the end.
- asterisk = normArgs.pop(normArgs.index("*"))
- normArgs.append(asterisk)
- except:
- # '*' is not present; ignore
- pass
-
for ftype in normArgs:
try:
fDesc = fileDict[ftype.lower()]
_______________________________________________
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]