Ticket #812 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

DirectoryLister is only in twisted.web.static in Twisted-9.0.0

Reported by: dustin Owned by:
Priority: major Milestone: 0.8.0
Version: 0.8.0 Keywords:
Cc:

Description

It's in twisted.web.woven.dirlist before that.

Change History

comment:1 Changed 3 years ago by dustin

Sadly, in Twisted-8.1.0:

        Traceback (most recent call last):
          File "/home/dustin/code/buildbot/t/buildbot/sand25/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-x86_64.egg/twisted/protocols/basic.py", line 231, in dataReceived
            why = self.lineReceived(line)
          File "/home/dustin/code/buildbot/t/buildbot/sand25/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-x86_64.egg/twisted/web/http.py", line 1067, in lineReceived
            self.allContentReceived()
          File "/home/dustin/code/buildbot/t/buildbot/sand25/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-x86_64.egg/twisted/web/http.py", line 1108, in allContentReceived
            req.requestReceived(command, path, version)
          File "/home/dustin/code/buildbot/t/buildbot/sand25/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-x86_64.egg/twisted/web/http.py", line 626, in requestReceived
            self.process()
        --- <exception caught here> ---
          File "/home/dustin/code/buildbot/t/buildbot/sand25/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-x86_64.egg/twisted/web/server.py", line 150, in process
            self.render(resrc)
          File "/home/dustin/code/buildbot/t/buildbot/sand25/lib/python2.5/site-packages/Twisted-8.1.0-py2.5-linux-x86_64.egg/twisted/web/server.py", line 157, in render
            body = resrc.render(self)
          File "/home/dustin/code/buildbot/t/buildbot/buildbot/status/web/base.py", line 282, in render
            dirs, files = self._getFilesAndDirectories(directory)
        exceptions.AttributeError: 'DirectoryLister' object has no attribute '_getFilesAndDirectories'

So I think that this is just unsupported in Twisted<9.0.0.

comment:2 Changed 3 years ago by Dustin J. Mitchell

  • Status changed from new to closed
  • Resolution set to fixed

Directory listings require Twisted >= 9.0.0 (fixes #812)

Changeset: 9e427ad5d9c86732cdb007d3aaeb1f680179e057

comment:3 Changed 3 years ago by Dustin J. Mitchell

Directory listings require Twisted >= 9.0.0 (fixes #812)

Changeset: 9e427ad5d9c86732cdb007d3aaeb1f680179e057

comment:4 Changed 3 years ago by Dustin J. Mitchell

Directory listings require Twisted >= 9.0.0 (fixes #812)

Changeset: 9e427ad5d9c86732cdb007d3aaeb1f680179e057

Note: See TracTickets for help on using tickets.