~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Tres Seaver
  • Date: 2010-03-23 15:44:51 UTC
  • mto: This revision was merged to the branch mainline in revision 405.
  • Revision ID: tseaver@agendaless.com-20100323154451-enjul7pa2crkk18b
Add Sphinx-based documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
            (DEFAULT_PORT,))
60
60
 
61
61
    def serve_http(transport, host=None, port=None, inet=None):
 
62
        from paste.httpexceptions import HTTPExceptionHandler
 
63
        from paste.httpserver import serve
 
64
 
62
65
        # loggerhead internal code will try to 'import loggerhead', so
63
66
        # let's put it on the path if we can't find it in the existing path
64
67
        try:
69
72
 
70
73
        from loggerhead.apps.transport import BranchesFromTransportRoot
71
74
        from loggerhead.config import LoggerheadConfig
72
 
        from paste.httpexceptions import HTTPExceptionHandler
73
 
        from paste.httpserver import serve
 
75
 
74
76
        if host is None:
75
77
            host = DEFAULT_HOST
76
78
        if port is None: