예제 #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
예제 #2
0
 def add_all_ns(self):
     global nsdict
     for ns, p in nsdict.items():
         self.namespaces[ns] = p
예제 #3
0
파일: element.py 프로젝트: samjaninf/rmtoo
 def add_all_ns(self):
     global nsdict
     for ns, p in nsdict.items():
         self.namespaces[ns] = p