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

@ -42,8 +42,8 @@ class PastebinBackend(BaseBackend, ICapPaste):
Value('apikey', label='Optional API key', default='', masked=True),
)
def new_paste(self):
return PastebinPaste(None)
def new_paste(self, *args, **kwargs):
return PastebinPaste(*args, **kwargs)
def get_paste(self, _id):
with self.browser: