IRC log of #zope for Saturday, 2013-02-09

benjimagmatt: what do you mean by "If someone imports from the module with Foo in it, the hook-up of the adapter doesn't happen."?00:00
magmattthe code the registers the adapter (I'm using Twisted, so twistd.python.components.registerAdapter) is in the interface module, which isn't imported by the foo module00:00
magmattoh wait, this isn't exactly my setup00:01
magmattround 2: I have three modules: foo.py interface.py adapter.py00:01
magmatthttp://bpaste.net/show/76097/00:04
magmattIf I import from foo.py and interface.py, the code in adapter.py never runs, and therefore I can't adapt Foos to IBars00:04
benjimagmatt: running code as a side-effect of importing will almost always get you into trouble; I suggest having one file that does all the registering of adapters so you can at least have it isolated; then your app needs to import that one file early on00:08
magmattbenji: okay, that's reasonable (but will require some training)00:09
*** Gogo|gui has quit IRC00:10
*** supton has quit IRC00:17
*** supton has joined #zope00:18
*** Gogo|gui has joined #zope00:22
*** nande has quit IRC00:31
*** sp0cksbeard has quit IRC00:44
*** supton has quit IRC00:47
*** supton has joined #zope00:54
*** Gogo|gui has quit IRC01:03
*** Gogo|gui has joined #zope01:06
*** J1m_ has quit IRC01:15
*** mcdonc has joined #zope01:18
*** nande has joined #zope01:23
*** nande has quit IRC01:30
*** _mup_ has quit IRC02:00
*** _mup_ has joined #zope02:00
*** fdrake has quit IRC02:02
*** magmatt has quit IRC02:12
*** kosh has joined #zope02:18
*** kosh has quit IRC02:56
*** Spanktar has quit IRC03:20
*** mr_jolly has joined #zope03:24
*** kosh has joined #zope03:30
*** tiwula has quit IRC03:33
*** MatthewWilkes is now known as mwilkes|away03:47
*** mr_jolly has quit IRC04:12
*** KageSenshi has joined #zope04:16
*** nueces has quit IRC04:28
*** fdrake has joined #zope04:43
*** kosh_ has joined #zope05:12
*** kosh has quit IRC05:15
*** benji has quit IRC05:15
*** kosh_ is now known as kosh05:41
*** zagy1 has joined #zope05:48
*** zagy has quit IRC05:50
*** benji has joined #zope06:12
*** JT has quit IRC06:27
*** JT has joined #zope06:28
*** JT has joined #zope06:28
*** benji has quit IRC07:30
*** kosh has quit IRC09:00
*** JT has quit IRC10:04
*** JT has joined #zope10:04
*** sunew has joined #zope10:28
*** zagy1 has quit IRC11:20
*** zagy has joined #zope11:20
*** Gogo|gui has quit IRC12:06
*** Gogo|gui has joined #zope12:37
*** Gogo|gui has quit IRC12:47
*** m8 has joined #zope13:19
*** Gogo|gui has joined #zope13:44
*** Gogo|gui has quit IRC13:48
*** JT has quit IRC14:34
*** Gogo|gui has joined #zope14:45
*** JT has joined #zope14:49
*** Gogo|gui has quit IRC14:51
*** sunew has quit IRC15:26
*** Gogo|gui has joined #zope16:48
*** J1m_ has joined #zope16:49
*** Gogo|gui has quit IRC16:54
*** polysix has quit IRC17:18
*** polysix has joined #zope17:38
*** J1m_ has quit IRC18:40
*** J1m_ has joined #zope18:41
*** Gogo|gui has joined #zope18:52
*** Gogo|gui has quit IRC18:56
*** J1m_ has quit IRC18:57
*** mwilkes|away is now known as MatthewWilkes18:58
*** kosh has joined #zope19:23
*** Gogo|gui has joined #zope20:56
*** Gogo|gui has quit IRC21:00
*** polysix has quit IRC21:00
*** kiorky_ has joined #zope21:14
*** polysix has joined #zope21:16
*** kiorky has quit IRC21:16
*** mgedmin_ has joined #zope21:43
*** mgedmin_ has quit IRC21:43
*** Spanktar has joined #zope21:43
*** nande has joined #zope21:48
*** Gogo|gui has joined #zope21:59
*** J1m has joined #zope22:10
*** Gogo|gui has quit IRC22:11
*** Spanktar has quit IRC22:17
*** J1m has quit IRC22:26
*** Gogo|gui has joined #zope23:09
*** Gogo|gui has quit IRC23:13
*** Spanktar has joined #zope23:24
*** MatthewWilkes is now known as mwilkes|away23:25
*** mwilkes|away is now known as MatthewWilkes23:31
*** Spanktar has quit IRC23:40
*** MatthewWilkes has quit IRC23:46
*** MatthewWilkes has joined #zope23:46

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