Skip to content

Commit

Permalink
* Add support for http://paste.ubuntu.com
Browse files Browse the repository at this point in the history
  • Loading branch information
fta1 committed May 12, 2008
1 parent ed85abe commit 5b1b6d6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pastebinit (0.9-0ubuntu2) UNRELEASED; urgency=low
[ Fabien Tassin ]
* Add Vcs-Bzr to debian/control
* Fix -a in Usage()
* Add support for http://paste.ubuntu.com

-- David Paleino <d.paleino@gmail.com> Tue, 19 Feb 2008 21:07:02 +0100

Expand Down
1 change: 1 addition & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ Description: command-line pastebin client
- http://pastebin.ca
- http://rafb.net/paste
- http://pastebin.archlinux.org
- http://paste.ubuntu.com
4 changes: 4 additions & 0 deletions pastebinit
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ try:
params['remember'] = "0" # Cookies? ;)
params['page'] = "/paste"
params['regexp'] = '">http://yourpaste.net(.*)/</a>'
elif website == "http://paste.ubuntu.com":
params['poster'] = user
params['syntax'] = format #The format, for syntax hilighting
params['content'] = content
else:
sys.exit(_("Unknown website, please post a bugreport to request this pastebin to be added (%s)") % website)
return params
Expand Down
3 changes: 3 additions & 0 deletions pastebinit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@
<listitem>
<para>http://pastebin.archlinux.org</para>
</listitem>
<listitem>
<para>http://paste.ubuntu.com</para>
</listitem>
</itemizedlist>
</refsect1>
<refsect1>
Expand Down

0 comments on commit 5b1b6d6

Please sign in to comment.