[Zope] how get a relative root from
Hi list how can do a script what return the relative parent from it self? I use virtual_hosting and because a configuration I need access to my site like http://mysite or http://192.168.1.1/mysite. The problem is I have a _menu_ with absolute path, working fine using http://mysite but not the other way My actual menu is like this: Proyecto Alta Busqueda and need when is loaded from http://192.168.1.1/mysite Proyecto Alta Busqueda can someone say me how do it? thanks -- Lo bueno de vivir un dia mas es saber que nos queda un dia menos de vida ___ 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 )
Re: [Zope] how get a relative root from
if you look in the request, there is PATH_INFO from which you can deduct the path you are using. robert Miguel Beltran R. schrieb: > Hi list > > how can do a script what return the relative parent from it self? > > I use virtual_hosting and because a configuration I need access to my > site like http://mysite or http://192.168.1.1/mysite. > The problem is I have a _menu_ with absolute path, working fine using > http://mysite but not the other way > > > My actual menu is like this: > > > Proyecto > >Alta >Busqueda > > > > > and need when is loaded from http://192.168.1.1/mysite > > > Proyecto > >Alta >Busqueda > > > > > can someone say me how do it? thanks > -- > > Lo bueno de vivir un dia mas > es saber que nos queda un dia menos de vida > > > > > ___ > 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 ) ___ 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 )
Re: [Zope] how get a relative root from
I resolve using this script [getmyroot_py] request = container.REQUEST if request.has_key("VirtualRootPhysicalPath"): s="" else: s=request.BASE2 return s [menu] Proyecto Alta Busqueda ___ 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 )