*** natea has joined #zope3-dev | 00:05 | |
*** efrerich has quit IRC | 00:07 | |
*** rockyburt|away is now known as rockyburt | 00:08 | |
*** sashav has quit IRC | 00:13 | |
*** regebro has quit IRC | 00:14 | |
*** natea is now known as natea|sanfran | 00:21 | |
*** kamalgill has joined #zope3-dev | 00:32 | |
*** natea|sanfran has quit IRC | 00:44 | |
*** natea has joined #zope3-dev | 00:48 | |
*** rockyburt has quit IRC | 01:05 | |
*** natea_ has joined #zope3-dev | 01:22 | |
*** natea has quit IRC | 01:26 | |
*** rockyburt has joined #zope3-dev | 01:30 | |
*** natea_ has quit IRC | 01:37 | |
*** natea has joined #zope3-dev | 01:44 | |
*** SiggyF has quit IRC | 02:50 | |
*** natea has quit IRC | 03:01 | |
*** cilkay has quit IRC | 03:11 | |
*** RaFromBRC has quit IRC | 03:27 | |
*** kamalgill has quit IRC | 04:03 | |
*** mcdonc has joined #zope3-dev | 04:19 | |
*** sm has quit IRC | 04:34 | |
*** sm has joined #zope3-dev | 04:37 | |
*** gnibbler has quit IRC | 04:45 | |
*** gnibbler has joined #zope3-dev | 04:46 | |
*** mcdonc has quit IRC | 04:54 | |
*** niemeyer has quit IRC | 05:39 | |
*** stainsby has quit IRC | 05:44 | |
*** whit has quit IRC | 06:08 | |
*** TrevorP has joined #zope3-dev | 06:09 | |
*** yota has joined #zope3-dev | 06:20 | |
*** stub has joined #zope3-dev | 06:24 | |
*** rockyburt has quit IRC | 07:19 | |
*** dobee has joined #zope3-dev | 07:35 | |
*** dobee has quit IRC | 07:48 | |
*** zopePloneConsult has joined #zope3-dev | 07:50 | |
*** philiKON has quit IRC | 07:54 | |
*** eins has joined #zope3-dev | 08:04 | |
eins | hi | 08:04 |
---|---|---|
*** natea has joined #zope3-dev | 08:05 | |
*** dobee has joined #zope3-dev | 08:11 | |
*** sashav has joined #zope3-dev | 08:36 | |
*** sm has quit IRC | 08:52 | |
*** sashav has quit IRC | 08:55 | |
*** Theuni has quit IRC | 08:56 | |
*** Theuni has joined #zope3-dev | 08:57 | |
*** hdima has joined #zope3-dev | 09:13 | |
*** hdima has quit IRC | 09:36 | |
*** natea has quit IRC | 10:05 | |
*** sashav has joined #zope3-dev | 10:21 | |
*** hdima has joined #zope3-dev | 10:21 | |
*** BjornT has quit IRC | 10:25 | |
*** BjornT has joined #zope3-dev | 10:27 | |
*** BjornT has quit IRC | 10:32 | |
*** BjornT has joined #zope3-dev | 10:36 | |
*** ignas has joined #zope3-dev | 10:44 | |
*** srichter has joined #zope3-dev | 10:47 | |
*** ChanServ sets mode: +o srichter | 10:49 | |
dobee | j1m: is it ok for you if i add zcml slugs for registering the ICollator adapter to zope.ucol, additionally i will fix the adapter which passes the locale id which is a unicode to the Collator but the Collator wants a string | 11:18 |
*** SiggyF has joined #zope3-dev | 11:26 | |
*** Aiste has quit IRC | 11:28 | |
*** faassen has joined #zope3-dev | 11:35 | |
*** tiredbones has quit IRC | 11:44 | |
*** tiredbones has joined #zope3-dev | 11:45 | |
*** alga has joined #zope3-dev | 11:50 | |
*** b_52Centos__ has joined #zope3-dev | 12:03 | |
*** b_52Centos has quit IRC | 12:17 | |
*** b_52Centos__ is now known as b_52Centos | 12:18 | |
*** mkerrin has joined #zope3-dev | 12:26 | |
*** Aiste has joined #zope3-dev | 12:35 | |
*** alga has quit IRC | 12:42 | |
*** rockyburt has joined #zope3-dev | 12:56 | |
*** mgedmin has joined #zope3-dev | 12:57 | |
*** alga has joined #zope3-dev | 13:02 | |
*** ignas has quit IRC | 13:18 | |
*** ignas has joined #zope3-dev | 13:18 | |
*** philiKON has joined #zope3-dev | 13:21 | |
*** J1m_ has joined #zope3-dev | 13:24 | |
*** zopePloneConsult has left #zope3-dev | 13:46 | |
*** philiKON has quit IRC | 13:51 | |
*** rockyburt has quit IRC | 13:59 | |
*** regebro has joined #zope3-dev | 14:04 | |
*** zopePloneConsult has joined #zope3-dev | 14:04 | |
*** rockyburt has joined #zope3-dev | 14:13 | |
*** romanofski has joined #zope3-dev | 14:15 | |
romanofski | moin | 14:15 |
*** dunny has quit IRC | 14:23 | |
*** jinty has joined #zope3-dev | 14:29 | |
*** J1m_ has quit IRC | 14:36 | |
*** romanofski has quit IRC | 14:47 | |
*** b_52Centos is now known as b_52Centos_miam | 15:09 | |
*** mgedmin has quit IRC | 15:17 | |
*** b_52Centos_miam is now known as b_52Centos | 15:35 | |
*** alecm has joined #zope3-dev | 15:49 | |
*** mkerrin has quit IRC | 15:51 | |
*** philiKON has joined #zope3-dev | 15:53 | |
*** niemeyer has joined #zope3-dev | 15:58 | |
*** benji has joined #zope3-dev | 16:29 | |
*** natea has joined #zope3-dev | 16:33 | |
*** sashav has quit IRC | 16:36 | |
*** philiKON has quit IRC | 16:44 | |
*** eins has quit IRC | 16:51 | |
*** philiKON has joined #zope3-dev | 16:51 | |
*** alecm has quit IRC | 16:51 | |
*** zbir has joined #zope3-dev | 16:55 | |
*** roym has joined #zope3-dev | 16:55 | |
roym | Thought I had a good handle on adapters and registration, but | 16:57 |
roym | am baffled by why the first form succeeds, and not the second. | 16:57 |
roym | How would I debug this further? | 16:57 |
roym | 16:57 | |
roym | (Pdb) zapi.getAdapter(pdf, IPDFObject) | 16:57 |
roym | *** ComponentLookupError: | 16:57 |
roym | (<general.PDFObject object at 0x408b93ac>, <InterfaceClass | 16:57 |
roym | interfaces.IPDFObject>, u'') | 16:57 |
roym | 16:57 | |
roym | (Pdb) IPDFObject(pdf) | 16:57 |
roym | <general.PDFObject object at 0x408b93ac> | 16:57 |
roym | sorry - I meant the first fails and the second succeeds. | 16:58 |
philiKON | roym, zapi.getAdapter((pdf,), IPDFObject) | 17:02 |
roym | ah! thanks. | 17:03 |
*** alecm has joined #zope3-dev | 17:04 | |
roym | hmm, that didn't work.. | 17:05 |
*** alecm is now known as alecm|tower | 17:05 | |
roym | same error: (Pdb) zapi.getAdapter((pdf,), IPDFObject) | 17:06 |
roym | *** ComponentLookupError: ((<general.PDFObject object at | 17:06 |
roym | 0x408b93ac>,), <InterfaceClass interfaces.IPDFObject>, u'') | 17:06 |
*** sm has joined #zope3-dev | 17:06 | |
*** mgedmin has joined #zope3-dev | 17:08 | |
roym | tuple(providedBy(pdf)) | 17:08 |
roym | (<InterfaceClass interfaces.IPDFObject>, <InterfaceClass persistent.interfaces.IPersistent>) | 17:08 |
ignas | roym: duh, IPDFObject is not adapting anything | 17:12 |
ignas | it is plainly returning the object i think | 17:12 |
ignas | there is not such adapter registered, probably | 17:13 |
ignas | or i am talking nonsense again ;) | 17:13 |
ignas | getAdapter is a different thing from IFoo(object) | 17:14 |
* mgedmin reads IRC logs | 17:14 | |
mgedmin | roym: there are two different adapter mechanisms | 17:14 |
roym | Isn't IPDFObject(pdf) supposed to be syntactic sugar for getAdapter? | 17:15 |
ignas | roym: nope, it is more like IPDFObject(pdf) checks whether pdf already implements IPDF, if not looks for __conform__ and only then looks for adapters | 17:16 |
mgedmin | there was a PEP 246 about including adapters into core Python | 17:16 |
mgedmin | it was, apparently, rejected | 17:16 |
mgedmin | but Zope 3 wanted to support that PEP and introduced the shorthand notation of IFoo(obj) | 17:17 |
mgedmin | that also checks for __conform__ | 17:17 |
mgedmin | and then falls back to getAdapter | 17:17 |
mgedmin | as a result IFoo(obj) is a more powerful adaptation mechanism | 17:17 |
mgedmin | but it doesn't support multiadapters or subscription adapters | 17:17 |
roym | guys, thanks for the clarification. | 17:18 |
*** Aiste has quit IRC | 17:23 | |
mgedmin | it was very surprising to me once | 17:29 |
mgedmin | but Jim said that's how it was supposed to be | 17:30 |
*** natea has quit IRC | 17:37 | |
SteveA | mgedmin: we'd make IFoo(...) do multi-adaption if there was a clean API for it | 17:41 |
SteveA | but we also need to support default values | 17:41 |
*** zbir has quit IRC | 17:41 | |
mgedmin | IFoo((x, y, z), barf) | 17:43 |
*** zopePloneConsult has left #zope3-dev | 17:43 | |
mgedmin | IFoo((x, y, z), name='gargle', default=barf) | 17:43 |
SteveA | yes, but then say goodbye to adapting tuples, unless you already know they're tuples | 17:46 |
SteveA | IFoo(x) | 17:46 |
SteveA | if x is a tuple, you can't adapt it how you expect to | 17:47 |
mgedmin | IFoo((x, ))? | 17:53 |
mgedmin | it's about the same as the % operator on strings | 17:53 |
mgedmin | you cannot reliably do "foo is %s" % foo | 17:53 |
mgedmin | if foo could possibly be a tuple | 17:53 |
*** hdima has quit IRC | 18:05 | |
*** stub has quit IRC | 18:06 | |
*** s1 has joined #zope3-dev | 18:09 | |
*** sm has quit IRC | 18:09 | |
*** s1 is now known as sm | 18:10 | |
*** alga has quit IRC | 18:17 | |
*** efrerich has joined #zope3-dev | 18:32 | |
regebro | Huh. Why is IBrowserPublisher sometimes called as a single adapter and sometimes as a multi-adapter? | 18:32 |
regebro | I guess this in one of the traversal refactorings j1m was talking about. :) | 18:32 |
*** zbir has joined #zope3-dev | 18:46 | |
*** andres has quit IRC | 19:12 | |
*** dobee has quit IRC | 19:13 | |
*** natea has joined #zope3-dev | 19:19 | |
*** alga has joined #zope3-dev | 19:24 | |
*** srichter has quit IRC | 19:44 | |
*** faassen has quit IRC | 19:57 | |
*** mkerrin has joined #zope3-dev | 19:58 | |
*** RaFromBRC has joined #zope3-dev | 20:01 | |
*** natea has quit IRC | 20:21 | |
*** alecm|tower has quit IRC | 20:29 | |
regebro | Hey, mkerrin! Howsit hanging? :) | 20:42 |
*** jinty has quit IRC | 20:54 | |
j1m | I have a problem and I'd love to get some other folks optinions on it. | 20:56 |
j1m | I'm testing my branch against an existing application. | 20:56 |
*** mkerrin has quit IRC | 20:56 | |
j1m | I have found lots of missing backward-compatibility that I've been dealing with. | 20:57 |
j1m | Two things have been particularly vexing. | 20:57 |
j1m | 1. Event reprs changed. Lots of tests depend on event reprs. For now, I'm gonna try and work around this | 20:57 |
j1m | by making the reprs the same as they were beforem, even if this means making them lie about their modules. | 20:58 |
j1m | 2. We are now generating events that we didn't generate previously. | 20:59 |
j1m | I think both of these would be helped by better testing support in the future. | 20:59 |
j1m | I'm at a loss to decide what do do for issue 2 now though. | 20:59 |
SteveA | when you're testing events, you're generally only interested in a particular category of events | 21:01 |
SteveA | and if an application raises other events, well that's fine, so long as they are outside the category you're interested in | 21:01 |
SteveA | so, a test that checks to see all events raised for an operation is a fragile test | 21:02 |
j1m | Yes. We have lots of those. | 21:02 |
SteveA | there should be a standard piece of infrastructure (a categorized event channel...) to capture events from a category to help people writing tests | 21:02 |
SteveA | in the interim, it hurts | 21:02 |
j1m | I've encouraged that style I'm afraid. | 21:02 |
SteveA | sure, all my event tests are like that too | 21:03 |
SteveA | it ought to be fixable in one place per test | 21:03 |
j1m | Do you think we should let these tests fail then? | 21:04 |
j1m | yes | 21:04 |
SteveA | by making the test fixture event gatherer subscribe to a channel rather than all events | 21:04 |
SteveA | i'm very -1 on failing tests on the trunk | 21:04 |
SteveA | want help on a field day to fix them up? | 21:04 |
j1m | I wouldn't fail trunk tests, but I'd likely cause 3rd-party tests to fail. | 21:04 |
j1m | All tests are passing on my branch. | 21:05 |
SteveA | i don't think that's so bad | 21:05 |
SteveA | that's an inevitable part of improving this kind of thing | 21:05 |
SteveA | i think the improvement is worth it | 21:05 |
j1m | In this case, the new events are dou to the fact that registration events are generated by the global component registry as well as the local ones. | 21:07 |
j1m | due | 21:07 |
j1m | A hack would be to arrange that we don't get the events if you go through the convenience functions, component.provideAdapter, ... etc. | 21:08 |
j1m | These might be deprecated in the future anyway. | 21:08 |
j1m | ditto for the similat ztapi functions. | 21:09 |
*** srichter has joined #zope3-dev | 21:11 | |
*** ChanServ sets mode: +o srichter | 21:12 | |
*** regebro has quit IRC | 21:12 | |
philiKON | j1m, i think it's ok making people update their tests. the option you suggest would be quite hairy.... | 21:18 |
j1m | Well, I just tried it. It was simple to implement and seems to work. :) | 21:18 |
j1m | I'm inclined to try hard not to break tests. | 21:19 |
philiKON | ok | 21:19 |
j1m | However, we need to come up with a way to make event tests less brittle. | 21:19 |
j1m | But we can do this in the next release cycle. | 21:19 |
philiKON | yes. even tfilterting is so easy, after all... it's usually just laziness | 21:19 |
j1m | I'm feeling a lot of urgwncy to get this branch merged. | 21:19 |
j1m | urgency | 21:20 |
philiKON | yes, especially because we need its being merged so that zope 2 and five can follow | 21:20 |
philiKON | by the way, how do you want to communicate that it is deprecated that the convenience functions won't throw events? | 21:20 |
j1m | I'm afraid we're going t have to slip the freez date again. | 21:20 |
j1m | I'll have to think about it. | 21:21 |
philiKON | do you have an estimate on when your branch might be mergable | 21:21 |
philiKON | ? | 21:21 |
j1m | I think we may want to encourage a style that doesn't use the convenience functions. | 21:21 |
j1m | Not sure. Maybe today. | 21:21 |
philiKON | cool | 21:21 |
j1m | But that would require things going a lot better the rest of the day than they've gone the last 2 days. :) | 21:22 |
philiKON | or we might provide different convenience functions | 21:22 |
philiKON | provide -> register perhaps | 21:22 |
philiKON | these might ahve different semantics | 21:22 |
philiKON | these being the new functions | 21:22 |
*** natea has joined #zope3-dev | 21:23 | |
j1m | anyway, I'm going with te hack for now. | 21:24 |
philiKON | ok :) | 21:27 |
*** tarek has joined #zope3-dev | 21:37 | |
*** dobee has joined #zope3-dev | 21:39 | |
*** MJ has joined #zope3-dev | 21:40 | |
*** MJ has quit IRC | 21:47 | |
*** alecm|tower has joined #zope3-dev | 21:50 | |
*** genconc has joined #zope3-dev | 21:58 | |
*** natea has quit IRC | 22:01 | |
*** alecm|tower is now known as alecm | 22:04 | |
*** ignas has quit IRC | 22:11 | |
*** efrerich_ has joined #zope3-dev | 22:17 | |
*** mgedmin has quit IRC | 22:18 | |
*** alecm has quit IRC | 22:22 | |
*** alecm has joined #zope3-dev | 22:23 | |
*** Theuni has quit IRC | 22:32 | |
*** efrerich has quit IRC | 22:35 | |
*** alga has quit IRC | 22:38 | |
*** tarek has quit IRC | 22:43 | |
*** sm has quit IRC | 22:47 | |
*** MJ has joined #zope3-dev | 22:50 | |
*** dunny has joined #zope3-dev | 22:51 | |
*** srichter has quit IRC | 22:51 | |
*** efrerich_ is now known as efrerich | 22:52 | |
*** srichter has joined #zope3-dev | 22:52 | |
*** ChanServ sets mode: +o srichter | 22:55 | |
*** alecm has quit IRC | 22:55 | |
*** MJ has quit IRC | 23:02 | |
*** whit has joined #zope3-dev | 23:10 | |
*** whit has quit IRC | 23:17 | |
*** Aiste has joined #zope3-dev | 23:27 | |
*** tav has joined #zope3-dev | 23:32 | |
*** sashav has joined #zope3-dev | 23:35 | |
*** tarek has joined #zope3-dev | 23:37 | |
*** jinty has joined #zope3-dev | 23:52 | |
*** zbir` has joined #zope3-dev | 23:54 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!