Commit 93962c61 by Piotr Mitros

Tracking changes, typo in URL

parent 6d5433bd
...@@ -135,7 +135,7 @@ text-decoration: none; ...@@ -135,7 +135,7 @@ text-decoration: none;
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a class="navwiki" href="/profile">Profile</a> <a class="navwiki" href="/profile">Profile</a>
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a class="navwiki" href="/help">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span> <a class="navwiki" href="/s/help.html">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a class="navwiki" href="/logout">Log out</a> <a class="navwiki" href="/logout">Log out</a>
</div> </div>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
from django.http import HttpResponse from django.http import HttpResponse
from django.http import Http404 from django.http import Http404
from django.conf import settings from django.conf import settings
import json import json, os, stat
import tempfile import tempfile
...@@ -15,12 +15,17 @@ logfile = None ...@@ -15,12 +15,17 @@ logfile = None
file_index = 0 file_index = 0
log_index = 0 log_index = 0
MAXLOG = 5 MAXLOG = 5
filename = None
def make_file(): def make_file():
global logfile, log_index, file_index global logfile, log_index, file_index, filename
if logfile != None: if logfile != None:
logfile.close() logfile.close()
logfile = open(directory+"/%05i"%(file_index), "w") os.chmod(filename, stat.S_IRUSR | stat.S_IWUSR | \
stat.S_IRGRP | stat.S_IWGRP | \
stat.S_IROTH )
filename = directory+"/%05i"%(file_index)+".trklog"
logfile = open(filename, "w")
file_index = file_index + 1 file_index = file_index + 1
log_index = 0 log_index = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment