예제 #1
0
 def domainSpecValidate(self, spec):
     for ob in spec:
         am = addr_match(ob)
         hm = host_match(ob)
         if am is None and hm is None:
             return 0
     return 1
예제 #2
0
파일: userfolder.py 프로젝트: goschtl/zope
 def domainSpecValidate(self, spec):
     for ob in spec:
         am = addr_match(ob)
         hm = host_match(ob)
         if am is None and hm is None:
             return 0
     return 1