Пример #1
0
def open_scratchpad():
    scratchpad = db.get_scratchpad()
    new_content = ui.ask_from_editor(scratchpad.content)
    scratchpad.content = new_content
Пример #2
0
def open_scratchpad():
    old_content = db.get_scratchpad_content()
    new_content = ui.ask_from_editor(old_content)
    db.set_scratchpad_content(new_content)