~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to services/python-console

  • Committer: William Grant
  • Date: 2010-07-03 08:18:50 UTC
  • Revision ID: grantw@unimelb.edu.au-20100703081850-ygl8vp5nyznf3dnk
Trailing slashes in URLs can now be detected by views accepting subpaths.

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
 
171
171
    def run(self):
172
172
        # Set up global space and partial command buffer
173
 
        self.globs = {'__name__': '__main__'}
 
173
        self.globs = {}
174
174
        self.curr_cmd = ''
175
175
 
176
176
        # Set up I/O to use web interface
262
262
    def handle_globals(self, params):
263
263
        # Unpickle the new space (if provided)
264
264
        if isinstance(params, dict):
265
 
            self.globs = {'__name__': '__main__'}
 
265
            self.globs = {}
266
266
            for g in params:
267
267
                try:
268
268
                    self.globs[g] = cPickle.loads(params[g])