askbot.importers.stackexchange.management.commands.load_stackexchange

class askbot.importers.stackexchange.management.commands.load_stackexchange.Command

Bases: django.core.management.base.BaseCommand

cleanup_messages()

deletes messages generated by the load process

get_table_name(xml)
get_xml_path(xml)
handle(*args, **kw)
load_xml_file(xml_path, table_name)
mark_activity(p, u, t)

p,u,t - post, user, timestamp

save_askbot_message_id_list()
transfer_badges()
transfer_comments()
transfer_messages()

transfers some messages from SE to ASKBOT

transfer_meta_pages()
transfer_question_and_answer_activity()

transfers all question and answer edits and related status changes

transfer_question_view_counts()
transfer_tag_preferences()
transfer_update_subscriptions()
transfer_users()
transfer_votes()
class askbot.importers.stackexchange.management.commands.load_stackexchange.X

Bases: object

class with methods for handling some details of SE –> ASKBOT mapping

static blankable(input)
classmethod clean_tags(tags)
classmethod get_badge_name(name)
classmethod get_close_reason(se_reason)
classmethod get_email(email)
classmethod get_message_text(se_m)

try to intelligently translate SE message to ASKBOT so that it makese sense in our context

classmethod get_openid_provider_name(openid_url)
classmethod get_post(se_post)
classmethod get_post_revision_group_types(rev_group)
classmethod get_post_revision_type(rev)
classmethod get_screen_name(se_user)

always returns unique screen name even if there are multiple users in SE with the same exact screen name

classmethod get_user(se_user)
classmethod parse_badge_summary(badge_summary)

This Page