Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 65 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
65
Dung lượng
499,88 KB
Nội dung
[...]... save it to the server If you save it to your local machine, your browser will bring up the save box and you can pick where you want it to be saved Notice that the name of the file is the id of the object plus the extension, zexp (if you export the Root Folder, the file will be named zexp) If you save the object to the server, Zope will save the export file to the var directory of the current Zope installation... objects, place the zexp file into the import directory of the Zope installation to which you wish to import (refer to Chapter 2 if you do not know where this is) Then, in Zope, go to the folder where you want to import the object and click the Import/Export button Type the name of the file into the “import filename” field in the bottom portion of the screen and select Import By default, the username... re-upload the file Editing a file To edit a file, find the file you want to edit in the list of contents and click the id or the icon of that file The Edit view for the file object is shown in Figure 3-13 c4857-3 Ch03.F 3/1/ 02 9:38 AM Page 53 Chapter 3 ✦ Zope Objects and the Management Interface Figure 3-13: The Edit File view From this form, you can change the title of the file or replace the binary... 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 any changes you may have made to other properties (such as the id or the location of the document) To revert back to a particular revision in the history of the document, check the box next to that item in the list and click “Copy to... else on the Web site) Every time a user interacts with the Web site (whether he or she is managing the Web site or simply viewing it over the Internet), Zope verifies whether the user attempting to perform the action in question has the necessary permissions Many permissions, such as View and Access Database Methods, are usually granted to the anonymous user In other words, everyone, even if they are... place a checkmark beside the object you wish to export and then click the Import/Export button Zope will display the Import/Export page, like you see in Figure 3-9 The top part of the page is for exporting objects from the current folder, while the bottom part is for importing objects into the current folder If you clicked on the button without first checking an object to export, the Export Object id field... enter the id of the object in the current folder that you wish to export If you leave the id blank, Zope will let you export the current folder and all of its contents This is the only way to export an entire Zope site (since the Root Folder isn’t contained in anything else, and doesn’t have an Id) Below the object’s id, you will be presented with two choices on how to export the file: you may either... here, consider an unauthenticated user as a user who has not been given any roles by the Web site c4857-3 Ch03.F 3/1/ 02 9:38 AM Page 57 Chapter 3 ✦ Zope Objects and the Management Interface Figure 3-14: The Add User form Editing a user The form used to edit an existing user is the same form used to add a new one Click the name or icon of one of the users in the list of contents All of the roles this user... click the Add and Edit button and you will be taken to the Edit view of the newly created document Figure 3-10: The Add DTML Document form Editing a DTML document To edit a DTML Document, find the object in the list of contents and click its name or the document icon that appears just to the left This opens the Edit view for the document you selected To continue with the previous example, find the document,... perform these actions Other more sensitive operations such as View management screens are limited to authenticated users with the Manager role Zope looks first in the folder in which the operation is requested If a user object with properties matching those of the person logged in (username, password, and roles) is not found in the User Folder at the level at which the operation is being performed, Zope