[CPS-devel] CPS 3.4.2 and getPhysicalPath

sebastien.masson sebastien.masson at ac-strasbourg.fr
Tue Oct 31 15:50:06 CET 2006


Hi,
I'm trying to set up a CPS 3.4.2 installation, using Zope 2.9.5 and
Python 2.4.3.
Even in an empty DefaultSite, I have a strange problem : all the urls
generated by actions portlets or displayed in the breadcrumbs are wrong,
as the object id (the same as the one in "portal_repository") follows
it's path.

Here is an illustration, with the home directory of a user named
"rtoto".(this output is produced by a dumb script of mine, which tests
several methods on objects) :

utool.getRpath(context) : members/rtoto/1493751988__0001

context.getPhysicalPath() : ('', 'cps', 'members', 'rtoto',
'1493751988__0001')

context.absolute_url()
:http://172.29.225.78:8080/cps/members/rtoto/1493751988__0001

context.thisProxyFolder() : ('', 'cps', 'members', 'rtoto')

The "getPhysicalPath" return value is wrong, and this impacts any
related method.



In order to go further, I've added a non-CPS specific Folder called
"ssdoss" in this homedir :

utool.getRpath(context) : members/rtoto/ssdoss

context.getPhysicalPath() : ('', 'cps', 'members', 'rtoto', 'ssdoss')

context.absolute_url() : http://172.29.225.78:8080/cps/members/rtoto/ssdoss

context.thisProxyFolder() : ('', 'cps', 'members', 'rtoto')

Everythings looks OK this time.



Any idea ?

Regards.











This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.