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

📄 deploy_trac.cgi

📁 一款基于web的项目管理、bug跟踪系统。提供了与svn集成的操作界面、问题跟踪
💻 CGI
字号:
#!${executable}# -*- coding: utf-8 -*-## Copyright (C) 2003-2008 Edgewall Software# Copyright (C) 2003-2004 Jonas Borgstr枚m <jonas@edgewall.com># 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: Jonas Borgstr枚m <jonas@edgewall.com>try:    import os    import pkg_resources    if 'TRAC_ENV' not in os.environ and \       'TRAC_ENV_PARENT_DIR' not in os.environ:        os.environ['TRAC_ENV'] = '${env.path}'    if 'PYTHON_EGG_CACHE' not in os.environ:        if 'TRAC_ENV' in os.environ:            egg_cache = os.path.join(os.environ['TRAC_ENV'], '.egg-cache')        elif 'TRAC_ENV_PARENT_DIR' in os.environ:            egg_cache = os.path.join(os.environ['TRAC_ENV_PARENT_DIR'],                                      '.egg-cache')        pkg_resources.set_extraction_path(egg_cache)    from trac.web import cgi_frontend    cgi_frontend.run()except SystemExit:    raiseexcept Exception, e:    import sys    import traceback    print>>sys.stderr, e    traceback.print_exc(file=sys.stderr)    print 'Status: 500 Internal Server Error'    print 'Content-Type: text/plain'    print    print 'Oops...'    print    print 'Trac detected an internal error:', e    print    traceback.print_exc(file=sys.stdout)

⌨️ 快捷键说明

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