<br><br><div><span class="gmail_quote">On 4/11/06, <b class="gmail_sendername">Dieter Maurer</b> <<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>> 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>> ...<br>>This works fine, except that it's a bit clumsy and has one big error; I<br>>catch just any exception that arises from the<br>>files.append(fileIterator.next
())-call,<br>>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;">
>I've tried catching only the Unauthorized-exception, but an<br>>anonymus user does not have access to the Unauthorized-exception, so I can't<br>>specify is in my except-declaration without getting a new authorization
<br>>error.<br><br>The "README" in "Products/PythonScripts" (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>