gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r988804 - /gump/trunk/python/gump/core/run/options.py
Date Wed, 25 Aug 2010 05:00:57 GMT
Author: bodewig
Date: Wed Aug 25 05:00:57 2010
New Revision: 988804

URL: http://svn.apache.org/viewvc?rev=988804&view=rev
Log:
there have been two isHistorical and two isDocument methods

Modified:
    gump/trunk/python/gump/core/run/options.py

Modified: gump/trunk/python/gump/core/run/options.py
URL: http://svn.apache.org/viewvc/gump/trunk/python/gump/core/run/options.py?rev=988804&r1=988803&r2=988804&view=diff
==============================================================================
--- gump/trunk/python/gump/core/run/options.py (original)
+++ gump/trunk/python/gump/core/run/options.py Wed Aug 25 05:00:57 2010
@@ -87,7 +87,6 @@ class GumpRunOptions:
         self.dated = False        # Defaults to NOT dated.
         self.optimize = False     # Do the least ammount of work...
         self.official = False     # Do a full run (with publishing e-mail)
-        self.historical = False # Historical Database
 
         # Default is XDOCS/XHTML, but can also force text with --text 
         self.text = False
@@ -106,11 +105,11 @@ class GumpRunOptions:
     def setDated(self, dated):
         self.dated = dated
 
-    def isHistorical(self):
-        return self.historical
-
     def setHistorical(self, historical):
-        self.historical = historical
+        if historical:
+            self.enableFeature(FEATURE_HISTORICAL)
+        else:
+            self.disableFeature(FEATURE_HISTORICAL)
 
     def isOfficial(self):
         """
@@ -285,10 +284,8 @@ class GumpRunOptions:
         """
         Is documentation to be created for this run?
         """
-
-    def isDocument(self):
         return  self._testObjectiveIsSet(OBJECTIVE_DOCUMENT) and \
-                self._testFeatureIsSet(FEATURE_DOCUMENT)
+            self._testFeatureIsSet(FEATURE_DOCUMENT)
 
     def isSyndicate(self):
         """



Mime
View raw message