Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Expr Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults vararg body If CompareIn AttributeLoad NameLoad attr NameLoad body Return TupleLoad AttributeLoad NameLoad attr Call NameLoad Lambda arguments args defaults NameLoad Raise Call NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad Call NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad ListLoad Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
This example shows how to make simple web authentication.

To run the example:
    $ python webguard.py

When you visit http://127.0.0.1:8889/, the page will ask for an username &
password. See the code in main() to get the correct username & password!
 N/A sys zope.interface implements twisted.python log twisted.internet reactor twisted.web server resource guard twisted.cred.portal IRealm Portal twisted.cred.checkers InMemoryUsernamePasswordDatabaseDontUse GuardedResource N/A N/A resource Resource N/A N/A 
    A resource which is protected by guard and requires authentication in order
    to access.
     getChild N/A N/A self path request N/A N/A N/A self N/A render N/A N/A self request N/A N/A N/A Authorized! N/A N/A SimpleRealm N/A object N/A N/A 
    A realm which gives out L{GuardedResource} instances for authenticated
    users.
     N/A N/A implements IRealm requestAvatar N/A N/A self avatarId mind N/A interfaces N/A N/A N/A N/A resource IResource interfaces N/A N/A N/A N/A resource IResource N/A GuardedResource N/A N/A N/A N/A None N/A N/A NotImplementedError N/A N/A main N/A N/A N/A N/A N/A N/A N/A log startLogging N/A sys stdout N/A checkers N/A N/A InMemoryUsernamePasswordDatabaseDontUse joe blow N/A wrapper N/A N/A guard HTTPAuthSessionWrapper N/A Portal N/A SimpleRealm checkers N/A N/A N/A guard DigestCredentialFactory md5 example.com N/A N/A N/A reactor listenTCP 8889 N/A N/A server Site resource wrapper N/A N/A N/A reactor run N/A N/A N/A __name__ __main__ N/A N/A N/A main