[Commits] (capps) hook up generate items menu,
remove some cruft from Application
commits at osafoundation.org
commits at osafoundation.org
Tue Feb 3 14:31:35 PST 2004
Commit by: capps
Modified files:
osaf/chandler/Chandler/application/Application.py 1.201 1.202
osaf/chandler/Chandler/parcels/OSAF/views/content/parcel.xml 1.1 1.2
Log message:
hook up generate items menu, remove some cruft from Application
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/application/Application.py.diff?r1=text&tr1=1.201&r2=text&tr2=1.202
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/views/content/parcel.xml.diff?r1=text&tr1=1.1&r2=text&tr2=1.2
Index: osaf/chandler/Chandler/application/Application.py
diff -u osaf/chandler/Chandler/application/Application.py:1.201 osaf/chandler/Chandler/application/Application.py:1.202
--- osaf/chandler/Chandler/application/Application.py:1.201 Tue Feb 3 13:41:37 2004
+++ osaf/chandler/Chandler/application/Application.py Tue Feb 3 14:31:04 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.201 $"
-__date__ = "$Date: 2004/02/03 21:41:37 $"
+__version__ = "$Revision: 1.202 $"
+__date__ = "$Date: 2004/02/03 22:31:04 $"
__copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -167,9 +167,6 @@
"packs",
"schema.pack"))
- # AutoItem needs to know the repository
- AutoItem.AutoItem.SetRepository (Globals.repository)
-
# Load Parcels
parcelSearchPath = parcelDir
if __debug__ and debugParcelDir:
@@ -199,12 +196,6 @@
self.focus = None
EVT_IDLE(self, self.OnIdle)
- #allocate the Jabber client, logging in if possible
- #import ChandlerJabber
- # Globals.jabberClient = ChandlerJabber.JabberClient(self)
-
- # Globals.jabberClient.Login()
-
from OSAF.framework.blocks.Views import View
mainView = Globals.repository.find('//parcels/OSAF/views/main/MainView')
@@ -236,9 +227,9 @@
Globals.mainView.dispatchEvent)
# @@@ KCP Hack to register the event
- viewBlock = Globals.repository.find("//parcels/OSAF/views/content/MixedListView")
- Globals.notificationManager.Subscribe(viewBlock.blockEvents,
- viewBlock.getUUID(),
+ events = [Globals.repository.find("//parcels/OSAF/views/content/GenerateContentItemsEvent")]
+ Globals.notificationManager.Subscribe(events,
+ UUID(),
Globals.mainView.dispatchEvent)
mainView.render (self.mainFrame, self.mainFrame)
Index: osaf/chandler/Chandler/parcels/OSAF/views/content/parcel.xml
diff -u osaf/chandler/Chandler/parcels/OSAF/views/content/parcel.xml:1.1 osaf/chandler/Chandler/parcels/OSAF/views/content/parcel.xml:1.2
--- osaf/chandler/Chandler/parcels/OSAF/views/content/parcel.xml:1.1 Tue Feb 3 13:25:29 2004
+++ osaf/chandler/Chandler/parcels/OSAF/views/content/parcel.xml Tue Feb 3 14:31:05 2004
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
-<!-- $Date: 2004/02/03 21:25:29 $ -->
+<!-- $Revision: 1.2 $ -->
+<!-- $Date: 2004/02/03 22:31:05 $ -->
<!-- Copyright (c) 2004 Open Source Applications Foundation -->
<!-- License: http://osafoundation.org/Chandler_0.1_license_terms.htm -->
@@ -37,8 +37,8 @@
<!-- Styles -->
<!-- Events -->
<BlockEvent itemName="GenerateContentItemsEvent">
- <dispatchEnum>Broadcast</dispatchEnum>
- <!--dispatchToBlock itemref="view:ContentTreeList"/-->
+ <dispatchEnum>SendToBlock</dispatchEnum>
+ <dispatchToBlock itemref="view:MixedTreeList"/>
<methodName>OnGenerateContentItems</methodName>
</BlockEvent>
More information about the Commits
mailing list