Add basic support for pasting with pastoob

And fix the capability.
This commit is contained in:
Laurent Bachelier 2011-04-23 00:17:40 +02:00
commit 6c2d164883
4 changed files with 50 additions and 7 deletions

View file

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