Changeset 4954


Ignore:
Timestamp:
Jan 18, 2008, 10:30:37 AM (17 years ago)
Author:
ole
Message:

Work on IP tracking and svn propset svn:keywords invoked.

Location:
anuga_core/source/anuga/utilities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/data_audit.py

    r4952 r4954  
    152152   
    153153
    154     # Validate elements: source, datafile, datafile, ...
     154    # Validate elements: metadata, datafile, datafile, ...
    155155    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"'\
    158158              %root_node.nodeName
    159159        msg += 'The element found was %s' %elements[0].nodeName
     
    194194                print 'Accountable is "%s"' %get_text(node.childNodes)
    195195
    196             if node.nodeName == 'location':
    197                 print 'Location is "%s"' %get_text(node.childNodes)
     196            if node.nodeName == 'source':
     197                print 'Source is "%s"' %get_text(node.childNodes)
    198198
    199199            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  
    33  <!DOCTYPE ga_license_file [
    44      <!ELEMENT ga_license_file (source, datafile+)>
    5       <!ELEMENT source (author, svn_keywords)>
     5      <!ELEMENT metadata (author, svn_keywords)>
    66      <!ELEMENT svn_keywords (author, date, revision, url, id)>   
    77      <!ELEMENT datafile (filename, publishable, accountable,
     
    1010      <!ELEMENT publishable (#PCDATA)>   
    1111      <!ELEMENT accountable (#PCDATA)>       
    12       <!ELEMENT location (#PCDATA)>                             
     12      <!ELEMENT source (#PCDATA)>                               
    1313      <!ELEMENT IP_owner (#PCDATA)>           
    1414      <!ELEMENT IP_info (#PCDATA)>               
     
    1616
    1717  <ga_license_file>
    18     <source>
     18    <metadata>
    1919      <author>Ole Nielsen</author>
    2020      <svn_keywords>
     
    2525        <id>$Id$</id>
    2626      </svn_keywords>
    27     </source>
     27    </metadata>
    2828    <datafile>
    2929      <filename>mainland_only.csv</filename>
    30       <publishable>no</publishable>
     30      <publishable>No</publishable>
    3131      <accountable>Jane Sexton</accountable>
    32       <location></location>
     32      <source>Unknown</source>
    3333      <IP_owner>Geoscience Australia</IP_owner>
    3434      <IP_info>This is a polygon tracing the coastline at Dampier WA. The origin and license issues are undecided</IP_info>
Note: See TracChangeset for help on using the changeset viewer.