<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Workflowable folders &amp; traversing issues</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hello,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I would like to have folders (and/or folder-ish content, if you prefer), fully wokflowable.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">That is, when a folder is set private, it shouldn't be traversable, and nothing under it should be accessible to anonymous users (assuming your standard workflow persmissions).&nbsp; As it stands this isn't the case, and folders are not workflowed.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I've looked at using __boob_traverse__ on my Folder class, but that seems to mess with the security context, as I suddenly start getting unauthorized errors with something like:</FONT></P>

<P><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; def __bobo_traverse__(self, REQUEST, name=None):</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print 'GOT HERE'</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return getattr(self, name, self)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">(Specifically, I can't access properties() on the Folder instance for example?)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I've looksed at using the registerBeforeTraverse &amp; friends hooks, but those rely on *calling the object* as fas I know (With NameCaller), and I'm not sure overriding __call__ on my Folder class would be such a good idea.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I imagine this has been done before?&nbsp; Any thoughts/ideas/solutions?&nbsp; Oh and I didn't see any permission setting that seem to control this also &#8230; that would be ideal of course :)</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Thanks!</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Jean-François Doyon</FONT>

<BR><FONT SIZE=2 FACE="Arial">Data Dissemination Division | Division de la diffusion des données</FONT>

<BR><FONT SIZE=2 FACE="Arial">Data Management and Dissemination Branch | Direction de la gestion et de la diffusion des données</FONT>

<BR><FONT SIZE=2 FACE="Arial">Earth Sciences Sector | Secteur des sciences de la Terre</FONT>

<BR><FONT SIZE=2 FACE="Arial">Natural Resources Canada | Ressources naturelles Canada</FONT>

<BR><FONT SIZE=2 FACE="Arial">Ottawa, Canada K1A 0E9</FONT>

<BR><FONT SIZE=2 FACE="Arial">jdoyon@nrcan-rncan.gc.ca</FONT>

<BR><FONT SIZE=2 FACE="Arial">Telephone | Téléphone 613-992-4902</FONT>

<BR><FONT SIZE=2 FACE="Arial">Facsimile | Télécopieur 613-947-2410</FONT>

<BR><FONT SIZE=2 FACE="Arial">Teletypewriter | Téléimprimeur 613-996-4397</FONT>

<BR><FONT SIZE=2 FACE="Arial">Government of Canada | Gouvernement du Canada</FONT>
</P>

</BODY>
</HTML>