<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=531332814-30082004>Ok, 
object is /site_staging/portal_skins/DEFAULT/testpath.html</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=531332814-30082004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=531332814-30082004>When 
invoking it using <A 
href="http://myserver/site_staging/testpath.html">http://myserver/site_staging/testpath.html</A> 
(so I use CMF skins traversal with implicit skin=default)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=531332814-30082004>aq_parent(self).id returns site_staging, which looks ok 
to me.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=531332814-30082004>And 
getPhysicalPath() will return : 
'','site_staging','testpath.html'</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=531332814-30082004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=531332814-30082004>But I 
really need (for some complicated to explain reasons) to get the full physical 
path of the object.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=531332814-30082004>So 
something returning : 
'','site_staging','portal_skins','DEFAULT','testpath.html'</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=531332814-30082004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=531332814-30082004>portal_skins is a CMF Skins Tool.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=531332814-30082004>I am 
sure it&nbsp;implements ObjectManager, but I don't think it implements 
Folder.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=531332814-30082004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=531332814-30082004>Pascal</SPAN></FONT></DIV>
<BLOCKQUOTE>
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Message d'origine-----<BR><B>De&nbsp;:</B> jens.walte@kk.net 
  [mailto:jens.walte@kk.net]<BR><B>Envoyé&nbsp;:</B> lundi 30 août 2004 
  16:11<BR><B>À&nbsp;:</B> Pperegrina@Lastminute.com<BR><B>Cc&nbsp;:</B> 
  zope@zope.org<BR><B>Objet&nbsp;:</B> Re: [Zope] Physical path of objects in 
  portal_skins tool of a CMF site<BR><BR></FONT></DIV>
  <DIV style="FONT: 10pt Courier New; COLOR: #000000">Hi Pascal,</DIV>
  <DIV style="FONT: 10pt Courier New; COLOR: #000000">&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>the meta_type of "portal_skins" and "DEFAULT" is 
  really&nbsp;'Folder' ?</FONT></DIV>
  <DIV><FONT face=Arial size=2>what returns aq_parent.id 
  on&nbsp;"myobject"?</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>greetz</FONT></DIV>
  <DIV><FONT face=Arial size=2>Jens</FONT></DIV>
  <DIV style="FONT: 10pt Courier New; COLOR: #000000">&nbsp;</DIV>
  <BLOCKQUOTE 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <TABLE 
    style="BORDER-RIGHT: #e0e0e0 1px solid; BORDER-TOP: #e0e0e0 1px solid; FONT: 10pt Arial; BORDER-LEFT: #e0e0e0 1px solid; COLOR: black; BORDER-BOTTOM: 0px" 
    cellSpacing=0 cols=3 cellPadding=0 width="99%" border=0>
      <TBODY>
      <TR borderColor=#dfdfdf borderColorLight=#dfdfdf bgColor=#dfdfdf>
        <TD 
        style="PADDING-LEFT: 4px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; BORDER-BOTTOM: #ffffff 1px solid" 
        width=140 colSpan=2 height=22>
          <DIV style="FONT: bold 9pt Arial">Original 
          Message&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DIV></TD>
        <TD style="BORDER-BOTTOM: #ffffff 1px solid" align=right>
          <DIV style="FONT: 8pt Arial">
          <DIV style="FONT: 8pt Arial"><STRONG><FONT 
          color=#808080>&nbsp;&nbsp;&nbsp;processed by David 
          InfoCenter</FONT></STRONG>&nbsp;</DIV></DIV></TD></TR></TBODY></TABLE>
    <TABLE 
    style="BORDER-RIGHT: #e0e0e0 1px solid; BORDER-TOP: 0px; FONT: 8pt Tahoma; BORDER-LEFT: #e0e0e0 1px solid; COLOR: black; BORDER-BOTTOM: #e0e0e0 1px solid" 
    cellSpacing=0 cols=2 cellPadding=0 width="99%" border=0>
      <TBODY>
      <TR style="PADDING-BOTTOM: 2px">
        <TD style="PADDING-LEFT: 6px; BORDER-BOTTOM: #ffffff 1px solid" width=68 
        bgColor=#efefef height=18>
          <DIV style="FONT: 8pt Tahoma">Subject:&nbsp;</DIV></TD>
        <TD style="PADDING-LEFT: 4px; BORDER-BOTTOM: #efefef 1px solid" 
        bgColor=#ffffff>
          <DIV style="FONT: 8pt Tahoma">[Zope] Physical path of objects in 
          portal_skins tool of a CMF site (30-Aug-2004 15:56)</DIV></TD></TR>
      <TR style="PADDING-BOTTOM: 2px">
        <TD style="PADDING-LEFT: 6px; BORDER-BOTTOM: #ffffff 1px solid" width=68 
        bgColor=#efefef height=18>
          <DIV style="FONT: 8pt Tahoma">From:&nbsp;&nbsp;&nbsp;&nbsp;</DIV></TD>
        <TD style="PADDING-LEFT: 4px; BORDER-BOTTOM: #efefef 1px solid" 
        bgColor=#ffffff>
          <DIV style="FONT: 8pt Tahoma"><A 
          href="mailto:Pperegrina@Lastminute.com">Pperegrina@Lastminute.com</A></DIV></TD></TR>
      <TR style="PADDING-BOTTOM: 0px">
        <TD style="PADDING-LEFT: 6px" width=68 bgColor=#efefef height=17>
          <DIV 
          style="FONT: 8pt Tahoma">To:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DIV></TD>
        <TD style="PADDING-LEFT: 4px" bgColor=#ffffff>
          <DIV style="FONT: 8pt Tahoma"><A 
          href="mailto:jw@obelix.bb.kk.net">jw@obelix.bb.kk.net</A></DIV></TD></TR></TBODY></TABLE>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2><SPAN 
    class=406380114-30082004>Hi,</SPAN></FONT></DIV>
    <DIV><FONT face=Arial size=2><SPAN 
    class=406380114-30082004></SPAN></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2><SPAN class=406380114-30082004>I am developping 
    a Zope object that will be used in a CMF site, specially in the portal_skins 
    subfolders.</SPAN></FONT></DIV>
    <DIV><FONT face=Arial size=2><SPAN 
    class=406380114-30082004></SPAN></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2><SPAN class=406380114-30082004>But I can not 
    find out a way to get the physical path of my objects, because 
    getPhysicalPath(), uppon portal_skins traversal, only returns a path down 
    to&nbsp;the CMF site&nbsp;root&nbsp;: all the extra subfolders are 
    omitted...</SPAN></FONT></DIV>
    <DIV><FONT face=Arial size=2><SPAN 
    class=406380114-30082004></SPAN></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2><SPAN class=406380114-30082004>ex : if I put my 
    object in /MyCMFSIte/portal_skins/DEFAULT/myobject</SPAN></FONT></DIV>
    <DIV><FONT face=Arial size=2><SPAN 
    class=406380114-30082004>getPhysicalPath() returns 
    '','MyCMFSIte','myobject'</SPAN></FONT></DIV>
    <DIV><FONT face=Arial size=2><SPAN class=406380114-30082004>and I would like 
    to get 
'','MyCMFSIte','portal_skins','DEFAULT','myobject'</SPAN></FONT></DIV>
    <DIV><FONT face=Arial size=2><SPAN 
    class=406380114-30082004></SPAN></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2><SPAN class=406380114-30082004>Any idea about 
    how to do that ?</SPAN></FONT></DIV>
    <DIV><FONT face=Arial size=2><SPAN 
    class=406380114-30082004></SPAN></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2><SPAN 
    class=406380114-30082004>Thanks.</SPAN></FONT></DIV>
    <DIV><FONT face=Arial size=2><SPAN 
    class=406380114-30082004></SPAN></FONT>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2><SPAN 
    class=406380114-30082004>Pascal</SPAN></FONT></DIV><BR>________________________________________________________________________<BR>This 
    e-mail has been scanned for all viruses by Star Internet. The<BR>service is 
    powered by MessageLabs. For more information on a proactive<BR>anti-virus 
    service working around the clock, around the globe, visit:<BR><A 
    href="http://www.star.net.uk/">http://www.star.net.uk</A><BR>________________________________________________________________________<BR></BLOCKQUOTE>
  <DIV style="FONT: 10pt Courier New"><BR><BR>To: 
  Pperegrina@Lastminute.com<BR>Cc: 
  zope@zope.org<BR></DIV><BR>________________________________________________________________________<BR>This 
  e-mail has been scanned for all viruses by Star Internet. The<BR>service is 
  powered by MessageLabs. For more information on a proactive<BR>anti-virus 
  service working around the clock, around the globe, visit:<BR><A 
  href="http://www.star.net.uk">http://www.star.net.uk</A><BR>________________________________________________________________________<BR></BLOCKQUOTE>
<BR>
________________________________________________________________________<BR>
This e-mail has been scanned for all viruses by Star Internet. The<BR>
service is powered by MessageLabs. For more information on a proactive<BR>
anti-virus service working around the clock, around the globe, visit:<BR>
<A 
href=http://www.star.net.uk>
http://www.star.net.uk</A><BR>
________________________________________________________________________<BR>
</BODY></HTML>