コード例 #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)