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

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Mon Jan 19 17:29:49 EST 2009


Author: justi9
Date: 2009-01-19 17:29:49 -0500 (Mon, 19 Jan 2009)
New Revision: 3056

Modified:
   mgmt/trunk/wooly/python/wooly/__init__.py
Log:
Cleanup whitespace

Modified: mgmt/trunk/wooly/python/wooly/__init__.py
===================================================================
--- mgmt/trunk/wooly/python/wooly/__init__.py	2009-01-19 21:57:17 UTC (rev 3055)
+++ mgmt/trunk/wooly/python/wooly/__init__.py	2009-01-19 22:29:49 UTC (rev 3056)
@@ -29,7 +29,7 @@
 
     def validate(self, session):
         value = self.get(session)
-        
+
         if value is None and self.required:
             raise Exception("%s not set" % self)
 
@@ -98,7 +98,7 @@
         self.path = None
         self.page = None
         self.frame = None
-        
+
         self.__main_tmpl = Template(self, "html")
 
         app.add_widget(self)
@@ -302,7 +302,7 @@
     xml_1_0_declaration = """<?xml version="1.0"?>"""
     xhtml_1_1_doctype = """<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">"""
     xhtml_namespace = "http://www.w3.org/1999/xhtml"
-    
+
     def __init__(self, app, name):
         super(Page, self).__init__(app, name)
 
@@ -401,7 +401,7 @@
 
         def do_unmarshal(self, path):
             return self.app.get_widget(path)
-        
+
 from parameters import DictParameter
 
 class Application(object):
@@ -444,7 +444,7 @@
     def add_widget(self, widget):
         if self.widget_index:
             raise Exception()
-        
+
         self.widgets.append(widget)
 
     def add_widget_class(self, cls):
@@ -464,7 +464,7 @@
     def add_parameter(self, param):
         if self.parameter_index:
             raise Exception()
-        
+
         self.parameters.append(param)
 
     def get_parameter(self, page, key):
@@ -508,7 +508,7 @@
         self.values = dict()
         self.origin = None
         self.cookies = dict()
-        
+
         if response_headers is None:
             self.response_headers = list()
         else:
@@ -617,7 +617,7 @@
 
                 # Inlined below saving about a second in a
                 # 1000-hit profile
-                
+
                 if key in self.values:
                     value = self.values[key]
                 elif self.trunk:
@@ -689,7 +689,7 @@
 
     def set_origin(self, origin):
         self.origin = self.fix_origin(origin)
-    
+
     def fix_origin(self, origin):
         if origin:
             try:
@@ -701,18 +701,18 @@
                     newquery = dict()
                     for nameval in namevals:
                         name, value = nameval.split("=", 1)
-                        # remove the parent's origin 
+                        # remove the parent's origin
                         if not name.endswith(".origin"):
                             newquery[name] = value
-        
+
                     origin = ";".join(["%s=%s" % item for item in newquery.iteritems()])
                     return "?".join([url.path, origin])
             except:
                 pass
-        
+
     def get_origin(self):
         return self.origin
-    
+
     def __repr__(self):
         return "%s(trunk=%s,app=%s)" % \
             (self.__class__.__name__, self.trunk, self.app)
@@ -782,7 +782,7 @@
                     end = ocurly
                 else:
                     strings.append("{" + text[end + 1:ccurly] + "}")
-                        
+
                     start = ccurly + 1
                     end = ocurly
 
@@ -790,7 +790,7 @@
 
     def resolve(self, strings):
         fragments = list()
-        
+
         for string in strings:
             if string.startswith("{") and string.endswith("}"):
                 name = string[1:-1]
@@ -902,7 +902,7 @@
 
         writer.write("   object: " + str(self.object))
         writer.write(os.linesep)
-        
+
         writer.write("    times: %f, %f" % (self.start, self.end or -1))
         writer.write(os.linesep)
 




More information about the rhmessaging-commits mailing list