
Untitled
By: a guest on
Jul 1st, 2012 | syntax:
Python | size: 0.41 KB | hits: 22 | expires: Never
params["attachments"] = []
if os.path.isdir(os.path.join(path, "att")):
for filename in os.listdir(path):
params["attachments"].append(Attachment(
self.file_cacher.put_file(
path=os.path.join(path, "att", filename),
description="Attachment %s for task %s" % filename, name)
).export_to_dict())