~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/service.py

  • Committer: Curtis Hovey
  • Date: 2012-03-17 22:45:15 UTC
  • Revision ID: curtis.hovey@canonical.com-20120317224515-r2n23tqc8cx7cul4
Only store the unique information needed by grackle.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        self.method = environ['REQUEST_METHOD']
31
31
        if '://' in environ['PATH_INFO']:
32
32
            # All the needed information is embedded in PATH_INFO.
33
 
            self.host_port = shift_path_info(environ)
 
33
            shift_path_info(environ)  # shift the host and or port.
34
34
            self.application = shift_path_info(environ)
35
35
            path = environ['PATH_INFO'].split('/')
36
 
            self.scheme = path.pop(0)
 
36
            path.pop(0)  # Pop the scheme.
37
37
            self.path = path
38
38
        elif environ['SCRIPT_NAME'] == '':
39
39
            # Remove the application to set the path.