示例#1
0
 def get_subject_path_prefix(self):
     '''DIY课堂图片和当季主题图片的URL地址前缀'''
     parser = TornadoConfigParser()
     root_path = parser.get("uploader", "root_path")
     subject_path = parser.get("uploader", "subject_path")
     return (root_path + "/" + subject_path).replace("//", "/")
示例#2
0
 def get_hairpackage_path_prefix(self):
     '''发行包的URL地址前缀'''
     parser = TornadoConfigParser()
     root_path = parser.get("uploader", "root_path")
     subject_path = parser.get("uploader", "hairpackage_path")
     return (root_path + "/" + subject_path).replace("//", "/")
示例#3
0
 def get_twitter_path_prefix(self):
     '''用户图片的URL地址前缀'''
     parser = TornadoConfigParser()
     root_path = parser.get("uploader", "root_path")
     subject_path = parser.get("uploader", "twitter_path")
     return (root_path + "/" + subject_path).replace("//", "/")
示例#4
0
文件: base.py 项目: parisyy/test123
 def get_avatar_path_prefix(self):
     '''用户头像的URL地址前缀'''
     parser = TornadoConfigParser()
     root_path = parser.get("uploader", "root_path")
     subject_path = parser.get("uploader", "avatar_path")
     return (root_path + "/" + subject_path).replace("//", "/")
示例#5
0
文件: base.py 项目: parisyy/test123
 def get_subject_path_prefix(self):
     '''DIY课堂图片和当季主题图片的URL地址前缀'''
     parser = TornadoConfigParser()
     root_path = parser.get("uploader", "root_path")
     subject_path = parser.get("uploader", "subject_path")
     return (root_path + "/" + subject_path).replace("//", "/")
示例#6
0
文件: base.py 项目: parisyy/test123
 def get_hairpackage_path_prefix(self):
     '''发行包的URL地址前缀'''
     parser = TornadoConfigParser()
     root_path = parser.get("uploader", "root_path")
     subject_path = parser.get("uploader", "hairpackage_path")
     return (root_path + "/" + subject_path).replace("//", "/")