web/formwidgets.py
changeset 4375 6d34e3cf60a3
parent 4373 972143183ea3
child 4376 839b28a3652e
equal deleted inserted replaced
4374:ff3efacfea42 4375:6d34e3cf60a3
   696             'domid': self.domid, 'href': self.href}
   696             'domid': self.domid, 'href': self.href}
   697 
   697 
   698 
   698 
   699 # more widgets #################################################################
   699 # more widgets #################################################################
   700 
   700 
   701 class EditableURLWidget(TextInput):
   701 class EditableURLWidget(FieldWidget):
   702     """custom widget to edit separatly an url path / query string (used by
   702     """custom widget to edit separatly an url path / query string (used by
   703     default for Bookmark.path for instance), dealing with url quoting nicely
   703     default for Bookmark.path for instance), dealing with url quoting nicely
   704     (eg user edit the unquoted value).
   704     (eg user edit the unquoted value).
   705     """
   705     """
   706     type = 'text'
       
   707 
   706 
   708     def _render(self, form, field, renderer):
   707     def _render(self, form, field, renderer):
   709         """render the widget for the given `field` of `form`.
   708         """render the widget for the given `field` of `form`.
   710 
   709 
   711         Generate one <input> tag for each field's value
   710         Generate one <input> tag for each field's value