Exemplo n.º 1
0
 def verify_correct(cinfo, restrictions):
     for fname, arg in restrictions.items():
         func = restrict.factory(fname)
         res = func(arg, cinfo)
         if res:
             raise RestrictionError(res)
Exemplo n.º 2
0
 def verify_correct(cinfo, restrictions):
     for fname, arg in restrictions.items():
         func = restrict.factory(fname)
         res = func(arg, cinfo)
         if res:
             raise RestrictionError(res)