diff options
author | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2006-01-09 20:44:25 +0000 |
---|---|---|
committer | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2006-01-09 20:44:25 +0000 |
commit | d77fdfef70e08114f57cbef5d91707df8717ea9f (patch) | |
tree | 49444e3486c0c333cb7b33dfa721296c08ee4ece /sandbox/mly/restblog/main_index.py | |
parent | 53cd16ca6ca5f638cbe5956988e88f9339e355cf (diff) | |
parent | 3993c4097756e9885bcfbd07cb1cc1e4e95e50e4 (diff) | |
download | docutils-0.4.tar.gz |
Release 0.4: tagging released revisiondocutils-0.4
git-svn-id: http://svn.code.sf.net/p/docutils/code/tags/docutils-0.4@4268 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/mly/restblog/main_index.py')
-rwxr-xr-x | sandbox/mly/restblog/main_index.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/sandbox/mly/restblog/main_index.py b/sandbox/mly/restblog/main_index.py deleted file mode 100755 index ed1b68cea..000000000 --- a/sandbox/mly/restblog/main_index.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/python -tt - -# main_index.py -# -# Create main index for reStructuredBlog -# -# (C) Magnus Lyckå, Thinkware AB, 2003 - -import glob, restblog -import cPickle as pickle - -BLOGS_TO_SHOW = 5 - -db = [] -for fn in glob.glob(restblog.source_pattern): - meta = restblog.Metadata(fn) - db.append((meta.timestamp(), fn)) - -db.sort() -db.reverse() - -name = "Magnus Lyckå's Web Log".decode('latin1') -body = ['%s\n%s' % (name, '-'*len(name))] -body.append('*Here are my latest web logs*') -for ts, fn in db[:5]: - body.append("-----\n\n*%s*" % ts.strftime('%Y-%m-%d %H:%M')) - body.append(".. include:: %s" % fn) -restblog.makepage('index', "\n\n".join(body)) |