@property
def data(self):
    "Get data back from the query for the matching document entry.\n\n        :return: If lookup fails, an empty dict. Else, a dict containing the\n        following fields:\n            - document_number: The document number we're working with.\n            - page_count: The number of pages of the item\n            - pacer_doc_id: The doc ID for the main document.\n            - attachments: A list of attached items with the following fields:\n                - attachment_number: The attachment number.\n                - description: A description of the item.\n                - page_count: The number of pages.\n                - pacer_doc_id: The document ID for the attachment (a str).\n\n        See the JSON objects in the tests for more examples.\n        "
    rows = self.tree.xpath('//tr[.//a]')
    if (not rows):
        logger.info('No documents found on attachment page.')
        return {}
    first_row = rows.pop(0)
    result = {'document_number': self._get_document_number(first_row), 'page_count': self._get_page_count_from_tr(first_row), 'pacer_doc_id': self._get_pacer_doc_id(first_row), 'pacer_case_id': self._get_pacer_case_id(), 'attachments': []}
    for row in rows:
        result['attachments'].append({'attachment_number': self._get_attachment_number(row), 'description': self._get_description_from_tr(row), 'page_count': self._get_page_count_from_tr(row), 'pacer_doc_id': self._get_pacer_doc_id(row)})
    return result
Get data back from the query for the matching document entry.

:return: If lookup fails, an empty dict. Else, a dict containing the
following fields:
    - document_number: The document number we're working with.
    - page_count: The number of pages of the item
    - pacer_doc_id: The doc ID for the main document.
    - attachments: A list of attached items with the following fields:
        - attachment_number: The attachment number.
        - description: A description of the item.
        - page_count: The number of pages.
        - pacer_doc_id: The document ID for the attachment (a str).

See the JSON objects in the tests for more examples.
@property
def data(self):
    "Get data back from the query for the matching document entry.\n\n        :return: If lookup fails, an empty dict. Else, a dict containing the\n        following fields:\n            - document_number: The document number we're working with.\n            - page_count: The number of pages of the item\n            - pacer_doc_id: The doc ID for the main document.\n            - attachments: A list of attached items with the following fields:\n                - attachment_number: The attachment number.\n                - description: A description of the item.\n                - page_count: The number of pages.\n                - pacer_doc_id: The document ID for the attachment (a str).\n\n        See the JSON objects in the tests for more examples.\n        "
    rows = self.tree.xpath('//tr[.//a]')
    if (not rows):
        logger.info('No documents found on attachment page.')
        return {}
    first_row = rows.pop(0)
    result = {'document_number': self._get_document_number(first_row), 'page_count': self._get_page_count_from_tr(first_row), 'pacer_doc_id': self._get_pacer_doc_id(first_row), 'pacer_case_id': self._get_pacer_case_id(), 'attachments': []}
    for row in rows:
        result['attachments'].append({'attachment_number': self._get_attachment_number(row), 'description': self._get_description_from_tr(row), 'page_count': self._get_page_count_from_tr(row), 'pacer_doc_id': self._get_pacer_doc_id(row)})
    return result