Get comments of delivery note per page

        :param delivery_note_id: the delivery note
        :param per_page: How many objects per page. Default: 1000
        :param page: Which page. Default: 1
        :return: list
185633
def get_comments_of_delivery_note_per_page(self, delivery_note_id, per_page=1000, page=1):
        
        return self._get_resource_per_page(
            resource=DELIVERY_NOTE_COMMENTS,
            per_page=per_page,
            page=page,
            params={'delivery_note_id': delivery_note_id},
        )
797614
def get_draft_page_by_id(self, page_id, status='draft'):
        
        url = 'rest/api/content/{page_id}?status={status}'.format(page_id=page_id, status=status)
        return self.get(url)
1374049
def get_all_comments_of_offer(self, offer_id):
        
        return self._iterate_through_pages(
            get_function=self.get_comments_of_offer_per_page,
            resource=OFFER_COMMENTS,
            **{'offer_id': offer_id}
        )
1354981
def get_suppliers_per_page(self, per_page=1000, page=1, params=None):
        
        return self._get_resource_per_page(resource=SUPPLIERS, per_page=per_page, page=page, params=params)
188941
def get_payments_of_credit_note_per_page(self, credit_note_id, per_page=1000, page=1):
        
        return self._get_resource_per_page(
            resource=CREDIT_NOTE_PAYMENTS,
            per_page=per_page,
            page=page,
            params={'credit_note_id': credit_note_id},
        )
58822
def get_items_of_confirmation_per_page(self, confirmation_id, per_page=1000, page=1):
        
        return self._get_resource_per_page(
            resource=CONFIRMATION_ITEMS,
            per_page=per_page,
            page=page,
            params={'confirmation_id': confirmation_id},
        )
1231944
def complete_delivery_note(self, delivery_note_id, complete_dict):
        
        return self._create_put_request(
            resource=DELIVERY_NOTES,
            billomat_id=delivery_note_id,
            command=COMPLETE,
            send_data=complete_dict
        )
315448
def get_all_payments_of_incoming(self, incoming_id):
        
        return self._iterate_through_pages(
            get_function=self.get_payments_of_incoming_per_page,
            resource=INCOMING_PAYMENTS,
            **{'incoming_id': incoming_id}
        )
883029
def get_confirmations_per_page(self, per_page=1000, page=1, params=None):
        
        return self._get_resource_per_page(resource=CONFIRMATIONS, per_page=per_page, page=page, params=params)
13229
def get_tags_of_article_per_page(self, article_id, per_page=1000, page=1):
        
        return self._get_resource_per_page(
            resource=ARTICLE_TAGS,
            per_page=per_page,
            page=page,
            params={'article_id': article_id},
        )
1365708
def add_comment(self, page_id, text):
        
        data = {'type': 'comment',
                'container': {'id': page_id, 'type': 'page', 'status': 'current'},
                'body': {'storage': {'value': text, 'representation': 'storage'}}}
        return self.post('rest/api/content/', data=data)
61361
def update_delivery_note_comment(self, delivery_note_comment_id, delivery_note_comment_dict):
        
        return self._create_put_request(
            resource=DELIVERY_NOTE_COMMENTS,
            billomat_id=delivery_note_comment_id,
            send_data=delivery_note_comment_dict
        )
1035735
def legacy_notes_view(request):
    
    notes = TeacherNote.objects.all()
    note_count = notes.count()
    paginator = Paginator(notes, 100)

    page = request.GET.get('page')
    try:
        notes = paginator.page(page)
    except PageNotAnInteger:
        notes = paginator.page(1)
    except EmptyPage:
        notes = paginator.page(paginator.num_pages)
    return render_to_response(
        'teacher_notes.html',
        {'page_name': "Legacy Notes",
         'notes': notes,
         'note_count': note_count,},
        context_instance=RequestContext(request)
    )
633226
def notes(self):
        """"""
        endpoint = '/'.join((self.endpoint, self.id, 'notes'))
        return self.noteFactory.find(
            endpoint=endpoint,
            api_key=self.api_key,
        )
1311946
def get_credit_notes_per_page(self, per_page=1000, page=1, params=None):
        
        return self._get_resource_per_page(resource=CREDIT_NOTES, per_page=per_page, page=page, params=params)
1105316
def get_invoice_payments_per_page(self, per_page=1000, page=1, params=None):
        
        if not params:
            params = {}

        return self._get_resource_per_page(
            resource=INVOICE_PAYMENTS,
            per_page=per_page,
            page=page,
            params=params,
        )
1071516
def _get_search_page(
        self,
        query,
        page,
        per_page=1000,
        mentions=3,
        data=False,
    ):
        
        if mentions > 10:
            raise ValueError("You cannot search for more than 10 mentions")
        params = {
            'q': query,
            'page': page,
            'per_page': per_page,
            'mentions': mentions,
        }
        if data:
            params['data'] = 'true'
        response = self.fetch('search.json', params)
        return response.get("documents")