]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/old_log.py
Rewrite parametrize to use new parametrizeWithVars
[wizard.git] / wizard / old_log.py
index 1a853bf36c2f7fd3687d1d2d0f299ed902df7289..6a81e8df5fd015565f912073c17e691c37aff514 100644 (file)
@@ -3,6 +3,7 @@ import sys
 import dateutil.parser
 
 import wizard
+from wizard import app
 import wizard.deploy # to break circular loop
 
 # This code operates off of the assumption of .scripts-version, which
@@ -53,8 +54,8 @@ class DeployLog(list):
                 rev.source = DeploySource.parse(line)
             elif i == 3:
                 try:
-                    rev.version = wizard.deploy.ApplicationVersion.parse(line)
-                except wizard.deploy.Error as e:
+                    rev.version = app.ApplicationVersion.parse(line)
+                except (wizard.deploy.Error, app.Error) as e:
                     e.location = deployment.location
                     raise e, None, sys.exc_info()[2]
             else:
@@ -69,9 +70,9 @@ class DeployRevision(object):
     this revision, what application version this is, etc."""
     def __init__(self, datetime=None, user=None, source=None, version=None):
         """ `datetime`  Time this revision was deployed
-            `user`      Person who deployed this revision, in user@host format.
-            `source`    Instance of DeploySource
-            `version`   Instance of ApplicationVersion
+            `user`      Person who deployed this revision, in ``user@host`` format.
+            `source`    Instance of :class:`DeploySource`
+            `version`   Instance of :class:`app.ApplicationVersion`
         Note: This object is typically built incrementally."""
         self.datetime = datetime
         self.user = user