Hi,<br><br>Few days back I saw a discussion regarding adding an article to topics. I was successful in doing that.<br>But, I'm not at all finding a way to get that content back through a query !! Basically what I don't understand is the way in which the objects(or elements in the MQL infrastructure) are arranged, and what is the relationship between them. For example, in the write tutorial, a code segment says (I used this one to add article to my test topic on the sandbox):<br>
<br><pre class="programlisting"><font style="font-family: arial,helvetica,sans-serif;" size="2">result = metaweb.write({'create':'unless_exists',<br> 'type':'/common/topic',<br>
'id':None,<br> 'name':title,<br> 'article' : { 'create':'unless_exists',<br> 'type':'/common/document',<br>
'id':None,<br> 'content':content_id }},<br> credentials)</font><br></pre>So, I interpret that 'article' is a "property" of the object named by title here (TestObject3 in my case). Assuming this, if I query back for the article, it gives me 'null' :<br>
<br>QUERY:<br>{<br> "article" : [],<br> "name" : "TestObject3",<br> "type" : "/common/topic"<br>}<br>RESPONSE:<br>{<br> "article" : [<br> null<br> ],<br>
"name" : "TestObject3",<br> "type" : "/common/topic"<br>}<br><br>while I can view the article when i see through browser !! So either my understanding is wrong OR there seems to be some problem (which is highly unlikely) !!<br>
Anyways, can anyone point me to some link/document where the various elements and their relationships are clearly mentioned !! (By relationship I mean to understand like which elements contains which one, which can be a property of other.. and so on... )... I'm already very confused about all this !!<br>
<br>Regards,<br>Tej<br><br>