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

@ -25,6 +25,9 @@ __all__ = ['PastealaconPaste']
class PastealaconPaste(BasePaste):
# all pastes are public
public = True
@classmethod
def id2url(cls, _id):
return 'http://pastealacon.com/%s' % _id