'Update special static assets, such as PDF textbooks and wiki resources.'

def static_updater(self, course, source_courselike, courselike_key, dest_id, runtime):

    for entry in course.pdf_textbooks:
        for chapter in entry.get('chapters', []):
            if StaticContent.is_c4x_path(chapter.get('url', '')):
                asset_key = StaticContent.get_location_from_path(chapter['url'])
                chapter['url'] = StaticContent.get_static_path_from_location(asset_key)
    if (courselike_key != course.id):
        original_unique_wiki_slug = u'{0}.{1}.{2}'.format(courselike_key.org, courselike_key.course, courselike_key.run)
        if ((course.wiki_slug == original_unique_wiki_slug) or (course.wiki_slug == courselike_key.course)):
            course.wiki_slug = u'{0}.{1}.{2}'.format(course.id.org, course.id.course, course.id.run)
    if ((course.tabs is None) or (len(course.tabs) == 0)):
        CourseTabList.initialize_default(course)
