def db_create_receivertip(store, receiver, internaltip): """ Create ReceiverTip for the required tier of Receiver. """ log.debug('Creating ReceiverTip for receiver: %s' % receiver.id) receivertip = ReceiverTip() receivertip.internaltip_id = internaltip.id receivertip.receiver_id = receiver.id store.add(receivertip) return receivertip.id
def create_receivertip(store, receiver, internaltip): """ Create ReceiverTip for the required tier of Receiver. """ log.debug('Creating ReceiverTip for: %s' % receiver.name) receivertip = ReceiverTip() receivertip.internaltip_id = internaltip.id receivertip.receiver_id = receiver.id store.add(receivertip) return receivertip.id
def create_receivertip(store, receiver, internaltip): """ Create ReceiverTip for the required tier of Receiver. """ log.debug('Creating ReceiverTip for: %s' % receiver.name) receivertip = ReceiverTip() receivertip.internaltip_id = internaltip.id receivertip.access_counter = 0 receivertip.receiver_id = receiver.id receivertip.mark = u'not notified' store.add(receivertip) return receivertip.id
def create_receivertip(store, receiver, internaltip, tier): """ Create ReceiverTip for the required tier of Receiver. """ log.debug('Creating ReceiverTip for: %s (level %d in request %d)' % (receiver.name, receiver.receiver_level, tier)) if receiver.receiver_level != tier: return receivertip = ReceiverTip() receivertip.internaltip_id = internaltip.id receivertip.access_counter = 0 receivertip.expressed_pertinence = 0 receivertip.receiver_id = receiver.id receivertip.mark = u'not notified' store.add(receivertip) return receivertip.id