Example #1
0
def get_root():
    root = Storage()
    root.name = "根目录"
    root.type = "group"
    root.size = None
    root.id = 0
    root.parent_id = 0
    root.content = ""
    root.priority = 0
    build_note_info(root)
    return root
Example #2
0
def get_archived_group():
    group = Storage()
    group.name = "归档分组"
    group.type = "group"
    group.size = None
    group.id = "archived"
    group.parent_id = 0
    group.content = ""
    group.priority = 0
    build_note_info(group)
    group.url = "/note/archived"
    return group
Example #3
0
def get_default_group():
    group = Storage()
    group.name = "默认分组"
    group.type = "group"
    group.size = None
    group.id = "default"
    group.parent_id = 0
    group.content = ""
    group.priority = 0
    build_note_info(group)
    group.url = "/note/default"
    return group