[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/ftp/__init__.py
Somebody did not convert the getAdapter() call correctly causing the
Stephan Richter
srichter at cosmos.phy.tufts.edu
Fri Jul 2 12:27:10 EDT 2004
Log message for revision 26046:
Somebody did not convert the getAdapter() call correctly causing the
time lookup to throw an error, if no adapter to the Dublin Core was
found, like it is the case for the buddydemo.
-=-
Modified: Zope3/trunk/src/zope/app/ftp/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/ftp/__init__.py 2004-07-02 16:21:46 UTC (rev 26045)
+++ Zope3/trunk/src/zope/app/ftp/__init__.py 2004-07-02 16:27:10 UTC (rev 26046)
@@ -16,8 +16,6 @@
$Id$
"""
-__metaclass__ = type
-
from zope.interface import implements
from zope.component import queryAdapter
from zope.proxy import removeAllProxies
@@ -34,7 +32,7 @@
from zope.app.dublincore.interfaces import IZopeDublinCore
from zope.app.copypastemove import rename
-class FTPView:
+class FTPView(object):
implements(IFTPPublisher)
def __init__(self, context, request):
@@ -120,7 +118,7 @@
return self._lsinfo(name, self._dir[name])
def _mtime(self, file):
- dc = IZopeDublinCore(file)
+ dc = IZopeDublinCore(file, None)
if dc is not None:
return dc.modified
More information about the Zope3-Checkins
mailing list