Attachment 'TableOfContents.py.diff'
Download
Toggle line numbers
1 --- TableOfContents.py.orig 2005-09-22 12:22:09.000000000 -0400
2 +++ TableOfContents.py 2006-01-13 10:29:20.000000000 -0500
3 @@ -38,6 +38,7 @@
4
5 def __init__(self, macro, args):
6 self.macro = macro
7 + self._ = self.macro.request.getText
8
9 self.inc_re = re.compile(r"^\[\[Include\((.*)\)\]\]")
10 self.arg_re = re.compile(_args_re_pattern)
11 @@ -69,12 +70,19 @@
12 return self.pre_re.sub('',apply(self.include_macro, args, kwargs)).split('\n')
13
14 def run(self):
15 + _ = self._
16 + self.result.append(self.macro.formatter.startContent(content_id='table-of-contents'))
17 + self.result.append(self.macro.formatter.paragraph(1,id="table-of-contents-heading"))
18 + self.result.append(self.macro.formatter.escapedText(_('Contents')))
19 + self.result.append(self.macro.formatter.paragraph(0))
20 +
21 self.process_lines(self.pre_re.sub('',self.macro.parser.raw).split('\n'),
22 self.macro.formatter.page.page_name)
23 # Close pending lists
24 for i in range(self.baseindent, self.indent):
25 self.result.append(self.macro.formatter.listitem(0))
26 self.result.append(self.macro.formatter.number_list(0))
27 + self.result.append(self.macro.formatter.endContent())
28 return ''.join(self.result)
29
30 def process_lines(self, lines, pagename):
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.