0001-workflows-don-t-return-attachment-contents-for-remot.patch
wcs/workflows.py | ||
---|---|---|
279 | 279 |
'content_type': self.content_type, |
280 | 280 |
'filename': self.base_filename, |
281 | 281 |
} |
282 |
with open(self.filename, 'rb') as fd: |
|
282 |
fd = self.get_file_pointer() |
|
283 |
if fd: |
|
283 | 284 |
d['content'] = base64.encodebytes(fd.read()) |
285 |
fd.close() |
|
284 | 286 |
return d |
285 | 287 | |
286 | 288 |
@classmethod |
287 |
- |