# Path: config/setting.py

# 
# Path: util/oauth.py
# class weibo(oauthbase):
# class douban(oauthbase):
#     def get_current_user_info(self,access_token):
#     def post(self,content):
#     def get_current_user_info(self,access_token):
#     def post(self,content):
# def createClientWithName(name,user=None):


from config.setting import render
from util import oauth
from base import base
        from model import piece
        from urlparse import urlparse
import web
#encoding=utf-8
# /new


def sliceContent(content):
    if len(content) > 120:
        return content[:120] + "..."

# Path: config/setting.py

# 
# Path: util/oauth.py
# class weibo(oauthbase):
# class douban(oauthbase):
#     def get_current_user_info(self,access_token):
#     def post(self,content):
#     def get_current_user_info(self,access_token):
#     def post(self,content):
# def createClientWithName(name,user=None):


# Path: controller/page/new.py
from config.setting import render
from util import oauth
from base import base
        from model import piece
        from urlparse import urlparse
import web

#encoding=utf-8
# /new


def sliceContent(content):
    if len(content) > 120:
        return content[:120] + "..."

    else: