paste* backends: Support '$full' for fields

This commit is contained in:
Laurent Bachelier 2011-04-27 18:31:03 +02:00
commit b64b039cdd
2 changed files with 4 additions and 2 deletions

View file

@ -61,7 +61,8 @@ class PastebinBackend(BaseBackend, ICapPaste):
with self.browser:
contents = self.browser.get_contents(paste.id)
paste.contents = contents
elif fields:
# get all fields
elif fields is None or len(fields):
with self.browser:
self.browser.fill_paste(paste)
return paste