2007-06-02T01:36:39  <grzywacz> argh
2007-06-02T01:37:42  <grzywacz> - `stanza_type`: staza type: one of: None, "available", "unavailable", "subscribe", "subscribed", "unsubscribe", "unsubscribed" or "error".
2007-06-02T01:38:26  <grzywacz> But I get stanza_type == "presence"...
2007-06-02T01:39:06  <xorAxAx> it was your lib choice :)
2007-06-02T01:39:17  <grzywacz> I'm well aware of that.
2007-06-02T01:39:20  <xorAxAx> superficial and shallow documentation? :)
2007-06-02T01:39:39  <grzywacz> Hard to say.
2007-06-02T01:39:53  <grzywacz> But still, no other lib had better docs. :P
2007-06-02T01:40:01  <xorAxAx> hehe
2007-06-02T01:40:04  <xorAxAx> good night
2007-06-02T01:40:05  <grzywacz> As "better" == "complete".
2007-06-02T01:40:11  <grzywacz> Night HMRE.
2007-06-02T01:40:17  <xorAxAx> hehe
2007-06-02T01:40:22  <xorAxAx> good night karol
2007-06-02T01:42:54  <grzywacz> Solved. Looking at the source code of the lib Gives Answers.
2007-06-02T01:43:03  <grzywacz> Still, wasted some time...
2007-06-02T02:04:40  <grzywacz> 8)
2007-06-02T02:32:50  <grzywacz> Lol, eclipse died when I tried to save my file. Looks like I really should buy more ram. -_-;
2007-06-02T02:39:39  <grzywacz> Oh god, again...
2007-06-02T10:34:50  <xorAxAx> grzywacz: it doesnt make sense to use eclipse without enough RAM :)
2007-06-02T10:34:56  <xorAxAx> grzywacz: but you can adjust the heap size
2007-06-02T10:35:11  <xorAxAx> it is fixed at startup time, the maximum one
2007-06-02T10:35:21  <xorAxAx> which linux distribution again
2007-06-02T10:35:22  <xorAxAx> ...?
2007-06-02T10:38:24  <grzywacz> xorAxAx, gentoo
2007-06-02T10:38:36  <grzywacz> xorAxAx, it's not a matter of heap size, it dies because of system-level oom
2007-06-02T10:38:43  <grzywacz> I guess I'll spend the initial payment on ram.
2007-06-02T10:38:44  <grzywacz> xD
2007-06-02T10:38:55  <xorAxAx> hehe
2007-06-02T10:39:02  <xorAxAx> it wont become cheaper
2007-06-02T10:39:09  <xorAxAx> in the short term
2007-06-02T10:39:34  <grzywacz> probably not ;]
2007-06-02T10:43:55  <grzywacz> Ok, bbl. I have to check the mem I have in my box...
2007-06-02T11:30:18  <ThomasWaldmann> moin
2007-06-02T11:54:23  <zenhase> moin
2007-06-02T12:19:39  <grzywacz> re
2007-06-02T16:37:46  <CIA-25> moin: Thomas Waldmann <tw AT waldmann-edv DOT de> * 2044:967d529b31e9 1.7/ (MoinMoin/logfile/__init__.py wiki/data/edit-log): workaround for initially non-existing edit-log, remove edit-log from repo
2007-06-02T16:38:15  <johill> !
2007-06-02T16:38:24  <johill> :)
2007-06-02T16:40:58  <ThomasWaldmann> greeting from GPN6
2007-06-02T16:41:22  <ThomasWaldmann> really just a dirty workaround :)
2007-06-02T16:48:24  <xorAxAx> hehe
2007-06-02T16:50:07  <grzywacz> ooh, niceness
2007-06-02T16:50:17  <grzywacz> Hm, my network is misbehaving today. I have to setup a jabber server locally, otherwise tests are going to take LONG ;S
2007-06-02T16:50:23  <xorAxAx> hehe
2007-06-02T16:58:33  <grzywacz> Here comes spam.
2007-06-02T16:58:37  <CIA-25> moin: Reimar Bauer <rb.proj AT googlemail DOT com> * 2058:bd83616af43a 1.7-jabber-knowak/MoinMoin/_tests/test_user.py: test_user: tests for subscription of pages and subpages
2007-06-02T16:58:39  <CIA-25> moin: Thomas Waldmann <tw AT waldmann-edv DOT de> * 2059:ca376b20b122 1.7-jabber-knowak/MoinMoin/parser/text_moin_wiki.py: wiki parser: remove unneded non-capturing group, update (c) header
2007-06-02T16:58:40  <CIA-25> moin: Johannes Berg <johannes AT sipsolutions DOT net> * 2060:68e302934c77 1.7-jabber-knowak/MoinMoin/ (auth/__init__.py auth/php_session.py request/__init__.py):
2007-06-02T16:58:40  <CIA-25> moin: add cookie back to auth keyword arguments
2007-06-02T16:58:40  <CIA-25> moin: the php_session auth requires the cookie and parsing it again
2007-06-02T16:58:42  <CIA-25> moin: would be stupid since in request we have parsed it already,
2007-06-02T16:58:44  <CIA-25> moin: so pass a reference to it in keywords
2007-06-02T16:58:48  <CIA-25> moin: Johannes Berg <johannes AT sipsolutions DOT net> * 2061:fa0bec111fdf 1.7-jabber-knowak/MoinMoin/auth/smb_mount.py: fix smb_mount
2007-06-02T16:58:51  <CIA-25> moin: Reimar Bauer <rb.proj AT googlemail DOT com> * 2062:4fc338f01037 1.7-jabber-knowak/MoinMoin/macro/WantedPages.py: WantedPages: cycle toggle allpages
2007-06-02T16:58:54  <CIA-25> moin: Reimar Bauer <rb.proj AT googlemail DOT com> * 2063:cc636ac8d6a6 1.7-jabber-knowak/MoinMoin/action/edit.py: edit: friendly used cancel on new page removes empty pagedir
2007-06-02T16:58:54  <johill> heh
2007-06-02T16:58:57  <CIA-25> moin: Thomas Waldmann <tw AT waldmann-edv DOT de> * 2064:967d529b31e9 1.7-jabber-knowak/ (MoinMoin/logfile/__init__.py wiki/data/edit-log): workaround for initially non-existing edit-log, remove edit-log from repo
2007-06-02T16:59:00  <CIA-25> moin: Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> * 2065:636e646f909b 1.7-jabber-knowak/MoinMoin/ (events/__init__.py jabber/xmppbot.py):
2007-06-02T16:59:05  <CIA-25> moin: Make jabber bot aware of contacts' presence.
2007-06-02T16:59:05  <johill> bit of a merge, eh? :)
2007-06-02T16:59:07  <CIA-25> moin: It now doesn't disturb contacts that are dnd, and queues messages for later
2007-06-02T16:59:09  <CIA-25> moin: delivery. This is a checkpoint commit.
2007-06-02T16:59:11  <CIA-25> moin: Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> * 2066:804513b0e689 1.7-jabber-knowak/wikiconfig.py: Add my testing wikiconfig, revert before merging to production tree!
2007-06-02T16:59:14  <CIA-25> moin: Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> * 2067:03469a83dad8 1.7-jabber-knowak/.hgignore: My .hgignore. Revert to the original before merging with production tree.
2007-06-02T16:59:19  <CIA-25> moin: Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> * 2068:1e18f9e4f228 1.7-jabber-knowak/ (10 files in 8 dirs): Merged Thomas' fix to the unignorable edit-log problem.
2007-06-02T17:53:09  <ThomasWaldmann> grzywacz: type = p.get_stanza_type()  # bad name
2007-06-02T17:59:14  <CIA-25> moin: Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> * 2069:6c3ae1a407a0 1.7-jabber-knowak/MoinMoin/jabber/xmppbot.py: Fix message delivery to contacts that become unavailable directly from dnd.
2007-06-02T17:59:15  <CIA-25> moin: Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> * 2070:bc71abbdaa51 1.7-jabber-knowak/MoinMoin/jabber/xmppbot.py: s/type/presence_type/ to better reflect the purpose of this variable.
2007-06-02T18:02:47  <grzywacz> ThomasWaldmann, anything else terribly wrong left? 8)
2007-06-02T18:03:27  * ThomasWaldmann only had the usual lowlevel pep8 and other silly things look at it
2007-06-02T18:03:40  <ThomasWaldmann> type is a builtin
2007-06-02T18:04:18  <grzywacz> Aye, I realised it when you pointed this out.
2007-06-02T18:05:11  <grzywacz> xorAxAx, busy? :)
2007-06-02T18:05:27  <xorAxAx> nope
2007-06-02T18:06:34  <ThomasWaldmann> grzywacz: eclipse/pydev points out such stuff in warnings/errors window
2007-06-02T18:06:48  <xorAxAx> which is basically just the pylint reuslt
2007-06-02T18:09:41  <grzywacz> ThomasWaldmann, it did not. :(
2007-06-02T18:09:47  <grzywacz> Wait, maybe I don't have pylint.
2007-06-02T18:10:41  <grzywacz> xorAxAx, anyway, as for my next tasks: I'm going to extend the xml rpc interface of the wiki, to make it possible for bot to query it about some stuff
2007-06-02T18:11:09  <grzywacz> Mainly, if there's an user with a given jabber id. I need this information to manage bot's roster. ;)
2007-06-02T18:11:37  <xorAxAx> grzywacz: ok
2007-06-02T18:12:05  <xorAxAx> grzywacz: if you need to issue a lot of xml requests, moin has an automatic xml rpc request driver with coroutine scheduling
2007-06-02T18:12:12  <xorAxAx> :-)
2007-06-02T18:12:46  <grzywacz> xorAxAx, where should I look for it? 8)
2007-06-02T18:13:18  <xorAxAx> even though knowing that you wont need it in the short term, you will be able to see the usage of it at the bottom of the syncpages action
2007-06-02T18:13:55  <grzywacz> ok
2007-06-02T18:13:57  <ThomasWaldmann> xorAxAx: yes, if you use the 0EUR version
2007-06-02T18:14:07  <xorAxAx> ThomasWaldmann: oh
2007-06-02T18:14:28  <xorAxAx> thats even worse, they could have extended pylint than taking money
2007-06-02T18:14:37  <xorAxAx> s/than/instead of/
2007-06-02T18:14:39  <xorAxAx> :-)
2007-06-02T18:54:36  <xorAxAx> grzywacz: btw, nobody forces you to fill __init__.py :)
2007-06-02T18:55:26  <xorAxAx> grzywacz: Observable is the argument to the class instantiation, not the class itself
2007-06-02T18:55:33  <xorAxAx> grzywacz: event was fine
2007-06-02T18:55:53  <xorAxAx> i was talking about the params of __init__
2007-06-02T18:57:10  <xorAxAx> and it would be nice if you kept changes that move code in one commit instead of two
2007-06-02T18:58:17  <xorAxAx> hmm
2007-06-02T18:58:49  <xorAxAx> grzywacz: so changing observable to event again would be nice
2007-06-02T18:59:47  <xorAxAx> your commits are not really self contained - i see one commit adding code, another removing it from another place and a third adding some base support (like the list return type of the event handling)
2007-06-02T19:02:00  <xorAxAx> +        if isinstance(retval, unicode):
2007-06-02T19:02:00  <xorAxAx> +            msg.append(retval)
2007-06-02T19:02:15  <xorAxAx> how about "is not None" here instead?
2007-06-02T19:04:26  <grzywacz> Later, when message is an object encapsulating some structured information?
2007-06-02T19:05:10  <xorAxAx> yes
2007-06-02T19:05:24  <xorAxAx> having a base class makes sense
2007-06-02T19:05:32  <xorAxAx> (as i have already said earlier
2007-06-02T19:08:18  <xorAxAx> note that you cannot use "global server" outside of early-stage testing code :-)
2007-06-02T19:08:23  <xorAxAx> grzywacz:
2007-06-02T19:09:53  <xorAxAx> have you seen the moinmoin-script framework?
2007-06-02T19:11:56  <grzywacz> No.
2007-06-02T19:12:31  <xorAxAx> hmm
2007-06-02T19:12:36  <xorAxAx> i wonder if it is useful to use it
2007-06-02T19:12:46  <xorAxAx> because your jabber server doesnt need a wiki instance
2007-06-02T19:13:13  <xorAxAx> but you can have a look at it and think about it, its in MoinMoin.scripts
2007-06-02T19:13:17  <grzywacz> Nope, it does not. And it shouldn't need it.
2007-06-02T19:13:35  <xorAxAx> (i think the framework doesnt require one)
2007-06-02T19:13:35  <grzywacz> Will do.
2007-06-02T19:13:50  <xorAxAx> grzywacz: next issue - class XMLRPCServer(Thread, SimpleXMLRPCServer): is not very sane .. because everybody could call thread's methods, no?
2007-06-02T19:14:14  <grzywacz> Good point.
2007-06-02T19:14:15  <xorAxAx> also, whats your plan for authentication? a shared secret like implemented in wikisync?
2007-06-02T19:14:17  <grzywacz> :\
2007-06-02T19:14:23  <grzywacz> Yes, a shared secret.
2007-06-02T19:14:45  <grzywacz> That's how jabberd components authenticate themselves as well.
2007-06-02T19:15:01  <grzywacz> Of course, using a ssl-protected connection would make sense.
2007-06-02T19:20:41  <CIA-25> moin: Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> * 2071:9c66c85a6a70 1.7-jabber-knowak/MoinMoin/jabber/ (main.py xmlrpcbot.py xmppbot.py): Fix some reasonable stuff suggested by pylint.
2007-06-02T19:20:42  <CIA-25> moin: Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> * 2072:5e0c667c79cb 1.7-jabber-knowak/MoinMoin/jabber/xmlrpcbot.py: Don't inherit SimpleXMLRPCServer, it's dangerous.
2007-06-02T19:56:25  <xorAxAx> grzywacz: Contact.resources should be a dict
2007-06-02T19:56:39  <xorAxAx> resource name -> dict of show, prio
2007-06-02T19:57:05  <grzywacz> agreed
2007-06-02T20:16:19  <dreimark> moin
2007-06-02T20:16:58  <dreimark> xorAxAx: Release_1.6.0 - guess_page - whats that?
2007-06-02T20:17:58  <xorAxAx> thats an extension that compensates for thomas URL breakage by guessing the wanted page :)
2007-06-02T20:29:46  <dreimark> xorAxAx: ahh, when is it be implemeted?
2007-06-02T20:31:19  <xorAxAx> dreimark: soon enough :-)
2007-06-02T20:48:27  <xorAxAx> lanius: ping
2007-06-02T20:48:54  <xorAxAx> lanius: please remove the unittest import from your tests and read http://codespeak.net/py/dist/test.html
2007-06-02T20:49:00  <xorAxAx> grzywacz: read http://codespeak.net/py/dist/test.html as well :)
2007-06-02T20:51:16  <xorAxAx> lanius: def decodeDict(line): is not PEP8
2007-06-02T20:52:24  <xorAxAx> oh, already fixed that name
2007-06-02T20:53:23  <ThomasWaldmann> btw, new ideas for .exists() and fs storage: if we implement the wiki trash bin (e.g. mounted below WikiTrash/ page) and move pages there to "delete" them, we don't have to check for deletion when doing .exists(). So it could be just a single stat() call for the pagedir.
2007-06-02T20:54:13  <zenhase> finally ... a working laptop
2007-06-02T21:00:34  <xorAxAx> dreimark: can you forward this to your student: we need correct copyright/licenses notices for copied code from SB in the py files, a lot of the code is not PEP8 conformant (spacing, camel case)
2007-06-02T21:01:26  <xorAxAx> dreimark: this  includes functions like isMemberOf or lines without spaces before and after ==
2007-06-02T21:02:59  <dreimark> xorAxAx: ThomasWaldmann told him about PEP8  yesterday too I will do too
2007-06-02T21:03:13  <xorAxAx> ok
2007-06-02T21:03:27  <xorAxAx> well, as long as somebody tells him :)
2007-06-02T21:04:30  <dreimark> I think I will ask him to compare eclipse with vim ;) this helps more to understand what all is wrong
2007-06-02T22:49:26  <xorAxAx> hi neagulm
2007-06-02T22:56:20  <neagulm> hllo xorAxAx
2007-06-02T23:31:33  <CIA-25> moin: Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl> * 2073:d72f126157f7 1.7-jabber-knowak/MoinMoin/jabber/xmppbot.py: Make Contact.resources a dictionary, fix a bug in updating of show property
2007-06-02T23:32:36  <xorAxAx> any student who produces readable words as revision hashes gets extra points for the final evaluation btw
2007-06-02T23:34:41  <grzywacz> ;-))))
2007-06-02T23:35:33  <xorAxAx> neagulm: it would be nice if you ammended the copied code from SB with copyright notices and license name
2007-06-02T23:39:48  <neagulm> xorAxAx, yes.
2007-06-02T23:40:26  <neagulm> xorAxAx, but i think that i will rewrite the tokenizer...
2007-06-02T23:40:32  <xorAxAx> (if the license differs)
2007-06-02T23:40:47  <xorAxAx> neagulm: in that case, you dont need it in the short term :)
2007-06-02T23:44:33  <neagulm> xorAxAx, currently i have a problem: message attachements. In SB they walk() the MIMEMultipart message and take the first few bytes fron non MIMEText parts and feed them to the classifier.
2007-06-02T23:44:48  <xorAxAx> neagulm: moin has mime walking code in it :)
2007-06-02T23:44:51  <xorAxAx> whats the problem?
2007-06-02T23:47:43  <neagulm> xorAxAx, in our case I don't think that we should provide to much attachement information to the classifier because the attachments are not under version control... The problem is that I don't know if this will improve the classifer reliability or degrade it
2007-06-02T23:48:20  <xorAxAx> how is the fact related to this decision, can you elaborate?
2007-06-02T23:48:44  <xorAxAx> and note that the new storage system which is integrated parallely will feature attachment versioning
2007-06-02T23:49:50  <neagulm> ok, this would mean that we need to get in sync... :)
2007-06-02T23:50:11  <xorAxAx> there is a good wiki page about it
2007-06-02T23:50:22  <xorAxAx> but please elaborate on that implications you are thinking about
2007-06-02T23:50:30  <neagulm> yes
2007-06-02T23:51:57  <neagulm> I'm afraid that a spammer could exploit the fact that currently the attachments are not versioned
2007-06-02T23:52:18  <xorAxAx> are you still thinking in spam terms? :)
2007-06-02T23:52:27  <xorAxAx> wasnt one of the goal generic classification? :)
2007-06-02T23:52:38  <neagulm> yes
2007-06-02T23:52:52  <xorAxAx> hmm, how could he exploit that fact?
2007-06-02T23:53:51  <neagulm> generic classification is one of the goals but we decided that currently the spam classifier is more important and that we will leave generic text classification for later
2007-06-02T23:54:53  <neagulm> imediately, I want to test something in my local wiki in order to confirm my ideea

MoinMoin: MoinMoinChat/Logs/moin-dev/2007-06-02 (last edited 2007-10-29 19:12:53 by localhost)