[Commits] (donn) Updated Item Collections - replaced missing attributes

commits at osafoundation.org commits at osafoundation.org
Mon Sep 13 21:18:09 PDT 2004


Commit by: donn
Modified files:
chandler/parcels/osaf/contentmodel/ItemCollection.py 1.16 1.17
chandler/parcels/osaf/contentmodel/parcel.xml 1.64 1.65

Log message:
Updated Item Collections - replaced missing attributes
------------------------------------------------------
* Some attributes were removed during the recent code rework
* Missing attributes caused fields to not showing in the Detail View
* Replaced redirectTo attributes for date, who, about
* Replaced displayName
* Replaced shareSend() method which shares the Item Collection

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/contentmodel/ItemCollection.py.diff?r1=text&tr1=1.16&r2=text&tr2=1.17
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/contentmodel/parcel.xml.diff?r1=text&tr1=1.64&r2=text&tr2=1.65

Index: chandler/parcels/osaf/contentmodel/ItemCollection.py
diff -u chandler/parcels/osaf/contentmodel/ItemCollection.py:1.16 chandler/parcels/osaf/contentmodel/ItemCollection.py:1.17
--- chandler/parcels/osaf/contentmodel/ItemCollection.py:1.16	Mon Sep 13 13:56:02 2004
+++ chandler/parcels/osaf/contentmodel/ItemCollection.py	Mon Sep 13 21:18:08 2004
@@ -1,4 +1,4 @@
-__date__ = "$Date: 2004/09/13 20:56:02 $"
+__date__ = "$Date: 2004/09/14 04:18:08 $"
 __copyright__ = "Copyright (c) 2003-2004 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -196,6 +196,13 @@
                     rule = "intersect (" + rule + ", for i in '" + kindPath + "' where True)"
         return (rule, args)
 
+    def shareSend (self):
+        """
+          Share this Item, or Send it (if it's an Email)
+        """
+        # ask the mainView to do the bulk of the work, showing progress
+        Globals.mainView.ShareCollection (self)
+
     def __len__ (self):
         return len (self.results)
 

Index: chandler/parcels/osaf/contentmodel/parcel.xml
diff -u chandler/parcels/osaf/contentmodel/parcel.xml:1.64 chandler/parcels/osaf/contentmodel/parcel.xml:1.65
--- chandler/parcels/osaf/contentmodel/parcel.xml:1.64	Sat Sep 11 12:13:06 2004
+++ chandler/parcels/osaf/contentmodel/parcel.xml	Mon Sep 13 21:18:08 2004
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 
 <!-- Parcel manifest for Pim Schema -->
-<!-- $Revision: 1.64 $ -->
-<!-- $Date: 2004/09/11 19:13:06 $ -->
+<!-- $Revision: 1.65 $ -->
+<!-- $Date: 2004/09/14 04:18:08 $ -->
 <!-- Copyright (c) 2003-2004 Open Source Applications Foundation -->
 <!-- License: http://osafoundation.org/Chandler_0.1_license_terms.htm -->
 
@@ -369,6 +369,8 @@
     <core:classes key="python">osaf.contentmodel.ItemCollection.ItemCollection</core:classes>
     <core:superKinds itemref="ContentItem"/>
 
+    <core:displayName>Item Collection</core:displayName>
+
     <core:Attribute itsName="_rule">
       <core:type itemref="core:String"/>
       <core:initialValue type="core:String"></core:initialValue>
@@ -426,6 +428,20 @@
     <core:attributes itemref="ItemCollection/queryStringStale"/>
     <core:attributes itemref="ItemCollection/resultsStale"/>
 
+    <!-- redirections -->
+    <core:Attribute itsName="who"> 	 
+      <redirectTo>sharees</redirectTo> 	 
+    </core:Attribute> 	 
+    
+    <core:Attribute itsName="whoFrom"> 	 
+      <redirectTo>sharer</redirectTo> 	 
+    </core:Attribute> 	 
+    
+    <core:Attribute itsName="about"> 	 
+      <redirectTo>displayName</redirectTo> 	 
+    </core:Attribute> 	 
+    
+    <!-- Default Cloud -->
     <core:Cloud itsName="DefaultCloud">
       <core:Endpoint itsName="_inclusions">
         <attribute value="_inclusions"/>



More information about the Commits mailing list