ZopeInAnger
Zope3 in Anger
Introduction
Zope can be big and intimidating - like other frameworks. It actually takes time to understand Zope and what it is about. ZopeInAnger is meant to help you develop Zope programs without necessarily understanding the full API (as if that were possible for mere mortals) and without putting unit tests and interface definitions up front.
Here we follow a cookbook approach with a piece of code following a "How do I...?" type question.
Use ZopeInAngerComments page to add your comments.
Contributing
If you know the answer to one of the questions create a new page for it on this wiki (or point to an existing one). If you have a question that is not answered add it to this page (in fact quite a number of questions could move from the FAQ here). Valid questions are not only about Zope, but also about system administration and Python.
How do I...?
Starting up
How do I find documentation in anger?
What do I really need to know about Zope?
How do I set up automatic reloads when I make changes to configuration or code?
Packages, plugins, extensions
What are eggs and how to use and create them?
What is Zope Buildout and how to use it?
Where can I find plugins and extensions?
How should I use packages from Zope 3 repository?
What is Deployment? What is Development?
How do I set up the environment?
How do I add an egg dependency?
Publication and Traversal
How do I grab variables from arbitrary URLs?
[How do I get and set HTTP headers?]?
Permissions
How do I query the ID of the current user?
How do I query the role(s) of the current user?
How do I allow for logging out?
Zope Page Templates (ZPT)
Questions?
Formlib
[What are form_fields?]?
How do I use dynamic fields in Formlib?
How do I pass a (hidden) parameter to the next page?
How do I avoid automatic submit on pressing Enter?
[How do I re-render the same page to pass error messages to a form?]?
Testing
How do I add utilities for testing?
How do I set up event subscribers?
How do I enable annotations for unit testing?
How do I set up adapters for testing?
How do I set up a vocabulary for testing?
How do I set up a new skin for testing?
How do I set up IIntIds utility for and event subscriber for ObjectAddedEvent for testing?
