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

Context Navigation

  • ← Previous Change
  • Next Change →

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

Show
Ignore:
Timestamp:
11/21/07 15:30:43 (12 months ago)
Author:
callan
Message:

Support a few further things that Curtis needs:

  • Accesors for objects that follow OME XML reference naming conventions
  • New convenience constructors that re-institute the org.openmicroscopy.xml semantics
Files:
1 modified

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

Legend:

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

    r111 r126  
    7777        if outputDirectory is None: 
    7878                usage("Output directory must be specified!") 
     79        if not os.path.exists(outputDirectory): 
     80            print "Output directory '%s' does not exist!" % outputDirectory 
     81            sys.exit(1) 
    7982 
    8083        model = parseXmlSchema(args[0]) 
    … …  
    9699 
    97100        model = parseXmlSchema("tmp/ome.xsd") 
    98         fu = Fu(outputDirectory, package) 
     101        fu = TemplateInfo(outputDirectory, package) 
    99102        template = NewTextTemplate(open(CLASS_TEMPLATE).read()) 
    100103        for obj in model.objects.values(): 
    101                 if obj.name == "Experimenter": 
     104                if obj.name == "Laser": 
    102105                        print " +--", obj.name 
    103106                        for prop in obj.properties.values(): 
    … …  
    110113#       debugMain() 
    111114        main() 
     115 

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/