Message Board

Installing Honey Pots

Older Posts ]   [ Newer Posts ]
 from_zope in the python script
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:


import scriptname

security.declareProtected( view, 'scriptname' )
def scriptname( self, REQUEST ):
"""
Hand out a page for Project Honeypot.
"""
return scriptname.from_zope(REQUEST)

(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:

217.010.009.034.36885-066.114.197.254.00080: tag4=abaee42f601a4d0ba30d658d4e58e0b4&tag1=
46d2afb6fd1744cc01987718f14dbceb&tag2=058e930b
16a46e43fdcd7999df6f93c5&tag3=d19f5da5c91195b73
9432dac8050cc1c&ip=127.0.0.1&version=1.3-2.3.5&
sn=/VirtualHostBase/http/betabug.ch%3A80/VirtualHostRoot/
_vh_zope/witch/ferrets.py&svrn=127.0.0.1%3A8080&svip=&
rquri=/VirtualHostBase/http/betabug.ch%3A80/VirtualHostRoot/
_vh_zope/witch/ferrets.py&ref=&uagnt=
Mozilla/5.0%20%28Macintosh%3B%20U%3B%20PPC%20
Mac%20OS%20X%3B%20en%29%20AppleWebKit/418.9.1%20
%28KHTML%2C%20like%20Gecko%29%20Safari/419.3&svp=8080

(inserted a few line breaks, so it won't break the layout)



do not follow this link

Privacy Policy | Terms of Use | About Project Honey Pot | FAQ | Cloudflare Site Protection | Contact Us

Copyright © 2004–24, Unspam Technologies, Inc. All rights reserved.

contact | wiki | email