From dc94a7a45a7fcd6722f40ac0210b1c37c7756bc5 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 26 Jan 2010 18:37:29 +0100 Subject: Set default syntax from settings.py. --- pastepy.py | 1 + templates/paste.tmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pastepy.py b/pastepy.py index f63d275..3229eb4 100644 --- a/pastepy.py +++ b/pastepy.py @@ -37,6 +37,7 @@ class Paste(object): 'title': settings.pastebin_name, 'header': settings.pastebin_name, 'lexers': self.lexers, + 'default': settings.default, 'nick': c['nick'].value if 'nick' in c else 'Anonymous', 'remembered': 'nick' in c, }))] diff --git a/templates/paste.tmpl b/templates/paste.tmpl index 195d463..941e624 100644 --- a/templates/paste.tmpl +++ b/templates/paste.tmpl @@ -10,7 +10,7 @@ #for cat, ls in $lexers #for k, v in $ls - + #end for #end for -- cgit v1.2.3