[wwwsearch-commits] r22700 - wwwsearch/ClientForm/trunk
jjlee at codespeak.net
jjlee at codespeak.net
Fri Jan 27 00:00:14 CET 2006
Author: jjlee
Date: Fri Jan 27 00:00:14 2006
New Revision: 22700
Modified:
wwwsearch/ClientForm/trunk/ClientForm.py
Log:
Add form name to str(HTMLForm)
Modified: wwwsearch/ClientForm/trunk/ClientForm.py
==============================================================================
--- wwwsearch/ClientForm/trunk/ClientForm.py (original)
+++ wwwsearch/ClientForm/trunk/ClientForm.py Fri Jan 27 00:00:14 2006
@@ -2706,7 +2706,9 @@
#---------------------------------------------------
def __str__(self):
- header = "%s %s %s" % (self.method, self.action, self.enctype)
+ header = "%s%s %s %s" % (
+ (self.name and self.name+" " or ""),
+ self.method, self.action, self.enctype)
rep = [header]
for control in self.controls:
rep.append(" %s" % str(control))
More information about the wwwsearch-commits
mailing list