paste* backends: Support '$full' for fields
This commit is contained in:
parent
fbd4511ffa
commit
b64b039cdd
2 changed files with 4 additions and 2 deletions
|
|
@ -59,7 +59,8 @@ class PastealaconBackend(BaseBackend, ICapPaste):
|
||||||
with self.browser:
|
with self.browser:
|
||||||
contents = self.browser.get_contents(paste.id)
|
contents = self.browser.get_contents(paste.id)
|
||||||
paste.contents = contents
|
paste.contents = contents
|
||||||
elif fields:
|
# get all fields
|
||||||
|
elif fields is None or len(fields):
|
||||||
with self.browser:
|
with self.browser:
|
||||||
self.browser.fill_paste(paste)
|
self.browser.fill_paste(paste)
|
||||||
return paste
|
return paste
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,8 @@ class PastebinBackend(BaseBackend, ICapPaste):
|
||||||
with self.browser:
|
with self.browser:
|
||||||
contents = self.browser.get_contents(paste.id)
|
contents = self.browser.get_contents(paste.id)
|
||||||
paste.contents = contents
|
paste.contents = contents
|
||||||
elif fields:
|
# get all fields
|
||||||
|
elif fields is None or len(fields):
|
||||||
with self.browser:
|
with self.browser:
|
||||||
self.browser.fill_paste(paste)
|
self.browser.fill_paste(paste)
|
||||||
return paste
|
return paste
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue