[tracker/subqueries: 7/10] NMO: Add nmo:messageChannel for optimization testing



commit 3be39068f65dc27d47cceec056c7635b9699a214
Author: Jürg Billeter <j bitron ch>
Date:   Mon Dec 7 16:31:25 2009 +0100

    NMO: Add nmo:messageChannel for optimization testing
    
    data-generators: s/nmo:messageChannel/nmo:communicationChannel/
    
    Remove nmo:messageChannel

 utils/data-generators/generate-data-for-gossip.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/utils/data-generators/generate-data-for-gossip.py b/utils/data-generators/generate-data-for-gossip.py
index 55ab08f..0b552c7 100755
--- a/utils/data-generators/generate-data-for-gossip.py
+++ b/utils/data-generators/generate-data-for-gossip.py
@@ -200,11 +200,7 @@ def generate_im_messages (n_convs, n_channels, msgs_per_convs, friends_list, n_f
 
         for j in range (0, n_convs):
             conversation_id = get_random_uuid_uri()
-            print_instance (conversation_id, "nmo:Conversation")
-
-            print_property ("nmo:communicationChannel", 
-                            channel_id, 
-                            t = "uri", final = True)
+            print_instance (conversation_id, "nmo:Conversation", final = True)
 
             if same_friend:
                 random_friend = same_friend
@@ -218,6 +214,10 @@ def generate_im_messages (n_convs, n_channels, msgs_per_convs, friends_list, n_f
             for k in range (0, random.randint(1, msgs_per_convs + 1)):
                 print_instance (get_random_uuid_uri(), "nmo:IMMessage")
 
+                print_property ("nmo:communicationChannel",
+                                channel_id, 
+                                t = "uri")
+
                 print_property ("nmo:conversation", 
                                 conversation_id, 
                                 t = "uri")



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