[Commits] (twl) When loading parcels, setup the rest of Chandler infrastructure

commits at osafoundation.org commits at osafoundation.org
Wed Sep 1 15:35:33 PDT 2004


Commit by: twl
Modified files:
chandler/repository/tests/RepositoryTestCase.py 1.12 1.13

Log message:
When loading parcels, setup the rest of Chandler infrastructure


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/repository/tests/RepositoryTestCase.py.diff?r1=text&tr1=1.12&r2=text&tr2=1.13

Index: chandler/repository/tests/RepositoryTestCase.py
diff -u chandler/repository/tests/RepositoryTestCase.py:1.12 chandler/repository/tests/RepositoryTestCase.py:1.13
--- chandler/repository/tests/RepositoryTestCase.py:1.12	Mon Jul 19 13:33:51 2004
+++ chandler/repository/tests/RepositoryTestCase.py	Wed Sep  1 15:35:32 2004
@@ -1,8 +1,8 @@
 """
 A base class for repository testing
 """
-__revision__  = "$Revision: 1.12 $"
-__date__      = "$Date: 2004/07/19 20:33:51 $"
+__revision__  = "$Revision: 1.13 $"
+__date__      = "$Date: 2004/09/01 22:35:32 $"
 __copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
 __license__   = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -78,6 +78,14 @@
         self.loadParcels([namespace])
 
     def loadParcels(self, namespaces=None):
+        import application
+        import application.Globals as Globals
+        import osaf.contentmodel.tests.GenerateItems as GenerateItems
+        from osaf.framework.notifications.NotificationManager import NotificationManager
+        Globals.repository = self.rep
+        Globals.notificationManager = NotificationManager()
+        Globals.notificationManager.PrepareSubscribers()
+
         self.manager.loadParcels(namespaces)
         if namespaces:
             for namespace in namespaces:



More information about the Commits mailing list