~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/lazr/folder.py

  • Committer: William Grant
  • Date: 2010-10-02 06:27:13 UTC
  • mto: This revision was merged to the branch mainline in revision 11676.
  • Revision ID: me@williamgrant.id.au-20101002062713-pi8a2asl2v3ln0kp
Replace deprecated zope.app.publisher imports with the new locations, and only include z.a.p.xmlrpc's ZCML. This prevents the regstration of a 'manage' view for every object.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
import re
14
14
import time
15
15
 
16
 
from zope.interface import implements
 
16
from zope.browserresource.file import setCacheControl
17
17
from zope.contenttype import guess_content_type
18
18
from zope.datetime import rfc1123_date
19
 
from zope.app.publisher.browser.fileresource import setCacheControl
 
19
from zope.interface import implements
20
20
from zope.publisher.interfaces.browser import IBrowserPublisher
21
21
from zope.publisher.interfaces import NotFound
22
22
 
23
23
 
24
24
class File:
25
 
    # Copied from zope.app.publisher.fileresource, which
 
25
    # Copied from zope.browserresource.file, which
26
26
    # unbelievably throws away the file data, and isn't
27
27
    # useful extensible.
28
28
    #