예제 #1
0
파일: models.py 프로젝트: wanshot/trdist
 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)
예제 #2
0
파일: models.py 프로젝트: wanshot/trdist
 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)
예제 #3
0
파일: models.py 프로젝트: wanshot/trdist
 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)
예제 #4
0
 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)
예제 #5
0
 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)
예제 #6
0
파일: models.py 프로젝트: wanshot/trdist
 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)
예제 #7
0
파일: models.py 프로젝트: wanshot/trdist
 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)