⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 deploy_trac.wsgi

📁 一款基于web的项目管理、bug跟踪系统。提供了与svn集成的操作界面、问题跟踪
💻 WSGI
字号:
#!${executable}# -*- coding: utf-8 -*-## Copyright (C) 2008 Edgewall Software# Copyright (C) 2008 Noah Kantrowitz <noah@coderanger.net># All rights reserved.## This software is licensed as described in the file COPYING, which# you should have received as part of this distribution. The terms# are also available at http://trac.edgewall.org/wiki/TracLicense.## This software consists of voluntary contributions made by many# individuals. For the exact contribution history, see the revision# history and logs, available at http://trac.edgewall.org/log/.## Author: Noah Kantrowitz <noah@coderanger.net>import osdef application(environ, start_request):    if not 'trac.env_path_parent_dir' in environ:        environ.setdefault('trac.env_path', '${env.path}')    if 'PYTHON_EGG_CACHE' in environ:                                                   os.environ['PYTHON_EGG_CACHE'] = environ['PYTHON_EGG_CACHE']    elif 'trac.env_path' in environ:        os.environ['PYTHON_EGG_CACHE'] = os.path.join(environ['trac.env_path'],                                                      '.egg-cache')    elif 'trac.env_path_parent_dir' in environ:        os.environ['PYTHON_EGG_CACHE'] = os.path.join(environ['trac.env_path_parent_dir'],                                                      '.egg-cache')    from trac.web.main import dispatch_request    return dispatch_request(environ, start_request)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -