Skip to content

Commit

Permalink
Moving to paste.stgraber.org as default Pastebin for neutrality (no m…
Browse files Browse the repository at this point in the history
…ore Ubuntu specific) and to have a stable Pastebin (changes made in both paste.stgraber.org and pastebinit)
  • Loading branch information
stgraber committed Dec 2, 2006
1 parent 112da60 commit 1a063e3
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions pastebinit
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,24 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

import urllib, os, sys, re
defaultPB="http://paste.ubuntu-nl.org"
defaultPB="http://paste.stgraber.org"
version="0.6"

#Return the parameters depending of the pastebin used
def getParameters(website,content,user):
"Return the parameters array for the selected pastebin"
params={}

if website == "http://paste.ubuntu-nl.org":
if website == "http://paste.stgraber.org":
params['poster']=user
params['code2']=content
params['parent_pid']=""
params['format']="text"
params['paste']="Send"
params['remember']="1" #Do you want a cookie ?
params['expiry']="f" #The expiration, f = forever
params['regexp']="None"
elif website == "http://paste.ubuntu-nl.org":
params['poster']=user
params['content']=content
params['syntax']="text"
Expand Down

0 comments on commit 1a063e3

Please sign in to comment.