IRC log of #zope3-dev for Friday, 2005-03-25

*** Theuni has quit IRC00:02
*** Theuni has joined #zope3-dev00:05
*** hazmat has joined #zope3-dev00:16
*** RaFromBRC has joined #zope3-dev00:19
*** Theuni has quit IRC00:27
*** hazmat_ has joined #zope3-dev00:34
*** hazmat has quit IRC00:35
*** palmTree has quit IRC00:42
*** nisha_cgx has joined #zope3-dev00:48
*** Aiste has quit IRC01:06
*** efge has quit IRC01:15
*** hazmat_ has quit IRC01:21
*** bradb has quit IRC01:23
*** BjornT has quit IRC01:38
*** hazmat_ has joined #zope3-dev01:43
*** bradb has joined #zope3-dev01:58
*** nisha_cgx has quit IRC02:02
*** hazmat__ has joined #zope3-dev02:16
*** hazmat_ has quit IRC02:28
*** bskahan has joined #zope3-dev02:37
*** nisha_cgx has joined #zope3-dev02:53
*** nisha_cgx has quit IRC03:05
*** BjornT has joined #zope3-dev03:05
*** anguenot has quit IRC03:16
*** tvon has joined #zope3-dev03:32
*** RaFromBRC has quit IRC04:11
*** MiUlEr has quit IRC04:20
*** alga has quit IRC04:28
*** mgedmin has joined #zope3-dev05:00
*** mgedmin has quit IRC05:01
*** hazmat__ has quit IRC05:25
*** _projekt01 has left #zope3-dev05:37
*** mp has quit IRC05:50
*** BjornT has quit IRC06:19
*** tvon has quit IRC07:03
*** hazmat__ has joined #zope3-dev07:37
*** __gotchaway has quit IRC07:46
*** Jim7J1AJH has quit IRC07:46
*** Damascene has quit IRC07:46
*** hazmat__ has quit IRC07:46
*** bradb has quit IRC07:46
*** vlado|away has quit IRC07:46
*** d2m has quit IRC07:46
*** SteveA has quit IRC07:46
*** AJC has quit IRC07:46
*** ignas_ has quit IRC07:46
*** tvon|desk has quit IRC07:46
*** andrew_m has quit IRC07:46
*** bskahan has quit IRC07:46
*** hazmat__ has joined #zope3-dev07:47
*** bskahan has joined #zope3-dev07:47
*** bradb has joined #zope3-dev07:47
*** SteveA has joined #zope3-dev07:47
*** ignas_ has joined #zope3-dev07:47
*** vlado|away has joined #zope3-dev07:47
*** __gotchaway has joined #zope3-dev07:47
*** AJC has joined #zope3-dev07:47
*** d2m has joined #zope3-dev07:47
*** Jim7J1AJH has joined #zope3-dev07:47
*** tvon|desk has joined #zope3-dev07:47
*** andrew_m has joined #zope3-dev07:47
*** Damascene has joined #zope3-dev07:47
*** hdima has joined #zope3-dev09:27
*** bskahan has quit IRC09:36
*** vlado|away is now known as vlado10:26
*** d2m has quit IRC10:32
*** d2m has joined #zope3-dev10:41
*** Aiste has joined #zope3-dev10:49
*** stub has joined #zope3-dev11:05
*** stub has quit IRC11:56
*** __gotchaway has quit IRC12:03
*** hazmat__ has quit IRC12:07
*** apoirier has joined #zope3-dev12:30
*** vlado has quit IRC13:49
*** efge has joined #zope3-dev14:19
*** regebro has joined #zope3-dev14:49
*** _projekt01 has joined #zope3-dev15:13
*** ignas has joined #zope3-dev15:42
*** __gotcha has joined #zope3-dev15:50
*** vlado has joined #zope3-dev16:11
*** BjornT has joined #zope3-dev16:25
*** mkerrin has joined #zope3-dev16:26
*** mgedmin has joined #zope3-dev16:26
*** hdima has quit IRC16:51
*** Theuni has joined #zope3-dev17:03
*** mgedmin has quit IRC17:22
*** bskahan has joined #zope3-dev17:23
*** mgedmin has joined #zope3-dev17:24
*** viyyer has joined #zope3-dev17:34
*** gintas has joined #zope3-dev17:37
*** tvon has joined #zope3-dev18:08
*** viyyer is now known as viyyer|dinner18:22
*** bskahan has quit IRC18:26
ignascan someone please sacrifice the one who wrote quetrymultiadapter machinery to some inca god please?18:32
Theuni?18:33
ignasSupay sounds nice :)18:35
ignasthere is not sane way to make your adapter morespecific than any other adapter that do exist ..18:38
ignasand rules that do the determination are like - unpredictable18:38
Theunithere should be some slides and documentaton around that explain those rules18:40
TheuniAAIK they comply to the method lookup rules of inheritance18:41
ignaswell, they do not ;)18:41
ignasor at least they do it in some unexplainable way ...18:42
*** [apoirier] has joined #zope3-dev18:42
mgedminignas, do you have a small reproducible example of the problem?18:43
ignasreproducible yes, small - no ...18:44
*** apoirier has quit IRC18:44
ignasi can try and hack and slash one18:44
*** anguenot has joined #zope3-dev18:46
ignasbut i guess i'll look into it a bit more18:51
*** vlado has quit IRC18:52
* mgedmin looks for a way to disable email delivery in zcml (for functional tests)18:53
_projekt01ignas, take a look at zope.interface.adapters.txt it's all described there.18:57
_projekt01There is no way to make the adapter more specific then another18:57
ignassorry18:57
_projekt01You can use a interface form your class where is more specific then another interface18:58
ignasthe problem was so far away from the sypthom ;)18:58
ignasi wrote my own request class even, yet the skin was being applied and making my request implement browser request ...18:58
ignasso even though the adapter was designed for IRESTRequest the subscriber was making IBrowserRequest more specific than anything else ...18:59
ignasand chosing another adapter instead ...19:00
_projekt01Did you use class IRESTRequest(IBrowserRequest):19:03
ignasnope19:03
ignasIRESTRequest(IHTTPRequest)19:03
_projekt01This should work19:04
ignasno it would not ...19:04
_projekt01Why?19:04
ignasthe IBrowserRequest is added to the begining of the list ...19:04
_projekt01Where?19:04
ignasin applySkin ...19:04
_projekt01You try to define a layer? Right?19:05
ignasi guess, it am don't know that part of the code very well ..19:06
*** bskahan has joined #zope3-dev19:06
ignasif ISchoolBellApplication.providedBy(event.object): applySkin(event.request, ISchoolBellSkin) is the buggy line ...19:07
ignasi should have checked whether the request is ob BrowserRequest type ...19:07
_projekt01Why do you apply the skin?19:08
ignasthe layer implements IBrowserRequest too ... that migh be the problem19:08
ignas_projekt01, what do you mean "why" ?19:09
_projekt01Do you like to force the ISchoolBell skin, or avoid the access of other skins?19:10
ignassorry, i really wish i could tell you that, yet i don't know the exact reason ...19:10
*** philiKON has joined #zope3-dev19:11
_projekt01Ah, someting doesn't work and you don't know why?19:11
ignasmight be because schoolbell is running as a more or less standalone app, not as a zope component ...19:11
_projekt01Yup, sure19:12
ignasnow everything works though19:12
*** mkerrin has quit IRC19:12
_projekt01regebro, perhaps you can explain it better19:12
regebroOK, hang on... I'll read through the discussion.19:13
_projekt01ignas, do you try to run SchoolBell in the Rotterdam skin?19:14
ignas_projekt01, no19:14
_projekt01What do you try to do?19:14
regebro_project01, ignasm No, sorry, I don't understand the question.19:14
ignasregebro, well there are no unansewered questions left at themoment19:14
regebroOK.19:14
ignasas i said sorry, the bug was mine ;)19:14
ignasthank you :)19:15
_projekt01ignas, 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 subscriber19:17
_projekt01Take also a look at zope.interface.adapters.txt for more info about adapters. It's well documented.19:17
_projekt01Yup19:17
mgedminthat applied our skin when traversing ISchoolBellApplication19:17
_projekt01And this adapter applys the skin. right19:17
mgedminthis had the unexpected side effect of coverting HTTP requests into Browser requests19:18
mgedminthat was the bug19:18
_projekt01Why do you use the HTTPRequest? That's not a good idea!19:18
_projekt01I guess you need a clean layer instead.19:19
*** gintas has quit IRC19:19
_projekt01Btw, that's not this easy!19:19
mgedminwe need both browser requests for end users19:19
mgedminand HTTP requests for applications19:20
_projekt01Why do you apply a Skin to the HTTPRequest?19:20
mgedminRESTive interface on a different port19:20
mgedminwhy?  because of a bug19:20
_projekt01I don't think IBeforeTraverEvent should apply a skin to the HTTPRequest.19:21
_projekt01Is this what's happen?19:21
ignasyes, but it was not ment to be so now it is fixed19:21
_projekt01Oh, that's not nice.19:22
_projekt01Do we really need a skin applied to the HTTPRequest? I don't think so?19:23
_projekt01Or I'm wrong?19:23
_projekt01I think a HTTPRequest is only a interaction between the client and server without UI stuff, right?19:24
ignasyes you are right19:24
_projekt01mgedmin, can you take a look at it? Or should I do it later this night?19:25
ignasyou mean fix the applySkin19:25
ignasof zope itself19:25
_projekt01Yup19:25
_projekt01ignas, can you add a issue to the bugtracker for this. I'm not sure if I have time tonight.19:27
ignasi can i guess19:27
_projekt01But this should get fixed for the release 3.119:27
_projekt01Cool, thanks for reporting this.19:27
_projekt01Write also that this issue is related to the SchoolBell, perhaps it usuable for reproduceing the bug19:29
mgedminhmm19:30
_projekt01?19:30
mgedminis it the job of applySkin to make sure the request is IBrowserRequest?19:30
mgedminI think it is the job of the caller19:30
_projekt01I think so too19:31
ignasso what's the bug ?19:31
_projekt01It's just happen in the wrong place.19:31
ignas?19:33
_projekt01At least the IBeforeTraversalEvent adapter shouldn't applySkin for HTTPRequest.19:33
ignasyes, yet these are written in the code of our application ...19:34
ignasor there are a few in zope ?19:34
_projekt01Our application?19:35
ignasschoolbell, or any other project we are using IBeforeTraversalEvent to apply skin19:36
_projekt01But not for the HTTPRequest!19:37
* mgedmin sighs19:37
ignasit's not the fault of the framework, and the only fix i can see is - a warning near definition of applySkin19:37
_projekt01Why a warrning? HTTPRequest don't use skin.19:38
mgedminI've a different problem here19:38
ignas?19:38
mgedminoverrides_ftesting.zcml won't let me override a mailer utility19:38
mgedminoh, I see19:39
mgedminI already override it in overrides.zcml19:39
mgedminso two overrides conflict19:39
mgedminmy error, never mind19:39
ignasallways glad to help :)19:39
_projekt01Ok, I have to go to dinner.19:40
*** tvon has quit IRC20:02
*** philiKON has quit IRC20:03
*** bskahan has quit IRC20:18
*** regebro has quit IRC20:29
*** mgedmin has quit IRC20:46
*** ignas has quit IRC21:02
*** _projekt01 has left #zope3-dev21:06
*** RaFromBRC has joined #zope3-dev21:06
*** bskahan has joined #zope3-dev21:17
*** hazmat__ has joined #zope3-dev21:17
*** tvon has joined #zope3-dev21:21
*** [apoirier] has left #zope3-dev21:28
*** tvon has quit IRC21:30
*** anguenot has quit IRC21:38
*** viyyer|dinner is now known as viyyer21:48
*** bskahan has quit IRC21:49
*** efge has left #zope3-dev21:58
*** Theuni has quit IRC22:11
*** viyyer has quit IRC22:14
*** hazmat__ is now known as hazmat22:42
*** ChanServ sets mode: +o hazmat22:42
*** jules has joined #zope3-dev23:03
julesShould my buddydemo goodies (from the pdf) go in my_new_instance/lib/python ?23:03
julesConfigurationError: ('Invalid value for', 'package', "Couldn't import buddydemo, No module named buddydemo")23:04
* jules didn't check out from source23:04
julesWell, it's back to Zope 2 then.23:57
*** jules has left #zope3-dev23:57

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