Esempio n. 1
0
    def __init__(self, contact_list, contacts_to_update, updated_contacts):
        super(_UpdateContactListMembership, self).__init__()
        self._contact_list = contact_list

        self._contacts_by_page = \
            paginate(contacts_to_update, BATCH_SAVING_SIZE_LIMIT)
        self._updated_contacts = updated_contacts
Esempio n. 2
0
    def __init__(self, contact_list, contacts_to_update, updated_contacts):
        super(_UpdateContactListMembership, self).__init__()
        self._contact_list = contact_list

        self._contacts_by_page = \
            paginate(contacts_to_update, BATCH_SAVING_SIZE_LIMIT)
        self._updated_contacts = updated_contacts
Esempio n. 3
0
    def __init__(self, contacts, available_properties):
        """
        
        :param iterable contacts: Contacts to be supposedly saved
        :param iterable available_properties:
            :class:`~hubspot.contacts.properties.Property` instances for all
            the properties supposedly defined in the portal
        
        """
        super(SaveContacts, self).__init__()

        self._contacts_by_page = paginate(contacts, BATCH_SAVING_SIZE_LIMIT)

        self._property_type_by_property_name = {p.name: p.__class__ for p in available_properties}
        self._available_properties_simulator = GetAllProperties(available_properties)
Esempio n. 4
0
    def __init__(self, contacts, available_properties):
        """
        
        :param iterable contacts: Contacts to be supposedly saved
        :param iterable available_properties:
            :class:`~hubspot.contacts.properties.Property` instances for all
            the properties supposedly defined in the portal
        
        """
        super(SaveContacts, self).__init__()

        self._contacts_by_page = paginate(contacts, BATCH_SAVING_SIZE_LIMIT)

        self._property_type_by_property_name = \
            {p.name: p.__class__ for p in available_properties}
        self._available_properties_simulator = \
            GetAllProperties(available_properties)
Esempio n. 5
0
 def __init__(self, objects):
     super(_PaginatedObjectsRetriever, self).__init__()
     self._objects_by_page = paginate(objects, BATCH_RETRIEVAL_SIZE_LIMIT)
Esempio n. 6
0
 def __init__(self, objects):
     super(_PaginatedObjectsRetriever, self).__init__()
     self._objects_by_page = paginate(objects, BATCH_RETRIEVAL_SIZE_LIMIT)