Example #1
0
    def __init__(self):
        adminAction.__init__(self, chkInstall=False)
        if not self.isAdmin():
            return self.error(msg = '权限不足!')

        self.sessions_dir = os.path.join(config.DATA_DIR, 'sessions')
        self.upload_dir = config.UPLOAD_DIR
        self.temp_dir = os.path.join(self.upload_dir, 'temp')
        self.video_dir = os.path.join(self.upload_dir, 'video')
        self.audio_dir = os.path.join(self.upload_dir, 'audio')
        self.image_dir = os.path.join(self.upload_dir, 'image')
Example #2
0
 def __init__(self):
     adminAction.__init__(self, chkLogin=False, chkInstall=False)
Example #3
0
 def __init__(self, name = '上传文件'):
     adminAction.__init__(self, name)
Example #4
0
File: index.py Project: XinMa1/work
 def __init__(self):
     adminAction.__init__(self)