;ò İnCc@svdZydklZWn ej odklZnXdklZlZlZl Z dei fd„ƒYZ dS(s8 Example of using HTTP Auth directly to require authentication before rendering a page for a client. This is an example of extremely low-level authentication. Most applications are better served by using L{nevow.guard} instead of manually managing HTTP Auth. See the C{guarded/} example for more information. (shttp(srendsloadersstagssinevowsAuthorizationRequiredc BsŠtZeZd„Zeieiei ei dei dei dei dƒdeƒdei dei dƒdeƒffƒZRS( NcCsti|ƒ}|iƒ|iƒf\}}||fddfjo(|iddƒ|i t i ƒdSn||f\|_ |_tii||ƒSdS(NssWWW-AuthenticatesBasic realm="Whatever"sAuthentication required.(sinevowsIRequestsctxsrequestsgetUsers getPasswordsusernamespasswords setHeaderssetResponseCodeshttps UNAUTHORIZEDsselfs data_usernames data_passwordsrendsPages renderHTTP(sselfsctxsusernamesrequestspassword((sQ/mnt/gmirror/ports/www/py-nevow/work/Nevow-0.9.18/examples/http_auth/http_auth.pys renderHTTPss Welcome user!s You said: sdatasusernamesrenders spassword(s__name__s __module__sTruesaddSlashs renderHTTPsloaderssstanstagsshtmlsbodysh1sdivsspans directivesstrs docFactory(((sQ/mnt/gmirror/ports/www/py-nevow/work/Nevow-0.9.18/examples/http_auth/http_auth.pysAuthorizationRequireds N( s__doc__s twisted.webshttps ImportErrorstwisted.protocolssnevowsrendsloadersstagssinevowsPagesAuthorizationRequired(sinevowsrendstagssloaderssAuthorizationRequiredshttp((sQ/mnt/gmirror/ports/www/py-nevow/work/Nevow-0.9.18/examples/http_auth/http_auth.pys? s