/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Static Public Attributes
gen::PoolPmtStructure Class Reference

List of all members.

Public Member Functions

def write

Static Public Attributes

list sites = ['db', 'la', 'far']

Detailed Description

Definition at line 13 of file gen.py.


Member Function Documentation

def gen::PoolPmtStructure::write (   self,
  outdir 
)

Definition at line 17 of file gen.py.

00018                           :
00019         from XmlDetDescGen.util import XmlFile, Comment
00020         from XmlDetDescGen.catalog import Catalog
00021         from XmlDetDescGen.reference import Reference
00022         from XmlDetDescGen.util import ExternalEntity
00023 
00024         topcat = Catalog('Structure');
00025         poolcat = Catalog('PoolPmtStructure');
00026         poolcat.refs = []
00027         poolcat.things = []
00028         topcat.refs = [ poolcat ]
00029         topcat.things = []
00030 
00031         ees = []
00032         for site in PoolPmtStructure.sites:
00033             cat = Catalog('%s-pool'%site);
00034             cat.refs=[]
00035             for ipool in PoolPmts.poolcounts:
00036                 eename="%s%spmts"%(site,ipool)
00037                 ees.append((eename,"%s%s.xml"%(site,ipool)))
00038                 cat.refs.append(ExternalEntity(eename))
00039                 continue
00040             poolcat.refs.append(cat)
00041 
00042         file = XmlFile(dtd="../DTD/structure.dtd",
00043                        external_entities=ees)
00044         file.objects = [ poolcat ]
00045         file.write(outdir+"/structure.xml")
00046 


Member Data Documentation

list gen::PoolPmtStructure::sites = ['db', 'la', 'far'] [static]

Definition at line 15 of file gen.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:56:07 for XmlDetDesc by doxygen 1.7.4