CMFDynamicViewFTI is a product for dynamic views in CMF.
Project description
Overview
CMFDynamicViewFTI is a product for dynamic views in CMF. The product contains an additional base class for types and a new factory type information (FTI).
The FTI contains two new properties for the default view method and supplementary view methods. The queryMethodID functionality used for alias lookups is enhanced to support a new keyword (dynamic view).
The BrowserDefaultMixin class adds some methods to classes. It is not required to make use of the basic features but it is recommend to subclass your types from the class to gain more functionality.
There are two event subscribers registered:
- zope.container.interfaces.IContainerModifiedEvent
unset default page if target no longer exists
- zope.lifecycleevent.interfaces.IObjectMovedEvent
rename default page if target was renamed
Source Code
Contributors please read the document Process for Plone core’s development
Sources are at the Plone code repository hosted at Github.
Changelog
7.0.2 (2023-10-07)
Internal:
Update configuration files. [plone devs] (cfffba8c)
7.0.1 (2023-04-15)
Internal:
Update configuration files. [plone devs] (3333c742)
7.0.0 (2022-12-01)
Bug fixes:
Final release for Plone 6.0.0. (#600)
7.0.0a1 (2022-01-19)
Breaking changes:
Plone 6: always use lines for the view_methods property. Part of issue 3305. Also, remove Python 2 code and the six dependency. [maurits] (#3305)
6.0.3 (2020-04-22)
Bug fixes:
Minor packaging updates. (#1)
6.0.2 (2019-06-27)
Bug fixes:
Fixes plone/Products.CMFPlone#2874 Fatal crash: Fatal Python error: Cannot recover from stack overflow Which crashes the interpreter. [jensens] (#20)
6.0.1 (2019-02-08)
Bug fixes:
Fixed fallback to default view. [gbastien] (#16)
Fix some deprecation warnings. [gforcada] (#18)
6.0.0 (2018-11-05)
Breaking changes:
Use ulines for view_methods in py3. Fix test for py3. [pbauer] (#15)
6.0.0 (unreleased)
Breaking changes:
Test using plone.app.contenttypes instead of Archetypes. [davisagli]
Bug fixes:
Fix adapter lookup on Python 3. [ale-rt]
4.1.7 (2018-03-12)
Bug fixes:
Fix missing ClassType in Python 3
4.1.6 (2018-01-30)
New features:
Add Python 2 / 3 compatibility [davilima6]
4.1.5 (2017-02-12)
Bug fixes:
Don’t instantiate browser view to check for existence. [malthe]
4.1.4 (2016-05-06)
Bug fixes:
Removed docstrings from some methods to avoid publishing them. From Products.PloneHotfix20160419. [maurits]
4.1.3 (2015-07-29)
Cleanup: PEP8 et al., security/zca via decorators, … [jensens]
4.1.2 (2015-06-03)
4.1.1 (2015-05-13)
Removed CMFDefault dependency [tomgross]
4.1.0 (2015-03-17)
When a default object is used as layout for a container, if the default object is deleted or moved with cut and paste, reset the default_page property of the container. [gotcha]
When a default object is used as layout for a container, if the default object is renamed (iow id is changed), fix the default_page property of the container. [gotcha]
4.0.6 (2015-03-13)
Ported tests to plone.app.testing [tomgross]
Removed BBB interface.py module [tomgross]
pep8ify [tomgross]
4.0.5 (2013-05-23)
Add i18n translation domain to the zcml to remove UserWarning.
4.0.4 (2013-04-06)
Add cmf.ModifyViewTemplate zcml permission for “Modify view template” [toutpt]
4.0.3 (2012-08-29)
Import from zope.browsermenu. [hannosch]
4.0.2 - 2011-03-28
Revert the BrowserDefaultMixin.__browser_default__ change, it is unnecessary. Instead set the (Default) view alias to (dynamic view). [elro]
4.0.1 - 2011-03-28
Provide BrowserDefaultMixin.__browser_default__ so subclasses do not have to provide their own. [elro]
Fix BrowserDefaultMixin.__call__ (never normally used in vanilla Plone) to work with views. [elro]
Avoid deprecation warning in Zope 2.13. [davisagli]
Fixed test setup to work with ZCA-based GenericSetup profile registry. [davisagli]
4.0 - 2010-07-18
No changes.
4.0b1 - 2009-12-27
Removed BBB code for CMF prior to 1.6 and fixed import errors in tests. [hannosch]
4.0a1 - 2009-11-13
Fixed dependency on zope.app.container for the IAdding interface. [hannosch]
Don’t use manage_page_ macros anymore. [hannosch]
Standardized the interface location to an interfaces module. [hannosch]
Updated package metadata. [hannosch]
Declared package dependencies and fixed deprecation warnings for use of Globals. [hannosch]
Purged old Zope 2 Interface interfaces for Zope 2.12 compatibility. [elro]
3.0.3 - unreleased
Adjusted deprecation warnings to point to Plone 4.0 instead of Plone 3.5 since we changed the version numbering again. [hannosch]
3.0.2 - 2008-03-26
Made tests compatible with CMF 2.2. [hannosch]
3.0.1 - 2007-10-07
Copied addWithPresettings.pt from GenericSetup 1.3 branch r79408. This fixes a startup error in buildouts caused by the move to an egg. [fschulze]
Adding a Dynamic View FTI through ZMI is back. This closes https://dev.plone.org/plone/ticket/6976 [glenfant]
Removed migrate module, which didn’t work in CMF 2.1 anymore. Use GenericSetup profiles for handling portal types instead. This closes http://dev.plone.org/plone/ticket/6899. [hannosch]
3.0 - 2007-08-09
No changes. [hannosch]
3.0rc1 - 2007-07-09
Removed some BBB code. [hannosch]
Removed five:registerPackage. [hannosch]
3.0b1 - 2007-05-01
Updated some import locations. We require a minimum of Zope 2.10 now. [hannosch]
Rename menus - turns out dotted names don’t really work with the ZCML magic that’s creating interfaces on the fly (it’s akin to having a variable name with a dot in it) [optilude]
Use new displayviews menu to find view titles; rework Z3 view test to use a test zcml file. [mj]
2.1.2 - 2007-04-22
Removed bogus test setup. All the stuff is done by the layer anyway. [stefan]
Removed tests/runalltests.py and tests/framework.py. To run tests use Zope’s testrunner: ./bin/zopectl test –nowarn -s Products.CMFDynamicViewFTI [stefan]
2.1.1 - 2007-02-10
Removed the view alias of index.html, as this would block uploading of files called index.html into folders. You can enable this in your own types if you want. [hannosch]
2.1.0 - 2006-09-08
Implemented fallback to default view: If a selected view (i.e. template) does not exist, return the default view instead of - ultimately - NotFound. You can enable this option by setting the FTI’s new ‘default_view_fallback’ property to True. [stefan]
Converted dummy test sample types to be extension profile based. This profile is only registered during test runs. [hannosch]
Slightly adjusted the tests to new CTC version. [hannosch]
2.0.0 - 2006-05-15
Merged z3-views-integration branch. [svincic]
Making use of Zope 3 interfaces with proper reverse bridges. [optilude]
Fix tests to pass if Five/Zope3 is installed. [hannosch]
1.0.4 - 2006-03-19
Made ‘safe_callable’ truly safe by using ‘safe_hasattr’.
Made tests use CMFTestCase. There is no Plone dependency whatsoever.
Fixed a bug in getViewMethod. A present, but empty ‘layout’ attribute now also returns the default view instead of ‘’. Returning the empty string sends PortalContent.__call__() into a loop. [stefan]
1.0.3 - 2006-02-25
Added conditional import for typeClasses to make the code CMF1.6 compatible while staying CMF1.5 backwards compatible. [hannosch]
1.0.2 - 2005-12-18
Change getViewMethod’s ‘enforce_available’ argument to default to False instead of True. If someone goes to the trouble of either using python or adding a property to indicate a specific template as the default layout, we should let them. [rafrombrc]
1.0.1 - 2005-08-09
Improved Plone 2.1 integration: getDefaultPage. Replace try/except with a better checking for Plone. Bonus: whitespaces cleanup. [deo]
Stop Acquisition for default_page. [panjunyong]
1.0.0 - 2005-07-29
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file Products.CMFDynamicViewFTI-7.0.2.tar.gz
.
File metadata
- Download URL: Products.CMFDynamicViewFTI-7.0.2.tar.gz
- Upload date:
- Size: 27.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0a31489e8d2cd42733afa518906ec7cb73f38fb84e977fbed1c4e4fb39877b1 |
|
MD5 | 7c187df964cc319039223013215ec2f6 |
|
BLAKE2b-256 | 60237cf0b669f3185f3edab5935e0cb54b59c541f6cbff04a6c3a012b8c630e2 |
File details
Details for the file Products.CMFDynamicViewFTI-7.0.2-py3-none-any.whl
.
File metadata
- Download URL: Products.CMFDynamicViewFTI-7.0.2-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97655971d97f0d0b9ee9b977850157ff071384662ec5c5356d8231dd4c394057 |
|
MD5 | 0009862f4115d437e99b0dc70ce2e656 |
|
BLAKE2b-256 | 2c62cddf8b99723e9378f6b748d3e61f62a40161c7cbbe62ac7cf58ba068c05f |