Skip to content

Commit

Permalink
Add support for http://pastie.org
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Apr 7, 2009
1 parent e8bd458 commit 444b445
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pastebinit
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ try:
params['code'] = content
params['remember'] = "0" #Do you want a cookie ?
params['expire'] = "259200" # expire in 72h
elif website == "http://pastie.org":
params['page'] = "/pastes"
params['paste[parser_id]'] = '6' # plain text
params['paste[restricted]'] = '0' # private?
params['paste[body]'] = content
params['paste[authorization]'] = 'burger' # spambot trap?
params['key'] = '' # no idea
params['commit'] = 'Paste' # submit button
else:
sys.exit(_("Unknown website, please post a bugreport to request this pastebin to be added (%s)") % website)
return params
Expand Down

0 comments on commit 444b445

Please sign in to comment.