# Path: model/piece.py
# def parse_content(content):
# def add(user_id,content,link=None,private=False,pics=None):
# def get_by_id(id):
# def get_random(limit=100):
# def get_all(limit=None):
# 
# Path: model/work.py
# def get_by_id(id):
# def has(title):
# def add(title):
# 
# Path: model/author.py
# def get_by_id(id):
# def has(name):
# def add(name):
# 
# Path: config/setting.py



from model import piece
from model import work
from model import author
from config.setting import db

pieces = piece.get_all()
for p in pieces:
    data = piece.parse_content(p.content)

# Path: model/piece.py
# def parse_content(content):
# def add(user_id,content,link=None,private=False,pics=None):
# def get_by_id(id):
# def get_random(limit=100):
# def get_all(limit=None):
# 
# Path: model/work.py
# def get_by_id(id):
# def has(title):
# def add(title):
# 
# Path: model/author.py
# def get_by_id(id):
# def has(name):
# def add(name):
# 
# Path: config/setting.py



# Path: parse_old_contents.py
from model import piece
from model import work
from model import author
from config.setting import db


pieces = piece.get_all()
for p in pieces:
    data = piece.parse_content(p.content)

    print data