I like the Quixote form capabilities, but I'm facing a
problem: How to display simple static htmltext between
labels ?

I've looked into the form.py and widget.py how I can
do this, but I've not found any solutions.

Thanks for your ideas.









Here after my solution.

I've implemented a Widget subclass like the following:
"
class LabelWidget(Widget):
    def render_content(self):
        return self.value
"

In other words all html text to given to value will
simple be added and displayed adequaly on the webform.

By doing: myform.add(LabelWidget,"label1",value="my
label"), this generate output like:
"
<div class="LabelWidget widget"><div
class="content">my lable</div></div><br
class="LabelWidget widget" />
"


Vincent

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Quixote-users mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/quixote-users

Reply via email to