xmlclass/xmlclass.py
changeset 1860 4eeddef7f973
parent 1852 70c1cc354a8f
child 1872 866fb3ab8778
equal deleted inserted replaced
1859:1df77c809257 1860:4eeddef7f973
  1229             return "(?:%s)" % name
  1229             return "(?:%s)" % name
  1230         else:
  1230         else:
  1231             return "(?:%s){1,%d}" % (name, infos["maxOccurs"])
  1231             return "(?:%s){1,%d}" % (name, infos["maxOccurs"])
  1232     else:
  1232     else:
  1233         if infos["maxOccurs"] == "unbounded":
  1233         if infos["maxOccurs"] == "unbounded":
  1234             return "(?:%s){%d,}" % (name, infos["minOccurs"], name)
  1234             return "(?:%s){%d,}" % (name, infos["minOccurs"])
  1235         else:
  1235         else:
  1236             return "(?:%s){%d,%d}" % (name,
  1236             return "(?:%s){%d,%d}" % (name,
  1237                                       infos["minOccurs"],
  1237                                       infos["minOccurs"],
  1238                                       infos["maxOccurs"])
  1238                                       infos["maxOccurs"])
  1239 
  1239