Author: justi9
Date: 2008-10-03 11:11:54 -0400 (Fri, 03 Oct 2008)
New Revision: 2587
Modified:
mgmt/trunk/cumin/python/cumin/user.py
mgmt/trunk/cumin/python/wooly/forms.py
Log:
Use an attr directly for the static size property
Modified: mgmt/trunk/cumin/python/cumin/user.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/user.py 2008-10-03 15:09:45 UTC (rev 2586)
+++ mgmt/trunk/cumin/python/cumin/user.py 2008-10-03 15:11:54 UTC (rev 2587)
@@ -68,11 +68,11 @@
self.__name = self.Name(app, "name")
self.add_field(self.__name)
- self.__name.input.set_size(20)
+ self.__name.input.size = 20
self.__password = self.Password(app, "password")
self.add_field(self.__password)
- self.__password.input.set_size(20)
+ self.__password.input.size = 20
self.__submit = self.Submit(app, "submit")
self.add_child(self.__submit)
Modified: mgmt/trunk/cumin/python/wooly/forms.py
===================================================================
--- mgmt/trunk/cumin/python/wooly/forms.py 2008-10-03 15:09:45 UTC (rev 2586)
+++ mgmt/trunk/cumin/python/wooly/forms.py 2008-10-03 15:11:54 UTC (rev 2587)
@@ -165,10 +165,6 @@
self.size = 32
- # XXX lose this
- def set_size(self, size):
- self.size = size
-
def render_size(self, session, *args):
return self.size
Show replies by date