CapPaste: add method to find if a paste is suitable for the backend
Basic support in pastoob added (there is no way yet to change the default options). Backends support the "public/private" requirement.
This commit is contained in:
parent
9022435e49
commit
fbd4511ffa
6 changed files with 50 additions and 3 deletions
|
|
@ -47,6 +47,9 @@ class PastebinBackend(BaseBackend, ICapPaste):
|
|||
def new_paste(self, *args, **kwargs):
|
||||
return PastebinPaste(*args, **kwargs)
|
||||
|
||||
def can_post(self, public=None):
|
||||
return 1
|
||||
|
||||
def get_paste(self, _id):
|
||||
with self.browser:
|
||||
return self.browser.get_paste(_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue