Title: [commits] (jeffrey) [11226] - Fix .eml drag and drop to not use Globals.view to find MainView, since that no longer works
Revision
11226
Author
jeffrey
Date
2006-07-21 10:59:15 -0700 (Fri, 21 Jul 2006)

Log Message

- Fix .eml drag and drop to not use Globals.view to find MainView, since that no longer works

Modified Paths

Diff

Modified: trunk/chandler/parcels/osaf/sharing/ChooseFormat.py (11225 => 11226)

--- trunk/chandler/parcels/osaf/sharing/ChooseFormat.py	2006-07-21 17:15:38 UTC (rev 11225)
+++ trunk/chandler/parcels/osaf/sharing/ChooseFormat.py	2006-07-21 17:59:15 UTC (rev 11226)
@@ -19,6 +19,7 @@
 import osaf.mail.message
 import osaf.sharing.ICalendar
 import application.Globals as Globals
+from osaf.framework.blocks.Block import Block
 
 EMAIL_FORMAT, EMAILX_FORMAT, ICALENDAR_FORMAT = range(3)
 
@@ -83,7 +84,7 @@
 def importEmail(text, view, coll=None, selectedCollection=False):
     item = osaf.mail.message.messageTextToKind(view, text)
     if selectedCollection or coll is None:
-        coll = Globals.views[0].getSidebarSelectedCollection()
+        coll = Block.findBlockByName("MainView").getSidebarSelectedCollection()
     if item is not None:
         coll.add(item)
     return item




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to