~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/apps/transport.py

  • Committer: Matt Nordhoff
  • Date: 2009-10-21 14:34:51 UTC
  • mfrom: (389.2.8 pep8-2009-10)
  • Revision ID: mnordhoff@mattnordhoff.com-20091021143451-zods0s068h7isect
A bunch of random PEP 8 and stylistic improvements. Also fix a typo on error pages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
            name = self.name
56
56
            is_root = False
57
57
        branch_app = BranchWSGIApp(
58
 
            branch, name,
 
58
            branch,
 
59
            name,
59
60
            {'cachepath': self._config.SQL_DIR},
60
 
            self.root.graph_cache, is_root=is_root,
61
 
            use_cdn=self._config.get_option('use_cdn'))
 
61
            self.root.graph_cache,
 
62
            is_root=is_root,
 
63
            use_cdn=self._config.get_option('use_cdn'),
 
64
            )
62
65
        return branch_app.app
63
66
 
64
67
    def app_for_non_branch(self, environ):
129
132
_transport_store = threading.local()
130
133
 
131
134
def get_transport_for_thread(base):
132
 
    """ """
133
135
    thread_transports = getattr(_transport_store, 'transports', None)
134
136
    if thread_transports is None:
135
137
        thread_transports = _transport_store.transports = {}