Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
305 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[run] | ||
source = z3c.template | ||
|
||
[report] | ||
precision = 2 | ||
exclude_lines = | ||
pragma: no cover | ||
if __name__ == '__main__': | ||
raise NotImplementedError | ||
self.fail | ||
raise AssertionError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ src/*.egg-info | |
bin | ||
develop-eggs | ||
parts | ||
.coverage | ||
htmlcov/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
language: python | ||
sudo: false | ||
env: | ||
- TOXENV=py26 | ||
- TOXENV=py27 | ||
- TOXENV=py33 | ||
python: | ||
- 2.7 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
- pypy | ||
- pypy3 | ||
install: | ||
- travis_retry pip install tox | ||
- pip install -U pip setuptools | ||
- pip install -U coverage coveralls | ||
- pip install -U -e .[test] | ||
script: | ||
- tox | ||
- coverage run -m zope.testrunner --test-path=src | ||
after_success: | ||
- coveralls | ||
notifications: | ||
email: false | ||
cache: pip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
============== | ||
z3c.template | ||
============== | ||
|
||
|
||
.. image:: https://img.shields.io/pypi/v/z3c.template.svg | ||
:target: https://pypi.python.org/pypi/z3c.template/ | ||
:alt: Latest release | ||
|
||
.. image:: https://img.shields.io/pypi/pyversions/z3c.template.svg | ||
:target: https://pypi.org/project/z3c.template/ | ||
:alt: Supported Python versions | ||
|
||
.. image:: https://travis-ci.org/zopefoundation/z3c.template.svg?branch=master | ||
:target: https://travis-ci.org/zopefoundation/z3c.template | ||
|
||
.. image:: https://coveralls.io/repos/github/zopefoundation/z3c.template/badge.svg?branch=master | ||
:target: https://coveralls.io/github/zopefoundation/z3c.template?branch=master | ||
|
||
|
||
This package allows you to register templates independently from view code. | ||
|
||
In Zope 3, when registering a ``browser:page`` both presentation and computation | ||
are registered together. Unfortunately the registration tangles presentation | ||
and computation so tightly that it is not possible to re-register a different | ||
template depending on context. (You can override the whole registration but | ||
this is not the main point of this package.) | ||
|
||
With z3c.template the registration is split up between the view and the | ||
template and allows to differentiate the template based on the skin layer and | ||
the view. | ||
|
||
In addition this package lays the foundation to differentiate between | ||
templates that provide specific presentation templates and generic layout | ||
templates. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[bdist_wheel] | ||
universal = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
# this is a namespace package | ||
try: | ||
import pkg_resources | ||
pkg_resources.declare_namespace(__name__) | ||
except ImportError: | ||
import pkgutil | ||
__path__ = pkgutil.extend_path(__path__, __name__) | ||
__import__('pkg_resources').declare_namespace(__name__) # pragma: no cover |
Oops, something went wrong.