Changeset 4954
- Timestamp:
- Jan 18, 2008, 10:30:37 AM (17 years ago)
- Location:
- anuga_core/source/anuga/utilities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/data_audit.py
r4952 r4954 152 152 153 153 154 # Validate elements: source, datafile, datafile, ...154 # Validate elements: metadata, datafile, datafile, ... 155 155 elements = get_elements(root_node.childNodes) 156 if elements[0].nodeName != ' source':157 msg = 'The first element under %s must be " source"'\156 if elements[0].nodeName != 'metadata': 157 msg = 'The first element under %s must be "metadata"'\ 158 158 %root_node.nodeName 159 159 msg += 'The element found was %s' %elements[0].nodeName … … 194 194 print 'Accountable is "%s"' %get_text(node.childNodes) 195 195 196 if node.nodeName == ' location':197 print ' Locationis "%s"' %get_text(node.childNodes)196 if node.nodeName == 'source': 197 print 'Source is "%s"' %get_text(node.childNodes) 198 198 199 199 if node.nodeName == 'IP_owner': -
anuga_core/source/anuga/utilities/mainland_only.lic
-
Property
svn:keywords
set to
Author Date Revision URL ID
r4944 r4954 3 3 <!DOCTYPE ga_license_file [ 4 4 <!ELEMENT ga_license_file (source, datafile+)> 5 <!ELEMENT source(author, svn_keywords)>5 <!ELEMENT metadata (author, svn_keywords)> 6 6 <!ELEMENT svn_keywords (author, date, revision, url, id)> 7 7 <!ELEMENT datafile (filename, publishable, accountable, … … 10 10 <!ELEMENT publishable (#PCDATA)> 11 11 <!ELEMENT accountable (#PCDATA)> 12 <!ELEMENT location(#PCDATA)>12 <!ELEMENT source (#PCDATA)> 13 13 <!ELEMENT IP_owner (#PCDATA)> 14 14 <!ELEMENT IP_info (#PCDATA)> … … 16 16 17 17 <ga_license_file> 18 < source>18 <metadata> 19 19 <author>Ole Nielsen</author> 20 20 <svn_keywords> … … 25 25 <id>$Id$</id> 26 26 </svn_keywords> 27 </ source>27 </metadata> 28 28 <datafile> 29 29 <filename>mainland_only.csv</filename> 30 <publishable> no</publishable>30 <publishable>No</publishable> 31 31 <accountable>Jane Sexton</accountable> 32 < location></location>32 <source>Unknown</source> 33 33 <IP_owner>Geoscience Australia</IP_owner> 34 34 <IP_info>This is a polygon tracing the coastline at Dampier WA. The origin and license issues are undecided</IP_info> -
Property
svn:keywords
set to
Note: See TracChangeset
for help on using the changeset viewer.