Exemplo n.º 1
0
    def __init__(self, dsi, widget=None):
        Value.__init__(self, _dsi=dsi, _widget=widget)

        templateDir = dsi.getProperty("template_dir")
        templateDir = unicode(templateDir.getString())
        templateProp = PropertyNode()
        templateProp.makeDescendant("SERNA_TEMPLATE_DIR", templateDir)

        catalogs = dsi.getProperty("xml-catalogs")
        catalogsList = []
        for catalog in unicode(catalogs.getString()).split():
            catalog = SernaConfig.resolveResource('', catalog, '', templateProp)
            catalogsList.append("file:///" + catalog.replace(' ', '%20'))

        catalogs = ' '.join(catalogsList)
        cm = CatalogManager(_catalogsList=catalogs)
        self._structEditor = StructEditor(_catalogManager=cm)
Exemplo n.º 2
0
 def __init__(self, sernaDoc, props):
     Value.__init__(self, _sernaDoc=sernaDoc, _props=props)
Exemplo n.º 3
0
 def __init__(self, **kwargs):
     Value.__init__(self, **kwargs)
Exemplo n.º 4
0
 def __init__(self, **kwargs):
     Value.__init__(self, **kwargs)