Metadata-Version: 2.1
Name: pyams-pagelet
Version: 2.0.2
Summary: PyAMS pagelets management package
Home-page: https://pyams.readthedocs.io
Author: Thierry Florac
Author-email: tflorac@ulthar.net
License: ZPL
Keywords: Pyramid PyAMS
Classifier: License :: OSI Approved :: Zope Public License
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Framework :: Pyramid
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.7
License-File: LICENSE
Requires-Dist: setuptools
Requires-Dist: pyams-template
Requires-Dist: pyams-utils
Requires-Dist: pyramid >=2.0.0
Requires-Dist: pyramid-chameleon
Requires-Dist: pyramid-zcml
Requires-Dist: venusian
Requires-Dist: zope.component
Requires-Dist: zope.configuration
Requires-Dist: zope.contentprovider
Requires-Dist: zope.interface
Requires-Dist: zope.schema
Provides-Extra: test
Requires-Dist: pyams-viewlet ; extra == 'test'

=====================
PyAMS_pagelet package
=====================

.. contents::


What is PyAMS
=============

PyAMS (Pyramid Application Management Suite) is a small suite of packages written for applications
and content management with the Pyramid framework.

**PyAMS** is actually mainly used to manage web sites through content management applications (CMS,
see PyAMS_content package), but many features are generic and can be used inside any kind of web
application.

All PyAMS documentation is available on `ReadTheDocs <https://pyams.readthedocs.io>`_; source code
is available on `Gitlab <https://gitlab.com/pyams>`_ and pushed to `Github
<https://github.com/py-ams>`_.


What is PyAMS_pagelet?
======================

This package is a small rewrite of z3c.pagelet package for use with Pyramid and PyAMS.

PyAMS_template allows to separate a view's Python code from it's template implementation, so that
this template can be easily overriden for a given context, layer or view; it also allows to
separate a "content" template from a "layout" template which is handling all common elements in
a web page.

PyAMS_pagelet is an implementation of this pattern: a pagelet is a Pyramid view registered with
the name of the pagelet; the layout template can then just use a "${structure:provider:pagelet}"
directive to automatically insert the pagelet matching the current browser URL.


Changelog
=========

2.0.2
-----
 - added context argument to request permission checker

2.0.1
-----
 - updated Buildout configuration

2.0.0
-----
 - migrated to Pyramid 2.0

1.3.0
-----
 - added pagelet creation and update events

1.2.0
-----
 - remove support for Python < 3.7
 - added optional arguments to Pagelet constructor (which can be required when Pagelet is
   used as a mixin parent class)
 - doctests updates

1.1.2
-----
 - updated Gitlab-CI configuration
 - removed Travis-CI configuration

1.1.1
-----
 - updated pagelet creation event notification

1.1.0
-----
 - removed ZCML declarations
 - updated doctests

1.0.1
-----
 - updated pagelet templates registration to use standard (context, request, view)
   multi-adapters
 - updated doctests

1.0.0
-----
 - initial release
