[Zope] Re: epoz and zpt

Maik Jablonski maik.jablonski at uni-bielefeld.de
Tue Jan 25 08:50:08 EST 2005


Milos Prudek wrote:
> Could someone please post the simplest working example of Epoz in ZPT? 
> An example that would edit a file called 'text'.
> 
> The following code I figured out works but it does not save to a file:
> 
> ZPT method /epoz/a:
> 
> <form action="/epoz/a" method="post">
> <span tal:define="text here/text|string:"
>   tal:replace="structure python: here.Epoz('text', data=text,
>                                            toolbox='/',
>                                            lang='en',
>                                            style='width: 620px; height: 
> 250px; border: 1px solid #000000;')" />
> 
> <input type="submit" name="submit" value=" Save Changes " >
> </form>
> 
> What's wrong with my example?

Please remember: Epoz is a replacement for a HTML-textarea... your 
example wouldn't work for a textarea, because your form-action redirects 
to the template itself... you need an action (PythonScript) which does 
the process of storing the request-data into an object.

So my advise: Develop your application with a normal textarea first, 
when it works, replace the textarea with Epoz.

Cheers, Maik



More information about the Zope mailing list