~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/poppy/twistedsftp.py

  • Committer: Julian Edwards
  • Date: 2011-02-23 15:16:38 UTC
  • mfrom: (12392.7.32 twisted-ftp-poppy)
  • mto: This revision was merged to the branch mainline in revision 12470.
  • Revision ID: julian.edwards@canonical.com-20110223151638-8cw0twgnyx2a8c0y
merge parent branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    adapter,
23
23
    provideHandler,
24
24
    )
25
 
import zope.component.event
26
25
from zope.interface import implements
27
26
 
28
27
from lp.poppy.filesystem import UploadFileSystem
129
128
    def writeChunk(self, offset, data):
130
129
        try:
131
130
            chunk_file = os.open(
132
 
                self.filename, os.O_CREAT | os.O_WRONLY, 0674)
 
131
                self.filename, os.O_CREAT | os.O_WRONLY, 0664)
133
132
        except OSError, e:
134
133
            if e.errno != errno.EISDIR:
135
134
                raise
143
142
 
144
143
    def setAttrs(self, attr):
145
144
        pass
146