Zope Question - SOS - virtual objects

F

fowlertrainer

Hello !

I want to the zope handle all requests by only one method/zpt.

I set the access rule like this:

rq=context.REQUEST
s=str(rq.PATH_INFO)
rq.set("MainPath",s) # debug
if (s<>'/manage') and (s<>'/'):
from string import split
l=split(s,'/')
rq.set("MainPath",l) # debug
TraversalRequestNameStack=['index_html']
<--- I try to the Zope get
this object, and not the original URL

but it have failed.

When I try with:

http://mysite/o

I want to Zope store this url to MainPath variable, and
don't drop an error, but it is get the default index_html, and process
that.

In this case Zope is drop the error:

Site Error
An error was encountered while publishing this resource.
Resource not found
Sorry, the requested resource does not exist.
Check the URL and try again.
Resource: o GET

What I can do to prevent the error, and redirect the process to the
main index_html ???

Thanx for any advance !!!

KK
 
P

Peter Hansen

I want to the zope handle all requests by only one method/zpt.

Zope questions are better asked (and answered) on the Zope mailing
list, readily findable from the main zope web page...

-Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top