Better API for ICapPaste.new_paste

This commit is contained in:
Laurent Bachelier 2011-04-23 00:30:27 +02:00
commit 8af2674994
6 changed files with 11 additions and 13 deletions

View file

@ -53,9 +53,10 @@ class ICapPaste(IBaseCap):
This capability represents the ability for a website backend to store plain text.
"""
def new_paste(self):
def new_paste(self, *args, **kwargs):
"""
Get a new paste object for posting it with the backend.
The parameters should be passed to the object init.
@return a Paste object
"""