def get_thumb_uplod_path(self, filename): filename = normalize_filename(filename) root_path = os.path.join('seminar', 'thumb') user_path = os.path.join( root_path, str(self.company.pk), time.strftime('%Y/%m')) return os.path.join(user_path, filename)
def get_pdf_uplod_path(self, filename): filename = normalize_filename(filename) root_path = os.path.join( 'document', 'pdf') user_path = os.path.join( root_path, str(self.company.pk), time.strftime('%Y/%m')) #print(os.path.join(user_path, filename)) return os.path.join(user_path, filename)
def get_img_uplod_path(self, filename): filename = normalize_filename(filename) root_path = os.path.join('blog', 'img') user_path = os.path.join(root_path, time.strftime('%Y/%m')) return os.path.join(user_path, filename)
def get_thumb_uplod_path(self, filename): filename = normalize_filename(filename) root_path = os.path.join('seminar', 'thumb') user_path = os.path.join(root_path, str(self.company.pk), time.strftime('%Y/%m')) return os.path.join(user_path, filename)
def get_logo_uplod_path(self, filename): filename = normalize_filename(filename) root_path = os.path.join('company', 'logo') user_path = os.path.join(root_path, str(self.pk)) return os.path.join(user_path, filename)
def get_img_uplod_path(self, filename): filename = normalize_filename(filename) root_path = os.path.join("blog", "img") user_path = os.path.join(root_path, time.strftime("%Y/%m")) return os.path.join(user_path, filename)