*** Theuni has quit IRC | 00:02 | |
*** Theuni has joined #zope3-dev | 00:05 | |
*** hazmat has joined #zope3-dev | 00:16 | |
*** RaFromBRC has joined #zope3-dev | 00:19 | |
*** Theuni has quit IRC | 00:27 | |
*** hazmat_ has joined #zope3-dev | 00:34 | |
*** hazmat has quit IRC | 00:35 | |
*** palmTree has quit IRC | 00:42 | |
*** nisha_cgx has joined #zope3-dev | 00:48 | |
*** Aiste has quit IRC | 01:06 | |
*** efge has quit IRC | 01:15 | |
*** hazmat_ has quit IRC | 01:21 | |
*** bradb has quit IRC | 01:23 | |
*** BjornT has quit IRC | 01:38 | |
*** hazmat_ has joined #zope3-dev | 01:43 | |
*** bradb has joined #zope3-dev | 01:58 | |
*** nisha_cgx has quit IRC | 02:02 | |
*** hazmat__ has joined #zope3-dev | 02:16 | |
*** hazmat_ has quit IRC | 02:28 | |
*** bskahan has joined #zope3-dev | 02:37 | |
*** nisha_cgx has joined #zope3-dev | 02:53 | |
*** nisha_cgx has quit IRC | 03:05 | |
*** BjornT has joined #zope3-dev | 03:05 | |
*** anguenot has quit IRC | 03:16 | |
*** tvon has joined #zope3-dev | 03:32 | |
*** RaFromBRC has quit IRC | 04:11 | |
*** MiUlEr has quit IRC | 04:20 | |
*** alga has quit IRC | 04:28 | |
*** mgedmin has joined #zope3-dev | 05:00 | |
*** mgedmin has quit IRC | 05:01 | |
*** hazmat__ has quit IRC | 05:25 | |
*** _projekt01 has left #zope3-dev | 05:37 | |
*** mp has quit IRC | 05:50 | |
*** BjornT has quit IRC | 06:19 | |
*** tvon has quit IRC | 07:03 | |
*** hazmat__ has joined #zope3-dev | 07:37 | |
*** __gotchaway has quit IRC | 07:46 | |
*** Jim7J1AJH has quit IRC | 07:46 | |
*** Damascene has quit IRC | 07:46 | |
*** hazmat__ has quit IRC | 07:46 | |
*** bradb has quit IRC | 07:46 | |
*** vlado|away has quit IRC | 07:46 | |
*** d2m has quit IRC | 07:46 | |
*** SteveA has quit IRC | 07:46 | |
*** AJC has quit IRC | 07:46 | |
*** ignas_ has quit IRC | 07:46 | |
*** tvon|desk has quit IRC | 07:46 | |
*** andrew_m has quit IRC | 07:46 | |
*** bskahan has quit IRC | 07:46 | |
*** hazmat__ has joined #zope3-dev | 07:47 | |
*** bskahan has joined #zope3-dev | 07:47 | |
*** bradb has joined #zope3-dev | 07:47 | |
*** SteveA has joined #zope3-dev | 07:47 | |
*** ignas_ has joined #zope3-dev | 07:47 | |
*** vlado|away has joined #zope3-dev | 07:47 | |
*** __gotchaway has joined #zope3-dev | 07:47 | |
*** AJC has joined #zope3-dev | 07:47 | |
*** d2m has joined #zope3-dev | 07:47 | |
*** Jim7J1AJH has joined #zope3-dev | 07:47 | |
*** tvon|desk has joined #zope3-dev | 07:47 | |
*** andrew_m has joined #zope3-dev | 07:47 | |
*** Damascene has joined #zope3-dev | 07:47 | |
*** hdima has joined #zope3-dev | 09:27 | |
*** bskahan has quit IRC | 09:36 | |
*** vlado|away is now known as vlado | 10:26 | |
*** d2m has quit IRC | 10:32 | |
*** d2m has joined #zope3-dev | 10:41 | |
*** Aiste has joined #zope3-dev | 10:49 | |
*** stub has joined #zope3-dev | 11:05 | |
*** stub has quit IRC | 11:56 | |
*** __gotchaway has quit IRC | 12:03 | |
*** hazmat__ has quit IRC | 12:07 | |
*** apoirier has joined #zope3-dev | 12:30 | |
*** vlado has quit IRC | 13:49 | |
*** efge has joined #zope3-dev | 14:19 | |
*** regebro has joined #zope3-dev | 14:49 | |
*** _projekt01 has joined #zope3-dev | 15:13 | |
*** ignas has joined #zope3-dev | 15:42 | |
*** __gotcha has joined #zope3-dev | 15:50 | |
*** vlado has joined #zope3-dev | 16:11 | |
*** BjornT has joined #zope3-dev | 16:25 | |
*** mkerrin has joined #zope3-dev | 16:26 | |
*** mgedmin has joined #zope3-dev | 16:26 | |
*** hdima has quit IRC | 16:51 | |
*** Theuni has joined #zope3-dev | 17:03 | |
*** mgedmin has quit IRC | 17:22 | |
*** bskahan has joined #zope3-dev | 17:23 | |
*** mgedmin has joined #zope3-dev | 17:24 | |
*** viyyer has joined #zope3-dev | 17:34 | |
*** gintas has joined #zope3-dev | 17:37 | |
*** tvon has joined #zope3-dev | 18:08 | |
*** viyyer is now known as viyyer|dinner | 18:22 | |
*** bskahan has quit IRC | 18:26 | |
ignas | can someone please sacrifice the one who wrote quetrymultiadapter machinery to some inca god please? | 18:32 |
---|---|---|
Theuni | ? | 18:33 |
ignas | Supay sounds nice :) | 18:35 |
ignas | there is not sane way to make your adapter morespecific than any other adapter that do exist .. | 18:38 |
ignas | and rules that do the determination are like - unpredictable | 18:38 |
Theuni | there should be some slides and documentaton around that explain those rules | 18:40 |
Theuni | AAIK they comply to the method lookup rules of inheritance | 18:41 |
ignas | well, they do not ;) | 18:41 |
ignas | or at least they do it in some unexplainable way ... | 18:42 |
*** [apoirier] has joined #zope3-dev | 18:42 | |
mgedmin | ignas, do you have a small reproducible example of the problem? | 18:43 |
ignas | reproducible yes, small - no ... | 18:44 |
*** apoirier has quit IRC | 18:44 | |
ignas | i can try and hack and slash one | 18:44 |
*** anguenot has joined #zope3-dev | 18:46 | |
ignas | but i guess i'll look into it a bit more | 18:51 |
*** vlado has quit IRC | 18:52 | |
* mgedmin looks for a way to disable email delivery in zcml (for functional tests) | 18:53 | |
_projekt01 | ignas, take a look at zope.interface.adapters.txt it's all described there. | 18:57 |
_projekt01 | There is no way to make the adapter more specific then another | 18:57 |
ignas | sorry | 18:57 |
_projekt01 | You can use a interface form your class where is more specific then another interface | 18:58 |
ignas | the problem was so far away from the sypthom ;) | 18:58 |
ignas | i wrote my own request class even, yet the skin was being applied and making my request implement browser request ... | 18:58 |
ignas | so even though the adapter was designed for IRESTRequest the subscriber was making IBrowserRequest more specific than anything else ... | 18:59 |
ignas | and chosing another adapter instead ... | 19:00 |
_projekt01 | Did you use class IRESTRequest(IBrowserRequest): | 19:03 |
ignas | nope | 19:03 |
ignas | IRESTRequest(IHTTPRequest) | 19:03 |
_projekt01 | This should work | 19:04 |
ignas | no it would not ... | 19:04 |
_projekt01 | Why? | 19:04 |
ignas | the IBrowserRequest is added to the begining of the list ... | 19:04 |
_projekt01 | Where? | 19:04 |
ignas | in applySkin ... | 19:04 |
_projekt01 | You try to define a layer? Right? | 19:05 |
ignas | i guess, it am don't know that part of the code very well .. | 19:06 |
*** bskahan has joined #zope3-dev | 19:06 | |
ignas | if ISchoolBellApplication.providedBy(event.object): applySkin(event.request, ISchoolBellSkin) is the buggy line ... | 19:07 |
ignas | i should have checked whether the request is ob BrowserRequest type ... | 19:07 |
_projekt01 | Why do you apply the skin? | 19:08 |
ignas | the layer implements IBrowserRequest too ... that migh be the problem | 19:08 |
ignas | _projekt01, what do you mean "why" ? | 19:09 |
_projekt01 | Do you like to force the ISchoolBell skin, or avoid the access of other skins? | 19:10 |
ignas | sorry, i really wish i could tell you that, yet i don't know the exact reason ... | 19:10 |
*** philiKON has joined #zope3-dev | 19:11 | |
_projekt01 | Ah, someting doesn't work and you don't know why? | 19:11 |
ignas | might be because schoolbell is running as a more or less standalone app, not as a zope component ... | 19:11 |
_projekt01 | Yup, sure | 19:12 |
ignas | now everything works though | 19:12 |
*** mkerrin has quit IRC | 19:12 | |
_projekt01 | regebro, perhaps you can explain it better | 19:12 |
regebro | OK, hang on... I'll read through the discussion. | 19:13 |
_projekt01 | ignas, do you try to run SchoolBell in the Rotterdam skin? | 19:14 |
ignas | _projekt01, no | 19:14 |
_projekt01 | What do you try to do? | 19:14 |
regebro | _project01, ignasm No, sorry, I don't understand the question. | 19:14 |
ignas | regebro, well there are no unansewered questions left at themoment | 19:14 |
regebro | OK. | 19:14 |
ignas | as i said sorry, the bug was mine ;) | 19:14 |
ignas | thank you :) | 19:15 |
_projekt01 | ignas, doesn't matter, just ask if you have other questions. That's useal that not all will work right out of the box ;-) | 19:16 |
mgedmin | _projekt01, we had a BeforeTraversalEvent subscriber | 19:17 |
_projekt01 | Take also a look at zope.interface.adapters.txt for more info about adapters. It's well documented. | 19:17 |
_projekt01 | Yup | 19:17 |
mgedmin | that applied our skin when traversing ISchoolBellApplication | 19:17 |
_projekt01 | And this adapter applys the skin. right | 19:17 |
mgedmin | this had the unexpected side effect of coverting HTTP requests into Browser requests | 19:18 |
mgedmin | that was the bug | 19:18 |
_projekt01 | Why do you use the HTTPRequest? That's not a good idea! | 19:18 |
_projekt01 | I guess you need a clean layer instead. | 19:19 |
*** gintas has quit IRC | 19:19 | |
_projekt01 | Btw, that's not this easy! | 19:19 |
mgedmin | we need both browser requests for end users | 19:19 |
mgedmin | and HTTP requests for applications | 19:20 |
_projekt01 | Why do you apply a Skin to the HTTPRequest? | 19:20 |
mgedmin | RESTive interface on a different port | 19:20 |
mgedmin | why? because of a bug | 19:20 |
_projekt01 | I don't think IBeforeTraverEvent should apply a skin to the HTTPRequest. | 19:21 |
_projekt01 | Is this what's happen? | 19:21 |
ignas | yes, but it was not ment to be so now it is fixed | 19:21 |
_projekt01 | Oh, that's not nice. | 19:22 |
_projekt01 | Do we really need a skin applied to the HTTPRequest? I don't think so? | 19:23 |
_projekt01 | Or I'm wrong? | 19:23 |
_projekt01 | I think a HTTPRequest is only a interaction between the client and server without UI stuff, right? | 19:24 |
ignas | yes you are right | 19:24 |
_projekt01 | mgedmin, can you take a look at it? Or should I do it later this night? | 19:25 |
ignas | you mean fix the applySkin | 19:25 |
ignas | of zope itself | 19:25 |
_projekt01 | Yup | 19:25 |
_projekt01 | ignas, can you add a issue to the bugtracker for this. I'm not sure if I have time tonight. | 19:27 |
ignas | i can i guess | 19:27 |
_projekt01 | But this should get fixed for the release 3.1 | 19:27 |
_projekt01 | Cool, thanks for reporting this. | 19:27 |
_projekt01 | Write also that this issue is related to the SchoolBell, perhaps it usuable for reproduceing the bug | 19:29 |
mgedmin | hmm | 19:30 |
_projekt01 | ? | 19:30 |
mgedmin | is it the job of applySkin to make sure the request is IBrowserRequest? | 19:30 |
mgedmin | I think it is the job of the caller | 19:30 |
_projekt01 | I think so too | 19:31 |
ignas | so what's the bug ? | 19:31 |
_projekt01 | It's just happen in the wrong place. | 19:31 |
ignas | ? | 19:33 |
_projekt01 | At least the IBeforeTraversalEvent adapter shouldn't applySkin for HTTPRequest. | 19:33 |
ignas | yes, yet these are written in the code of our application ... | 19:34 |
ignas | or there are a few in zope ? | 19:34 |
_projekt01 | Our application? | 19:35 |
ignas | schoolbell, or any other project we are using IBeforeTraversalEvent to apply skin | 19:36 |
_projekt01 | But not for the HTTPRequest! | 19:37 |
* mgedmin sighs | 19:37 | |
ignas | it's not the fault of the framework, and the only fix i can see is - a warning near definition of applySkin | 19:37 |
_projekt01 | Why a warrning? HTTPRequest don't use skin. | 19:38 |
mgedmin | I've a different problem here | 19:38 |
ignas | ? | 19:38 |
mgedmin | overrides_ftesting.zcml won't let me override a mailer utility | 19:38 |
mgedmin | oh, I see | 19:39 |
mgedmin | I already override it in overrides.zcml | 19:39 |
mgedmin | so two overrides conflict | 19:39 |
mgedmin | my error, never mind | 19:39 |
ignas | allways glad to help :) | 19:39 |
_projekt01 | Ok, I have to go to dinner. | 19:40 |
*** tvon has quit IRC | 20:02 | |
*** philiKON has quit IRC | 20:03 | |
*** bskahan has quit IRC | 20:18 | |
*** regebro has quit IRC | 20:29 | |
*** mgedmin has quit IRC | 20:46 | |
*** ignas has quit IRC | 21:02 | |
*** _projekt01 has left #zope3-dev | 21:06 | |
*** RaFromBRC has joined #zope3-dev | 21:06 | |
*** bskahan has joined #zope3-dev | 21:17 | |
*** hazmat__ has joined #zope3-dev | 21:17 | |
*** tvon has joined #zope3-dev | 21:21 | |
*** [apoirier] has left #zope3-dev | 21:28 | |
*** tvon has quit IRC | 21:30 | |
*** anguenot has quit IRC | 21:38 | |
*** viyyer|dinner is now known as viyyer | 21:48 | |
*** bskahan has quit IRC | 21:49 | |
*** efge has left #zope3-dev | 21:58 | |
*** Theuni has quit IRC | 22:11 | |
*** viyyer has quit IRC | 22:14 | |
*** hazmat__ is now known as hazmat | 22:42 | |
*** ChanServ sets mode: +o hazmat | 22:42 | |
*** jules has joined #zope3-dev | 23:03 | |
jules | Should my buddydemo goodies (from the pdf) go in my_new_instance/lib/python ? | 23:03 |
jules | ConfigurationError: ('Invalid value for', 'package', "Couldn't import buddydemo, No module named buddydemo") | 23:04 |
* jules didn't check out from source | 23:04 | |
jules | Well, it's back to Zope 2 then. | 23:57 |
*** jules has left #zope3-dev | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!