quixote/form widget.py,1.33,1.34

David Binger <dbinger-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]>
Newsgroups gmane.comp.web.quixote.cvs
Message-ID <[email protected]>
Update of /home/cvs/quixote/form
In directory hewson:/tmp/cvs-serv18963

Modified Files:
	widget.py 
Log Message:
Remove 'quote' keyword parameter.


Index: widget.py
===================================================================
RCS file: /home/cvs/quixote/form/widget.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- widget.py	29 Oct 2002 14:51:19 -0000	1.33
+++ widget.py	31 Oct 2002 15:56:56 -0000	1.34
@@ -228,7 +228,6 @@
     Instance attributes:
       allowed_values : [any]
       descriptions : [string]
-      quote : boolean = true
       size : int
     """
 
@@ -238,12 +237,10 @@
     def __init__ (self, name, value=None,
                   allowed_values=None,
                   descriptions=None,
-                  quote=1,
                   size=None,
                   sort=0):
         assert self.__class__ is not SelectWidget, "abstract class"
         self.set_name(name)
-        self.quote = quote
         self.set_allowed_values(allowed_values, descriptions, sort=sort)
         self.set_value(value)
         self.size = size
@@ -278,8 +275,6 @@
                 "not %s and %s" % (len(self.allowed_values),
                                    len(descriptions)))
             self.descriptions = descriptions
-        if not self.quote:
-            self.descriptions = map(htmltext, self.descriptions)
         if sort:
             def compare(a, b):
                 if a[0] is None:
@@ -366,10 +361,6 @@
         to the elements of 'allowed_values', or be None or empty (in
         which case the user-visible values will be the same as the
         behind-the-scenes "real" values)
-      quote : boolean = true
-        if true, descriptions are HTML-quoted at render time.  If
-        your descriptions are known to be HTML text already, set
-        this to false
       delim : string = None
         string to emit between each radiobutton in the group.  If
         None, a single newline is emitted.
@@ -380,10 +371,8 @@
     def __init__ (self, name, value=None,
                   allowed_values=None,
                   descriptions=None,
-                  quote=1,
                   delim=None):
         self.set_name(name)
-        self.quote = quote
         self.set_allowed_values(allowed_values, descriptions)
         self.set_value(value)
         self.delim = delim or "\n"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.