Exemplo n.º 1
0
 def get_knownns(self, prefix):
     """ Odfpy maintains a list of known namespaces. In some cases a prefix is used, and
         we need to know which namespace it resolves to.
     """
     global nsdict
     for ns,p in nsdict.items():
         if p == prefix: return ns
     return None
Exemplo n.º 2
0
 def add_all_ns(self):
     global nsdict
     for ns, p in nsdict.items():
         self.namespaces[ns] = p
Exemplo n.º 3
0
 def add_all_ns(self):
     global nsdict
     for ns, p in nsdict.items():
         self.namespaces[ns] = p