~certify-web-dev/storm/certify-staging

« back to all changes in this revision

Viewing changes to storm/zope/__init__.py

  • Committer: Jamu Kakar
  • Date: 2007-07-17 04:42:52 UTC
  • mto: This revision was merged to the branch mainline in revision 159.
  • Revision ID: jkakar@kakar.ca-20070717044252-k13a6522lk2ep7g2
- Migrated canonical.zstorm code into storm.zope.  Other than updating
  imports the code is unchanged.  ZStormTest.is_supported needs to be
  fleshed out to do the right thing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from zope.security.checker import NoProxy, BasicTypes, _available_by_default
 
2
 
 
3
from storm.info import ObjectInfo
 
4
 
 
5
 
 
6
# The followig is required for storm.info.get_obj_info() to have
 
7
# access to a proxied object which is already in the store (IOW, has
 
8
# the object info set already).  With this, Storm is able to
 
9
# gracefully handle situations when a proxied object is passed to a
 
10
# Store.
 
11
_available_by_default.append("__object_info")
 
12
BasicTypes[ObjectInfo] = NoProxy