[tracker] Updated generator scripts to include dataobjects for emails.



commit e2d2477f612c6551d5e0b4bf21fe6bddf20c2099
Author: Mikael Ottela <mikael ottela ixonos com>
Date:   Thu Jun 10 05:02:40 2010 +0300

    Updated generator scripts to include dataobjects for emails.

 utils/data-generators/cc/nmo.py |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/utils/data-generators/cc/nmo.py b/utils/data-generators/cc/nmo.py
index aacc6bc..ffc9509 100644
--- a/utils/data-generators/cc/nmo.py
+++ b/utils/data-generators/cc/nmo.py
@@ -21,9 +21,10 @@ def generateMailAccount(index):
 
 ####################################################################################
 nmo_MailFolder = '''
-<%(mailfolder_uri)s> a nmo:MailFolder ;
-    nie:relatedTo  %(mailfolder_account)s ;
-    nmo:folderName "%(mailfolder_name)s" .
+<%(mailfolder_uri)s> a nmo:MailFolder, nmo:MailboxDataObject ;
+    tracker:available  true ;
+    nie:relatedTo      %(mailfolder_account)s ;
+    nmo:folderName    "%(mailfolder_name)s" .
 '''
 def generateMailFolder(index):
   me = 'nmo#MailFolder'
@@ -35,7 +36,7 @@ def generateMailFolder(index):
 
 ####################################################################################
 nmo_Email = '''
-<%(email_uri)s> a nmo:Email ;
+<%(email_uri)s> a nmo:Email, nmo:MailboxDataObject ;
     nie:mimeType         "%(email_mime)s" ;
     nie:relatedTo        <%(email_account)s> ;
     nie:isStoredAs       <%(email_stored_as)s> ;
@@ -51,7 +52,8 @@ nmo_Email = '''
     nmo:from             <%(email_from)s> ;
     nmo:isDraft          "%(email_draft)s" ;
     nmo:isDeleted        "%(email_deleted)s" ;
-    nmo:sentDate         "%(email_sent)s" .
+    nmo:sentDate         "%(email_sent)s" ;
+    tracker:available     true .
 '''
 def generateEmail(index):
   me = 'nmo#Email'



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]