Plone 4 developer manual


















Various techniques exist to bridge the Archetypes schema to the Zope 3 schema notation, but none are particularly attractive. These are generated and scribbled onto a class at startup. Dexterity uses attribute notation, so whereas in Archetypes you may write context.

Archetypes has its own implementation of fields and widgets. It is difficult to re-use these in standalone forms or templates, because they are tied to the idea of a content object. Dexterity uses the de-facto standard z3c. Archetypes does not support add forms. Dexterity does, via z3c. Dexterity does away with all that boilerplate, and tries to minimise repetition. It is possible to extend the schemata of existing Archetypes types with the archetypes.

Dexterity is built from the ground up to support through-the-web type creation. There are products that achieve the same thing with Archetypes types, but they have to work around a number of limitations in the design of Archetypes that make them somewhat brittle or slow.

Dexterity also allows types to be developed jointly through-the-web and on the filesystem. For example, a schema can be written in Python and then extended through the web.

As of version 5 of Plone, Dexterity is the preferred way of creating content types. Additionally, Archetypes was removed from Plone core in 5. Archetypes can still be added to Plone 5 to support Archetypes-based add-ons, but it will not function when running Plone using Python 3. Theme Reference. Developer Manual. The documentation is hosted on GitHub and information how to contribute can be found at Contributing to the documentation.

The readme is the first entry point for most people to your package. It should be formatted using reStructuredText reST in order to get formatted properly by those systems. Simple packages with limited functionality can get by with a single page of narrative documentation. If your project is moderately complex, you may want to set up your documentation with multiple pages. The best way to do this is to add Sphinx to your project and host your docs on readthedocs.

It is meant for random access to remind the reader of how a particular class or method works, rather than for reading in its entirety. If the codebase is written with docstrings, API documentation can be automatically generated using Sphinx.

The changelog is a record of all the changes made to the package and who made them, with the most recent changes at the top. This is maintained separately from the git commit history to give a chance for more user-friendly messages and to and record when releases were made. If a change was related to a bug in the issue tracker, the changelog entry should include a link to that issue. Information about the open source license used for the package should be placed within the docs directory.

Plone documenttion style guide. Previous Next.



0コメント

  • 1000 / 1000