[Commits] (vajda) added 'Check Repository' menu item to 'Test' menu

commits at osafoundation.org commits at osafoundation.org
Fri Feb 13 17:15:13 PST 2004


Commit by: vajda
Modified files:
osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py 1.12 1.13
osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Events/parcel.xml 1.16 1.17
osaf/chandler/Chandler/parcels/OSAF/views/main/parcel.xml 1.18 1.19

Log message:
added 'Check Repository' menu item to 'Test' menu


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py.diff?r1=text&tr1=1.12&r2=text&tr2=1.13
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Events/parcel.xml.diff?r1=text&tr1=1.16&r2=text&tr2=1.17
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/views/main/parcel.xml.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.18 osaf/chandler/Chandler/parcels/OSAF/views/main/parcel.xml:1.19
--- osaf/chandler/Chandler/parcels/OSAF/views/main/parcel.xml:1.18	Fri Feb 13 10:59:21 2004
+++ osaf/chandler/Chandler/parcels/OSAF/views/main/parcel.xml	Fri Feb 13 17:14:41 2004
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 
-<!-- $Revision: 1.18 $ -->
-<!-- $Date: 2004/02/13 18:59:21 $ -->
+<!-- $Revision: 1.19 $ -->
+<!-- $Date: 2004/02/14 01:14:41 $ -->
 <!-- Copyright (c) 2003 Open Source Applications Foundation -->
 <!-- License: http://osafoundation.org/Chandler_0.1_license_terms.htm -->
 
@@ -258,6 +258,17 @@
     <helpString>Generate 10 notes</helpString>
   </MenuItem>
 
+  <MenuItem itemName="CheckRepositoryItem">
+    <title>Check Repository</title>
+    <operation>InsertBefore</operation>
+    <menuLocation>TestMenu</menuLocation>
+    <itemLocation/>
+    <menuItemKind>Normal</menuItemKind>
+    <accel/>
+    <event itemref="events:CheckRepository"/>
+    <helpString>run check() on the current view</helpString>
+  </MenuItem>
+
   <!--
     Toolbars
   -->
@@ -529,6 +540,7 @@
     <childrenBlocks itemref="doc:GenerateContactItem"/>
     <childrenBlocks itemref="doc:GenerateCalendarItem"/>
     <childrenBlocks itemref="doc:GenerateNoteItem"/>
+    <childrenBlocks itemref="doc:CheckRepositoryItem"/>
     
     <!-- Toolbar -->
     <childrenBlocks itemref="doc:NavigationBar"/>

Index: osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py
diff -u osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py:1.12 osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py:1.13
--- osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py:1.12	Thu Feb 12 17:03:06 2004
+++ osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Views.py	Fri Feb 13 17:14:39 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.12 $"
-__date__ = "$Date: 2004/02/13 01:03:06 $"
+__version__ = "$Revision: 1.13 $"
+__date__ = "$Date: 2004/02/14 01:14:39 $"
 __copyright__ = "Copyright (c) 2003 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -151,3 +151,11 @@
         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')

Index: osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Events/parcel.xml
diff -u osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Events/parcel.xml:1.16 osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Events/parcel.xml:1.17
--- osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Events/parcel.xml:1.16	Tue Feb 10 21:42:21 2004
+++ osaf/chandler/Chandler/parcels/OSAF/framework/blocks/Events/parcel.xml	Fri Feb 13 17:14:39 2004
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 
-<!-- $Revision: 1.16 $ -->
-<!-- $Date: 2004/02/11 05:42:21 $ -->
+<!-- $Revision: 1.17 $ -->
+<!-- $Date: 2004/02/14 01:14:39 $ -->
 <!-- Copyright (c) 2003 Open Source Applications Foundation -->
 <!-- License: http://osafoundation.org/Chandler_0.1_license_terms.htm -->
 
@@ -32,6 +32,7 @@
     <blockEvents itemref="events:GenerateContacts"/>
     <blockEvents itemref="events:GenerateNotes"/>
     <blockEvents itemref="events:GenerateCalendarEvents"/>    
+    <blockEvents itemref="events:CheckRepository"/>
   </EventData>
 
   <BlockEvent itemName="Quit">
@@ -123,6 +124,11 @@
   <BlockEvent itemName="GenerateNotes">
     <dispatchEnum>BubbleUp</dispatchEnum>
     <methodName>OnGenerateNotes</methodName>
+  </BlockEvent>
+
+  <BlockEvent itemName="CheckRepository">
+    <dispatchEnum>BubbleUp</dispatchEnum>
+    <methodName>OnCheckRepository</methodName>
   </BlockEvent>
 
 </core:Parcel>



More information about the Commits mailing list