[Zope-CMF] Re: CMF portal_catalog(path) and VirtualHostMonster
danielle.d-avout
danielle.d-avout@wanadoo.fr
Fri, 7 Mar 2003 22:15:52 +0100
----- Original Message -----
From: "Ronald L. Roeber" <rroeber1@unl.edu>
To: "danielle.d-avout" <danielle.d-avout@wanadoo.fr>
Cc: <zope-cmf@zope.org>
Sent: Friday, March 07, 2003 8:49 PM
Subject: Re: Zope-CMF digest, Vol 1 #1621 - 13 msgs
Danielle,
portal_object is defined prior to its calling as follows:
utool nocall:here/portal_url;
portal_object utool/getPortalObject;
Then follows:
portal_path python:'/'.join(portal_object.getPhysicalPath());
Hope this helps,
Ron...
thanks, I made the correction
I thought I was not yet out of trouble, even the links of the manage
workspace were wrong (pointing to the original Plone)... until I could
"catch" the Siteroot of the 2nd Plone site and correct it... (the path was
set to the one of Plone n°1)
they are some magic underneath ... I made this copy trying to get out of a
problem of versionlockerror (with no version unsave). and now I am sure in
the first plone I haven't any more problem: I was now at last proposed to
save/discard my version. I discard it... I think it's now working, I have
the proof I was allowed to rename my first plone: that means no more lock,
doesn't it?
I have to read docs on portal_url, VHM and Siteroot, haven't I? :))
thanks again...
> I tried to follow what I can call a recipe, as I don't understand half
of
> it..
> but I obtain after mending main_template
>
> NameError: global name 'portal_object' is not defined (Also, an error
> occurred while attempting to render the standard error message.)
> >I then used 'portal_path' to construct the catalog queries:
> ...
> > , path='%s/pubs' % portal_path
> > ...
> "Chris Withers" <chrisw@nipltd.com> a écrit dans le message de news:
> 3E65F5A8.3000907@nipltd.com...
> > that should be:
> > python:'/'.join(portal_object.getPhysicalPath())
> > ...nowadays.