Пример #1
0
def start_review(review_url=None):
    global _active_review

    if _active_review:
        raise Exception("review already started")

    if not review_url:
        _active_review = loader.load_from_current_file()
    else:
        _active_review = loader.load_from_url(review_url)
Пример #2
0
def try_to_load_from_current_file():
    global _active_review

    _active_review = loader.load_from_current_file()