Better API for ICapPaste.new_paste

This commit is contained in:
Laurent Bachelier 2011-04-23 00:30:27 +02:00
commit 8af2674994
6 changed files with 11 additions and 13 deletions

View file

@ -82,7 +82,7 @@ class Pastoob(ReplApplication):
accepted_backends = [backend for backend in self.weboob.iter_backends()]
backend = choice(accepted_backends)
p = backend.new_paste()
p = backend.new_paste(_id=None)
p.title = os.path.basename(filename)
p.contents = contents
backend.post_paste(p)