(cls, case_block)
return cls(id=case_block[const.CASE_TAG_ID],
                   version=V1,
                   block=case_block,
                   modified_on_str=modified_on)
Gets a case update from a version 1 case. 
        Spec: https://bitbucket.org/javarosa/javarosa/wiki/casexml
Gets a case update from a version 1 case. 
        Spec: https://bitbucket.org/javarosa/javarosa/wiki/casexml
Gets a case update from a version 1 case . Spec : https : // bitbucket . org / javarosa / javarosa / wiki / casexml
def from_v1(cls, case_block):
        """
        Gets a case update from a version 1 case. 
        Spec: https://bitbucket.org/javarosa/javarosa/wiki/casexml
        """
        if const.CASE_TAG_ID not in case_block:
            raise CaseGenerationException(
                "No case_id element found in v1 case block, "
                "this is a required property."
            )
        
        modified_on = case_block.get(const.CASE_TAG_MODIFIED, "")
        return cls(id=case_block[const.CASE_TAG_ID],
                   version=V1,
                   block=case_block,
                   modified_on_str=modified_on)
def from_v1 ( cls , case_block ) : if const . CASE_TAG_ID not in case_block : raise CaseGenerationException ( "No case_id element found in v1 case block, " "this is a required property." ) modified_on = case_block . get ( const . CASE_TAG_MODIFIED , "" ) return cls ( id = case_block [ const . CASE_TAG_ID ] , version = V1 , block = case_block , modified_on_str = modified_on )