equal
deleted
inserted
replaced
9 import pyjs |
9 import pyjs |
10 from cStringIO import StringIO |
10 from cStringIO import StringIO |
11 try: |
11 try: |
12 # Python 2.5 and above |
12 # Python 2.5 and above |
13 from hashlib import md5 |
13 from hashlib import md5 |
14 except: |
14 except Exception: |
15 import md5 |
15 import md5 |
16 import re |
16 import re |
17 |
17 |
18 usage = """ |
18 usage = """ |
19 usage: %prog [options] <application module name or path> |
19 usage: %prog [options] <application module name or path> |
75 return |
75 return |
76 |
76 |
77 names = os.listdir(src) |
77 names = os.listdir(src) |
78 try: |
78 try: |
79 os.mkdir(dst) |
79 os.mkdir(dst) |
80 except: |
80 except Exception: |
81 pass |
81 pass |
82 |
82 |
83 errors = [] |
83 errors = [] |
84 for name in names: |
84 for name in names: |
85 if name.startswith('CVS'): |
85 if name.startswith('CVS'): |
201 if not os.path.isfile(html_output_filename) or \ |
201 if not os.path.isfile(html_output_filename) or \ |
202 os.path.getmtime(html_input_filename) > \ |
202 os.path.getmtime(html_input_filename) > \ |
203 os.path.getmtime(html_output_filename): |
203 os.path.getmtime(html_output_filename): |
204 try: |
204 try: |
205 shutil.copy(html_input_filename, html_output_filename) |
205 shutil.copy(html_input_filename, html_output_filename) |
206 except: |
206 except Exception: |
207 print >>sys.stderr, "Warning: Missing module HTML file %s" % html_input_filename |
207 print >>sys.stderr, "Warning: Missing module HTML file %s" % html_input_filename |
208 |
208 |
209 print "Copying: %(html_input_filename)s" % locals() |
209 print "Copying: %(html_input_filename)s" % locals() |
210 |
210 |
211 if check_html_file(html_input_filename, output): |
211 if check_html_file(html_input_filename, output): |