⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 176.html

📁 Python Ebook Python&XML
💻 HTML
📖 第 1 页 / 共 2 页
字号:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Robots" content="INDEX,NOFOLLOW">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<TITLE>Safari | Python Developer's Handbook -&gt; Other Applications</TITLE>
<LINK REL="stylesheet" HREF="oreillyi/oreillyN.css">
</HEAD>
<BODY bgcolor="white" text="black" link="#990000" vlink="#990000" alink="#990000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table width="100%" cellpadding=5 cellspacing=0 border=0 class="navtopbg"><tr><td><font size="1"><p class="navtitle"><a href="8.html" class="navtitle">Web Development</a> &gt; <a href="0672319942.html" class="navtitle">Python Developer's Handbook</a> &gt; <a href="171.html" class="navtitle">11. Web Development</a> &gt; <span class="nonavtitle">Other Applications</span></p></font></td><td align="right" valign="top" nowrap><font size="1"><a href="main.asp?list" class="safnavoff">See All Titles</a></font></td></tr></table>
<TABLE width=100% bgcolor=white border=0 cellspacing=0 cellpadding=5><TR><TD>
<TABLE border=0 width="100%" cellspacing=0 cellpadding=0><TR><td align=left width="15%" class="headingsubbarbg"><a href="175.html" title="Third-Party Internet Applications"><font size="1">&lt;&nbsp;BACK</font></a></td><td align=center width="70%" class="headingsubbarbg"><font size="1"><a href="popanote.asp?pubui=oreilly&bookname=0672319942&snode=176" target="_blank" title="Make a public or private annnotation">Make Note</a> | <a href="176.html" title="Use a Safari bookmark to remember this section">Bookmark</a></font></td><td align=right width="15%" class="headingsubbarbg"><a href="177.html" title="Site Management Tools"><font size="1">CONTINUE&nbsp;&gt;</font></a></td></TR></TABLE>
<a href="5%2F31%2F2002+4%3A43%3A46+PM.html" TABINDEX="-1"><img src=images/spacer.gif border=0 width=1 height=1></a><font color=white size=1>152015024128143245168232148039199167010047123209178152124239215162148047091223171024036021</font><a href="read9.asp?bookname=0672319942&snode=176&now=5%2F31%2F2002+4%3A43%3A46+PM" TABINDEX="-1"><img src=images/spacer.gif border=0 width=1 height=1></a><br>
<FONT><h3>Other Applications</h3>
				<p>These other applications and scripts are utilities that might help you along your future development efforts.</p>

				<H4>BSCW</H4>
					<P>The BSCW group at <A name="idx1073746387"></A>GMD in Germany has implemented a shared workspace server for the Web as a collection of Python CGI scripts.</P>

					<P><I>BSCW (Basic Support for Cooperative Work)</i> is a "shared workspace" system, which enables collaboration over the Web and supports document upload, event notification, group management, and much more. To access a workspace, you only need a standard Web browser.</p>

					<p>This group maintains a public BSCW server with which everyone is invited to use for creating their own shared workspaces. You only need an ordinary Web browser for registering with the public server and for accessing the server once you have created your login. If you want to upload documents, you might need an additional helper application. If you use their recommended Web browser (Netscape), this is not required.</p>

					<P>For details, check out <A TArget="_blank" href="http://bscw.gmd.de/">http://bscw.gmd.de/</a> and <a target="_blank" href="http://orgwis.gmd.de/">http://orgwis.gmd.de/</A>.<a nAme="idx1073746388"></a><A name="idx1073746389"></A><a naME="idx1073746390"></A><A name="idx1073746391"></A><A NAme="idx1073746392"></a><a NAME="idx1073746393"></a><a naME="idx1073746394"></A><A name="idx1073746395"></a></p>

				
				<h4>LDAP</h4>
					<p>The <i>Lightweight Directory Access Protocol (LDAP)</i> is a directory access protocol that runs directly over TCP/IP. It is documented in RFCs 1777 and 1778, and is a draft Internet standard. LDAP can be used to implement a native standalone LDAP directory service, or it can be used to access an X.500-based directory service.</p>

					<p>Directory services such as LDAP are suitable for holding a lot of organizational information in a standardized database scheme. LDAP is a useful tool for providing centralized address books for the users of an organization梒ommon mail client software such as Netscape Messenger or Outlook already uses directory services for retrieving personal data.</p>

					<p>In some situations, there is a strong need for flexible LDAP client software that provides features such as the following:</p>

					<ul>
<li><P>Add/modify LDAP entries</p>
</lI>
<li><p>Access to the directory without having LDAP capable client software (for example, via WWW)</P>
</li>
<li><P>A secure LDAP client with clean login behavior</p>
</li>
<LI><P>Hiding the LDAP service behind a firewall</P>
</li>
<li><P>Encryption for LDAP access over unsecured networks<A NAme="idx1073746396"></a><a NAME="idx1073746397"></a><a naME="idx1073746398"></A><A name="idx1073746399"></a><a name="idx1073746400"></a><a name="idx1073746401"></a><a naMe="idx1073746402"></a><A namE="idx1073746403"></a><a naMe="idx1073746404"></a></p>

						</LI>
</UL>
					<p>In order to handle these issues, <a naME="idx1073746405"></A>Michael Str鰀er developed web2ldap.py (formerly known as ldap-client-cgi.py), which is a full-featured, Web-based LDAP client written in Python. For more information, check out</P>

					<p><a taRGET="_blank" href="http://www.web2ldap.de">http://www.web2ldap.de</A></P>

					<P>There isn't any standard LDAP support module in Python at this time, but there is Python-LDAP. This project provides an LDAP client API for Python in the spirit of RFC1823. For more information, check out the following:</P>

					<p><a target="_blank" href="http://python-ldap.sourceforge.net/">http://python-ldap.sourceforge.net/</a></p>

					<p>This LDAP module provides access to the <a name="idx1073746406"></A><a nAme="idx1073746407"></a>University of Michigan's Lightweight Directory Access Protocol library. It is more-or-less compliant with the interface described in RFC 1823, with the notable differences being that lists are manipulated via Python list operations, and errors appear as exceptions. It also works with <A name="idx1073746408"></A><a naME="idx1073746409"></A><I>OpenLDAP</i>
						<a taRGET="_blank" href="http://www.openldap.org">(http://www.openldap.org)</A>, which is a bit newer.<A NAme="idx1073746410"></a><a NAME="idx1073746411"></a><a name="idx1073746412"></a><a name="idx1073746413"></a><a name="idx1073746414"></a><a NamE="idx1073746415"></a><a nAme="idx1073746416"></a><a Name="idx1073746417"></A><A NAme="idx1073746418"></a></p>

				
				<H4>WebLog</H4>
					<P><Tt claSS="monofont">WebLog</TT> is a group of Python modules containing several class definitions that are useful for parsing, manipulating, and postprocessing of common Web and Web proxy logfile formats.</p>

					<p>The modules can be broken up into two types: parsing and postprocessing. The classes inside these modules are used by following the idea of first using a <i>parsing class</i> and then stacking <I>postprocessing classes</I> on top of it. These modules are reasonably fast, considering that they are written in a scripting language梕specially the parsing modules, which are very well optimized.</P>

					<H5>Parsing Modules</h5>
						<p>The following modules contain class definitions that can help you to implement parsing routines.</p>

						<blockquote>
<p><p><a name="idx1073746419"></A><a nAme="idx1073746420"></a>common桟ommon (NCSA) Web log parser.</P>
</p>
<p><p><a Name="idx1073746421"></A><A NAme="idx1073746422"></a>combined桟ombined/extended Web log parser (adds referrer and agent).</p>
</P>
<P><P><A name="idx1073746423"></A><A NAme="idx1073746424"></a>squid桽quid Web Proxy Cache log parsers. This module contains two classes: <tT CLAss="monofont">AccessParser</tt> (for access.log), and <tt class="monofont">StoreParser</tt> (for store.log). If you have full_mime_hdrs set in squid.conf, make sure to set the corresponding attribute in <tt class="monofont">AccessParser.</Tt> However, use of this will appreciably slow down analysis.</p>
</P>
<p><p><a Name="idx1073746425"></a><A namE="idx1073746426"></A>multiple桟ombines log files of the same content from different servers.<A Name="idx1073746427"></a><A NAMe="idx1073746428"></a></p>

							</p>
</BLOCkquoTE>
					
					<H5>Postprocessing Modules</H5>
						<p>The following modules contain class definitions that can help you to implement postprocessing routines.</p>

						<blockquote>
<p><p><a name="idx1073746429"></a><A naMe="idx1073746430"></a>url桺arses url and referer (if available) for components.</p>
</P>
<p><p><a nAme="idx1073746431"></a><A NAMe="idx1073746432"></a>query桺arses queries into dictionaries.<foNT SIze="1"><suP><A HRef="#FOOTNOTE-1">[1]</a></sUP></FOnt>
</p>
<blockquote><font sizE="1">
<p cLass="footnote">
<Sup><a nAme="FOOTNOTE-1">[1]</a></SUP>
<I>Requires use of</i>
											<tt cLASS="monofont">url.Parse</tt>
											<i>first.</i></P>
</FONt></bloCKQUote>
</p>
<p><p><a name="idx1073746433"></a><a name="idx1073746434"></a>clean桸ormalizes attributes of Web Log for more accurate analysis.<suP><a hRef="#FOOTNOTE-1">[1]</a></Sup></p>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -