• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. The Component Architecture: A... > Global Versus Local Components

Global Versus Local Components

Zope 3 consciously separates local and global components. Global components have no place associated with them and are therefore always reachable and present. They are always initialized and registered at Zope 3 startup via ZCML, as mentioned previously. Therefore, global components are not persistent, which means they are not stored in the Zope Object Database (ZODB) at all. Their state is destroyed (and should be) upon server shutdown.

Local components, on the other hand, are stored in the ZODB at the place in the object tree where they were defined. Local components always only add and overwrite previous settings; they can never remove existing ones. You can create new local components through the Web interface by clicking Manage Site. This leads you into the configuration namespace, which is always marked by ++etc++site in the URL.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint