IRC Logs for #circuits Wednesday, 2014-01-08

prologicyou reckon?00:04
prologicthis would mean all from circuits import blah00:04
prologicwhere blah is from circuits.core00:04
prologicwould change to00:04
prologicfrom circuits.core import blah00:04
prologicdo you see this as a big issue?00:04
*** mfdl has joined #circuits01:42
spaceoneprologic: hmm, when creating circuits.foo circuits.__init__ will be overwriten in any case??01:43
prologiccorrect01:43
prologicwhich is precisely why you cannot have code/symbols in it01:43
prologicas there is no predefined order of which particular version of the namespace package gets loaded01:44
prologicthat's the why01:44
prologicno matter how it's implemented - there is no way around this behavior01:44
prologicso no code, data or convenient imports in top-level __init__.py of any namespace package is possible01:44
spaceonehmm :/01:46
spaceonethey could if they copy the __init__.py ?01:47
prologiceven then they can't02:01
prologicno02:01
prologicbecause of the undefined order02:01
prologicif you defined code in one top-level nemaspace package02:01
prologicand then defined code in another of the same namespace package02:01
prologicthe order is undefined as it's up to the user02:02
prologicyou'd have to duplicate said code in all namespaces packages02:02
spaceoneERROR <listener[*.part] (Bot.part)> (<type 'exceptions.TypeError'>): part() takes exactly 3 arguments (4 given)02:26
spaceonecircuits-dev/circuits/core/manager.py", line 521, in _dispatcher02:26
prologichmm?02:32
prologicwhat was passed to the PART() event?02:32
prologicit should take a channel as mandatory argument02:33
prologicand an optional reason02:33
*** mfdl has quit IRC02:56
*** ircnotifier has joined #circuits03:05
*** mfdl has joined #circuits03:56
*** mfdl has quit IRC07:53
*** Ossoleil has joined #circuits10:50
*** Ossoleil has quit IRC10:50
*** Ossoleil has joined #circuits10:50
tmu_prologic: psycopg2 caters for async i/o and coroutines: http://initd.org/psycopg/docs/advanced.html#asynchronous-support10:55
prologictmu_, cool :)12:02
prologicso it would be fairly trivial to wrap this up in a circuits component12:02
prologicand expose it to the rest of an app buitl with circuits and the message bus12:02
tmu_i'm not sure how exactly, since i've only started to evaluate circuits. i'd like to use sqlalchemy, do you think that would pose a problem with the approach you suggest?12:56
*** Ossoleil has quit IRC17:15
prologictmu, not at all20:05
prologiceither use sa directly20:05
prologicor integrate it into circuits nicely20:05
prologicas a component with some kind of interface and set of events20:05
prologican example of wrapping a 3rd-party library btw is in circuits/io/notify.py20:05
prologicmorn'n all21:40
spaceonegn822:03

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!