Zope Is a Framework¶
Zope relieves the developer of most of the onerous details of Web application development, such as data persistence, data integrity, and access control, allowing one to focus instead on the problem at hand. It allows you to utilize the services it provides to build web applications more quickly than other languages or frameworks, and to write web application logic in the Python language. Zope also comes with one solution that allow you to “template” text, XML, and HTML: Zope Page Templates (ZPT).
4.11. Customizing your Zope instance¶
Zope’s configuration is done via the file ‘$INSTANCE_HOME/etc/zope.conf’. This contains numerous configuration directives for customization.
The zope.conf file features extensive inline documentation, which we will not reproduce here. Instead, we will give an overview and some additional hints for the most-widely used directives:
Tip: use search to find out the zope.conf in a plone installation.
ZOPE naked
Usually when we see a zope installation, it includes many products coming from other applications. the picture below shows the thing provided by Zope it self
it include intotal 28 objects can be utilized. the core objects are:
file/image/folder/(user folder, folder ordered) btreefolder
content related: virtual hosting - > site root -> page template -> file/image/folders
Cache related: http cache, ram cache
security related: set access rule
interfaces related: dtml document/method, external metod,zsql method
other helpful things such seach tool, catalog, vacabulary, etc.
that is all about the naked zope.
==
summarized in Zope term,
Basic Zope Objects¶
Zope ships with objects that help you perform different tasks. By design, different objects handle different parts of your application. Some objects hold your content data, such as word processor documents, spreadsheets, and images. Some objects handle your application’s logic by accepting input from a web form, or by executing a script. Some objects control the way your content is displayed, or presented to your viewer, for example, as a web page or via email.
In general, basic Zope objects take on one of three types of roles:
-
Content
- Zope objects like documents, images, and files hold different kinds of textual and binary data. In addition to objects in Zope containing content, Zope can work with content stored externally, such as information in a relational database. Presentation
- You can control the look and feel of your site with Zope objects that act as web page “templates”. Zope comes with two facilities to help you manage presentation: Zope Page Templates (ZPT) and Document Templates (DTML). In the first part of the book we will only cover page templates and later on expand on document templates. If you already know HTML, page templates are easier to work with and more limited in their options. For some of the more advanced tasks DTML can be a better option as explained later on. Logic
- Scripting business logic in Zope is done using Python. “Logic” is any kind of programming that does not involve presentation, but rather involves the carrying out of tasks such as changing objects, sending messages, testing conditions, and responding to events.
Zope also has other kinds of objects that fit into none of these categories, which are explored further in the chapter entitled Zope Services. You may also install “third party” Zope objects , defined in Python packages, to expand Zope’s capabilities. You can browse a list of packages specifically aimed at Zope at the Python Package Index.
=> content objects: folders, files, images,
=> Presenrtation objects: page templates, document templates.
=> logic objects: python scripts
=> services objects: hosting, security, etc.