经销商——供应链管理(Git,Mercurial)观察者
dealer的Python项目详细描述
网站首页:http://github.com/klen/dealer
作者:kirillklevenov<;horneds@gmail.com>;
作者邮箱:horneds@gmail.com
许可证:bsd
描述:logo经销商。>。_说明:
只需将scm_u revision添加到静态路径中,并在客户端浏览器缓存中获得自动控制:
模板中的某个位置:::
<;script src='/main.js?{{request.revision}'
clientside:::
<;script src='/main.js?34JHFD45HD8'
注意:您应该安装Mercurial_u以获得HG支持。
…注意:对于django<;2,请使用经销商<;3
。_徽章:
…图片:http://img.shields.io/travis/klen/dealer.svg?style=flat square
:目标:http://travis ci.org/klen/dealer
:alt:build status
。图片:http://img.shields.io/covertalls/klen/dealer.svg?style=flat square
:目标:https://coveralls.io/r/klen/dealer
:alt:coveralls
。图片::http://img.shields.io/pypi/v/dealer.svg?style=flat square
:目标:https://pypi.python.org/pypi/dealer
:alt:version
…图片::http://img.shields.io/pypi/dm/dealer.svg?style=flat square
:目标:https://pypi.python.org/pypi/dealer
:alt:downloads
…图片:http://img.shields.io/gratipay/klen.svg?style=flat square
:目标:https://www.gratipay.com/klen/
:alt:捐赠
…_内容:
…内容:
…_要求:
注意:对于django<;2,请使用经销商<;3
。_安装:
_用法:
用法
=
基本用法
----
:
存储库类型
来自经销商。自动导入自动
打印自动。版本
打印自动。标记
手动创建后端
-
**路径**-指向配置库的路径(默认为当前目录)
:
从dealer.mercurial导入后端
hg=backend('/path/to/hg/repo')
django支持
----
l'、'simple'、'env'、'null')。默认为"auto";
**经销商路径**-供应链路径。默认为当前目录;
**dealer_silent**-禁用日志警告;
**dealer_backends**-默认情况下自动搜索的后端("git"、"mercurial"、"simple"、"env"、"null");
附加到上下文处理程序::
…
上下文处理程序=['dealer.contrib.django.context\u processor']
,并在模板中使用*revision*和*tag*变量:::
<;link href="/test.css?{{revision}" rel="stylesheet"type="text/css"media="screen"/>;
<;script src="/test.js?{{revision}">;<;/script>;
def view(request):
返回request.revision
或在模板中按"request.revision"变量
烧瓶支持
----
设置
^^^^^^^^^^^^
*dealer_type*—scm_u repository的类型("auto"、"git"、"mercurial"、"simple"、"env"、"null")。默认情况下,"自动"
*经销商参数*-后端参数
app=flask('test')
经销商(app)
断言app.revision
@app.route('/')
def usage_in_view():
在模板中返回g.revision
<;link href="/test.css?{{revision}" rel="stylesheet"type="text/css"media="screen"/>;
金字塔支持
----
:
config.include('dealer.contrib.pyram')
:
def myView(请求):
revision=request.registry.dealer.revision
tag=request.registry.dealer.tag
:
revision:{dealer_revision}
tag:{{dealer_tag}
heroku支持
----
)
*tag_env_keyname*-标记的变量名(默认值:dealer_tag)
usage
^^^^
>在环境变量中设置修订和标记值。
例如在heroku.com中:
:
heroku config:setdealer_revision='3ffb6b6'
heroku配置:设置dealer_tag=v1_1
_ Bagtracker:
Bug Tracker
==
如果您有任何建议、Bug报告或
烦恼,请在https://github.com/klen/dealer/issues
_贡献:
贡献
==
_贡献者:
_许可证:
许可证
=
_链接:
…_ BSD许可证:http://www.linfo.org/bsd license.html
…_克莱恩:http://klen.github.com/
…_供应链管理:http://en.wikipedia.org/wiki/source\u control\u management
。_ git:http://en.wikipedia.org/wiki/git(软件)
。_ Mercurial:http://en.wikipedia.org/wiki/Mercurial
。| logo image::https://raw.github.com/klen/dealer/develop/docs/_static/logo.png
:宽度:100
关键词:Mercurial、Git、Static、Revision、Django、Flask
平台:任意
分类器:开发状态:4-beta
分类器:预期受众::developers
分类器:目标受众::系统管理员
分类器:自然语言::俄语
分类器:自然语言::英语
分类器:许可证::OSI批准::BSD许可证
分类器:操作系统::操作系统无关
分类器:编程语言:python
分类器:编程语言::python::3.5
分类器:环境::控制台
作者:kirillklevenov<;horneds@gmail.com>;
作者邮箱:horneds@gmail.com
许可证:bsd
描述:logo经销商。>。_说明:
只需将scm_u revision添加到静态路径中,并在客户端浏览器缓存中获得自动控制:
模板中的某个位置:::
<;script src='/main.js?{{request.revision}'
clientside:::
<;script src='/main.js?34JHFD45HD8'
注意:您应该安装Mercurial_u以获得HG支持。
…注意:对于django<;2,请使用经销商<;3
。_徽章:
…图片:http://img.shields.io/travis/klen/dealer.svg?style=flat square
:目标:http://travis ci.org/klen/dealer
:alt:build status
。图片:http://img.shields.io/covertalls/klen/dealer.svg?style=flat square
:目标:https://coveralls.io/r/klen/dealer
:alt:coveralls
。图片::http://img.shields.io/pypi/v/dealer.svg?style=flat square
:目标:https://pypi.python.org/pypi/dealer
:alt:version
…图片::http://img.shields.io/pypi/dm/dealer.svg?style=flat square
:目标:https://pypi.python.org/pypi/dealer
:alt:downloads
…图片:http://img.shields.io/gratipay/klen.svg?style=flat square
:目标:https://www.gratipay.com/klen/
:alt:捐赠
…_内容:
…内容:
…_要求:
注意:对于django<;2,请使用经销商<;3
。_安装:
_用法:
用法
=
基本用法
----
:
存储库类型
来自经销商。自动导入自动
打印自动。版本
打印自动。标记
手动创建后端
-
**路径**-指向配置库的路径(默认为当前目录)
:
从dealer.mercurial导入后端
hg=backend('/path/to/hg/repo')
django支持
----
l'、'simple'、'env'、'null')。默认为"auto";
**经销商路径**-供应链路径。默认为当前目录;
**dealer_silent**-禁用日志警告;
**dealer_backends**-默认情况下自动搜索的后端("git"、"mercurial"、"simple"、"env"、"null");
附加到上下文处理程序::
…
上下文处理程序=['dealer.contrib.django.context\u processor']
,并在模板中使用*revision*和*tag*变量:::
<;link href="/test.css?{{revision}" rel="stylesheet"type="text/css"media="screen"/>;
<;script src="/test.js?{{revision}">;<;/script>;
def view(request):
返回request.revision
或在模板中按"request.revision"变量
烧瓶支持
----
设置
^^^^^^^^^^^^
*dealer_type*—scm_u repository的类型("auto"、"git"、"mercurial"、"simple"、"env"、"null")。默认情况下,"自动"
*经销商参数*-后端参数
app=flask('test')
经销商(app)
断言app.revision
@app.route('/')
def usage_in_view():
在模板中返回g.revision
<;link href="/test.css?{{revision}" rel="stylesheet"type="text/css"media="screen"/>;
金字塔支持
----
:
config.include('dealer.contrib.pyram')
:
def myView(请求):
revision=request.registry.dealer.revision
tag=request.registry.dealer.tag
:
revision:{dealer_revision}
tag:{{dealer_tag}
heroku支持
----
)
*tag_env_keyname*-标记的变量名(默认值:dealer_tag)
usage
^^^^
>在环境变量中设置修订和标记值。
例如在heroku.com中:
:
heroku config:setdealer_revision='3ffb6b6'
heroku配置:设置dealer_tag=v1_1
_ Bagtracker:
Bug Tracker
==
如果您有任何建议、Bug报告或
烦恼,请在https://github.com/klen/dealer/issues
_贡献:
贡献
==
_贡献者:
_许可证:
许可证
=
_链接:
…_ BSD许可证:http://www.linfo.org/bsd license.html
…_克莱恩:http://klen.github.com/
…_供应链管理:http://en.wikipedia.org/wiki/source\u control\u management
。_ git:http://en.wikipedia.org/wiki/git(软件)
。_ Mercurial:http://en.wikipedia.org/wiki/Mercurial
。| logo image::https://raw.github.com/klen/dealer/develop/docs/_static/logo.png
:宽度:100
关键词:Mercurial、Git、Static、Revision、Django、Flask
平台:任意
分类器:开发状态:4-beta
分类器:预期受众::developers
分类器:目标受众::系统管理员
分类器:自然语言::俄语
分类器:自然语言::英语
分类器:许可证::OSI批准::BSD许可证
分类器:操作系统::操作系统无关
分类器:编程语言:python
分类器:编程语言::python::3.5
分类器:环境::控制台