Skip to main content

A layout component package for Grok.

For details see doctest.

Changelog

5.1 (2026-03-02)

  • Move package metadata from setup.py to pyproject.toml.

  • Add support for Python 3.14.

  • Drop support for Python 3.9.

5.0 (2025-06-18)

  • Replace pkg_resources namespace with PEP 420 native namespace.

4.1 (2025-05-27)

  • Add support for Python 3.12, 3.13.

  • Drop support for Python 3.7, 3.8.

4.0 (2023-08-28)

  • Drop support for Python 2.7, 3.4, 3.5, 3.6.

  • Add support for Python 3.7, 3.8, 3.9, 3.10, 3.11.

  • Update to zope.component >= 5.

3.0.3 (2018-02-08)

  • Bugfix: Exception pages did not report their contents as text/html, but used text/plain instead (from their zope.errorview base classes). Layouts and pages are about HTML however and the sensible default content type for those is text/html.

3.0.2 (2018-01-17)

  • Replace the use of grok.implements() with the @grok.implementer(). directive throughout.

3.0.1 (2018-01-12)

  • Rearrange tests such that Travis CI can pick up all functional tests too.

3.0.0 (2018-01-10)

  • Python 3 compatibility.

1.6.1 (2016-02-15)

  • Update tests.

1.6 (2012-05-10)

  • Moved the lookup for a specific layout to a helper method, so other layout aware components can use the same lookup.

1.5.1 (2012-05-02)

  • Do not require the [role] extra of grokcore.security anymore.

1.5 (2012-05-02)

  • Move the layout-aware form components to the grok package where the dependency with grokcore.formib can be mixed in.

  • Add a directive layout to select a different type of layout. A layout type is defined on a Layout component with the help of the grokcore.component.provides directive. It defaults to ILayout for compatibility.

  • Change how the static resources are associated to a Layout, using the new name __static_name__ set by the template grokker.

1.4 (2011-07-13)

  • Rename megrok.layout to grokcore.layout. application_url and flash utilities have been removed, *Form components have been renamed to *FormPage.

  • Added ExceptionPage, NotFoundPage and UnauthorizedPage layout-aware components.

  • Fixed default template for grokcore.layout.Form component.

1.3 (2011-01-12)

  • Compatibility with grokcore.view 2.3.

1.2.0 (2010-12-16)

  • Update to use the new TemplateGrokker from grokcore.view.

1.1.0 (2010-03-03)

  • z3c.flashmessage has been dropped in favor of grokcore.message. This new package takes in charge the registration of the utilities and retains the existing API. The back-compatibility is assured.

1.0.2 (2010-02-26)

  • The existence test for the application_url site-lookup was wrongly using a “if not” statement. In a case of a container, the object is evaluated to False if it’s empty. We now use a proper “if .. is None”. [trollfot]

1.0.1 (2010-02-25)

  • Forms now inherit from UtilityView and therefore get the application_url and flash methods. Tests have been added to garanty the behavior. [trollfot]

1.0 (2010-02-25)

  • The dependencies have been heavily cleaned up. All zope.app packages have been removed. We are now running with minimal dependencies and using the latest ZTK. This release will probably not run on Grok 1.0. You will need Grok 1.1rc1 to be able to use it. [trollfot]

  • Added a component called UtilityView that provides two useful methods : application_url, flash. These methods are almost a copy of what can be found in the Grok package. The application_url is using a simple getSite hook to get the root of the application. This might be irrelevant for some applications and can be overriden. [trollfot]

  • Added a module called ‘messages’ that contains the flash messages utilities. This module is NOT grokked and must be grokked manually. This prevents conflicts with grokui.admin’s own definitions of the very same components. It also allows you to override the flash method to use something else than z3c.flashmessage and then not be bothered by useless utilities. The flash messages utilities can be registered by including the messages.zcml file in your own project or package ZCML file. [trollfot]

0.9 (2009-09-26)

  • Add default templates to form which doesn’t contain an html and body tag. [sylvain]

  • Add an AddForm, EditForm and DisplayForm, all aware of the layout component. [sylvain]

0.8 (2009-09-17)

  • Remove the CodePage, since CodeView have been removed from grokcore.view. [sylvain]

0.7 (2009-09-15)

  • Add a CodePage to be compatible with the last version of grokcore.view (higher than 1.9). This breaks compatibility with previous release. You need to change any Page using a render method to a CodePage. [sylvain]

  • The content property on a Page is no longer a property, but a method as it’s hidding exceptions. You might need to update your code to reflect that change as well. [sylvain]

  • Fix MANIFEST.in. [sylvain]

0.6 (2009-09-14)

  • switch the arguments order in calling the layout [cklinger, sylvain]

  • add the CHANGES.txt [cklinger]

0.5 (2009-07-24)

  • remove the grok dependency [cklinger trollfot]

Release files for grokcore.layout 5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for grokcore.layout 5.1
File Size Uploaded
grokcore_layout-5.1.tar.gz 19.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for grokcore.layout 5.1
File Interpreter ABI Platform
grokcore_layout-5.1-py3-none-any.whl Python 3 none any Details

Total release size: 41.5 kB

Release files / grokcore_layout-5.1.tar.gz

Download URL grokcore_layout-5.1.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9f8ac8f397a921ced164d7d34e1a7506c7edbd9eddd514a78c1cf12b72d903eb
BLAKE2b-256 checksum
How to use checksums
e2c5fdb2949456014cc9fee1466f8e3e0e153b3b5a4e041bcb99f28a0aed9b11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / grokcore_layout-5.1-py3-none-any.whl

Download URL grokcore_layout-5.1-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d96dd73c6e9d21ab118b1f5cb5dc8f10c16917fe8997a747d59ac0afbdb06ea
BLAKE2b-256 checksum
How to use checksums
57d1d46b830803b4ac92775f79290212c2d231ec3a21759e85b36065fee7fcc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

5.1 This release

2 release files

5.0

2 release files

4.1

2 release files

4.0

2 release files

3.0.3

1 release file

3.0.2

1 release file

3.0.1

1 release file

3.0.0

1 release file

1.6.1

1 release file

1.6

1 release file

1.5.1

1 release file

1.5

1 release file

1.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page