[rhmessaging-commits] rhmessaging commits: r3806 - mgmt/trunk/wooly/python/wooly.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Mon Jan 18 13:56:46 EST 2010


Author: justi9
Date: 2010-01-18 13:56:46 -0500 (Mon, 18 Jan 2010)
New Revision: 3806

Modified:
   mgmt/trunk/wooly/python/wooly/__init__.py
   mgmt/trunk/wooly/python/wooly/sql.py
   mgmt/trunk/wooly/python/wooly/util.py
Log:
Fix import errors

Modified: mgmt/trunk/wooly/python/wooly/__init__.py
===================================================================
--- mgmt/trunk/wooly/python/wooly/__init__.py	2010-01-18 18:39:06 UTC (rev 3805)
+++ mgmt/trunk/wooly/python/wooly/__init__.py	2010-01-18 18:56:46 UTC (rev 3806)
@@ -664,19 +664,4 @@
 
         self.attributes = dict()
 
-
-class Writer(object):
-    def __init__(self):
-        self.writer = StringIO()
-
-    def write(self, string):
-        self.writer.write(string)
-
-    def to_string(self):
-        string = self.writer.getvalue()
-
-        self.writer.close()
-
-        return string
-
 from pages import ResourcePage

Modified: mgmt/trunk/wooly/python/wooly/sql.py
===================================================================
--- mgmt/trunk/wooly/python/wooly/sql.py	2010-01-18 18:39:06 UTC (rev 3805)
+++ mgmt/trunk/wooly/python/wooly/sql.py	2010-01-18 18:56:46 UTC (rev 3806)
@@ -1,3 +1,5 @@
+from copy import copy
+
 from resources import *
 from template import *
 from util import *

Modified: mgmt/trunk/wooly/python/wooly/util.py
===================================================================
--- mgmt/trunk/wooly/python/wooly/util.py	2010-01-18 18:39:06 UTC (rev 3805)
+++ mgmt/trunk/wooly/python/wooly/util.py	2010-01-18 18:56:46 UTC (rev 3806)
@@ -32,3 +32,17 @@
                     raise
                 else:
                     return self.default_factory()
+
+class Writer(object):
+    def __init__(self):
+        self.writer = StringIO()
+
+    def write(self, string):
+        self.writer.write(string)
+
+    def to_string(self):
+        string = self.writer.getvalue()
+
+        self.writer.close()
+
+        return string



More information about the rhmessaging-commits mailing list