[Commits] (capps) Tweaked content model parcels after feedback from Brian

commits at osafoundation.org commits at osafoundation.org
Sun Jan 11 19:22:46 PST 2004


Commit by: capps
Modified files:
osaf/chandler/Chandler/parcels/OSAF/contentmodel/parcel.xml 1.20 1.21
osaf/chandler/Chandler/parcels/OSAF/contentmodel/contacts/parcel.xml 1.13 1.14
osaf/chandler/Chandler/parcels/OSAF/contentmodel/mail/parcel.xml 1.15 1.16
osaf/chandler/Chandler/parcels/OSAF/contentmodel/notes/parcel.xml 1.3 1.4

Log message:
Tweaked content model parcels after feedback from Brian


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/contentmodel/parcel.xml.diff?r1=text&tr1=1.20&r2=text&tr2=1.21
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/contentmodel/contacts/parcel.xml.diff?r1=text&tr1=1.13&r2=text&tr2=1.14
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/contentmodel/mail/parcel.xml.diff?r1=text&tr1=1.15&r2=text&tr2=1.16
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/parcels/OSAF/contentmodel/notes/parcel.xml.diff?r1=text&tr1=1.3&r2=text&tr2=1.4

Index: osaf/chandler/Chandler/parcels/OSAF/contentmodel/contacts/parcel.xml
diff -u osaf/chandler/Chandler/parcels/OSAF/contentmodel/contacts/parcel.xml:1.13 osaf/chandler/Chandler/parcels/OSAF/contentmodel/contacts/parcel.xml:1.14
--- osaf/chandler/Chandler/parcels/OSAF/contentmodel/contacts/parcel.xml:1.13	Thu Jan  8 00:25:04 2004
+++ osaf/chandler/Chandler/parcels/OSAF/contentmodel/contacts/parcel.xml	Sun Jan 11 19:22:14 2004
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 
-<!-- $Revision: 1.13 $ -->
-<!-- $Date: 2004/01/08 08:25:04 $ -->
+<!-- $Revision: 1.14 $ -->
+<!-- $Date: 2004/01/12 03:22:14 $ -->
 <!-- Copyright (c) 2003 Open Source Applications Foundation -->
 <!-- License: http://osafoundation.org/Chandler_0.1_license_terms.htm -->
 
@@ -90,10 +90,27 @@
     <type itemref="Boolean"/>
   </Attribute>
 
+  <!-- Attributes that might belong in other parcels -->
+
+  <Attribute itemName="itemsCreated">
+    <displayName>Items Created</displayName>
+    <description>List of content items created by this user.</description>
+    <cardinality>list</cardinality>
+    <type itemref="content:ContentItem"/>
+    <otherName>creator</otherName>
+  </Attribute>
+
+  <Attribute itemName="pastEmailAddresses">
+    <displayName>Past Email Addresses</displayName>
+    <issues>type should be EmailAddress, circularity problem</issues>
+    <cardinality>list</cardinality>
+    <type itemref="content:ContentItem"/>
+    <otherName>onceBelongedTo</otherName>
+  </Attribute>
+
   <Kind itemName="Contact">
     <displayName>Contact</displayName>
     <description>An entry in an address book. Typically represents either a person or a company.</description>
-    <issues>The 'itemsCreated' attribute is currently up on ContentItem, where really it belongs here on Contact.</issues>
     <issues>We should also have attributes for 'Participates in Events' and 'Old Email Addresses'. And we might want to keep track of lots of sharing information like 'Permissions I've given them', 'Items of mine they've subscribed to', 'Items of theirs I've subscribed to', etc.</issues>
     <superKinds itemref="content:ContentItem"/>
     <displayAttribute itemref="contact:contactName"/>
@@ -104,6 +121,7 @@
     <attributes itemref="contact:birthday"/>
     <attributes itemref="contact:gender"/>
     <attributes itemref="contact:isCompany"/>
+    <attributes itemref="contact:itemsCreated"/>
     <classes key="python">OSAF.contentmodel.contacts.Contacts.Contact</classes>
   </Kind>
 

Index: osaf/chandler/Chandler/parcels/OSAF/contentmodel/parcel.xml
diff -u osaf/chandler/Chandler/parcels/OSAF/contentmodel/parcel.xml:1.20 osaf/chandler/Chandler/parcels/OSAF/contentmodel/parcel.xml:1.21
--- osaf/chandler/Chandler/parcels/OSAF/contentmodel/parcel.xml:1.20	Thu Jan  8 00:24:12 2004
+++ osaf/chandler/Chandler/parcels/OSAF/contentmodel/parcel.xml	Sun Jan 11 19:22:13 2004
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 
 <!-- Parcel manifest for Pim Schema -->
-<!-- $Revision: 1.20 $ -->
-<!-- $Date: 2004/01/08 08:24:12 $ -->
+<!-- $Revision: 1.21 $ -->
+<!-- $Date: 2004/01/12 03:22:13 $ -->
 <!-- Copyright (c) 2003 Open Source Applications Foundation -->
 <!-- License: http://osafoundation.org/Chandler_0.1_license_terms.htm -->
 
@@ -64,16 +64,7 @@
     <core:issues>Type should be "Note"</core:issues>
     <core:cardinality>list</core:cardinality>
     <core:type itemref="ContentItem"/>
-    <core:inverseAttribute itemref="attachedToItems"/>
-  </core:Attribute>
-
-  <core:Attribute itemName="attachedToItems">
-    <core:displayName>Attached to Items</core:displayName>
-    <core:description>List of items this "note" is attached to.</core:description>
-    <core:issues>This attribute belongs on Note, not Content Item.</core:issues>
-    <core:cardinality>single</core:cardinality>
-    <core:type itemref="ContentItem"/>
-    <core:inverseAttribute itemref="attachedNotes"/>
+    <core:otherName>attachedToItems</core:otherName>
   </core:Attribute>
 
   <core:Attribute itemName="fyiLinks">
@@ -95,18 +86,11 @@
   <core:Attribute itemName="creator">
     <core:displayName>Created By</core:displayName>
     <core:description>Link to the user who created the item.</core:description>
-    <core:issues>The type should be Contact, but we have a circular dependency problem to fix. Perhaps this attribute definition should live in the contacts parcel, and modify the ContentItem kind?</core:issues>
+    <core:issues>The type should be Contact, but we have a circular dependency problem to fix. </core:issues>
+    <core:issues>Perhaps this attribute definition should live in the contacts parcel, and modify the ContentItem kind?</core:issues>
     <core:cardinality>single</core:cardinality>
     <core:type itemref="ContentItem"/>
-    <core:inverseAttribute itemref="itemsCreated"/>
-  </core:Attribute>
-
-  <core:Attribute itemName="itemsCreated">
-    <core:displayName>Items Created</core:displayName>
-    <core:description>List of content items created by this user.</core:description>
-    <core:cardinality>list</core:cardinality>
-    <core:type itemref="ContentItem"/>
-    <core:inverseAttribute itemref="creator"/>
+    <core:otherName>itemsCreated</core:otherName>
   </core:Attribute>
 
   <core:Kind itemName="ContentItem">
@@ -115,21 +99,16 @@
     <core:examples>a Contact -- 'Terry Smith'</core:examples>
     <core:examples>a Task -- 'mail 1040 to IRS'</core:examples>
     <core:description>Content Item is the abstract super-kind for things like Contacts, Calendar Events, Tasks, Mail Messages, and Notes. Content Items are user-level items, which a user might file, categorize, share, and delete.</core:description>
-    <core:issues>"itemsCreated" should really be an attribute of something like "User" or "Contact", rather than here on "ContentItem". I think maybe Katie put it here to avoid some circular dependency problem. - Brian</core:issues>
-    <core:issues>"attachedToItems" should really be an attribute of "Note", rather than here on "ContentItem". I think maybe Katie put it here to avoid some circular dependency problem. - Brian</core:issues>
     <core:attributes itemref="projects"/>
     <core:attributes itemref="groups"/>
     <core:attributes itemref="creator"/>
-    <core:attributes itemref="itemsCreated"/>
     <core:attributes itemref="parcel:createdOn"/>
     <core:attributes itemref="parcel:modifiedOn"/>
     <core:attributes itemref="fyiLinks"/>
     <core:attributes itemref="fyiLinkedToItems"/>
     <core:attributes itemref="attachedNotes"/>
-    <core:attributes itemref="attachedToItems"/>
     <core:classes key="python">OSAF.contentmodel.ContentModel.ContentItem</core:classes>
   </core:Kind>
-
 
 <!-- Project -->
   <core:Attribute itemName="parentProject">

Index: osaf/chandler/Chandler/parcels/OSAF/contentmodel/mail/parcel.xml
diff -u osaf/chandler/Chandler/parcels/OSAF/contentmodel/mail/parcel.xml:1.15 osaf/chandler/Chandler/parcels/OSAF/contentmodel/mail/parcel.xml:1.16
--- osaf/chandler/Chandler/parcels/OSAF/contentmodel/mail/parcel.xml:1.15	Thu Jan  8 01:00:31 2004
+++ osaf/chandler/Chandler/parcels/OSAF/contentmodel/mail/parcel.xml	Sun Jan 11 19:22:14 2004
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 
-<!-- $Revision: 1.15 $ -->
-<!-- $Date: 2004/01/08 09:00:31 $ -->
+<!-- $Revision: 1.16 $ -->
+<!-- $Date: 2004/01/12 03:22:14 $ -->
 <!-- Copyright (c) 2003 Open Source Applications Foundation -->
 <!-- License: http://osafoundation.org/Chandler_0.1_license_terms.htm -->
 
@@ -123,12 +123,20 @@
     <type itemref="String"/>
   </Attribute>
 
+  <Attribute itemName="onceBelongedTo">
+    <displayName>Once Belonged To</displayName>
+    <issues>type should be Contact</issues>
+    <cardinality>single</cardinality>
+    <type itemref="content:ContentItem"/>
+    <otherName>pastEmailAddresses</otherName>
+  </Attribute>
+
   <!-- Attributes that might belong in other parcels -->  
 
   <Attribute itemName="emailAddressOwner">
     <displayName>Email Address Owner</displayName>
     <description>The Contact that this address is </description>
-    <issues>only one owner</issues>
+    <issues>only one owner -- single cardinality implies that two contacts cannot have the same email address</issues>
     <issues>@@@ should be type ContactSection</issues>
     <cardinality>single</cardinality>
     <type itemref="Item"/>

Index: osaf/chandler/Chandler/parcels/OSAF/contentmodel/notes/parcel.xml
diff -u osaf/chandler/Chandler/parcels/OSAF/contentmodel/notes/parcel.xml:1.3 osaf/chandler/Chandler/parcels/OSAF/contentmodel/notes/parcel.xml:1.4
--- osaf/chandler/Chandler/parcels/OSAF/contentmodel/notes/parcel.xml:1.3	Thu Jan  8 00:24:54 2004
+++ osaf/chandler/Chandler/parcels/OSAF/contentmodel/notes/parcel.xml	Sun Jan 11 19:22:15 2004
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 
-<!-- $Revision: 1.3 $ -->
-<!-- $Date: 2004/01/08 08:24:54 $ -->
+<!-- $Revision: 1.4 $ -->
+<!-- $Date: 2004/01/12 03:22:15 $ -->
 <!-- Copyright (c) 2003 Open Source Applications Foundation -->
 <!-- License: http://osafoundation.org/Chandler_0.1_license_terms.htm -->
 
@@ -31,6 +31,15 @@
     <type itemref="String"/>
   </Attribute>
 
+  <Attribute itemName="attachedToItems">
+    <displayName>Attached to Items</displayName>
+    <description>List of items this "note" is attached to.</description>
+    <issues>This attribute belongs on Note, not Content Item.</issues>
+    <cardinality>single</cardinality>
+    <type itemref="content:ContentItem"/>
+    <otherName>attachedNotes</otherName>
+  </Attribute>
+
   <Kind itemName="Note">
     <displayName>Note</displayName>
     <issues>The attribute 'attachedToItems' is currently on ContentItem, although it really belongs here on Note.</issues>
@@ -38,6 +47,7 @@
     <displayAttribute itemref="notes:title"/>
     <attributes itemref="notes:title"/>
     <attributes itemref="notes:body"/>
+    <attributes itemref="notes:attachedToItems"/>
   </Kind>
 
   <!-- Bookmark -->



More information about the Commits mailing list