Re: [Zope-dev] How to handle "special" sub-directories
Remi Delon writes: > Thanks Chris. > > PathHandler is indeed what I needed. But I have one last > problem: It looks like I need to create a PathHandler object > (called "ph" for instance), and then the url is > www.website.com/ph/member_name > > What if I want it to work at the root of my website, like this: > www.website.com/member_name ? Seems to call for a SiteAccess AccessRule. HowTos on zope.org. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How to handle "special" sub-directories
Remi, What I ended up doing was to use a Python Script (Internal) or whatever thy're called now. I then used the Traversal Path thingy in there to create the same effect. Naming that index_html worked for me, YMMV. Phil - Original Message - From: "Remi Delon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, April 17, 2001 6:53 PM Subject: Re: [Zope-dev] How to handle "special" sub-directories > I tried creating the pathhandler at the root and naming it index_html, > but it still doesn't do what I want. > > If I try to access the url www.website.com, then the path_handler is indeed > "called" and my DTML method is called (and the variable "path_to_handle" is > empty). If I try to access the URL www.website.com/index_html/a/b/c/d, it > works too (path_to_handle is ['a', 'b', 'c', 'd']). > But if I try to access the URL www.website.com/a/b/c/d (which is what I > want), then it fails (Zope says it cannot find the url), which means the > pathhandler index_html doesn't get "called". > > What can I do ? > > Thanks, > > Rémi. > > PS: I'm using Zope 2.2.2. I hope this has nothing to do with it ! > > > >Create the pathhandler in the root and name it index_html. > > >----- Original Message - > >From: "Remi Delon" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > >Sent: Sunday, April 15, 2001 9:39 PM > >Subject: Re: [Zope-dev] How to handle "special" sub-directories > > > >Thanks Chris. > > > >PathHandler is indeed what I needed. But I have one last > >problem: It looks like I need to create a PathHandler object > >(called "ph" for instance), and then the url is > >www.website.com/ph/member_name > > > >What if I want it to work at the root of my website, like this: > >www.website.com/member_name ? > > > >Thanks. > > > >Remi. > > > > > > >From: "Chris Withers" <[EMAIL PROTECTED]> > > >To: "Remi Delon" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > > >Subject: Re: [Zope-dev] How to handle "special" sub-directories > > >Date: Sat, 14 Apr 2001 18:54:53 +0100 > > > > > > > This is like transforming the URL www.website.com/member_name into > > > > www.website.com/unique_document?arg=member_name > > > > > > > > How can I do that ? > > > > > >Look at the PathHandler product on zope.org. Python Scripts on theri own > > >might be able to do this too. Futz with the sub-traversal path or > whatever > > >it's called :-) > > > > > >cheers, > > > > > >Chris > > > > > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How to handle "special" sub-directories
Remi Delon wrote: > > I tried creating the pathhandler at the root and naming it index_html, > but it still doesn't do what I want. > > If I try to access the url www.website.com, then the path_handler is indeed > "called" and my DTML method is called (and the variable "path_to_handle" is > empty). If I try to access the URL www.website.com/index_html/a/b/c/d, it > works too (path_to_handle is ['a', 'b', 'c', 'd']). > But if I try to access the URL www.website.com/a/b/c/d (which is what I > want), then it fails (Zope says it cannot find the url), which means the > pathhandler index_html doesn't get "called". > > What can I do ? > > Thanks, > > Rémi. > > PS: I'm using Zope 2.2.2. I hope this has nothing to do with it ! > Perhaps you could capture that error and rerun the path through the pathhandler by adding some code to standard_error_message. If that fails then display the error as usual. -- | Casey Duncan | Kaivo, Inc. | [EMAIL PROTECTED] `--> ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How to handle "special" sub-directories
I tried creating the pathhandler at the root and naming it index_html, but it still doesn't do what I want. If I try to access the url www.website.com, then the path_handler is indeed "called" and my DTML method is called (and the variable "path_to_handle" is empty). If I try to access the URL www.website.com/index_html/a/b/c/d, it works too (path_to_handle is ['a', 'b', 'c', 'd']). But if I try to access the URL www.website.com/a/b/c/d (which is what I want), then it fails (Zope says it cannot find the url), which means the pathhandler index_html doesn't get "called". What can I do ? Thanks, Rémi. PS: I'm using Zope 2.2.2. I hope this has nothing to do with it ! >Create the pathhandler in the root and name it index_html. >- Original Message - >From: "Remi Delon" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> >Sent: Sunday, April 15, 2001 9:39 PM >Subject: Re: [Zope-dev] How to handle "special" sub-directories >Thanks Chris. > >PathHandler is indeed what I needed. But I have one last >problem: It looks like I need to create a PathHandler object >(called "ph" for instance), and then the url is >www.website.com/ph/member_name > >What if I want it to work at the root of my website, like this: >www.website.com/member_name ? > >Thanks. > >Remi. > > > >From: "Chris Withers" <[EMAIL PROTECTED]> > >To: "Remi Delon" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > >Subject: Re: [Zope-dev] How to handle "special" sub-directories > >Date: Sat, 14 Apr 2001 18:54:53 +0100 > > > > > This is like transforming the URL www.website.com/member_name into > > > www.website.com/unique_document?arg=member_name > > > > > > How can I do that ? > > > >Look at the PathHandler product on zope.org. Python Scripts on theri own > >might be able to do this too. Futz with the sub-traversal path or whatever > >it's called :-) > > > >cheers, > > > >Chris > > _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How to handle "special" sub-directories
Create the pathhandler in the root and name it index_html. - Original Message - From: "Remi Delon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, April 15, 2001 9:39 PM Subject: Re: [Zope-dev] How to handle "special" sub-directories > Thanks Chris. > > PathHandler is indeed what I needed. But I have one last > problem: It looks like I need to create a PathHandler object > (called "ph" for instance), and then the url is > www.website.com/ph/member_name > > What if I want it to work at the root of my website, like this: > www.website.com/member_name ? > > Thanks. > > Remi. > > > >From: "Chris Withers" <[EMAIL PROTECTED]> > >To: "Remi Delon" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > >Subject: Re: [Zope-dev] How to handle "special" sub-directories > >Date: Sat, 14 Apr 2001 18:54:53 +0100 > > > > > This is like transforming the URL www.website.com/member_name into > > > www.website.com/unique_document?arg=member_name > > > > > > How can I do that ? > > > >Look at the PathHandler product on zope.org. Python Scripts on theri own > >might be able to do this too. Futz with the sub-traversal path or whatever > >it's called :-) > > > >cheers, > > > >Chris > > > > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How to handle "special" sub-directories
Thanks Chris. PathHandler is indeed what I needed. But I have one last problem: It looks like I need to create a PathHandler object (called "ph" for instance), and then the url is www.website.com/ph/member_name What if I want it to work at the root of my website, like this: www.website.com/member_name ? Thanks. Remi. >From: "Chris Withers" <[EMAIL PROTECTED]> >To: "Remi Delon" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> >Subject: Re: [Zope-dev] How to handle "special" sub-directories >Date: Sat, 14 Apr 2001 18:54:53 +0100 > > > This is like transforming the URL www.website.com/member_name into > > www.website.com/unique_document?arg=member_name > > > > How can I do that ? > >Look at the PathHandler product on zope.org. Python Scripts on theri own >might be able to do this too. Futz with the sub-traversal path or whatever >it's called :-) > >cheers, > >Chris > _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How to handle "special" sub-directories
> This is like transforming the URL www.website.com/member_name into > www.website.com/unique_document?arg=member_name > > How can I do that ? Look at the PathHandler product on zope.org. Python Scripts on theri own might be able to do this too. Futz with the sub-traversal path or whatever it's called :-) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] How to handle "special" sub-directories
Hi, I have a website where members can sign up. I want to give each of my members their own URL, in the format www.website.com/member_name But I don't want to create a Zope document for each member. Instead, I want to be able to find out what the member name is, and then fetch some data in my database based on the member name and then display it. This is like transforming the URL www.website.com/member_name into www.website.com/unique_document?arg=member_name How can I do that ? Thanks. Rémi. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] How to handle "special" sub-directories
Hi, I have a website where members can sign up. I want to give each of my members their own URL, in the format www.website.com/member_name But I don't want to create a Zope folder for each member. Instead, I want to be able to find out what the member name is, and then fetch some data in my database based on the member name and then display it. This is like transforming the URL www.website.com/member_name into www.website.com/unique_url?arg=member_name How can I do that ? Thanks. Rémi. Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )