[wwwsearch-commits] r17609 - wwwsearch/ClientForm/trunk
jjlee at codespeak.net
jjlee at codespeak.net
Fri Sep 16 23:46:41 CEST 2005
Author: jjlee
Date: Fri Sep 16 23:46:39 2005
New Revision: 17609
Modified:
wwwsearch/ClientForm/trunk/ClientForm.py
Log:
Tweak comments
Modified: wwwsearch/ClientForm/trunk/ClientForm.py
==============================================================================
--- wwwsearch/ClientForm/trunk/ClientForm.py (original)
+++ wwwsearch/ClientForm/trunk/ClientForm.py Fri Sep 16 23:46:39 2005
@@ -207,7 +207,7 @@
# _choose_boundary)
# This is essentially the same as UserDict.DictMixin. I wrote this before
-# that, and DictMixin isn't available in 1.5.2 anyway.
+# that appeared, and DictMixin is only available in >= 2.3 anyway.
class MapBase:
"""Mapping designed to be easily derived from.
@@ -778,8 +778,8 @@
elif self._textarea is not None:
map = self._textarea
key = "value"
- elif self._current_label is not None: # not if within option or
- # textarea
+ # not if within option or textarea
+ elif self._current_label is not None:
map = self._current_label
key = "__text"
else:
@@ -1027,7 +1027,7 @@
if fp.base is not None:
# HTML BASE element takes precedence over document URI
base_uri = fp.base
- labels = [] # Label(label) for label in fp.labels]
+ labels = [] # Label(label) for label in fp.labels]
id_to_labels = {}
for l in fp.labels:
label = Label(l)
@@ -1047,7 +1047,8 @@
action = fp.unescape_attr_if_required(action)
name = fp.unescape_attr_if_required(name)
attrs = fp.unescape_attrs_if_required(attrs)
- form = HTMLForm( # would be nice to make class (form builder) pluggable
+ # would be nice to make HTMLForm class (form builder) pluggable
+ form = HTMLForm(
action, method, enctype, name, attrs, request_class,
forms, labels, id_to_labels)
for type, name, attrs in controls:
More information about the wwwsearch-commits
mailing list