(self, device_id=CLOUDCARE_DEVICE_ID)
return session_data
Get session data used by touchforms.
Get session data used by touchforms.
Get session data used by touchforms .
def get_session_data(self, device_id=CLOUDCARE_DEVICE_ID):
        """
        Get session data used by touchforms.
        """
        session_data = super(CaseSessionDataHelper, self).get_session_data(device_id)
        if self.case_id:
            if self.delegation:
                session_data["delegation_id"] = self.case_id
                session_data["case_id"] = self._case_parent_id
            else:
                session_data[self.case_session_variable_name] = self.case_id
        if self.app:
            session_data["app_id"] = self.app.get_id
        return session_data
def get_session_data ( self , device_id = CLOUDCARE_DEVICE_ID ) : session_data = super ( CaseSessionDataHelper , self ) . get_session_data ( device_id ) if self . case_id : if self . delegation : session_data [ "delegation_id" ] = self . case_id session_data [ "case_id" ] = self . _case_parent_id else : session_data [ self . case_session_variable_name ] = self . case_id if self . app : session_data [ "app_id" ] = self . app . get_id return session_data