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')
def __init__(self): adminAction.__init__(self, chkLogin=False, chkInstall=False)
def __init__(self, name = '上传文件'): adminAction.__init__(self, name)
def __init__(self): adminAction.__init__(self)