(self)
return ret
Returns a list of the required updates for this case/token
        pairing. Should be a list of actions like [create, update, close]
Returns a list of the required updates for this case/token
        pairing. Should be a list of actions like [create, update, close]
Returns a list of the required updates for this case / token pairing . Should be a list of actions like [ create update close ]
def _get_required_updates(self):
        """
        Returns a list of the required updates for this case/token
        pairing. Should be a list of actions like [create, update, close]
        """
        ret = []
        if not self.sync_token or not self.sync_token.phone_is_holding_case(self.case.case_id):
            ret.append(const.CASE_ACTION_CREATE)
        # always include an update
        ret.append(const.CASE_ACTION_UPDATE)
        if self.case.closed:
            ret.append(const.CASE_ACTION_CLOSE)
        return ret
def _get_required_updates ( self ) : ret = [ ] if not self . sync_token or not self . sync_token . phone_is_holding_case ( self . case . case_id ) : ret . append ( const . CASE_ACTION_CREATE ) # always include an update ret . append ( const . CASE_ACTION_UPDATE ) if self . case . closed : ret . append ( const . CASE_ACTION_CLOSE ) return ret