Difference between revisions of "Albatross Notes"

From PeformIQ Upgrade
Jump to navigation Jump to search
Line 1: Line 1:
=Version  1.37 Enhancements=
=__dict__=
=__dict__=



Revision as of 14:13, 7 March 2010

Version 1.37 Enhancements

__dict__

>>> p = pprint.PrettyPrinter()
>>> p.pprint(albatross.__dict__)
{'AlbatrossError': <class 'albatross.common.AlbatrossError'>,
 'AnyTag': <class albatross.template.AnyTag at 0x8e3447c>,
 'AppContext': <class albatross.app.AppContext at 0x8e60fbc>,
 'Application': <class albatross.app.Application at 0x8ea702c>,
 'ApplicationError': <class 'albatross.common.ApplicationError'>,
 'BranchingSessionContext': <class albatross.branchingsession.BranchingSessionContext at 0x8eb10bc>,
 'BranchingSessionMixin': <class albatross.branchingsession.BranchingSessionMixin at 0x8eb108c>,
 'CachingTemplateLoaderMixin': <class albatross.context.CachingTemplateLoaderMixin at 0x8e3fb6c>,
 'Content': <class albatross.template.Content at 0x8e3441c>,
 'Cookie': <module 'Cookie' from '/usr/lib/python2.5/Cookie.pyc'>,
 'EllipsisTreeIterator': <class albatross.tags.EllipsisTreeIterator at 0x8e34a1c>,
 'EmptyTag': <class albatross.template.EmptyTag at 0x8e343ec>,
 'EnclosingTag': <class albatross.template.EnclosingTag at 0x8e3444c>,
 'ExecuteMixin': <class albatross.context.ExecuteMixin at 0x8e3fb0c>,
 'HTTP_ACCEPTED': 202,
 'HTTP_BAD_GATEWAY': 502,
 'HTTP_BAD_REQUEST': 400,
 'HTTP_CREATED': 201,
 'HTTP_FORBIDDEN': 403,
 'HTTP_INTERNAL_SERVER_ERROR': 500,
 'HTTP_MOVED_PERMANENTLY': 301,
 'HTTP_MOVED_TEMPORARILY': 302,
 'HTTP_MULTIPLE_CHOICES': 300,
 'HTTP_NOT_FOUND': 404,
 'HTTP_NOT_IMPLEMENTED': 501,
 'HTTP_NOT_MODIFIED': 304,
 'HTTP_NO_CONTENT': 204,
 'HTTP_OK': 200,
 'HTTP_SERVICE_UNAVAILABLE': 503,
 'HTTP_UNAUTHORIZED': 401,
 'HiddenFieldSessionMixin': <class albatross.context.HiddenFieldSessionMixin at 0x8e3fd7c>,
 'InternalError': <class 'albatross.common.InternalError'>,
 'LazyTreeIterator': <class albatross.tags.LazyTreeIterator at 0x8e349ec>,
 'ListIterator': <class albatross.tags.ListIterator at 0x8e3492c>,
 'ModularApp': <class albatross.app.ModularApp at 0x8ea717c>,
 'ModularSessionApp': <class albatross.app.ModularSessionApp at 0x8ea71dc>,
 'ModularSessionFileApp': <class albatross.sessionfile.ModularSessionFileApp at 0x8ea7e9c>,
 'NameRecorderMixin': <class albatross.context.NameRecorderMixin at 0x8e3fbfc>,
 'NamespaceMixin': <class albatross.context.NamespaceMixin at 0x8e3fcbc>,
 'PageModuleMixin': <class albatross.app.PageModuleMixin at 0x8ea705c>,
 'PageObjectMixin': <class albatross.app.PageObjectMixin at 0x8ea708c>,
 'PickleSignMixin': <class albatross.context.PickleSignMixin at 0x8e3fcec>,
 'Point': <class albatross.context.Point at 0x8e3fbcc>,
 'RandomModularApp': <class albatross.randompage.RandomModularApp at 0x8ea73bc>,
 'RandomModularSessionApp': <class albatross.randompage.RandomModularSessionApp at 0x8ea741c>,
 'RandomModularSessionFileApp': <class albatross.sessionfile.RandomModularSessionFileApp at 0x8ea7efc>,
 'RandomPageModuleMixin': <class albatross.randompage.RandomPageModuleMixin at 0x8ea738c>,
 'Redirect': <class albatross.app.Redirect at 0x8e60f5c>,
 'ResourceMixin': <class albatross.context.ResourceMixin at 0x8e3fadc>,
 'ResponseMixin': <class albatross.app.ResponseMixin at 0x8e60f8c>,
 'SecurityError': <class 'albatross.common.SecurityError'>,
 'ServerDisconnect': <class 'albatross.session.ServerDisconnect'>,
 'ServerError': <class 'albatross.common.ServerError'>,
 'SessionAppContext': <class albatross.app.SessionAppContext at 0x8ea70ec>,
 'SessionBase': <class albatross.context.SessionBase at 0x8e3fd4c>,
 'SessionCookieMixin': <class albatross.session.SessionCookieMixin at 0x8e4fdac>,
 'SessionExpired': <class 'albatross.common.SessionExpired'>,
 'SessionFileAppContext': <class albatross.sessionfile.SessionFileAppContext at 0x8ea7e3c>,
 'SessionFileAppMixin': <class albatross.sessionfile.SessionFileAppMixin at 0x8ea7e0c>,
 'SessionFileContextMixin': <class albatross.sessionfile.SessionFileContextMixin at 0x8ea7ddc>,
 'SessionServerAppMixin': <class albatross.session.SessionServerAppMixin at 0x8e6047c>,
 'SessionServerContextMixin': <class albatross.session.SessionServerContextMixin at 0x8e6002c>,
 'SimpleApp': <class albatross.app.SimpleApp at 0x8ea711c>,
 'SimpleAppContext': <class albatross.app.SimpleAppContext at 0x8ea70bc>,
 'SimpleContext': <class albatross.context.SimpleContext at 0x8e3fdac>,
 'SimpleSessionApp': <class albatross.app.SimpleSessionApp at 0x8ea714c>,
 'SimpleSessionFileApp': <class albatross.sessionfile.SimpleSessionFileApp at 0x8ea7e6c>,
 'StubRecorderMixin': <class albatross.context.StubRecorderMixin at 0x8e3fb9c>,
 'StubSessionMixin': <class albatross.context.StubSessionMixin at 0x8e3fd1c>,
 'Tag': <class albatross.template.Tag at 0xb7d4626c>,
 'Template': <class albatross.template.Template at 0x8e3462c>,
 'TemplateLoadError': <class 'albatross.common.TemplateLoadError'>,
 'TemplateLoaderMixin': <class albatross.context.TemplateLoaderMixin at 0x8e3fb3c>,
 'Text': <class albatross.template.Text at 0xb7d4632c>,
 'TreeIterator': <class albatross.tags.TreeIterator at 0x8e349bc>,
 'UserError': <class 'albatross.common.UserError'>,
 'Vars': <class albatross.context.Vars at 0x8e3fc8c>,
 '__builtins__': {'ArithmeticError': <type 'exceptions.ArithmeticError'>,
                  'AssertionError': <type 'exceptions.AssertionError'>,
                  'AttributeError': <type 'exceptions.AttributeError'>,
                  'BaseException': <type 'exceptions.BaseException'>,
                  'DeprecationWarning': <type 'exceptions.DeprecationWarning'>,
                  'EOFError': <type 'exceptions.EOFError'>,
                  'Ellipsis': Ellipsis,
                  'EnvironmentError': <type 'exceptions.EnvironmentError'>,
                  'Exception': <type 'exceptions.Exception'>,
                  'False': False,
                  'FloatingPointError': <type 'exceptions.FloatingPointError'>,
                  'FutureWarning': <type 'exceptions.FutureWarning'>,
                  'GeneratorExit': <type 'exceptions.GeneratorExit'>,
                  'IOError': <type 'exceptions.IOError'>,
                  'ImportError': <type 'exceptions.ImportError'>,
                  'ImportWarning': <type 'exceptions.ImportWarning'>,
                  'IndentationError': <type 'exceptions.IndentationError'>,
                  'IndexError': <type 'exceptions.IndexError'>,
                  'KeyError': <type 'exceptions.KeyError'>,
                  'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>,
                  'LookupError': <type 'exceptions.LookupError'>,
                  'MemoryError': <type 'exceptions.MemoryError'>,
                  'NameError': <type 'exceptions.NameError'>,
                  'None': None,
                  'NotImplemented': NotImplemented,
                  'NotImplementedError': <type 'exceptions.NotImplementedError'>,
                  'OSError': <type 'exceptions.OSError'>,
                  'OverflowError': <type 'exceptions.OverflowError'>,
                  'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>,
                  'ReferenceError': <type 'exceptions.ReferenceError'>,
                  'RuntimeError': <type 'exceptions.RuntimeError'>,
                  'RuntimeWarning': <type 'exceptions.RuntimeWarning'>,
                  'StandardError': <type 'exceptions.StandardError'>,
                  'StopIteration': <type 'exceptions.StopIteration'>,
                  'SyntaxError': <type 'exceptions.SyntaxError'>,
                  'SyntaxWarning': <type 'exceptions.SyntaxWarning'>,
                  'SystemError': <type 'exceptions.SystemError'>,
                  'SystemExit': <type 'exceptions.SystemExit'>,
                  'TabError': <type 'exceptions.TabError'>,
                  'True': True,
                  'TypeError': <type 'exceptions.TypeError'>,
                  'UnboundLocalError': <type 'exceptions.UnboundLocalError'>,
                  'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>,
                  'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>,
                  'UnicodeError': <type 'exceptions.UnicodeError'>,
                  'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>,
                  'UnicodeWarning': <type 'exceptions.UnicodeWarning'>,
                  'UserWarning': <type 'exceptions.UserWarning'>,
                  'ValueError': <type 'exceptions.ValueError'>,
                  'Warning': <type 'exceptions.Warning'>,
                  'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>,
                  '_': "Support to pretty-print lists, tuples, & dictionaries recursively.\n\nVery simple, but useful, especial                         ng data structures.\n\nClasses\n-------\n\nPrettyPrinter()\n    Handle pretty-printing operations onto a stream using a configu                         of formatting parameters.\n\nFunctions\n---------\n\npformat()\n    Format a Python object into a pretty-printed representation                         \n    Pretty-print a Python object to a stream [default is sys.stdout].\n\nsaferepr()\n    Generate a 'standard' repr()-like va                         ect against recursive\n    data structures.\n\n",
                  '__debug__': True,
                  '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellip                         s `...' in slices.",
                  '__import__': <built-in function __import__>,
                  '__name__': '__builtin__',
                  'abs': <built-in function abs>,
                  'all': <built-in function all>,
                  'any': <built-in function any>,
                  'apply': <built-in function apply>,
                  'basestring': <type 'basestring'>,
                  'bool': <type 'bool'>,
                  'buffer': <type 'buffer'>,
                  'callable': <built-in function callable>,
                  'chr': <built-in function chr>,
                  'classmethod': <type 'classmethod'>,
                  'cmp': <built-in function cmp>,
                  'coerce': <built-in function coerce>,
                  'compile': <built-in function compile>,
                  'complex': <type 'complex'>,
                  'copyright': Copyright (c) 2001-2008 Python Software Foundation.
All Rights Reserved.

Copyright (c) 2000 BeOpen.com.
All Rights Reserved.

Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.

Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved.,
                  'credits':     Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
    for supporting Python development.  See www.python.org for more information.,
                  'delattr': <built-in function delattr>,
                  'dict': <type 'dict'>,
                  'dir': <built-in function dir>,
                  'divmod': <built-in function divmod>,
                  'enumerate': <type 'enumerate'>,
                  'eval': <built-in function eval>,
                  'execfile': <built-in function execfile>,
                  'exit': Use exit() or Ctrl-D (i.e. EOF) to exit,
                  'file': <type 'file'>,
                  'filter': <built-in function filter>,
                  'float': <type 'float'>,
                  'frozenset': <type 'frozenset'>,
                  'getattr': <built-in function getattr>,
                  'globals': <built-in function globals>,
                  'hasattr': <built-in function hasattr>,
                  'hash': <built-in function hash>,
                  'help': Type help() for interactive help, or help(object) for help about object.,
                  'hex': <built-in function hex>,
                  'id': <built-in function id>,
                  'input': <built-in function input>,
                  'int': <type 'int'>,
                  'intern': <built-in function intern>,
                  'isinstance': <built-in function isinstance>,
                  'issubclass': <built-in function issubclass>,
                  'iter': <built-in function iter>,
                  'len': <built-in function len>,
                  'license': Type license() to see the full license text,
                  'list': <type 'list'>,
                  'locals': <built-in function locals>,
                  'long': <type 'long'>,
                  'map': <built-in function map>,
                  'max': <built-in function max>,
                  'min': <built-in function min>,
                  'object': <type 'object'>,
                  'oct': <built-in function oct>,
                  'open': <built-in function open>,
                  'ord': <built-in function ord>,
                  'pow': <built-in function pow>,
                  'property': <type 'property'>,
                  'quit': Use quit() or Ctrl-D (i.e. EOF) to exit,
                  'range': <built-in function range>,
                  'raw_input': <built-in function raw_input>,
                  'reduce': <built-in function reduce>,
                  'reload': <built-in function reload>,
                  'repr': <built-in function repr>,
                  'reversed': <type 'reversed'>,
                  'round': <built-in function round>,
                  'set': <type 'set'>,
                  'setattr': <built-in function setattr>,
                  'slice': <type 'slice'>,
                  'sorted': <built-in function sorted>,
                  'staticmethod': <type 'staticmethod'>,
                  'str': <type 'str'>,
                  'sum': <built-in function sum>,
                  'super': <type 'super'>,
                  'tuple': <type 'tuple'>,
                  'type': <type 'type'>,
                  'unichr': <built-in function unichr>,
                  'unicode': <type 'unicode'>,
                  'vars': <built-in function vars>,
                  'xrange': <type 'xrange'>,
                  'zip': <built-in function zip>},
 '__doc__': None,
 '__file__': '/usr/lib/python2.5/site-packages/albatross/__init__.pyc',
 '__name__': 'albatross',
 '__path__': ['/usr/lib/python2.5/site-packages/albatross'],
 '__version__': '1.37',
 'app': <module 'albatross.app' from '/usr/lib/python2.5/site-packages/albatross/app.pyc'>,
 'base64': <module 'base64' from '/usr/lib/python2.5/base64.pyc'>,
 'binascii': <module 'binascii' from '/usr/lib/python2.5/lib-dynload/binascii.so'>,
 'branchingsession': <module 'albatross.branchingsession' from '/usr/lib/python2.5/site-packages/albatross/branchingsession.pyc
 'cPickle': <module 'cPickle' from '/usr/lib/python2.5/lib-dynload/cPickle.so'>,
 'check_tagname': <function check_tagname at 0x8e33d84>,
 'commasplit': <function commasplit at 0xb7d2e09c>,
 'common': <module 'albatross.common' from '/usr/lib/python2.5/site-packages/albatross/common.pyc'>,
 'context': <module 'albatross.context' from '/usr/lib/python2.5/site-packages/albatross/context.pyc'>,
 'errno': <module 'errno' (built-in)>,
 'escape': <function escape at 0xb7d4509c>,
 'have_zlib': 1,
 'hmac': <module 'hmac' from '/usr/lib/python2.5/hmac.pyc'>,
 'http_status_client_error': <function http_status_client_error at 0xb7d25fb4>,
 'http_status_informational': <function http_status_informational at 0xb7d1d6f4>,
 'http_status_phrases': {200: 'Ok',
                         201: 'Created',
                         202: 'Accepted',
                         204: 'No Content',
                         300: 'Multiple Choices',
                         301: 'Moved Permanently',
                         302: 'Moved Temporarily',
                         304: 'Not Modified',
                         400: 'Bad Request',
                         401: 'Unauthorized',
                         403: 'Forbidden',
                         404: 'Not Found',
                         500: 'Internal Server Error',
                         501: 'Not Implemented',
                         502: 'Bad Gateway',
                         503: 'Service Unavailable'},
 'http_status_redirection': <function http_status_redirection at 0xb7d1da74>,
 'http_status_server_error': <function http_status_server_error at 0xb7d2e02c>,
 'http_status_string': <function http_status_string at 0xb7d2e064>,
 'http_status_successful': <function http_status_successful at 0xb7d1daac>,
 'imp': <module 'imp' (built-in)>,
 'os': <module 'os' from '/usr/lib/python2.5/os.pyc'>,
 'pickle_errors': (<class 'cPickle.PicklingError'>,
                   <class 'cPickle.UnpicklingError'>,
                   <type 'exceptions.TypeError'>,
                   <type 'exceptions.EOFError'>),
 'random': <module 'random' from '/usr/lib/python2.5/random.pyc'>,
 'randompage': <module 'albatross.randompage' from '/usr/lib/python2.5/site-packages/albatross/randompage.pyc'>,
 're': <module 're' from '/usr/lib/python2.5/re.pyc'>,
 'session': <module 'albatross.session' from '/usr/lib/python2.5/site-packages/albatross/session.pyc'>,
 'sessionfile': <module 'albatross.sessionfile' from '/usr/lib/python2.5/site-packages/albatross/sessionfile.pyc'>,
 'sha': <built-in function openssl_sha1>,
 'socket': <module 'socket' from '/usr/lib/python2.5/socket.pyc'>,
 'stat': <module 'stat' from '/usr/lib/python2.5/stat.pyc'>,
 'struct': <module 'struct' from '/usr/lib/python2.5/struct.pyc'>,
 'sys': <module 'sys' (built-in)>,
 'tags': <module 'albatross.tags' from '/usr/lib/python2.5/site-packages/albatross/tags.pyc'>,
 'template': <module 'albatross.template' from '/usr/lib/python2.5/site-packages/albatross/template.pyc'>,
 'template_features': (),
 'template_version': 2,
 'urlparse': <module 'urlparse' from '/usr/lib/python2.5/urlparse.pyc'>,
 'zlib': <module 'zlib' from '/usr/lib/python2.5/lib-dynload/zlib.so'>}
>>>