Thinking a bit more, taking the Vinicius comment and some examples of
another O.O frameworks.

I was wondering about...

#1
form = auth()
print form #  return the HTML with tables

#2
auth.settings.formstyle = 'divs'
form = auth()
print form #  return the HTML with divs

#3
form = auth()
print form # should return the HTML with tables
...
form.formstyle = 'divs' # sets the self.formstyle to 'divs'
and immediately raises a redraw method
#alternatively call explicitly the form.redraw() method
print form # should now return HTML with 'divs'


I think Vinicius are talking about the case #3, which I think it is possible
to implement, but I don't know the caveats,


---
Bruno Rocha
http://about.me/rochacbruno/bio

Reply via email to