[Zope] Virtual directories

J. Cameron Cooper jccooper at jcameroncooper.com
Mon Dec 8 22:27:41 EST 2003


fowlertrainer at anonym.hu wrote:

>My site have only one main script, and I don't want to create
>subdirectories on zope like filesystems, because the site's structure
>is stay in the my outer (InterBase/MySQL) database - in records.
>
>So I want to do the site's redirection/navigation with virtual
>directories.
>
>I the user get this page: www.any.com/documentation/xy/private
>then I want to the zope don't show the an errormessage.
>The Zope give the control to my script, what know that this directory
>is not exists, split URL to subtags, and load it's data from the
>database, and show it.
>
>documentation/xy/private
>
>1. zope
>2. myscript:
>   select * from documents where name=xy and kind=priv
>   process, show
>
>So can I do that ?
>
How about:

http://www.zope.org/Members/mcdonc/HowTos/direct_traversal

Seems made to fit, no?

See also:
the thread "Inserting an object automagically on folder creation"
http://www.zope.org/Members/spinwing/ZSQL_Results
http://www.zope.org/Documentation/Books/ZopeBook/current/RelationalDatabases.stx 

pay special attention to the "Traversing to Result Objects" and "Binding 
Classes to Result Objects" sections.

          --jcc

-- 
"My point and period will be throughly wrought,
Or well or ill, as this day's battle's fought."





More information about the Zope mailing list