diff --git a/pylog.py b/pylog.py
index cb7f4ba..8799844 100755
--- a/pylog.py
+++ b/pylog.py
@@ -223,6 +223,9 @@ script = sys.argv[0][sys.argv[0].rindex('/')+1:]
path = cfg.contentdir
if 'path' in form:
path=form['path'].value
+elif 'disp' in form:
+ validdisp = get_valid_path(form['disp'].value)
+ path=os.path.dirname(validdisp)
path=get_valid_path(path)
@@ -231,7 +234,7 @@ print ''
print '
'
print ''
- print ' '
+ print ' '
print ' '
def file_link(name,f,depth,hidden):
script = sys.argv[0][sys.argv[0].rindex('/')+1:]
@@ -32,7 +32,7 @@ def file_link(name,f,depth,hidden):
if hidden:
print ' hidden',
print '">'
- print ' '
+ print ' '
print ' '
def disp_txt(path):
@@ -68,7 +68,15 @@ class BodyParser(HTMLParser):
def handle_charref(self,ref):
if self.body:
self.src += '&'+ref+';'
-
+
+# Legacy code used vim for syntax highlighting, as this could be usefull,
+# I'll keep it here
+# old disp_source using vim
+#def disp_source(path):
+# print ''
+# print get_source_html(path).encode(cfg.encoding)
+# #print source
+# print '
'
def get_source_html(path):
tmpdir = os.path.join(tempfile.gettempdir(),"pylog")
cache=False
@@ -137,13 +145,6 @@ def disp_source(path,lang,line_numbers):
f.close()
print ''
-# old disp_source using vim
-#def disp_source(path):
-# print ''
-# print get_source_html(path).encode(cfg.encoding)
-# #print source
-# print '
'
-
def disp(path):
print ''
f = codecs.open(path, mode="r", encoding=cfg.encoding)(path)
diff --git a/pylog_config.py b/pylog_config.py
index b4bce49..3b628de 100644
--- a/pylog_config.py
+++ b/pylog_config.py
@@ -27,7 +27,7 @@ numofposts=5
numfeed=5
# number of entries in the feed
-topurl="http://n0g.at/~powertomato/pylog/"
+topurl="http://89.22.98.13/pylog/"
# The URL which specifies the scripts location
# if someone knows how to obtain it using CGI
# please let me know
diff --git a/style.css b/style.css
index ab081f2..f4132bb 100644
--- a/style.css
+++ b/style.css
@@ -1,5 +1,5 @@
#gallery_container {
- position:absolute;
+ position:fixed;
top:0px; left:0px;
background-color:#aaaaaa;
background-image:url(_img/back2.png);
@@ -17,7 +17,7 @@
}
#gallery_close {
- position:absolute;
+ position:fixed;
right:30px;
}
@@ -41,9 +41,12 @@
.hidden {
display: none
}
-li {
+ul li {
list-style-type:disc;
}
+ol li {
+ list-style-type:decimal;
+}
a {
color:#aa6735;
text-decoration:underline;
@@ -182,6 +185,10 @@ h1 a {
text-decoration:none;
}
+table, th, td, tr {
+ border: 1px solid black;
+ border-collapse:collapse;
+}
div.entrytext h1:before, div.preview h1:before {
content: counter(kap) ' ';
@@ -279,8 +286,3 @@ ul.gallery li img {
margin:2px;
}
-
-
-
-
-