Re: [Zope] URL rewriting (VHM and browser Id manager)
Hi Dieter I was wrong again URL is generated with _ZopeId but when request come to ZServer VHM mapping doesnt works correct. Maybe i don't know to make correct mapping BUT today I make simple example: VHM mapping = localhost:8080/test/VirtualHostRoot/ In test folder i have index_html page : <html> <head> </head> <body> This is Page Template <em tal:content="template/id">template id</em>. <a href="" tal:attributes="href here/absolute_url">Visit me again </a> </body> </html> In this simple example BIM URL rewriting doesn't works. It works only if VHM mapping is empty. Is it posible that VHM is buggy in this case. Thank's again P.S Do I need to start new thread with example like this. --- Victor Kolisinski <victor_kolisinski@yahoo.com> wrote:
Thank you Dieter
My virtual host mapping string was incorrect. URL rewriting with VHM and BIM now works.
Victor
--- Dieter Maurer <dieter@handshake.de> wrote:
Victor Kolisinski wrote at 2005-5-12 07:13 -0700:
My zope application needs support for sessions without cookies, so url rewriting based on Browser Id manager is used. However when Virtual Host Monster is included in environment browser manager doesn't rewrite URL.
That's surprising.
Maybe a conflict for the "__before_publishing_traverse__" hook used by both features (such that VHM discards the information previously set by the BIM).
In principle, the "BeforeTraverse" dispatcher (code in "ZPublisher.BeforeTraverse") has a "priority" feature to control such conflicts. But, probably it is not used.
-- Dieter
Discover Yahoo! Stay in touch with email, IM, photo sharing and more. Check it out! http://discover.yahoo.com/stayintouch.html _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html
Victor Kolisinski wrote at 2005-5-13 10:31 -0700:
... URL is generated with _ZopeId but when request come to
ZServer VHM mapping doesnt works correct. Maybe i don't know to make correct mapping
BUT today I make simple example: VHM mapping = localhost:8080/test/VirtualHostRoot/
In test folder i have index_html page :
<html> <head> </head> <body> This is Page Template <em tal:content="template/id">template id</em>. <a href="" tal:attributes="href here/absolute_url">Visit me again </a> </body> </html>
In this simple example BIM URL rewriting doesn't works. It works only if VHM mapping is empty.
Is it posible that VHM is buggy in this case.
It is possible as I explained in an earlier message (conflict for "BeforeTraverse" hook). At your place, I would use debugging to find out what precisely goes on. When you plan to use Zope for various projects, you may be able to convince your boss that the investment in a commercial Python IDE with support for Zope debugging will be worth. Colleagues of mine are quite satisfied with WingIDE. Personally, I am using the archaic "pdb" (which comes with Python).
... P.S Do I need to start new thread with example like this.
No, as long as the subject still fits. -- Dieter
participants (2)
-
Dieter Maurer -
Victor Kolisinski