[Commits] (john) - Bug #1356 Subclass View for chandler specific handlers

commits at osafoundation.org commits at osafoundation.org
Fri Mar 26 16:15:29 PST 2004


Commit by: john
Modified files:
osaf/chandler/Chandler/parcels/OSAF/views/main/Main.py None 1.1
osaf/chandler/Chandler/parcels/OSAF/views/main/parcel.xml 1.25 1.26
osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py 1.18 1.19

Log message:
- Bug #1356 Subclass View for chandler specific handlers


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/views/main/Main.py?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/views/main/parcel.xml.diff?r1=text&tr1=1.25&r2=text&tr2=1.26
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py.diff?r1=text&tr1=1.18&r2=text&tr2=1.19

Index: osaf/chandler/Chandler/parcels/OSAF/views/main/parcel.xml
diff -u osaf/chandler/Chandler/parcels/OSAF/views/main/parcel.xml:1.25 osaf/chandler/Chandler/parcels/OSAF/views/main/parcel.xml:1.26
--- osaf/chandler/Chandler/parcels/OSAF/views/main/parcel.xml:1.25	Sat Mar 20 15:21:59 2004
+++ osaf/chandler/Chandler/parcels/OSAF/views/main/parcel.xml	Fri Mar 26 16:14:58 2004
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 
-<!-- $Revision: 1.25 $ -->
-<!-- $Date: 2004/03/20 23:21:59 $ -->
+<!-- $Revision: 1.26 $ -->
+<!-- $Date: 2004/03/27 00:14:58 $ -->
 <!-- Copyright (c) 2003 Open Source Applications Foundation -->
 <!-- License: http://osafoundation.org/Chandler_0.1_license_terms.htm -->
 
@@ -561,6 +561,7 @@
   </BoxContainer>
   
   <View itemName="MainView">
+        itemClass="OSAF.views.main.MainView.MainView">
     <!-- Menus -->
     <childrenBlocks itemref="doc:FileMenu"/>
     <childrenBlocks itemref="doc:QuitItem"/>

Index: osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py
diff -u osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py:1.18 osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py:1.19
--- osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py:1.18	Sat Mar 20 15:22:01 2004
+++ osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py	Fri Mar 26 16:14:59 2004
@@ -1,19 +1,13 @@
-__version__ = "$Revision: 1.18 $"
-__date__ = "$Date: 2004/03/20 23:22:01 $"
+__version__ = "$Revision: 1.19 $"
+__date__ = "$Date: 2004/03/27 00:14:59 $"
 __copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
-import logging
 import application.Globals as Globals
-from Block import *
 from ContainerBlocks import *
 from MenuBlocks import MenuEntry
 from OSAF.framework.notifications.Notification import Notification
 from wxPython.wx import *
-from wxPython.html import *
-
-import OSAF.framework.utils.imports.OutlookContacts as OutlookContacts
-import OSAF.contentmodel.tests.GenerateItems as GenerateItems
 
 class View(BoxContainer):
     def dispatchEvent (self, notification):
@@ -117,59 +111,3 @@
                     return
             block = block.parentBlock
 
-
-    """
-      Some placeholders for handling events.
-    """
-    def OnQuitEvent (self, notification):
-        Globals.wxApplication.mainFrame.Close ()
-        
-    def OnUndoEventUpdateUI (self, notification):
-        notification.data ['Text'] = 'Undo Command\tCtrl+Z'
-        notification.data ['Enable'] = False
-
-    def OnRedoEventUpdateUI (self, notification):
-        notification.data ['Enable'] = False
-
-    def OnCutEventUpdateUI (self, notification):
-        notification.data ['Enable'] = False
-
-    def OnCopyEventUpdateUI (self, notification):
-        notification.data ['Enable'] = False
-
-    def OnPasteEventUpdateUI (self, notification):
-        notification.data ['Enable'] = False
-        
-    def OnPreferencesEventUpdateUI (self, notification):
-        notification.data ['Enable'] = False
-        
-    # Test Methods
-
-    def OnGenerateContentItems(self, notification):
-        GenerateItems.GenerateCalendarEvents(5, 30)
-        GenerateItems.GenerateContacts(5)
-        Globals.repository.commit()
-
-    def OnGenerateCalendarEvents(self, notification):
-        GenerateItems.GenerateCalendarEvents(10, 30)
-        Globals.repository.commit()
-
-    def OnGenerateContacts(self, notification):
-        GenerateItems.GenerateContacts(10)
-        Globals.repository.commit()
-
-    def OnImportContacts(self, notification):
-        x=OutlookContacts.OutlookContacts().processFile()
-
-    def OnGenerateNotes(self, notification):
-        GenerateItems.GenerateNotes(10)
-        Globals.repository.commit()
-
-    def OnCheckRepository(self, notification):
-
-        repository = Globals.repository
-        repository.logger.info('Checking repository...')
-        if repository.check():
-            repository.logger.info('Check completed successfully')
-        else:
-            repository.logger.info('Check completed with errors')



More information about the Commits mailing list