[cig-commits] r19226 - short/3D/PyLith/branches/v1.6-stable/pylith/apps

brad at geodynamics.org brad at geodynamics.org
Mon Nov 21 12:49:28 PST 2011


Author: brad
Date: 2011-11-21 12:49:28 -0800 (Mon, 21 Nov 2011)
New Revision: 19226

Modified:
   short/3D/PyLith/branches/v1.6-stable/pylith/apps/PyLithApp.py
Log:
Changed default typo behavior from 'strict' to 'pedantic'. Warnings of unknown components and properties are promoted to errors.

Modified: short/3D/PyLith/branches/v1.6-stable/pylith/apps/PyLithApp.py
===================================================================
--- short/3D/PyLith/branches/v1.6-stable/pylith/apps/PyLithApp.py	2011-11-21 20:29:12 UTC (rev 19225)
+++ short/3D/PyLith/branches/v1.6-stable/pylith/apps/PyLithApp.py	2011-11-21 20:49:28 UTC (rev 19226)
@@ -63,7 +63,14 @@
                                          factory=MemoryLogger)
     perfLogger.meta['tip'] = "Performance and memory logging."
 
+    
+    typos = pyre.inventory.str("typos", default="pedantic",
+                               validator=pyre.inventory.choice(['relaxed', 'strict', 'pedantic']))
+    typos.meta['tip'] = "Specifies the handling of unknown properties and " \
+        "facilities"
+    
 
+
   # PUBLIC METHODS /////////////////////////////////////////////////////
 
   def __init__(self, name="pylithapp"):



More information about the CIG-COMMITS mailing list