Zope Question - SOS - virtual objects

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • fowlertrainer@anonym.hu

    Zope Question - SOS - virtual objects

    Hello !

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

    I set the access rule like this:

    rq=context.REQU EST
    s=str(rq.PATH_I NFO)
    rq.set("MainPat h",s) # debug
    if (s<>'/manage') and (s<>'/'):
    from string import split
    l=split(s,'/')
    rq.set("MainPat h",l) # debug
    TraversalReques tNameStack=['index_html']
    <--- I try to the Zope get
    this object, and not the original URL

    but it have failed.

    When I try with:



    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




    --
    Best regards,
    fowlertrainer mailto:fowlertr ainer@anonym.hu


  • Peter Hansen

    #2
    Re: Zope Question - SOS - virtual objects

    fowlertrainer@a nonym.hu wrote:[color=blue]
    >
    > I want to the zope handle all requests by only one method/zpt.[/color]

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

    -Peter

    Comment

    Working...