<br><br><div><span class="gmail_quote">On 4/11/06, <b class="gmail_sendername">Dieter Maurer</b> &lt;<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Erik Billing wrote at 2006-4-10 20:38 +0200:<br>&gt; ...<br>&gt;This works fine, except that it's a bit clumsy and has one big error; I<br>&gt;catch just any exception that arises from the<br>&gt;files.append(fileIterator.next
())-call,<br>&gt;and swallow it.<br><br>In fact, you should *NEVER* do this.</blockquote><div><br>I totally agree <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt;I've tried catching only the Unauthorized-exception, but an<br>&gt;anonymus user does not have access to the Unauthorized-exception, so I can't<br>&gt;specify is in my except-declaration without getting a new authorization
<br>&gt;error.<br><br>The &quot;README&quot; in &quot;Products/PythonScripts&quot; (unmong others) tells<br>you how to allow the import of usually protected ressources.<br><br>--<br>Dieter<br></blockquote></div><br>

<p class="MsoNormal"><span style="" lang="EN-GB">Thanx, it
worked fine when I allowed the unauthorized module, but I still wonder if this
is the way I *should* do it, is there no easier way that does not incorporate
an python script (or a similar clumsy dtml solution). It just feels a little overkill
to write a specific script just to access the files in a directory. </span></p>

/Erik<br>