Changeset 5053
- Timestamp:
- Feb 19, 2008, 3:44:11 PM (17 years ago)
- Location:
- anuga_core/source/anuga/utilities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/data_audit.py
r5052 r5053 1 1 """Track IP of data files in an entire directory tree. 2 2 See docstring for the public function IP_verified() 3 for details. 3 for details on algorithm. 4 5 An example of the XML format expected by this module is 6 7 8 <?xml version="1.0" encoding="iso-8859-1"?> 9 10 <ga_license_file> 11 <metadata> 12 <author>Ole Nielsen</author> 13 </metadata> 14 15 <datafile> 16 <filename>channel1.png</filename> 17 <checksum>1339122967</checksum> 18 <publishable>Yes</publishable> 19 <accountable>Ole Nielsen</accountable> 20 <source>Generated by ANUGA development team</source> 21 <IP_owner>Geoscience Australia</IP_owner> 22 <IP_info>For use with ANUGA manual</IP_info> 23 </datafile> 24 25 </ga_license_file> 26 27 28 There can be more than one <datafile> element to cover files 29 with different extensions. 30 31 32 Here's a DTD format, we might implement one day 33 34 <!DOCTYPE ga_license_file [ 35 <!ELEMENT ga_license_file (source, datafile+)> 36 <!ELEMENT metadata (author, svn_keywords)> 37 <!ELEMENT svn_keywords (author, date, revision, url, id)> 38 <!ELEMENT datafile (filename, publishable, accountable, 39 owner, location, IP_info)> 40 <!ELEMENT filename (#PCDATA)> 41 <!ELEMENT publishable (#PCDATA)> 42 <!ELEMENT accountable (#PCDATA)> 43 <!ELEMENT source (#PCDATA)> 44 <!ELEMENT IP_owner (#PCDATA)> 45 <!ELEMENT IP_info (#PCDATA)> 46 ]> 47 48 49 4 50 """ 5 51 -
anuga_core/source/anuga/utilities/data_audit_wrapper.py
r5052 r5053 14 14 15 15 # Ignore source code files 16 extensions_to_ignore = ['.py','.c', '.h', '.cpp', '.f', '.bat' ]16 extensions_to_ignore = ['.py','.c', '.h', '.cpp', '.f', '.bat', '.m'] 17 17 18 18 # Ignore LaTeX documents
Note: See TracChangeset
for help on using the changeset viewer.