# HG changeset patch # User haftmann # Date 1118236449 -7200 # Node ID 059caec54d911b11373c402b1e1c6133db9425d8 # Parent 7115adb43f3f33e8963a652a45f7cbf40cdd91f1 added some notes diff -r 7115adb43f3f -r 059caec54d91 Admin/website/build/pypager.py --- a/Admin/website/build/pypager.py Wed Jun 08 14:54:39 2005 +0200 +++ b/Admin/website/build/pypager.py Wed Jun 08 15:14:09 2005 +0200 @@ -102,7 +102,7 @@ def navitem(self, handler, **args): """ - inserts an item in a navigation list, - targeting to target and entitled title""" + targeting to and entitled """ target = args[u"target"].encode("latin-1") target = self._pc.relDstPathOf(target) @@ -124,6 +124,9 @@ def downloadLink(self, handler, **args): + """<?downloadLink target="..." [title="..."]?> - inserts a link to a file + to download; if the title is omitted, it is the bare filename itself""" + target = args[u"target"].encode("latin-1") targetReal = self._pc.absDstPathOf(target) title = args.get(u"title", unicode(posixpath.split(targetReal)[1], 'latin-1')) @@ -136,6 +139,10 @@ def downloadCells(self, handler, **args): + """<?downloadCells target="..." [title="..."]?> - like downloadLink, but + puts the link into a table cell and appends a table cell displaying the + size of the linked file""" + target = args[u"target"].encode("latin-1") targetReal = self._pc.absDstPathOf(target) title = args.get(u"title", unicode(posixpath.split(targetReal)[1], 'latin-1'))