|
|
|
|
@ -99,8 +99,7 @@ def disp_file_dict(d,keys): |
|
|
|
|
name = os.path.basename(f) |
|
|
|
|
if typ in prev_actions and not os.path.isdir(f): |
|
|
|
|
sys.stdout.write('<h1><a class="entryheader" href="'+script+'?') |
|
|
|
|
sys.stdout.write(urllib.urlencode({'path': os.path.normpath(os.path.dirname(f)), \ |
|
|
|
|
'disp':os.path.normpath(f)}).replace('&','&')+'">') |
|
|
|
|
sys.stdout.write('disp='+os.path.normpath(f)+'">') |
|
|
|
|
print name+'</a> - <span class="entrydate">', |
|
|
|
|
print datetime.fromtimestamp(int(k)).strftime(cfg.datefmt), |
|
|
|
|
print '</span> ' |
|
|
|
|
@ -202,7 +201,7 @@ else: |
|
|
|
|
print " <title>"+name+"</title>" |
|
|
|
|
|
|
|
|
|
link = ET.Element("link") |
|
|
|
|
link.text = cfg.topurl+script+'?'+urllib.urlencode({'path': os.path.normpath(os.path.dirname(f)),'disp':os.path.normpath(f)}) |
|
|
|
|
link.text = cfg.topurl+script+'?'+'disp='+os.path.normpath(f) |
|
|
|
|
print " ", |
|
|
|
|
ET.dump(link) |
|
|
|
|
link.tag="guid" |
|
|
|
|
|