(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 = {
            'device_id': device_id,
            'app_version': '2.0',
            'domain': self.domain,
        }
        session_data.update(get_user_contributions_to_touchforms_session(self.domain, self.couch_user))
        return session_data
def get_session_data ( self , device_id = CLOUDCARE_DEVICE_ID ) : session_data = { 'device_id' : device_id , 'app_version' : '2.0' , 'domain' : self . domain , } session_data . update ( get_user_contributions_to_touchforms_session ( self . domain , self . couch_user ) ) return session_data