-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFAQtor_changes.txt
More file actions
executable file
·57 lines (32 loc) · 1.25 KB
/
FAQtor_changes.txt
File metadata and controls
executable file
·57 lines (32 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
===========================
Made the last updated date automatically generated by adding ...
import time
from time import strftime
and then under the line "self.output_page_start(fp)" I wrote
fp.write("<center><h3>Last updated: %s </h3></center>\n\n"
% strftime("%d %b %Y") )
So now when I run faqtor.py, the date is automatically updated like ...
Last updated: 23 Feb 2009
=============================
Added id tag to faq.cfg that uses the section name
section: <h1 id="%(section)s">%(section)s</h1>
This allows you to point someone to a particular section of the FAQ
http://www.example.com/FAQ.html#General
Last updated 17 Sept 2010
=============================
Upgrade to Python 2.7.1 caused faqtor.py to fail:
faqtor.py FAQ.xml FAQ.cfg
Traceback (most recent call last):
File "./faqtor.py", line 40, in <module>
class InputReader(saxutils.DefaultHandler):
AttributeError: 'module' object has no attribute 'DefaultHandler'
Needed to make the following changes to fix:
Added:
from xml.sax import handler
Changed:
class InputReader(handler.ContentHandler):
Last updated: 5 May 2011
=============================
Converted faqtor.py to python3 using the 2to3 python translation script.
Last updated: 5 April 2019
=============================