Author: S.Welter2 (11 Oct 07 10:48am)
In the python version of the script I noticed the from_zope() method. So I hoped that I would be able to import the script in a Zope product and - as the docstring says - return the html this method generates.
This only works somehow, the page is generated, it makes a request to the verification server, but it always comes back with "validation error occurred."
So, what's the status on this from_zope thing? Is it dead code in the script or am I doing something wrong?
What I'm doing right now is I have a method in one of my Zope (filesystem) Products, like this:
security.declareProtected( view, 'scriptname' )
def scriptname( self, REQUEST ):
Hand out a page for Project Honeypot.
(And I settattr scriptname.py so it returns whatever scriptname() returns - python methods can't have dots in the name normally.)
The request to the verification server that I see:
(inserted a few line breaks, so it won't break the layout)