gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/metacode mputils.py umlrst.py


From: Vesa Kaihlavirta
Subject: [Gzz-commits] gzz/metacode mputils.py umlrst.py
Date: Mon, 03 Feb 2003 05:15:33 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Vesa Kaihlavirta <address@hidden>       03/02/03 05:15:31

Modified files:
        metacode       : mputils.py umlrst.py 

Log message:
        Found the bug this time... *whoh*

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/metacode/mputils.py.diff?tr1=1.5&tr2=1.6&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/metacode/umlrst.py.diff?tr1=1.20&tr2=1.21&r1=text&r2=text

Patches:
Index: gzz/metacode/mputils.py
diff -u gzz/metacode/mputils.py:1.5 gzz/metacode/mputils.py:1.6
--- gzz/metacode/mputils.py:1.5 Sun Feb  2 13:58:50 2003
+++ gzz/metacode/mputils.py     Mon Feb  3 05:15:31 2003
@@ -44,11 +44,10 @@
     def has_key(self, name):
         return self.dict.has_key(name)
 
-    def copy(self):
-        foo = Settings()
-        foo.dict = self.dict.copy()
-        return foo
-
+    def resist(self):
+        '''Resistance is futile, but we resist anyway. Returns a 
+        non-borgified list.'''
+        return self.dict.copy()
 
 """
 Stores global settings for metapost actions.
Index: gzz/metacode/umlrst.py
diff -u gzz/metacode/umlrst.py:1.20 gzz/metacode/umlrst.py:1.21
--- gzz/metacode/umlrst.py:1.20 Mon Feb  3 05:05:39 2003
+++ gzz/metacode/umlrst.py      Mon Feb  3 05:15:31 2003
@@ -185,7 +185,6 @@
 def embed_implicit(oldpath, name, path):
     """Terrible kludge to embed named diagram into path document
        with correct imagemap."""
-    #global settings
     #correcting relative paths
     path = path.replace(settings['to_javadoc'],
                  settings['javadoc'])
@@ -195,8 +194,7 @@
         if slash != -1:
             path = (oldpath[0:slash+1] + path).replace("//", "/")
 
-    #umltool_backup = settings.copy()
-    settings2 =  settings.copy()
+    settings2 = settings.resist()
 
     umltool.set_transition_paths(path)
     slash = oldpath.rfind("/")
@@ -260,6 +258,3 @@
             html = html[insert+5:len(html)]
             out.write(html)
             out.close()
-        
-    #umltool.settings = umltool_backup
-    #settings = mputils_backup




reply via email to

[Prev in Thread] Current Thread [Next in Thread]