[Zope3-Users] Updating preferences from ZPT

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Jun 23 07:51:19 EDT 2005


On Tuesday 14 June 2005 16:29, Florian Lindner wrote:
> Do I need to use a view class?

Of course! You cannot just paste a piece of ZPT and expect everything else to 
work as well. You also have to have a ZPT call that calls an "update" or 
similar method.

> Which attribute do I use to update the preferences?

I don't understand this question. There is a Python API which demonstrates how 
to update preferences. 

> What is the best way to redirect or directly output the template the view 
> class is associated with? 

Like you did; by pointing the action to the current view.

You might want to have a look at zope.app.apidoc.browser to see an example on 
how I wrote a custom preferences edit screen for the apidoc-related settings.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list