On Fri, Jan 11, 2013 at 10:18:43AM +0100, Alessandro Molina wrote:
>    This is a question better suited to the ToscaWidgets mailing list, so you
>    might want to ask there for a better answer.
For the widget specific stuff yes, but currently I got this:
   def prepare(self):
           try:
                        self.value = 
int(tmpl_context.form_values['preset_time'])
           except KeyError:
               pass
           super(GraphDatePresetWidget, self).prepare()

that tg.tmpl_context thing seems like a kludge, ideally id like value
found in the controller as its been run through the validator.

 - Craig
-- 
Craig Small VK2XLZ   http://enc.com.au/          csmall at : enc.com.au
Debian GNU/Linux     http://www.debian.org/      csmall at : debian.org
GPG fingerprint:     5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to