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("//", "/")
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("//", "/")
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("//", "/")
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("//", "/")