(self)
Clear known case properties, and all dynamic properties
Clear known case properties, and all dynamic properties
Clear known case properties and all dynamic properties
def _reset_case_state(self):
        """
        Clear known case properties, and all dynamic properties
        """
        self.case.case_json = {}
        self.case.deleted = False

        # hard-coded normal properties (from a create block)
        for prop, default_value in KNOWN_PROPERTIES.items():
            setattr(self.case, prop, default_value)

        self.case.opened_on = None
        self.case.opened_by = ''
        self.case.modified_on = None
        self.case.modified_by = ''
        self.case.closed = False
        self.case.closed_on = None
        self.case.closed_by = ''
def _reset_case_state ( self ) : self . case . case_json = { } self . case . deleted = False # hard-coded normal properties (from a create block) for prop , default_value in KNOWN_PROPERTIES . items ( ) : setattr ( self . case , prop , default_value ) self . case . opened_on = None self . case . opened_by = '' self . case . modified_on = None self . case . modified_by = '' self . case . closed = False self . case . closed_on = None self . case . closed_by = ''