Пример #1
0
 def testIsXMLNCNameNonASCII(self):
     if not isXMLNCName('äöüß'):
         self.fail()
Пример #2
0
 def testIsXMLNCNameEmpty(self):
     if isXMLNCName(''):
         self.fail()
Пример #3
0
 def testIsXMLNCNameSpaces(self):
     if isXMLNCName('with spaces'):
         self.fail()
Пример #4
0
 def __call__(self, value, *args, **kwargs):
     from Products.PloneOntology.owl import isXMLNCName
     if not isXMLNCName(value):
         return ("Validation failed (%s): '%s' is not an XML NCName." % (self.name, value))
     else:
         return 1