Closed 30350n closed 11 months ago
@30350n thanks!
Regarding the suggested extra methods - I think there should be a mixing class in base.py
which these classes inherit, which implements uploadAttachment
and uploasdLink
- there is a lot of code duplicated which would be reduced.
Looking at the code, that would have to be some kind of generative mixin though, because the current Attachment
classes all have different URLs and REQUIRED_KWARGS. I'll see if I can throw something together tomorrow ^^
Here we go, what do you think of this?
@30350n clean implementation, I like it. Let's see if it passes :)
Looks good now I'd say!
Mind if I bump the version to 0.13.2 so we can get a release for this?
@30350n happy for you to bump the release and then I'll merge
Done, thanks a lot! :)
This adds an
add_link
class method to theAttachment
class, to make it possible to add external link attachments via the python api.Should I also add a bunch of
addLinkAttachment
functions toPart
,Company
, etc. (similar to theuploadAttachment
methods)?