Attachment 'SetSection.py'
Download 1 """
2 Raw Set Section
3
4 Resets the section counter to the specified root section number. This is so that you may have
5 pages that are part of a larger document that have sections starting at a certain number.
6
7 Usage::
8 [[SetSection(4)]]
9
10 Note: Must be used BEFORE TableOfContents.
11
12 Code by Steve Tindle at SQI, Inc. (steve.tindle@sqi-inc.com)
13 """
14
15
16 def execute(macro, args):
17 section_start = int(args) -1
18 if section_start < 0: section_start = 0
19 macro.request._fmt_hd_counters = [section_start]
20 macro.request._fmt_hd_counters_toc_start = section_start
21 return ''
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.