paste* backends: Support the 'public' attribute

This commit is contained in:
Laurent Bachelier 2011-04-27 00:32:15 +02:00
commit 9022435e49
6 changed files with 27 additions and 4 deletions

View file

@ -79,6 +79,7 @@ class PastebinBrowser(BaseBrowser):
data = {'api_dev_key': dev_key,
'api_option': 'paste',
'api_paste_expire_date': '1M',
'api_paste_private': '0' if paste.public else '1',
'api_paste_code': paste.contents.encode(self.ENCODING),
}
if paste.title: