• Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 151 for Xml/xsd-fu/trunk/xsd-fu

Show
Ignore:
Timestamp:
02/14/08 16:28:25 (9 months ago)
Author:
callan
Message:

Additions for Curtis that allow access to the actual node elements that reference nodes "reference".

Files:
1 modified

  • Xml/xsd-fu/trunk/xsd-fu (modified) (3 diffs)

Legend:

Unmodified
Added
Removed
  • Xml/xsd-fu/trunk/xsd-fu

    r126 r151  
    6666 
    6767        if len(args) != 1: 
    68             usage("Expecting single ome.xsd file path!") 
     68                usage("Expecting single ome.xsd file path!") 
    6969 
    7070        outputDirectory = None 
    … …  
    7878                usage("Output directory must be specified!") 
    7979        if not os.path.exists(outputDirectory): 
    80             print "Output directory '%s' does not exist!" % outputDirectory 
    81             sys.exit(1) 
     80                print "Output directory '%s' does not exist!" % outputDirectory 
     81                sys.exit(1) 
    8282 
    8383        model = parseXmlSchema(args[0]) 
    … …  
    103103        for obj in model.objects.values(): 
    104104                if obj.name == "Laser": 
    105                         print " +--", obj.name 
     105                        print " +-- %s(%s)" % (obj.name, obj.base) 
    106106                        for prop in obj.properties.values(): 
    107107                                print " +---- %s(%s) [%d:%d]" % \ 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/