From: Bernardo Innocenti Date: Sun, 23 Sep 2007 07:13:27 +0000 (+0200) Subject: Print version X-Git-Tag: v3.0~62 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=05e3e729c0e20765f418c5efd35ab4426afb2fb7;p=geekigeeki.git Print version --- diff --git a/geekigeeki.py b/geekigeeki.py index 0c1423a..e6cfeca 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -19,7 +19,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -__version__ = '$Revision: 1.63+gerry+bernie $'[11:-2] +__version__ = '$Id$'[3:-2] import cgi, sys, string, os, re, errno, time, stat from os import path, environ @@ -251,8 +251,11 @@ def send_footer(name, mod_string=None): cgi.print_arguments() cgi.print_form(cgi.FieldStorage()) cgi.print_environ() + global __version__ print '' @@ -584,10 +587,7 @@ class Page: if self.exists(): return link_tag(word, word, 'wikilink') else: - if nonexist_qm: - return link_tag(word, '?', 'nonexistent') + word - else: - return link_tag(word, word, 'nonexistent') + return link_tag(word, nonexist_pfx + word, 'nonexistent') def get_raw_body(self): try: @@ -754,7 +754,7 @@ try: datetime_fmt = '%a %d %b %Y %I:%M %p' allow_edit = True # Is it possible to edit pages? show_hosts = True # show hostnames? - nonexist_qm = False # show '?' for nonexistent? + nonexist_pfx = '' # prefix before nonexistent link (usually '?') debug_cgi = False # Set to True for CGI var dump form = cgi.FieldStorage()