[Commits] (morgen) Hurray! Subscribing to a collection via the Test
menu will fetch the
commits at osafoundation.org
commits at osafoundation.org
Fri Aug 20 12:35:20 PDT 2004
Commit by: morgen
Modified files:
chandler/parcels/osaf/framework/blocks/Block.py 1.62 1.63
Log message:
Hurray! Subscribing to a collection via the Test menu will fetch the
collection via webdav, create a new view for that collection, and add
the view to the sidebar.
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/Block.py.diff?r1=text&tr1=1.62&r2=text&tr2=1.63
Index: chandler/parcels/osaf/framework/blocks/Block.py
diff -u chandler/parcels/osaf/framework/blocks/Block.py:1.62 chandler/parcels/osaf/framework/blocks/Block.py:1.63
--- chandler/parcels/osaf/framework/blocks/Block.py:1.62 Fri Aug 20 09:44:52 2004
+++ chandler/parcels/osaf/framework/blocks/Block.py Fri Aug 20 12:35:19 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.62 $"
-__date__ = "$Date: 2004/08/20 16:44:52 $"
+__version__ = "$Revision: 1.63 $"
+__date__ = "$Date: 2004/08/20 19:35:19 $"
__copyright__ = "Copyright (c) 2003-2004 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -210,11 +210,20 @@
for item in event.items:
if event.copyItems:
- item = item.copy(parent=userdata, cloudAlias='default')
+ copies = { } # This will contain all the copied items
+ item = item.copy(parent=userdata, cloudAlias='default',
+ copies=copies)
+ Globals.notificationManager.PrepareSubscribers()
if collection is not None:
print "I am setting collection to", collection
- collection.displayName = "XYZZY"
item.contents = collection
+
+ # @@@ Hack to also set the table's contents:
+ tableKind = Globals.repository.findPath("//parcels/osaf/framework/blocks/Table")
+ for copy in copies.values():
+ if copy.isItemOf(tableKind):
+ copy.contents = collection
+
"""
Hack to work around Stuarts bug #1568 -- DJA
"""
More information about the Commits
mailing list