Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- christopher@sirGranite:~/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/src/interface$ ../../bin/pshell development.ini
- Python 2.7.3 (default, Aug 1 2012, 05:16:07)
- Type "copyright", "credits" or "license" for more information.
- IPython 0.13.1 -- An enhanced Interactive Python.
- ? -> Introduction and overview of IPython's features.
- %quickref -> Quick reference.
- help -> Python's own help system.
- object? -> Details about 'object', use 'object??' for extra details.
- Environment:
- app The WSGI application.
- registry Active Pyramid registry.
- request Active request object.
- root Root of the default resource tree.
- root_factory Default root factory used to create `root`.
- In [1]: root.
- root.clear root.get root.iterkeys root.popitem
- root.copy root.has_key root.itervalues root.setdefault
- root.data root.items root.keys root.update
- root.fromkeys root.iteritems root.pop root.values
- In [1]: root.
- root.clear root.get root.iterkeys root.popitem
- root.copy root.has_key root.itervalues root.setdefault
- root.data root.items root.keys root.update
- root.fromkeys root.iteritems root.pop root.values
- In [1]: root.data.values()
- Out[1]: ---------------------------------------------------------------------------
- KeyError Traceback (most recent call last)
- <ipython-input-1-9b78e308ce77> in <module>()
- ----> 1 root.data.values()
- /home/christopher/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/local/lib/python2.7/site-packages/IPython/core/displayhook.pyc in __call__(self, result)
- 236 self.start_displayhook()
- 237 self.write_output_prompt()
- --> 238 format_dict = self.compute_format_data(result)
- 239 self.write_format_data(format_dict)
- 240 self.update_user_ns(result)
- /home/christopher/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/local/lib/python2.7/site-packages/IPython/core/displayhook.pyc in compute_format_data(self, result)
- 148 MIME type representation of the object.
- 149 """
- --> 150 return self.shell.display_formatter.format(result)
- 151
- 152 def write_format_data(self, format_dict):
- /home/christopher/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/local/lib/python2.7/site-packages/IPython/core/formatters.pyc in format(self, obj, include, exclude)
- 124 continue
- 125 try:
- --> 126 data = formatter(obj)
- 127 except:
- 128 # FIXME: log the exception
- /home/christopher/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/local/lib/python2.7/site-packages/IPython/core/formatters.pyc in __call__(self, obj)
- 445 type_pprinters=self.type_printers,
- 446 deferred_pprinters=self.deferred_printers)
- --> 447 printer.pretty(obj)
- 448 printer.flush()
- 449 return stream.getvalue()
- /home/christopher/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/local/lib/python2.7/site-packages/IPython/lib/pretty.pyc in pretty(self, obj)
- 343 if cls in self.type_pprinters:
- 344 # printer registered in self.type_pprinters
- --> 345 return self.type_pprinters[cls](obj, self, cycle)
- 346 else:
- 347 # deferred printer
- /home/christopher/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/local/lib/python2.7/site-packages/IPython/lib/pretty.pyc in inner(obj, p, cycle)
- 527 p.text(',')
- 528 p.breakable()
- --> 529 p.pretty(x)
- 530 if len(obj) == 1 and type(obj) is tuple:
- 531 # Special case for 1-item tuples.
- /home/christopher/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/local/lib/python2.7/site-packages/IPython/lib/pretty.pyc in pretty(self, obj)
- 358 if callable(meth):
- 359 return meth(obj, self, cycle)
- --> 360 return _default_pprint(obj, self, cycle)
- 361 finally:
- 362 self.end_group()
- /home/christopher/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/local/lib/python2.7/site-packages/IPython/lib/pretty.pyc in _default_pprint(obj, p, cycle)
- 478 if getattr(klass, '__repr__', None) not in _baseclass_reprs:
- 479 # A user-provided repr.
- --> 480 p.text(repr(obj))
- 481 return
- 482 p.begin_group(1, '<')
- /home/christopher/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/lib/python2.7/UserDict.pyc in __repr__(self)
- 8 if len(kwargs):
- 9 self.update(kwargs)
- ---> 10 def __repr__(self): return repr(self.data)
- 11 def __cmp__(self, dict):
- 12 if isinstance(dict, UserDict):
- /home/christopher/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/local/lib/python2.7/site-packages/persistent-4.0.5-py2.7-linux-i686.egg/persistent/mapping.pyc in __get__(self, inst, class_)
- 28 if inst is None:
- 29 return self
- ---> 30 return self.func(inst)
- 31
- 32
- /home/christopher/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/local/lib/python2.7/site-packages/persistent-4.0.5-py2.7-linux-i686.egg/persistent/mapping.pyc in data(self)
- 97 # if we're modified, then the saved record will have data, not
- 98 # _container.
- ---> 99 data = self.__dict__.pop('_container')
- 100 self.__dict__['data'] = data
- 101
- KeyError: '_container'
- In [2]: root.data.values()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement