aj
has joined
00:06:16
lksjdflksjdf
has left
00:52:26
moparisthebest
has left
01:25:57
moparisthebest
has joined
01:26:20
bhaveshsgupta
has joined
01:28:51
bhaveshsgupta
has left
01:48:28
bhaveshsgupta
has joined
02:46:23
bhaveshsgupta
has left
03:26:33
bhaveshsgupta
has joined
03:54:49
bhaveshsgupta
has left
04:14:35
bhaveshsgupta
has joined
04:24:55
bhaveshsgupta
has left
04:40:58
bhaveshsgupta
has joined
04:48:58
bhaveshsgupta
has left
06:08:48
bhaveshsgupta
has joined
06:12:25
bhaveshsgupta
has left
06:23:20
bhaveshsgupta
has joined
06:24:30
bhaveshsgupta
has left
06:33:20
bhaveshsgupta
has joined
06:36:27
bhaveshsgupta
has left
06:55:05
bhaveshsgupta
has joined
07:00:26
bhaveshsgupta
has left
07:20:33
bhaveshsgupta
has joined
07:24:31
larma
has left
07:31:14
larma
has joined
07:36:41
Zash
has left
07:58:21
bhaveshsgupta
has left
07:58:43
bhaveshsgupta
has joined
07:59:00
bhaveshsgupta
has left
08:07:03
Zash
has joined
08:09:01
bhaveshsgupta
has joined
08:11:01
jonas’
has left
08:14:23
jonas’
has joined
08:14:24
bhaveshsgupta
has left
08:21:41
bhaveshsgupta
has joined
08:26:20
bhaveshsgupta
has left
08:34:54
bhaveshsgupta
has joined
08:34:59
bhaveshsgupta
has left
08:42:34
bhaveshsgupta
has joined
08:47:00
bhaveshsgupta
has left
08:53:12
bhaveshsgupta
has joined
08:59:02
bhaveshsgupta
has left
09:10:01
bhaveshsgupta
has joined
09:11:02
lksjdflksjdf
has joined
09:46:38
bhaveshsgupta
has left
09:52:25
bhaveshsgupta
has joined
09:52:43
bhaveshsgupta
has left
11:17:52
bhaveshsgupta
has joined
11:24:05
bhaveshsgupta
has left
11:37:37
bhaveshsgupta
has joined
11:37:40
marc0s
has left
12:05:17
marc0s
has joined
12:05:18
bhaveshsgupta
has left
12:06:18
MattJ
has left
13:04:51
Zash
has left
13:05:21
Zash
has joined
13:05:48
Zash
13:46:33
Anyone happen to know about any wokkel pubsub examples I could look at?
bhaveshsgupta
has joined
14:08:22
lovetox
has joined
14:16:54
bhaveshsgupta
has left
14:24:07
bhaveshsgupta
has joined
14:26:35
ralphm
14:58:20
Zash: besides the ones in the repo?
Zash
14:58:45
ralphm, were there examples specific to *pubsub* that I missed?
ralphm
14:58:54
ah, crap
ralphm
14:59:02
let me see if I can point you to some
Zash
14:59:13
I got as far as making a thing that connects and subscribes to a node
bhaveshsgupta
has left
15:02:21
bhaveshsgupta
has joined
15:02:27
ralphm
15:03:14
I have code using it, of course, e.g. in ikDisplay, but that's not really an easy example.
ralphm
15:04:10
Zash: maybe I can help you with something specific?
Zash
15:04:46
Actually, I might be a point where I'd wanna read docs on how to interact with the XML data.
ralphm
15:05:31
Zash: I assume you have implemented an itemsReceived method on your subclass of PubSubClient?
ralphm
15:06:05
Then, the only arguments is `events`, and it has an `items` attribute you can inspect
Zash
15:06:21
https://cerdale.zash.se/upload/jlSf-ddwwUkewp1n/pubsub-example.tac
ralphm
15:08:05
Right. So an item here is one of these: https://wokkel.ik.nu/documentation/current/api/wokkel.pubsub.Item.html
Daniel
has left
15:08:40
ralphm
15:12:01
as an Item is an Element, you can either use named attributes 'eg. item.foo, to get to the payload root named foo', or using the elements() function that returns an iterator of child elements
ralphm
15:12:15
an Element has 'name' and 'uri' attributes to inspect
aj
has left
15:12:41
ralphm
15:13:25
and you can coerce the text in an child 'bar' with `unicode(parent.bar)`
ralphm
15:13:36
Zash: does that help?
Zash
15:14:52
Yes, thanks. Finding some twisted domish docs too.
ralphm
15:17:53
https://twistedmatrix.com/documents/current/api/twisted.words.xish.domish.Element.html
ralphm
15:19:18
Zash: I had plans to actually write more documentation, but sadly that's not happened yet
ralphm
15:20:48
Zash: if you want to see typical use of domish Elements, I suggest looking at the wokkel code, where it parses things in methods typically called fromElement
ralphm
15:22:00
Zash: e.g. in data_form.py or muc.py
bhaveshsgupta
has left
15:36:31
bhaveshsgupta
has joined
15:38:30
Zash
15:40:03
Wooh!
`2019-08-30T17:39:00+0200 [stdout#info] Hello World`
MattJ
has joined
15:40:48
ralphm
15:43:59
:-D
bhaveshsgupta
has left
15:48:04
Daniel
has joined
15:48:49
bhaveshsgupta
has joined
15:50:30
bhaveshsgupta
has left
16:26:17
bhaveshsgupta
has joined
16:26:30
bhaveshsgupta
has left
16:35:00
bhaveshsgupta
has joined
16:38:31
bhaveshsgupta
has left
16:49:25
bhaveshsgupta
has joined
16:50:31
bhaveshsgupta
has left
17:35:38
bhaveshsgupta
has joined
17:38:33
bhaveshsgupta
has left
18:09:21
bhaveshsgupta
has joined
18:14:37
marc0s
has left
18:34:57
marc0s
has joined
18:35:01
bhaveshsgupta
has left
19:08:18
bhaveshsgupta
has joined
19:08:39
bhaveshsgupta
has left
20:09:06
bhaveshsgupta
has joined
21:59:05
bhaveshsgupta
has left
22:07:09
aj
has joined
23:21:10
bhaveshsgupta
has joined
23:59:06