IRC log of #zope3-dev for Friday, 2007-07-27

philiKON_TresEquis is reviving zope.bobo?00:01
philiKON_J1m: re egg day: theuni, uwe and I were discussing a cleanup sprint at europython00:03
philiKON_J1m: to be scheduled at the end fo september00:03
philiKON_cleanup as in dependency cleanup00:03
TresEquisphiliKON_: I just tried making an egg of it, which led me to the sulphurous hairball that is download.zope.org/distributioun00:04
fsufitchanybody here familiar with i18n?00:05
fsufitchi need some help with it00:05
lisppaste6fsufitch pasted "Traceback" at http://paste.lisp.org/display/4518000:06
srichterfsufitch: I am here00:06
fsufitchk good :)00:06
Lumieresrichter: see traceback pasted above ;)00:06
*** greenman has quit IRC00:07
*** jodok_ has joined #zope3-dev00:07
srichterI have no idea what this error is00:07
srichterit will require some serious debugging00:07
srichterfirst you have to find the location in the page template where this happens00:07
fsufitchi did00:07
*** greenman has joined #zope3-dev00:08
fsufitch        <h3 i18n:translate="">00:08
fsufitch          Import Competencies00:08
fsufitch        </h3>00:08
fsufitchweait no00:08
Lumierethat isn't it, it's a piece generated from a zcml00:08
srichterdid you specify an i18n domain in the scope of the call?00:08
*** jsadjohnson has quit IRC00:08
fsufitchno00:09
fsufitchalthough i barely have a notion of what u mean...00:09
fsufitchthis was in an ftest00:09
*** RaFromBRC|lunch is now known as RaFromBRC00:09
fsufitchwhere i just did getLink("Import Competencies").click()00:09
srichterwell, where in the template is the "i18n:domain" decalration (btw, I am just guessing that this might be the problem)00:10
fsufitchin the <html>00:10
lisppaste6Lumiere annotated #45180 with "page zcml" at http://paste.lisp.org/display/45180#100:10
srichtermh, then I have no idea00:11
fsufitchd'oh00:12
srichteryou have to use the debugger to see what's going on00:12
Lumierek -> eldar ;)00:12
TresEquisthe dance to register a custom publication object looks *way* too hard00:16
*** schwendinger has quit IRC00:20
*** jodok has quit IRC00:23
TresEquisJ1m: did you ever have zope.bobo actually wired up into a server?  Or were you just playing around in doctests?00:24
*** timte has joined #zope3-dev00:26
*** Ariel_Calzada has quit IRC00:29
*** cursor has quit IRC00:33
*** jsadjohnson has joined #zope3-dev00:34
*** lucielejard has quit IRC00:35
*** jsadjohnson has quit IRC00:43
J1mphiliKON_, that sounds good.00:44
J1mTresEquis, I thought I hooked it up w wsgi, but I don't remember for sure.00:45
TresEquisI get the feeling that there is about five times too much machinery there as needed00:45
J1mThe dance to set this up with zope.app.server or zope.app.twisted is a mess.00:45
TresEquisfor instance, why is the publication not looked up as an adapter to the request00:45
J1mCould be.00:46
philiKON_publication and request are usually created together00:46
*** Ariel_Calzada has joined #zope3-dev00:46
philiKON_at least that's how it is in plain zope 300:46
TresEquisWhy?00:46
philiKON_why should i know, i didn't write that :)00:47
TresEquisit looks as though it tries to reuse the publication *instance* across requests, which is just silly00:47
TresEquisif IPublication were and adapter interface00:47
TresEquisthen all its API would lose the 'request' argument00:47
J1mI don't really remember the details and can't look atm.00:47
TresEquisand the publisher would just adapt the request00:47
J1mI'm sure major improvements could be made.00:47
philiKON_that much is certain00:47
TresEquiswe could move all the silly traversal logic out of the request, too00:47
*** philiKON_ is now known as philiKON00:48
TresEquissince that is inherently a policy of the publication object00:48
philiKONyes yes yes00:48
TresEquisso object publication would consist of:00:48
TresEquis1. adapt request to IPublication00:48
* philiKON looks into his magic ball and sees a branch of zope.publisher coming up00:48
*** eldar has quit IRC00:49
TresEquis2. call the IPublication methods in template fashion until the publication says stop00:49
TresEquiswe could then throw out all the 'requestpublicationfactory' nonsense00:49
J1myes00:49
TresEquiswhich I can't figure out how to configure now00:50
J1mI doubt we need to use adaptation to get the publication.00:50
philiKONTresEquis: it's nasty00:50
philiKONTresEquis: grok does it00:50
J1mUse Python luke.00:50
J1mand wsgi00:50
J1mand paste00:50
philiKONbut something needs to create the publication00:50
TresEquisthe publication object could just turn into the WSGI application00:50
J1mI though philiKON  cleaned all this up w his paste work. :)00:50
philiKONand making the publication an adapter of request seems quite good00:50
philiKONJ1m:  i merely provided tiny shims over what's there already ;)00:51
philiKONTresEquis: almost00:51
J1mI think the application setup code could do it.00:51
philiKONTresEquis: there's zope.app.wsgi.WSGIPublisherApplication which ends up creating request + publication00:51
J1mIt's not like a single application is going to have more than one.00:51
TresEquisJ1m:  adaptation might be needed to allow DAV traversal to differ from "normal" traversal00:51
philiKONright00:51
philiKONdifferent kinds of requests have different kinds of publications00:52
philiKONat least right now00:52
J1mbut I really don't have time for an on-line design session though. :)00:52
philiKONmay not be a good idea00:52
*** fsufitch has quit IRC00:52
J1mgood point00:57
J1m+1 :)00:57
*** ksmith99 has left #zope3-dev01:01
*** benji has quit IRC01:02
*** jsadjohnson has joined #zope3-dev01:05
*** netshade has quit IRC01:06
*** whit has quit IRC01:19
*** whit has joined #zope3-dev01:19
*** nouri has joined #zope3-dev01:26
*** J1m has quit IRC01:28
*** bigkev has joined #zope3-dev01:30
*** bigkevmcd has quit IRC01:30
*** Ariel_Calzada has quit IRC01:41
*** jsadjohnson has quit IRC01:52
*** hazmat has quit IRC02:01
*** hazmat has joined #zope3-dev02:02
*** ChanServ sets mode: +o hazmat02:02
*** timte has quit IRC02:08
*** jodok_ has quit IRC02:10
*** dobee has quit IRC02:10
*** dunny has joined #zope3-dev02:10
*** srichter has quit IRC02:11
*** projekt01 has left #zope3-dev02:13
*** deo has quit IRC02:27
*** b52laptop has joined #zope3-dev02:33
*** b52laptop has quit IRC02:33
*** Jell-O-Fishi has joined #zope3-dev02:35
*** Jell-O-Fishi has quit IRC02:42
*** deo has joined #zope3-dev02:44
*** huajie has joined #zope3-dev02:51
*** redir has quit IRC03:03
*** jsadjohnson has joined #zope3-dev03:04
*** pcardune has joined #zope3-dev03:15
*** greenman_ has joined #zope3-dev03:16
*** jsadjohnson has quit IRC03:24
*** greenman has quit IRC03:31
*** nouri has quit IRC03:32
*** BjornT has quit IRC03:32
*** nouri has joined #zope3-dev03:32
*** BjornT has joined #zope3-dev03:32
*** TresEquis has quit IRC04:04
*** replicant has joined #zope3-dev04:16
*** jsadjohnson has joined #zope3-dev04:17
*** srichter has joined #zope3-dev04:25
*** jsadjohnson has quit IRC04:25
*** ChanServ sets mode: +o srichter04:25
*** hazmat has quit IRC04:30
*** RaFromBRC has quit IRC04:44
*** bigkev is now known as bigkevmcd04:50
*** bigkevmcd has quit IRC05:10
*** benji has joined #zope3-dev05:40
benjijust about to work on leak #2 a little05:42
benjihmm, wrong chan05:45
*** rcrafton_ has quit IRC06:24
*** replicant has quit IRC06:26
*** philiKON_ has joined #zope3-dev06:28
*** philiKON has quit IRC06:37
*** pcardune has quit IRC06:45
*** chacha_chaudhry has joined #zope3-dev06:50
*** baijum has joined #zope3-dev07:40
*** stub has joined #zope3-dev08:00
*** cursor has joined #zope3-dev08:21
*** dunny has quit IRC08:31
*** deo has quit IRC09:00
*** yvl has joined #zope3-dev09:04
*** afd has joined #zope3-dev09:30
*** timte has joined #zope3-dev09:37
*** pelle_ has quit IRC09:42
*** huajie has quit IRC09:50
*** zagy has joined #zope3-dev09:50
*** romanofski has joined #zope3-dev09:55
*** markusleist has joined #zope3-dev10:02
*** goschtl has joined #zope3-dev10:16
*** ignas has joined #zope3-dev10:17
*** zagy has quit IRC10:19
*** schwendinger has joined #zope3-dev10:19
*** pelle_ has joined #zope3-dev10:20
*** lmiller_ has quit IRC10:24
goschtli ´ve a question about the wsgi stuff, espacially the work zopeproject from philipp. Is the wsgi, paste_deploy stuff only a development option or should this be used in production as well. If so how is the performance related to zserver?10:38
*** MJ has joined #zope3-dev10:45
romanofskimoin10:46
*** markusleist has quit IRC10:48
*** bigkevmcd has joined #zope3-dev11:01
*** cursor has quit IRC11:02
*** zagy has joined #zope3-dev11:05
*** projekt01 has joined #zope3-dev11:14
*** jinty has joined #zope3-dev11:15
*** jinty has joined #zope3-dev11:16
*** tarek has joined #zope3-dev11:21
*** romanofs1i has joined #zope3-dev11:22
*** norro has joined #zope3-dev11:24
*** romanofski has quit IRC11:39
*** ferrafox has joined #zope3-dev11:47
*** ghendi has joined #zope3-dev11:51
*** henri_ has joined #zope3-dev11:54
*** henri_ has left #zope3-dev11:54
*** tarek has quit IRC11:56
*** tarek has joined #zope3-dev12:03
*** Aiste has joined #zope3-dev12:11
*** richardkan has joined #zope3-dev12:14
*** b52laptop has joined #zope3-dev12:17
*** b52laptop has quit IRC12:17
*** b52laptop has joined #zope3-dev12:18
*** ghendi has quit IRC12:24
*** srichter has quit IRC12:31
*** romanofs1i is now known as romanofski12:33
*** ChrisW has joined #zope3-dev12:46
ChrisWmornin' all, where do I find the actual provideAdapter call that results from a zcml <adapter> directive?12:46
ChrisWI'm specifically interested in what turns the * into whatever it gets turned into...12:46
wiggyit gets turned into zope.interface.Interface12:47
ChrisWwhere?12:47
wiggyI'm guessing zope.component12:47
ChrisWsee, I reckon it gets turned into None12:47
wiggyafaik it doesn't12:48
ChrisWwell exactly, hence trying to find the code ;-)12:48
wiggyzcml doesn't directly result in a provideAdapter call, there is delayed init involved12:48
ChrisWyeah, I'd imagine an action gets created during zcml parsing which later results in the provideAdapter call12:49
ChrisWhowever, the action contains all the parameters12:49
ChrisWso I suspect the parsing is done before then12:49
wiggyit is immediately parsed12:49
ChrisWyeah, and I reckon it's the parsin that turns the * into something12:50
ChrisWI guess that's the code I'm looking for12:50
ChrisWit's not in zope.component12:50
ChrisWI suspect it's in zope.app.component, I'm just trying to figure out where12:50
bigkevmcdmaybe put an error in and look at the traceback?12:54
projekt01ChrisW, * represents None12:55
projekt01This is done in zope.configuration.fields.GlobalObject / fromUnicode12:56
ChrisWprojekt01: thanks, who are you?12:56
projekt01The field converts the * to None and the adapter registry uses None as discriminator12:56
ChrisWcool12:57
projekt01ChriW, Roger Ineichen12:57
ChrisWaha, thought I rememberedthe projekt01 ;-) Thanks Roger!12:57
projekt01np12:58
ChrisWI think I may have found some weirdness with adapter looks preference, just playing around to see if I can reproduce...13:00
*** alga has joined #zope3-dev13:06
*** afd has quit IRC13:14
*** whit has quit IRC13:15
*** whit has joined #zope3-dev13:15
*** norro has quit IRC13:38
*** cursor has joined #zope3-dev13:42
*** jfroche has joined #zope3-dev13:45
*** bigkevmcd has quit IRC13:49
*** bigkevmcd has joined #zope3-dev13:49
*** Newfie2007 has joined #zope3-dev13:56
*** afd_ has joined #zope3-dev13:59
*** MJ is now known as MJ|lunch14:07
*** tarek has left #zope3-dev14:15
*** mkerrin has joined #zope3-dev14:35
*** nikhil_n has joined #Zope3-dev14:36
*** markusleist has joined #zope3-dev14:38
*** srichter has joined #zope3-dev14:44
*** nikhil_n has quit IRC14:56
*** benji has quit IRC14:57
*** nikhil_n has joined #Zope3-dev15:01
*** nikhil_n has quit IRC15:04
*** tarek has joined #zope3-dev15:05
*** mgedmin has joined #zope3-dev15:08
*** bigkevmcd has quit IRC15:10
*** bigkevmcd has joined #zope3-dev15:10
*** greenman_ has quit IRC15:16
*** ignas_ has joined #zope3-dev15:17
*** srichter has quit IRC15:19
*** J1m has joined #zope3-dev15:23
*** whit has quit IRC15:28
*** Ariel_Calzada has joined #zope3-dev15:35
*** goschtl has quit IRC15:46
*** ignas_ has quit IRC15:48
*** MJ|lunch is now known as MJ15:48
*** alga has quit IRC15:52
*** romanofski has quit IRC15:52
*** pelle_ has quit IRC15:52
*** nouri has quit IRC15:52
*** BjornT has quit IRC15:52
*** alga has joined #zope3-dev15:52
*** romanofski has joined #zope3-dev15:52
*** pelle_ has joined #zope3-dev15:52
*** nouri has joined #zope3-dev15:52
*** BjornT has joined #zope3-dev15:52
*** dabu has quit IRC15:52
*** wiggy has quit IRC15:52
*** jap has quit IRC15:52
*** dabu has joined #zope3-dev15:54
*** wiggy has joined #zope3-dev15:54
*** jap has joined #zope3-dev15:54
*** ChrisW has quit IRC15:55
baijumJ1m, can you update this page to redirect to PyPI page : http://www.zope.org/DevHome/Buildout15:57
J1mI've never seen this page before.15:58
J1mI wonder who created it.15:58
baijumwell, I found some peoples still referring to that outdated page15:59
*** rcrafton has joined #zope3-dev15:59
J1mMan, I wish history worked on all objects. :(15:59
J1mGod the zope.org redirector mechanism is totally INSANE!16:01
wiggywhat is it?16:01
J1mYou don't want to know.16:02
J1mdone16:04
J1mwhoever invented that thing ...16:04
baijumcool16:06
*** ferrafox has quit IRC16:15
*** jsadjohnson has joined #zope3-dev16:16
*** benji has joined #zope3-dev16:22
*** povbot has joined #zope3-dev16:27
*** pelle__ has joined #zope3-dev16:27
*** bjdevlin has quit IRC16:28
*** povbot` has joined #zope3-dev16:32
*** baijum has quit IRC16:34
*** replicant has joined #zope3-dev16:41
*** srichter has joined #zope3-dev16:41
*** ferrafox has joined #zope3-dev16:42
*** pelle_ has quit IRC16:43
*** povbot has quit IRC16:46
*** derek_richardson has joined #zope3-dev16:46
derek_richardsonhow does OFS.Folder.Folder relate to zope.app.folder.Folder? Is OFS used in z2.10 and app used in 3.x?16:48
zagyyep16:50
zagyofs is z216:50
derek_richardsonthanks!16:51
*** Ariel_Calzada has quit IRC16:59
*** yvl has quit IRC17:06
*** reco has joined #zope3-dev17:07
*** pelle__ has quit IRC17:08
*** pelle_ has joined #zope3-dev17:09
*** richardkan_ has joined #zope3-dev17:15
*** romanofski has quit IRC17:21
*** richardkan has quit IRC17:23
*** alecm has joined #zope3-dev17:23
*** Aiste has quit IRC17:36
*** nouri has left #zope3-dev17:57
*** bigkevmcd has quit IRC18:10
*** bigkevmcd has joined #zope3-dev18:10
*** Newfie2007 has quit IRC18:13
*** richardkan_ has quit IRC18:13
*** replicant is now known as hazmat18:14
*** ChanServ sets mode: +o hazmat18:14
*** Newfie2007 has joined #zope3-dev18:14
*** zagy has quit IRC18:17
*** richardkan has joined #zope3-dev18:20
*** dobee has joined #zope3-dev18:23
*** pelle_ has quit IRC18:23
*** pelle_ has joined #zope3-dev18:26
*** philiKON_ is now known as philiKON18:28
*** netshade has joined #zope3-dev18:28
philiKONderek_richardson: except that zope.app.folder.Folder uses BTree storage, OFS.Folder.Folder doesn't18:31
philiKONderek_richardson: i suggest using Products.BTreeFolder2 for anything meaningful18:31
derek_richardsonphiliKON: this isn't meaningful, it's just ftests. But I'll ftest BTreeFolder2, as well as the OFS Folder. Thanks!18:35
philiKONfor ftests, OFS.Folder is sufficient18:35
philiKONno need to double the work18:35
*** gumpa has joined #zope3-dev18:36
*** davidstryker has joined #zope3-dev18:48
*** dobee has quit IRC18:49
*** reco has quit IRC18:51
*** reco has joined #zope3-dev18:52
*** stub has quit IRC18:53
*** yvl has joined #zope3-dev19:10
*** reco has quit IRC19:11
*** ignas has quit IRC19:20
*** xbeanx has quit IRC19:21
*** MJ has quit IRC19:28
*** projekt01 has quit IRC19:28
*** redir has joined #zope3-dev19:39
*** pelle_ has quit IRC19:42
*** markusleist has quit IRC19:43
*** malthe has joined #zope3-dev19:55
*** whit has quit IRC20:02
*** whit has joined #zope3-dev20:03
*** cursor has quit IRC20:05
*** whit has quit IRC20:05
*** schwendinger has quit IRC20:09
*** ignas has joined #zope3-dev20:12
*** yvl has quit IRC20:14
*** rcrafton has quit IRC20:18
*** ferrafox_ has joined #zope3-dev20:18
*** malthe has quit IRC20:20
*** pcardune has joined #zope3-dev20:24
*** whit has joined #zope3-dev20:27
*** lucielejard has joined #zope3-dev20:30
*** ferrafox has quit IRC20:36
*** chacha_chaudhry has quit IRC20:38
*** jinty has quit IRC20:39
*** natea_ has joined #zope3-dev20:39
*** whit has quit IRC20:43
*** alga has quit IRC20:46
*** pcardune has quit IRC20:51
*** whit has joined #zope3-dev20:55
*** romanofski has joined #zope3-dev20:56
*** cursor has joined #zope3-dev20:57
*** Ariel_Calzada has joined #zope3-dev20:59
*** fdrake has joined #zope3-dev21:01
fdrakeSo, where's the right place to report bugs in z3c.configurator?21:02
*** chacha_chaudhry has joined #zope3-dev21:05
*** markusleist has joined #zope3-dev21:07
*** bjdevlin has joined #zope3-dev21:07
*** projekt01 has joined #zope3-dev21:14
*** ksmith99 has joined #zope3-dev21:14
fdrakesrichter: You here?21:15
*** alecm has quit IRC21:21
fdrakeIs there a known tracker for bugs in the z3c packages?21:24
*** rcrafton has joined #zope3-dev21:27
*** tarek_ has joined #zope3-dev21:27
projekt01fdrake, svn://svn.zope.org/repos/main/bugtracker21:29
projekt01probably outdated21:30
fdrakeprojekt01: Probably not.  ;-)  What I want is to report a bug in z3c.configurator.21:32
projekt01Ah, I don't know what is the state of the art for report a bug right now. Probably launchpad since the community is not able to develope a own bugtracker.21:34
projekt01fdrake, what is the issue?21:35
fdrakePerhaps so.21:35
projekt01You can tell me what is the issue, I'll fix that.21:36
*** tarek has quit IRC21:36
fdrakeThe requiredPlugins() function can enter an infinite recursion because it doesn't keep track of what it's looking at in each iteration of _add().21:36
fdrakeTaking note of the items as it enters _add() avoids that.21:36
*** richardkan has quit IRC21:37
projekt01Did you fix this allready?21:37
fdrakeI have a patch, but it's a hack; I've only used that package a very little, and probably don't understand the full requirements.21:38
fdrakeI'll get the patch I made...21:38
*** afd_ has quit IRC21:39
*** schwendinger has joined #zope3-dev21:41
projekt01fdrake, does this not avoid recursions: if not dep in res:21:42
projekt01line: 6121:42
fdrakeNo, that's too late.21:42
fdrake--- src/z3c/configurator/configurator.py        (revision 78320)21:43
fdrake+++ src/z3c/configurator/configurator.py        (working copy)21:43
fdrake@@ -54,8 +54,11 @@21:43
fdrake     # interfaces may change during execution21:43
fdrake     plugins = getAdapterFactories(component,21:43
fdrake                                   specific=False)21:43
fdrake-21:43
fdrake+    seen = set()21:43
fdrake     def _add(name, res):21:43
fdrake+        if name in seen:21:43
fdrake+            return21:43
fdrake+        seen.add(name)21:43
fdrake         deps = getattr(plugins[name], 'dependencies', ())21:43
fdrake         for dep in deps:21:43
fdrake             if not dep in res:21:43
fdrakeHope that came through ok.21:43
fdrakeI don't have tests; was trying to get something else working.21:43
fdrakeI don't have time to write a proper test, probably for a couple of weeks at least.21:43
projekt01I can do that tomorrow21:44
fdrakeThat would be great!  I'll be keeping an eye on the checkins.  ;-)21:44
fdrakeThanks!21:44
projekt01Thanks too for reporting21:45
projekt01Have a nice weekend21:45
*** chacha_chaudhry has quit IRC21:46
fdrakeThank you!  Go have some fun.  :-)21:46
*** Newfie2007 has quit IRC21:49
*** schwendinger has quit IRC21:54
*** mgedmin has quit IRC21:58
*** mkerrin has quit IRC21:58
*** Ariel_Calzada has quit IRC22:17
*** hazmat has quit IRC22:21
*** srichter has quit IRC22:23
*** natea_ has quit IRC22:26
*** jsadjohnson has quit IRC22:32
*** RaFromBRC has joined #zope3-dev22:36
*** rcrafton_ has joined #zope3-dev22:54
*** cursor has quit IRC22:58
*** davidstryker has quit IRC22:59
projekt01fdrake, it's fixed, can you check this?23:04
projekt01fdrake, it's only in the trunk, no EGG.23:04
fdrakeSure, in just a few minutes.  Ok, that's fine.23:04
projekt01fdrake, do you egg today?23:05
projekt01or are you working with the trunk?23:05
fdrakeThat can wait a little while, or I can do that myself.23:05
fdrakeI've been using eggs wherever possible.23:05
fdrakeI'll need an egg very soon since others are on this project too.23:06
projekt01Can you egg z3c.configurator if it's fixed?23:06
fdrakeSure; no problem.23:06
projekt01Ok, cool23:06
projekt01I also added a test for the fix in the README.txt, e.g. first -> second, second -> first and bang recursion.23:07
fdrakeYep, that's all it takes.  Very cool.23:08
*** gumpa has quit IRC23:09
*** rcrafton has quit IRC23:11
*** ksmith99 has left #zope3-dev23:11
*** ferrafox_ has quit IRC23:14
*** greenman has joined #zope3-dev23:28
*** faassen has quit IRC23:36
*** rcrafton_ has quit IRC23:41
*** romanofski has quit IRC23:42
markusleistprojekt01: hi, still online?23:45
*** jsadjohnson has joined #zope3-dev23:45
markusleistwhat's the best way to transfer form data from z3c addform to a new object in form.AddForm.create().method? there are some different recipes...23:48
markusleisti have some forms with 10-20 attributes and searching for a generic "data-set" in AddForm.create() without data['atr1'], data['atr2'] and so on. / any fine recipes there?23:51
markusleistmaybe later...23:52
*** jsadjohnson has quit IRC23:56
*** Ariel_Calzada has joined #zope3-dev23:57

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