Hi.

The patch below fixes errors setting the preferences for the
dimension position and endpoint types when being read back
from the 'prefs.py' file. This fix and a few other changes
will appear at the repo shortly; I thought sending the patch
out would help people not pulling the code via Subversion.

Wish I'd caught this before the release went out last week ...

Art

Index: PythonCAD/Generic/preferences.py
===================================================================
--- PythonCAD/Generic/preferences.py    (revision 2697)
+++ PythonCAD/Generic/preferences.py    (revision 2698)
@@ -78,7 +78,7 @@
 def _test_dim_position(val):
     _pos = None
     try:
-        _pos = dimension.Dimension.getDimPositionFromString(val)
+        _pos = dimension.Dimension.getPositionFromString(val)
     except:
         sys.stderr.write("Invalid dimension position: '" + str(val) + "'\n")
     return _pos
@@ -86,7 +86,7 @@
 def _test_dim_endpoint(val):
     _ept = None
     try:
-        _ept = dimension.Dimenion.getDimEndpointTypeFromString(val)
+        _ept = dimension.Dimension.getEndpointTypeFromString(val)
     except:
         sys.stderr.write("Invalid dimension endpoint: '" + str(val) + "'\n")
     return _ept
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822
_______________________________________________
PythonCAD mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pythoncad

Reply via email to