Some useful variables in the request:
ACTUAL_URL
Available: Always
Contains: The URL the user sees.
Example: http://localhost:8080/test/front-page
HTTP_HOST
Available: Always
Contains: Zope instance host name
Example: http://localhost:8080
PATH_INFO
Available: Always
Contains: Path portion of the URL Zope sees. No translation
for virtual hosting.
Example: /test/front-page
/VirtualHostBase/http/example.com:80/test/VirtualHostRoot/front-page
PATH_TRANSLATED
Available: Always
Contains: PATH_INFO translated to a physical path. This
removes redundant separators. On Windows, it will
turn forward slahes into backslashes.
SCRIPT_NAME
Available: Always
Contains: Application name - a prefix for PATH_INFO
Example: Normally empty
SERVER_NAME
Available: Always
Contains: Name portion of the hostname
Example: localhost
SERVER_PORT
Available: Always
Contains: Port portion of the hostname
Example: 8080
SERVER_URL
Available: Always
Contains: Server URL as shown to the user, i.e. taking
virtual hosting into account.
Example: http://localhost:8080
http://example.com
VIRTUAL_URL
Available: When virtual hosting is in effect only
Contains: The URL shown to the user when virtual hosting is
used. Equivalent to ABSOLUTE_URL in this case.
Example: http://example.com/test/front-page
VIRTUAL_URL_PARTS
Available: When virtual hosting is in effect only
Contains: A tuple. The first element is the virtual server
URL. The last element is the physical path portion
after virtual hosting. The second element, if
present, is the inside-out virtual hosting path
(e.g. .../VirtualHostRoot/_vh_foo/...)
Example: ('http://example.com', 'test-1/front-page')
('http://example.com', 'foo', 'test-1/front-page')
VirtualRootPhysicalPath
Available: When virtual hosting is in effect only
Contains: The physical path tuple for the virtual root
object.
Example: ('', 'test')
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共39个文件
py:18个
txt:7个
rst:3个
资源分类:Python库 所属语言:Python 资源全名:plone.cachepurging-2.0.1.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
plone.cachepurging-2.0.1.tar.gz (39个子文件)
plone.cachepurging-2.0.1
MANIFEST.in 59B
PKG-INFO 26KB
README.rst 17KB
docs
request.txt 2KB
LICENSE.txt 680B
LICENSE.GPL 15KB
plone.cachepurging.egg-info
PKG-INFO 26KB
requires.txt 204B
not-zip-safe 1B
SOURCES.txt 1KB
top_level.txt 6B
namespace_packages.txt 6B
dependency_links.txt 1B
CHANGES.rst 4KB
bootstrap.py 6KB
CONTRIBUTING.rst 70B
bootstrap.sh 212B
setup.cfg 267B
setup.py 1KB
.gitignore 287B
.gitattributes 24B
buildout.cfg 311B
plone
cachepurging
utils.py 2KB
browser.py 2KB
rewrite.py 3KB
tests
test_utils.py 8KB
test_purger.py 8KB
test_views.py 4KB
test_traversable_paths.py 666B
test_rewrite.py 12KB
__init__.py 0B
test_hooks.py 12KB
interfaces.py 4KB
__init__.py 0B
purger.py 9KB
paths.py 540B
configure.zcml 1KB
hooks.py 2KB
__init__.py 80B
共 39 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功