[ Pobierz całość w formacie PDF ]
.In the next couple sections,we'll show you a couple simple tools that use FTP to edit Zope content.Uploading Documents and Files with WS_FTPWS_FTP is a popular FTP client for Windows that you can use to upload documents and files into Zope withthe FTP protocol.WS_FTP can be downloaded from the Ipswitch Home Page.There are other popular Windows FTP clients, and many web browsers like Netscape and Microsoft InternetExplorer come with FTP clients also.This section applies to other FTP clients also.In Chapter 2, you determined the URL of your Zope system by looking at the start up log.Finding out how tocontact your Zope's FTP server follows a similar process:------2000-08-07T23:00:53 INFO(0) ZServer Medusa (V1.18) started at Mon Aug 716:00:53 2000Hostname: peanutPort:8080------2000-08-07T23:00:53 INFO(0) ZServer FTP server started at Mon Aug 716:00:53 2000Authorizer:NoneHostname: peanutPort: 8021------2000-08-07T23:00:53 INFO(0) ZServer Monitor Server (V1.9) started on port8099The startup log says that the Zope FTP server is listening to port 8021 on the machine named peanut.Whenyou start WS_FTP, you will need to know the machine name and port information so you can connect toZope via FTP.After typing in the machine name and port of your Zope server, hit the Connect button.WS_FTP will now ask you for a username and password.Enter your management username and passwordfor the Zope management interface.If you type in your username and password correctly, WS_FTP shows you what your Zope site looks likethrough FTP.There are folders and documents that correspond exactly to what your root Zope folder looksUploading Documents and Files with WS_FTP 28 Introductionlike through the web, as shown in Figure 3-3.Figure 3-3 Editing Zope through FTPTransferring files to and from Zope is a very easy task with WS_FTP.On the left-hand side of the WS_FTPwindow is a file selection box that represents files on your local machine.The file selection box on theright-hand side of the WS_FTP window represents objects in your Zope system.Transferring files from yourcomputer to Zope or back again is as easy as selecting the file you want to transfer and clicking either the leftarrow (download) or the right arrow (upload).WS_FTP has lots of cool features and customizations that youcan use to make remote object management with Zope very easy.Editing Zope Objects with EmacsEmacs is a very popular text editor.In fact, Emacs is more than just a text editor, it is a whole culture.Emacscomes in two flavors, GNU Emacs and XEmacs.Both of these flavors of Emacs can work directly over FTPto manipulate Zope documents and other textual content.Emacs will let you treat any remote FTP system like any other local filesystem, making remote managementof Zope content an easy process.Therefore, you need not leave Emacs in order to use Zope.Emacs provides a richer set of text editing capabilities than most web browser text areas.Emacs can be usedto directly edit documents and manipulate objects through FTP, therefore Emacs is a nice Zope developmentenvironment.By default when you start up Zope, Zope runs an FTP server just as it runs an HTTP server.You can specifywhen you start Zope which port the FTP server should listen on, but by default this port is 8021.Editing Zope Objects with Emacs 29 IntroductionTo log into Zope, run Emacs.The file you visit to open an FTP connection depends on which text editor youare running: XEmacs or Emacs:XemacsTo visit a remote file in XEmacs, visit a file by the form:/user@server#port:/This will open a connection to the / folder of the FTP server running on server and listening on port port.EmacsTo visit a remote file in Emacs, visit a file by the form:/user@server port:/The literal space is inserted by holding down the Control key and the Q key, and then pressing the space"C-Q ".For the typical Zope installation with XEmacs, the filename to open up an FTP session with Zope is*/user@localhost#8021:/*.Emacs will ask you for a password to log into Zope's FTP server.Visiting the / folder of an FTP server in Zope, Emacs will list the contents of the root folder:drwxrwx--- 1 Zope Zope 0 Dec 30 1998 Control_Paneldrwxrwx--- 1 Zope Zope 0 Dec 30 1998 QuickStartdrwxrwx--- 1 Zope Zope 0 Dec 30 1998 Sales-rw-rw---- 1 Zope Zope 1024 May 3 1999 index_html-rw-rw---- 1 Zope Zope 1381 May 3 1999standard_error_message-rw-rw---- 1 Zope Zope 55 Dec 30 1998standard_html_footer-rw-rw---- 1 Zope Zope 81 Dec 30 1998standard_html_headerYou can visit any of these "files" (which are really Zope objects) by selecting them in the usual Emacs way.Editing with Emacs is very useful, but for the most part, Emacs is a very complex program that is not veryaccessible to most people.Most Macintosh users, for example, would be very unfamiliar with a tool likeEmacs.There are a number of "easier" editors that can be used that also use FTP and WebDAV.WebDAV is,in fact, designed to be used by tools like Adobe Go-Live and Macromedia Dreamweaver.Editing DTML Documents with WebDAVWebDAV is a newer Internet protocol compared to HTTP or FTP, so there are fewer clients that support it.There is, however, a lot of momentum behind the WebDAV movement and more clients are being developedall the time [ Pobierz całość w formacie PDF ]
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • odbijak.htw.pl