Advertisement
christopherreay

_container zodb pyramid keyerror

Jan 3rd, 2013
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.97 KB | None | 0 0
  1. christopher@sirGranite:~/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/src/interface$ ../../bin/pshell development.ini
  2. Python 2.7.3 (default, Aug  1 2012, 05:16:07)
  3. Type "copyright", "credits" or "license" for more information.
  4.  
  5. IPython 0.13.1 -- An enhanced Interactive Python.
  6. ?         -> Introduction and overview of IPython's features.
  7. %quickref -> Quick reference.
  8. help      -> Python's own help system.
  9. object?   -> Details about 'object', use 'object??' for extra details.
  10.  
  11. Environment:
  12.   app          The WSGI application.
  13.   registry     Active Pyramid registry.
  14.   request      Active request object.
  15.   root         Root of the default resource tree.
  16.   root_factory Default root factory used to create `root`.
  17.  
  18. In [1]: root.
  19. root.clear       root.get         root.iterkeys    root.popitem
  20. root.copy        root.has_key     root.itervalues  root.setdefault
  21. root.data        root.items       root.keys        root.update
  22. root.fromkeys    root.iteritems   root.pop         root.values
  23.  
  24. In [1]: root.
  25. root.clear       root.get         root.iterkeys    root.popitem
  26. root.copy        root.has_key     root.itervalues  root.setdefault
  27. root.data        root.items       root.keys        root.update
  28. root.fromkeys    root.iteritems   root.pop         root.values
  29.  
  30. In [1]: root.data.values()
  31. Out[1]: ---------------------------------------------------------------------------
  32. KeyError                                  Traceback (most recent call last)
  33. <ipython-input-1-9b78e308ce77> in <module>()
  34. ----> 1 root.data.values()
  35.  
  36. /home/christopher/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/local/lib/python2.7/site-packages/IPython/core/displayhook.pyc in __call__(self, result)
  37.     236             self.start_displayhook()
  38.     237             self.write_output_prompt()
  39. --> 238             format_dict = self.compute_format_data(result)
  40.     239             self.write_format_data(format_dict)
  41.     240             self.update_user_ns(result)
  42.  
  43. /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)
  44.     148             MIME type representation of the object.
  45.     149         """
  46. --> 150         return self.shell.display_formatter.format(result)
  47.    151
  48.    152     def write_format_data(self, format_dict):
  49.  
  50. /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)
  51.    124                     continue
  52.    125             try:
  53. --> 126                 data = formatter(obj)
  54.    127             except:
  55.    128                 # FIXME: log the exception
  56.  
  57. /home/christopher/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/local/lib/python2.7/site-packages/IPython/core/formatters.pyc in __call__(self, obj)
  58.    445                 type_pprinters=self.type_printers,
  59.    446                 deferred_pprinters=self.deferred_printers)
  60. --> 447             printer.pretty(obj)
  61.    448             printer.flush()
  62.    449             return stream.getvalue()
  63.  
  64. /home/christopher/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/local/lib/python2.7/site-packages/IPython/lib/pretty.pyc in pretty(self, obj)
  65.    343                 if cls in self.type_pprinters:
  66.    344                     # printer registered in self.type_pprinters
  67. --> 345                     return self.type_pprinters[cls](obj, self, cycle)
  68.    346                 else:
  69.    347                     # deferred printer
  70.  
  71. /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)
  72.    527                 p.text(',')
  73.    528                 p.breakable()
  74. --> 529             p.pretty(x)
  75.    530         if len(obj) == 1 and type(obj) is tuple:
  76.    531             # Special case for 1-item tuples.
  77.  
  78. /home/christopher/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/local/lib/python2.7/site-packages/IPython/lib/pretty.pyc in pretty(self, obj)
  79.    358                             if callable(meth):
  80.    359                                 return meth(obj, self, cycle)
  81. --> 360             return _default_pprint(obj, self, cycle)
  82.    361         finally:
  83.    362             self.end_group()
  84.  
  85. /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)
  86.    478     if getattr(klass, '__repr__', None) not in _baseclass_reprs:
  87.    479         # A user-provided repr.
  88. --> 480         p.text(repr(obj))
  89.    481         return
  90.    482     p.begin_group(1, '<')
  91.  
  92. /home/christopher/context/christopherReay/interface/pylons/pyramid/pyramid_virtualEnv/env/lib/python2.7/UserDict.pyc in __repr__(self)
  93.      8         if len(kwargs):
  94.      9             self.update(kwargs)
  95. ---> 10     def __repr__(self): return repr(self.data)
  96.     11     def __cmp__(self, dict):
  97.     12         if isinstance(dict, UserDict):
  98.  
  99. /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_)
  100.     28         if inst is None:
  101.     29             return self
  102. ---> 30         return self.func(inst)
  103.     31
  104.     32
  105.  
  106. /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)
  107.     97         # if we're modified, then the saved record will have data, not
  108.     98         # _container.
  109. ---> 99         data = self.__dict__.pop('_container')
  110.    100         self.__dict__['data'] = data
  111.    101
  112.  
  113. KeyError: '_container'
  114.  
  115. In [2]: root.data.values()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement