Mailing List Archive

SVN: Zelenium/trunk/zuite.py - log warning if a fqfn is neither a file nor a directory
Log message for revision 40868:
- log warning if a fqfn is neither a file nor a directory

(in my case, a typo in a .objects file)

Changed:
U Zelenium/trunk/zuite.py

-=-
Modified: Zelenium/trunk/zuite.py
===================================================================
--- Zelenium/trunk/zuite.py 2005-12-18 20:00:26 UTC (rev 40867)
+++ Zelenium/trunk/zuite.py 2005-12-18 20:02:12 UTC (rev 40868)
@@ -5,6 +5,7 @@
$Id$
"""
import glob
+import logging
import os
import re
from urllib import unquote
@@ -27,6 +28,8 @@
from permissions import ManageSeleniumTestCases
from permissions import View

+logger = logging.getLogger('event.Zelenium')
+
_NOW = None # set only for testing

_PINK_BACKGROUND = re.compile('bgcolor="#ffcfcf"')
@@ -423,6 +426,13 @@
elif os.path.isdir( fqfn ):
info[ 'subdirs' ][ name ] = self._grubFilesystem( fqfn )

+ else:
+
+ logger.warning(
+ '%r was neither a file nor directory and so has been ignored',
+ fqfn
+ )
+
return info



_______________________________________________
Zope-CVS maillist - Zope-CVS@zope.org
http://mail.zope.org/mailman/listinfo/zope-cvs

Zope CVS instructions: http://dev.zope.org/CVS