Re: [Zope3-Users] Adding another special traversal component type

2006-09-22 Thread FB
Hi,

On Wed, Sep 20, 2006 at 03:49:07PM +0200, FB wrote:
 Hi,
 
 I'd like to make URLs like
 
  http://servername/~username
 
 possible on my Zope3 server which should instantly redirect a
 visitor to one of my site user's home pages.
 
 Is this possible? Of course, the answer ist yes (by patching
 zope.traversing.adapters.traversePathElement) - but is there
 a more Zope3ish way to do that?

Thanks for all the tips.

I'm going to implement an alternative IPublishTraverse adapter.
Using apache might be an option but I'm writing an application
which should depend on as few other applications as possible
which is why I'd like not to use apache if I don't have to.

Regards,

Frank
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Adding another special traversal component type

2006-09-20 Thread Jonathan


- Original Message - 
From: FB [EMAIL PROTECTED]

To: zope3-users@zope.org
Sent: Wednesday, September 20, 2006 9:49 AM
Subject: [Zope3-Users] Adding another special traversal component type



Hi,

I'd like to make URLs like

http://servername/~username

possible on my Zope3 server which should instantly redirect a
visitor to one of my site user's home pages.

Is this possible? Of course, the answer ist yes (by patching
zope.traversing.adapters.traversePathElement) - but is there
a more Zope3ish way to do that?


If you are using apache you could do this with a rewrite rule (no zope 
patching required at all!)



Jonathan 



___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users