1. Trang chủ
  2. » Công Nghệ Thông Tin

zope bible phần 2 potx

65 130 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Nội dung

[...]... 3/1/ 02 9:38 AM Page 45 Chapter 3 ✦ Zope Objects and the Management Interface Importing and exporting objects If you work with multiple Zope sites, you may want to export an object to a different installation of Zope instead of recreating it there from scratch Using Zope s Import/Export facilities you can copy objects between two different Zope installations To export an object to a different Zope installation,... online by following the instructions in Chapter 2 for your particular installation New Feature In Version 2. 5, Zope incorporated new functionality that made it possible to update Products that had been installed by refreshing them Previously, upgrading a product required restarting Zope 59 c4857-3 Ch03.F 60 3/1/ 02 9:38 AM Page 60 Part I ✦ Getting Started with Zope Managing the database This link will take... index_html document has at its beginning a line that says: 51 c4857-3 Ch03.F 52 3/1/ 02 9:38 AM Page 52 Part I ✦ Getting Started with Zope Overriding the standard header This concept can be taken one step further by using a special feature called acquisition in Zope Say, for example, you have a subfolder named “NotBlue.” We want every document in this folder to have the... Information Note The Restart button only appears when Zope is being run on a platform that is capable of supporting restarts That is, under Windows 9x, Zope will not display the button, but if you install Zope as a service on Windows NT, it will UNIX-like operating systems generally support the restart functionality c4857-3 Ch03.F 3/1/ 02 9:38 AM Page 59 Chapter 3 ✦ Zope Objects and the Management Interface Figure... the server, Zope will save the export file to the var directory of the current Zope installation (refer to Chapter 2 if you do not know where this directory is) After exporting a file to the server, you will be presented with a message notifying you that the export was successful You can only export one object at a time Figure 3-9: The Zope Import & Export screen 45 c4857-3 Ch03.F 46 3/1/ 02 9:38 AM Page... free up memory for other objects You can adjust how many objects Zope will attempt to keep in memory before grooming the cache, and how long an object can sit unused before it should be removed Take a look at Figure 3-17 Figure 3-17: Adjusting the cache parameters 61 c4857-3 Ch03.F 62 3/1/ 02 9:38 AM Page 62 Part I ✦ Getting Started with Zope The Cache Parameters view tells you how many objects are in... object in Zope This object is created for you during installation You cannot create a new one or remove the existing one The Control Panel provides the interfaces for administrating and maintaining Zope Clicking Control_Panel (located in the Root Folder) will show the view displayed in Figure 3-15 In this screen you are presented with information about the current Zope process; what version of Zope and... most recent Each item on the list shows you when the revision was made, what type of action was taken, and by whom See Figure 3- 12 for an example of the History view of a DTML Document 49 c4857-3 Ch03.F 50 3/1/ 02 9:38 AM Page 50 Part I ✦ Getting Started with Zope Figure 3- 12: The History view The History view enables you to undo changes to the text content stored in a DTML Document without affecting... different program If Zope does not recognize the file extension or an extension is not included in the path of the file when you upload, Zope will classify the object as a generic file Zope uses application/octet-stream to describe the content type of generic files Precondition When editing a file, you can set a method or document located elsewhere on the site as a Precondition Zope will run the precondition... that it c4857-3 Ch03.F 3/1/ 02 9:38 AM Page 55 Chapter 3 ✦ Zope Objects and the Management Interface currently contains As mentioned previously, Zope creates a height and a width property when an image is added These properties change automatically if a new image with different dimensions is uploaded into the object Viewing an image Images can be viewed like other objects in Zope by either going directly

Ngày đăng: 14/08/2014, 06:22