[tracker/tracker-0.8] Updated generator scripts to include dataobjects for emails.
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] Updated generator scripts to include dataobjects for emails.
- Date: Thu, 10 Jun 2010 13:12:24 +0000 (UTC)
commit d20bf70f97235d84cfe8130b58a3ddfe46a49130
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 f80c23b..14bb1d9 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> ;
@@ -50,7 +51,8 @@ nmo_Email = '''
nmo:from <%(email_sender)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]