javisantana / hg-wiki

small wiki application based on mercurial.

Clone this repository (size: 20.7 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/javisantana/hg-wiki/
commit 5: d0143dc53da4
parent 4: ef4823209759
branch: default
removed some test code
ja...@qualopy3
10 months ago

Changed (Δ344 bytes):

raw changeset »

hg-wiki.py (0 lines added, 11 lines removed)

Up to file-list hg-wiki.py:

@@ -116,17 +116,6 @@ def page(web, page):
116
116
  body = "%s" % (r.get_page(page).to_html())
117
117
  return html % {'page': page, 'body': body}
118
118
119
def static_serve_my(web, file):
120
    file = os.path.join(config('static_root'), file)
121
    realfile = os.path.realpath(file)
122
    print realfile
123
    print os.path.realpath(config('static_root'))
124
125
    if not realfile.startswith(os.path.realpath(config('static_root'))):
126
        notfound("i1")
127
    elif yield_file(file) != 7:
128
        notfound("2")
129
130
119
if __name__ == '__main__':
131
120
  import sys
132
121
  if len(sys.argv) == 2: