[Checkins] SVN: Zope/branches/tseaver-no_globals_imports/lib/python/Zope2/App/startup.py Add more BBB aliases; CMF now works.

Tres Seaver tseaver at palladion.com
Sat Dec 27 12:04:32 EST 2008


Log message for revision 94382:
  Add more BBB aliases;  CMF now works.

Changed:
  U   Zope/branches/tseaver-no_globals_imports/lib/python/Zope2/App/startup.py

-=-
Modified: Zope/branches/tseaver-no_globals_imports/lib/python/Zope2/App/startup.py
===================================================================
--- Zope/branches/tseaver-no_globals_imports/lib/python/Zope2/App/startup.py	2008-12-27 13:55:32 UTC (rev 94381)
+++ Zope/branches/tseaver-no_globals_imports/lib/python/Zope2/App/startup.py	2008-12-27 17:04:31 UTC (rev 94382)
@@ -67,6 +67,7 @@
     from App.class_init import ApplicationDefaultPermissions
 
     Globals.InitializeClass = default__class_init__
+    Globals.ApplicationDefaultPermissions = ApplicationDefaultPermissions
 
     from App.special_dtml import HTML
     from App.special_dtml import HTMLFile
@@ -81,7 +82,13 @@
     from App.ImageFile import ImageFile
     Globals.ImageFile = ImageFile
 
+    # More BBB indirections
+    import OFS.ObjectManager
+    OFS.ObjectManager.UNIQUE = Globals.UNIQUE
+    OFS.ObjectManager.REPLACEABLE = Globals.REPLACEABLE
+    OFS.ObjectManager.NOT_REPLACEABLE = Globals.NOT_REPLACEABLE
 
+
 def startup():
     from App.PersistentExtra import patchPersistent
     import Globals  # to set / fetch data



More information about the Checkins mailing list