@classmethod
def update_page_contents_from_model(cls, versioned_page_contents, current_version):
    'Converts the page_contents blob contained in the given\n        versioned_page_contents dict from current_version to\n        current_version + 1. Note that the versioned_page_contents being\n        passed in is modified in-place.\n\n        Args:\n            versioned_page_contents: dict. A dict with two keys:\n                - schema_version: str. The schema version for the\n                    page_contents dict.\n                - page_contents: dict. The dict comprising the subtopic page\n                    contents.\n            current_version: int. The current schema version of page_contents.\n        '
    versioned_page_contents['schema_version'] = (current_version + 1)
    conversion_fn = getattr(cls, ('_convert_page_contents_v%s_dict_to_v%s_dict' % (current_version, (current_version + 1))))
    versioned_page_contents['page_contents'] = conversion_fn(versioned_page_contents['page_contents'])
Converts the page_contents blob contained in the given
versioned_page_contents dict from current_version to
current_version + 1. Note that the versioned_page_contents being
passed in is modified in-place.

Args:
    versioned_page_contents: dict. A dict with two keys:
        - schema_version: str. The schema version for the
            page_contents dict.
        - page_contents: dict. The dict comprising the subtopic page
            contents.
    current_version: int. The current schema version of page_contents.
@classmethod
def update_page_contents_from_model(cls, versioned_page_contents, current_version):
    'Converts the page_contents blob contained in the given\n        versioned_page_contents dict from current_version to\n        current_version + 1. Note that the versioned_page_contents being\n        passed in is modified in-place.\n\n        Args:\n            versioned_page_contents: dict. A dict with two keys:\n                - schema_version: str. The schema version for the\n                    page_contents dict.\n                - page_contents: dict. The dict comprising the subtopic page\n                    contents.\n            current_version: int. The current schema version of page_contents.\n        '
    versioned_page_contents['schema_version'] = (current_version + 1)
    conversion_fn = getattr(cls, ('_convert_page_contents_v%s_dict_to_v%s_dict' % (current_version, (current_version + 1))))
    versioned_page_contents['page_contents'] = conversion_fn(versioned_page_contents['page_contents'])