-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename customLayout to customContentLayout
- Loading branch information
0 parents
commit 971bb90
Showing
58 changed files
with
5,447 additions
and
0 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,9 @@ | ||
[report] | ||
omit = | ||
/home/*/.buildout/eggs/* | ||
/usr/* | ||
bin/test | ||
/home/travis/buildout-cache/eggs/* | ||
/home/travis/virtualenv/* | ||
eggs/* | ||
parts/* |
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,18 @@ | ||
*.egg-info | ||
*.mo | ||
*.pyc | ||
*~ | ||
.coverage | ||
.installed.cfg | ||
.mr.developer.cfg | ||
bin/ | ||
coverage/ | ||
develop-eggs/ | ||
downloads/ | ||
eggs/ | ||
htmlcov/ | ||
include/ | ||
lib/ | ||
local/ | ||
parts/ | ||
var/ |
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,32 @@ | ||
language: python | ||
python: 2.7 | ||
sudo: false | ||
env: | ||
- PLONE_VERSION=4.x | ||
- PLONE_VERSION=5.x | ||
cache: | ||
pip: true | ||
directories: | ||
- $HOME/buildout-cache | ||
matrix: | ||
fast_finish: true | ||
before_install: | ||
- mkdir -p $HOME/buildout-cache/{eggs,downloads} | ||
- mkdir $HOME/.buildout | ||
- echo "[buildout]" > $HOME/.buildout/default.cfg | ||
- echo "download-cache = $HOME/buildout-cache/downloads" >> $HOME/.buildout/default.cfg | ||
- echo "eggs-directory = $HOME/buildout-cache/eggs" >> $HOME/.buildout/default.cfg | ||
- pip install zc.buildout | ||
- sed -ie "s#test-4.x.cfg#test-$PLONE_VERSION.cfg#" buildout.cfg | ||
install: | ||
- buildout -N -t 3 annotate | ||
- buildout -N -t 3 | ||
script: | ||
- bin/code-analysis | ||
- bin/test | ||
after_success: | ||
- bin/createcoverage | ||
- pip install -q coveralls | ||
- coveralls | ||
notifications: | ||
irc: irc.freenode.org#plone-testing |
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,312 @@ | ||
Changelog | ||
========= | ||
|
||
4.0.0 (unreleased) | ||
------------------ | ||
|
||
Incompatibilities: | ||
|
||
- Removed pluggable grid framework | ||
[agitator] | ||
|
||
- Moved ``ILayoutAware.content`` to ``ILayoutAware.customContentLayout``. | ||
Added ``ILayoutAware.content`` as layout independent, but layout | ||
like, tile data storage | ||
[datakurre] | ||
|
||
- Moved functions ``getDefaultAjaxLayout``, ``getDefaultSiteLayout``, ``getLayout`` and ``getLayoutAwareSiteLayout`` to ``.layoutbehavior`` in order to avoid circular imports | ||
(all deprecated now, see section New). | ||
[jensens] | ||
|
||
- Change default grid to bs3 | ||
[vangheem] | ||
|
||
- Moved views from ``.layoutbehavior`` to new module ``.layoutviews`` in order to avoid circular imports. | ||
Deprecated deferred imports are in place. | ||
[jensens] | ||
|
||
- Drop IOmittedField marker from layout behavior fields not meant to be | ||
displayed on legacy Deco UIs | ||
[jensens] | ||
|
||
- Drop official Plone 4.2 support. | ||
[jensens] | ||
|
||
New: | ||
|
||
- Get layouts always by adapting with ``ILayoutAware``. | ||
This introduces a generic adapter and a behavior adapter. | ||
Deprecated the formerly used functions ``getLayout`` | ||
``getDefaultSiteLayout`` just calls ``ILayoutAware().site_layout`` and is deprected. | ||
``getLayout`` just calls ``ILayoutAware().content_layout`` and is deprecated. | ||
|
||
- Behavior shortname ``plone.layoutaware`` added. | ||
[jensens] | ||
|
||
- ``ILayoutAware`` is now also responsible to lookup the behaviors. | ||
[jensens] | ||
|
||
Fixes: | ||
|
||
- typo in README.rst | ||
[fgrcon] | ||
|
||
- A tile raising an 401 Unauthorized on traversal, | ||
results in a status rewriting to a 302 which results in 200 login form. | ||
The whole login form page then is rendered as the tile contents. | ||
This patch catches the 401 by providing a custom exception handler. | ||
The 401 is catched and ignored. This is not pefect yet and need some work, | ||
but it at least does not break design and intended behavior of tiles. | ||
[jensens] | ||
|
||
- Test failure in Plone 5 | ||
[jensens] | ||
|
||
- Housekeeping: ZCA decorators, sorted imports, line-lengths and related. | ||
[jensens] | ||
|
||
- Reformat documentation. | ||
[gforcada] | ||
|
||
- Update travis configuration. | ||
[gforcada] | ||
|
||
3.1.0 (2016-03-28) | ||
------------------ | ||
|
||
New: | ||
|
||
- Don't make a tile exception break other tiles (closes `#27`_). | ||
[rodfersou, datakurre] | ||
|
||
- Provide new getLayoutsFromDirectory utility to get layouts from any | ||
plone.resource directory, not just the base resource directory | ||
[vangheem] | ||
|
||
- Index layout data; When collective.dexteritytextindexer is present, | ||
its *Dynamic SearchableText indexer behavior* must be enabled for content | ||
type | ||
[vangheem, datakurre] | ||
|
||
- Cleanup tile data on save/edit | ||
[vangheem] | ||
|
||
|
||
3.0.1 (2015-09-23) | ||
------------------ | ||
|
||
- Remove the default 'Custom layout' display menu registration for | ||
'layout_view', because it was not possible to customize it with more exact | ||
registration | ||
[datakurre] | ||
- Fix the default view to report template name as 'template-layout' | ||
[datakurre] | ||
|
||
3.0.0 (2015-09-16) | ||
------------------ | ||
|
||
- Change layout behavior default view name from ``view`` to ``layout_view`` | ||
[datakurre] | ||
|
||
- Add to be able to set default grid system in registry settings | ||
[vangheem] | ||
|
||
- Add support for provide more than one layout with a layout directory | ||
and manifest (replaces removed layout variants) | ||
[vangheem] | ||
|
||
- Add ``contentlayout`` resource type with ``plone.availableContentLayouts`` | ||
vocabulary and ``++contentlayout++`` traverser | ||
[vangheem] | ||
|
||
- Add ``contentLayout`` field to layoutbehavior to select the rendered layout | ||
from centrally managed content layouts | ||
[vangheem] | ||
|
||
- Add content type specific registry configuration with key | ||
``plone.app.blocks.default_layout.portal_type`` for used default content | ||
layout when custom layout is not defined | ||
[vangheem] | ||
|
||
- Add to check ``plone.app.blocks.default_layout`` registry key for a default | ||
content layout path when content type specific default content layout path is | ||
not set | ||
[datakurre] | ||
|
||
- Fixed layout behavior to apply Plone outputfilters for rendered content | ||
[datakurre] | ||
|
||
- Add default grid system registry setting | ||
[vangheem] | ||
|
||
- Restore support for Plone 4.2.x | ||
[datakurre] | ||
|
||
- Remove layout variants introduced in 2.0.0, in favor of ability to | ||
provide more than one layout with a layout directory and manifest by | ||
using multiple ``[...layout]`` directive in the same manifest | ||
[vangheem] | ||
|
||
2.1.2 (2015-06-10) | ||
------------------ | ||
|
||
- Fix issue where grid transform did replaced class names instead of appending | ||
to them | ||
[datakurre] | ||
|
||
2.1.1 (2015-06-10) | ||
------------------ | ||
|
||
- Fix BS3 grid transform to only introduce offset when the tile position is | ||
greater than the current position in the current row | ||
[datakurre] | ||
|
||
- Fix issue where tiles with empty response or syntax error broke tiles | ||
transform (add to log syntax errors instead) | ||
[datakurre] | ||
|
||
2.1.0 (2015-05-25) | ||
------------------ | ||
|
||
- Add support for indexing layout field into SearchableText index when | ||
collective.dexteritytextindexer is installed and its Dynamic SearchableText | ||
indexer behavior is enabled for the indexed content type with Layout support | ||
behavior | ||
[datakurre] | ||
|
||
2.0.0 (2015-04-21) | ||
------------------ | ||
|
||
- Fix package dependencies; remove dependency on unittest2. | ||
[hvelarde] | ||
|
||
- Change blocks transforms to be opt-in for only published objects e.g. views | ||
or requests with IBlocksTransformEnabled (marker) interface [fixes #11] | ||
[datakurre] | ||
|
||
- Change tags with data-tiles-attrs to be completely replaced (by | ||
replace_with_children instad of replace_content) to restore original | ||
design and support for site layout tiles in HTML document head tag | ||
[datakurre] | ||
|
||
- Change default site layout to be optional by adding an implicit | ||
main_template-based site layout when the default site layout is not set | ||
[datakurre] | ||
|
||
- Change to retry resolveResources with 301 or 302 response when redirect | ||
location is for the same site | ||
[datakurre] | ||
|
||
- Add support for AJAX site layout for requests with ``ajax_load`` parameter | ||
either by getting a layout from a reqistry key ``plone.defaultAjaxLayout`` | ||
or by using an implicit main_template-based AJAX layout | ||
[simahawk, datakurre] | ||
|
||
- Add extensible CSS grid transform with built-in transforms for Deco | ||
and Bootstrap 3 grid systems | ||
[bloodbare, ACatila] | ||
|
||
.. code:: xml | ||
<utility | ||
provides=".gridsystem.IGridSystem" | ||
component=".gridsystem.DecoGridSystem" | ||
name="deco" | ||
/> | ||
.. code:: html | ||
|
||
<html data-gridsystem="deco"> | ||
... | ||
<div data-grid='{"type": "row"}'> | ||
<div data-grid='{"type": "cell", | ||
"info": {"xs": "false", | ||
"sm": "False", | ||
"lg": "True", | ||
"pos": {"x":1, | ||
"width": 12}}}'> | ||
</div> | ||
</div> | ||
</html> | ||
|
||
.. code:: html | ||
|
||
<div class="row"> | ||
<div class="cell position-1 width-12"> | ||
</div> | ||
</div> | ||
|
||
- Add default view for ILayoutAware content and register a localizable display | ||
menu item called *Custom layout* for it when *plone.app.contentmenu* is | ||
present | ||
[datakurre] | ||
|
||
- Add Layout-fieldset for ILayoutAware behavior | ||
[datakurre] | ||
|
||
- Add support to use the whole tile as its body when both head and body tags | ||
are missing (add support for using Dexterithy display widgets as tiles) | ||
[datakurre] | ||
|
||
- Add support for layout variants (for supporting multiple layouts in a single | ||
resource folder) | ||
[datakurre] | ||
|
||
.. code:: ini | ||
[sitelayout] | ||
... | ||
[sitelayout:variants] | ||
document_layout = document.html | ||
- Add experimental support for tile-specific Diazo-rules | ||
with data-attribute ``data-rules="/++sitelayout++name/rules.xml"``. | ||
[datakurre] | ||
|
||
- Fix issue with tile without body-tag breaking the tile composition (fixes | ||
issues with some p.a.standardtiles returning only <html/> in some conditions) | ||
[datakurre] | ||
|
||
- Fix issue where <![CDATA[...]]> block was quoted (and therefore broken) by | ||
lxml serializer | ||
[datakurre] | ||
|
||
- Fix issue where XML parser dropped head for layout with CRLF-endings | ||
[datakurre] | ||
|
||
- Fix plone.app.blocks re-install to not reset existing plone.defaultSiteLayout | ||
and plone.defaultAjaxLayout settings (by setting the values in a custom | ||
setuphandler) | ||
[datakurre] | ||
|
||
- Fix and update tests, PEP8 | ||
[gyst, datakurre, gforcada] | ||
|
||
- Fix to set the merging request flag before testing the merge results to allow | ||
staticly placed tiles in content templates to be rendered properly. | ||
[cewing] | ||
|
||
- Solve issue with VHM and tile rendering. Fixes | ||
https://dev.plone.org/ticket/13581 [ericof] | ||
|
||
- Add z3c.autoinclude support | ||
[cdw9, calvinhp] | ||
|
||
1.1 (2012-12-17) | ||
---------------- | ||
|
||
- make sure to use correct url of tile | ||
[vangheem] | ||
|
||
- handle not found errors while rendering tiles so layout | ||
isn't borked | ||
[vangheem] | ||
|
||
1.0 (2012-06-23) | ||
---------------- | ||
|
||
- initial release. | ||
[garbas] | ||
|
||
.. _`#27`: https://github.com/plone/plone.app.blocks/issues/27 |
Oops, something went wrong.