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

@ -38,8 +38,8 @@ class PastealaconBackend(BaseBackend, ICapPaste):
LICENSE = 'AGPLv3+'
BROWSER = PastealaconBrowser
def new_paste(self):
return PastealaconPaste(None)
def new_paste(self, *args, **kwargs):
return PastealaconPaste(*args, **kwargs)
def get_paste(self, _id):
with self.browser: