3C3JbrHvNfHDdRUZ38aMZG changeset

Changeset336131373761 (b)
ParentNone (a)
ab
0+"""   
0+<iq type='set' to= 'roomname@conference.chat.oonair.net'  id='id1'>
0+ <oo xmlns='http://oonair.com/muc#share'>
0+   <item name='Falda tubo' thumbnail='http://webpage.info/falda_tn.jpg' id='itemid1' action='add' url='http://webpage.info/falda.html’>
0+      <metadata  path=' ' />
0+   </item>
0+ </oo>
0+</iq>
0+"""
0+class Item(ElementBase):
0+    name = 'item'
0+    namespace = 'http://oonair.com/muc#share'
0+    plugin_attrib = 'item'
0+    interfaces = set(('name', 'thumbnail', 'id', 'action', 'url', 'metadata'))
0+    sub_interfaces = set(('metadata'))
0+
0+class OO(ElementBase):
0+    name = 'oo'
0+    namespace = 'http://oonair.com/muc#share'
0+    plugin_attrib = 'oo_muc_share'
0+    interfaces = set(('item'))
0+    sub_interfaces = interfaces
0+    subitem = (Item,)
0+   
0+register_stanza_plugin(Iq, OO, Item)
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- Revision None
+++ Revision 336131373761
@@ -0,0 +1,25 @@
+"""
+<iq type='set' to= 'roomname@conference.chat.oonair.net' id='id1'>
+ <oo xmlns='http://oonair.com/muc#share'>
+ <item name='Falda tubo' thumbnail='http://webpage.info/falda_tn.jpg' id='itemid1' action='add' url='http://webpage.info/falda.html’>
+ <metadata path=' ' />
+ </item>
+ </oo>
+</iq>
+"""
+class Item(ElementBase):
+ name = 'item'
+ namespace = 'http://oonair.com/muc#share'
+ plugin_attrib = 'item'
+ interfaces = set(('name', 'thumbnail', 'id', 'action', 'url', 'metadata'))
+ sub_interfaces = set(('metadata'))
+
+class OO(ElementBase):
+ name = 'oo'
+ namespace = 'http://oonair.com/muc#share'
+ plugin_attrib = 'oo_muc_share'
+ interfaces = set(('item'))
+ sub_interfaces = interfaces
+ subitem = (Item,)
+
+register_stanza_plugin(Iq, OO, Item)