[tracker/rss-enclosures] Updated generator scripts to include dataobjects for emails.
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] Updated generator scripts to include dataobjects for emails.
- Date: Sat, 26 Jun 2010 23:16:25 +0000 (UTC)
commit 9f208f54435138943bb3b6a0c1b580b45af423a7
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]