equal
deleted
inserted
replaced
596 return { |
596 return { |
597 "type": TAG, |
597 "type": TAG, |
598 "extract": ExtractTag, |
598 "extract": ExtractTag, |
599 "generate": GenerateTag, |
599 "generate": GenerateTag, |
600 "initial": lambda: None, |
600 "initial": lambda: None, |
601 "check": lambda x: x is None or infos["minOccurs"] == 0 and value == True |
601 "check": lambda x: x is None or infos["minOccurs"] == 0 and value |
602 } |
602 } |
603 |
603 |
604 |
604 |
605 def FindTypeInfos(factory, infos): |
605 def FindTypeInfos(factory, infos): |
606 if isinstance(infos, (UnicodeType, StringType)): |
606 if isinstance(infos, (UnicodeType, StringType)): |