IRC log of #zope3-dev for Tuesday, 2006-05-02

*** kamalgill has joined #zope3-dev00:11
*** efrerich has quit IRC00:11
*** zbir has quit IRC00:21
*** RaFromBRC is now known as RaFromBRC|away00:26
*** benji has quit IRC00:34
*** gumpa has left #zope3-dev01:10
*** philiKON has joined #zope3-dev01:20
srichterare there still any catalog experts here?01:23
srichterJ1m: can I ask you a index question again?01:32
srichterlet's say I have courses01:32
srichterwhich I grade01:32
srichterI now want to search for all students that received an A in mathematics?01:33
srichterwhat index would I need to use and how?01:33
srichterthe thing is, of course, that the courses are not attributes01:33
srichterbasically, I have a mapping/dictionary course -> grade and I want to find all students that have a particular course -> grade map01:34
srichterJ1m: any idea?01:35
srichterI guess a topic index is what I want?01:36
J1mYou could have a method that returns a list of course-grade pairs and index the result using a keyword index.01:37
srichterahh, ok01:38
J1mSo suppose that the course code for math is 42.  Then you'd just do a keyword index search for the value ('=42, 'a')01:38
J1mSo suppose that the course code for math is 42.  Then you'd just do a keyword index search for the value (42, 'a')01:38
srichterbut then I could not do a find all students that have a grade better than b in 4201:39
J1msure you could, if you do a range search.01:40
srichterhow does that work, i.e. where can I read about that?01:41
srichteroh, so basically I would give my grades numbers too01:42
J1mEach index has it's own low-level "query language".  You have to look at the documentation for each index, if there is any. :)01:42
srichterand then I can searcdh from (42, 3) [B] to (42, 4) [A]?01:42
J1mI'm not sure we even have a keyword index. :)01:42
srichterthat's the problem, the documentation is only in the tests, which are not very extensive01:42
J1mI have no idea what that would mean.01:43
srichterwe have a field index01:43
J1mYou need a keyword index.01:43
srichterah, we have that too01:43
J1mBecause students take multiple courses.01:43
srichterok, I think I see how the keyword index would work for me01:45
srichterthanks a lot01:46
*** stainsby has joined #zope3-dev01:49
*** RaFromBRC|away is now known as RaFromBRC02:01
*** J1m has quit IRC02:10
*** rocky is now known as rocky|zzz02:17
*** gnosis has joined #Zope3-dev02:52
*** rocky|zzz has quit IRC03:15
*** stainsby has quit IRC03:40
*** alecm has quit IRC04:31
*** alecm has joined #zope3-dev04:34
*** niemeyer has quit IRC04:49
*** alecm has quit IRC05:11
*** zbir has joined #zope3-dev05:20
*** stub has joined #zope3-dev05:48
*** dunny has quit IRC06:06
*** RaFromBRC has quit IRC06:16
*** roym` has quit IRC06:28
*** natea has joined #zope3-dev06:58
*** jinty has quit IRC07:20
*** natea has quit IRC07:25
*** dobee has joined #zope3-dev07:58
*** sashav has joined #zope3-dev08:22
*** eins has joined #zope3-dev08:27
*** dunny has joined #zope3-dev08:40
*** mexiKON has joined #zope3-dev08:42
*** sashav has quit IRC08:43
*** philiKON has quit IRC08:52
*** d2m has quit IRC09:05
*** d2m has joined #zope3-dev09:23
*** kamalgill has left #zope3-dev09:31
*** mexiKON is now known as philiKON09:32
*** eins has quit IRC09:42
*** stainsby has joined #zope3-dev09:48
*** RaFromBRC has joined #zope3-dev09:52
*** zagy has joined #zope3-dev09:53
*** Aiste has quit IRC09:59
*** dobee has quit IRC10:08
*** dobee has joined #zope3-dev10:12
*** dunny has quit IRC10:15
*** sashav has joined #zope3-dev10:21
*** dunny has joined #zope3-dev10:33
*** dobee has quit IRC10:34
*** dobee has joined #zope3-dev10:40
*** MJ has quit IRC10:40
*** dobee has quit IRC11:08
*** RaFromBRC has quit IRC11:09
*** klaus has joined #zope3-dev11:10
*** stereo_ has joined #zope3-dev11:12
*** stereo_ has left #zope3-dev11:12
*** b_52Centos__ has joined #zope3-dev11:12
*** nebo has joined #zope3-dev11:13
*** dobee has joined #zope3-dev11:14
*** dobee has quit IRC11:21
*** Aiste has joined #zope3-dev11:21
*** srichter has quit IRC11:24
*** dobee has joined #zope3-dev11:25
*** b_52CEntos has quit IRC11:26
*** b_52Centos__ is now known as b_52Centos11:27
*** oferw has joined #zope3-dev11:32
*** SiggyF has joined #zope3-dev11:51
*** deo has joined #zope3-dev12:04
*** Theuni has joined #zope3-dev12:07
*** MJ has joined #zope3-dev12:09
*** zopePloneConsult has joined #zope3-dev12:12
*** BjornT_ is now known as BjornT12:24
*** mkerrin has joined #zope3-dev12:34
*** SiggyF has quit IRC12:39
*** ignas has joined #zope3-dev12:55
*** b_52Centos has quit IRC12:55
*** b_52Centos has joined #zope3-dev12:57
*** mgedmin has joined #zope3-dev13:00
*** rocky has joined #zope3-dev13:12
*** nebo has quit IRC13:38
*** J1m has joined #zope3-dev13:38
*** dobee has quit IRC13:41
*** dobee has joined #zope3-dev13:45
*** dobee has quit IRC13:52
*** Theuni has quit IRC13:53
*** dobee has joined #zope3-dev13:57
*** stainsby has quit IRC14:11
*** rocky is now known as rocky|away14:12
*** oferw has quit IRC14:38
*** J1m has quit IRC14:41
*** nebo has joined #zope3-dev14:47
*** dunny has quit IRC14:48
*** klaus has quit IRC14:48
*** faassen has joined #zope3-dev15:12
*** tonico has joined #zope3-dev15:13
*** zbir has quit IRC15:14
*** jukart has joined #zope3-dev15:25
*** benji has joined #zope3-dev15:40
*** vlado has joined #zope3-dev15:40
*** eins has joined #zope3-dev15:44
jukartdobee: ayt ?15:44
dobeejukart: y15:45
faassenhm, anyone have an example of a generations script that changes the class of persistent objects?15:47
*** zbir has joined #zope3-dev16:10
*** rocky|away has quit IRC16:15
*** niemeyer has joined #zope3-dev16:19
sashavfaassen: I know they have made something like that for schooltool16:37
sashavlook for some kind of migration script/tool there16:38
faassensashav: ah, okay, I'll take a look at that, thanks.16:39
faassensashav: I'm solving it by recreating the new classes now, that ought to work.16:39
*** klaus has joined #zope3-dev16:39
*** klaus has quit IRC16:40
sashavstefan said that they had walked through the whole zodb and changed classes on persistent objects16:40
mgedminfaassen: that's a very hard problem16:47
mgedminI tried to solve it once, then gaveup16:47
mgedminstefan solved a similar but easier problem: changing the location/name of a class16:47
mgedminyou need to be able to import the old class with the old name to do that16:47
mgedminif you want to change the class of a single persistent object (rather than *all* instances of a particular class)16:48
*** zopePloneConsult has left #zope3-dev16:48
mgedminyou also need to hunt down *all* the references to that object16:48
mgedminand mark the persistent objects that have those references as changed16:48
*** benji has quit IRC16:51
*** jukart has quit IRC16:55
faassenmgedmin: okay, that sucks, I'm just going to replace them.16:57
mgedminyeah, in ZODB every reference to a persistent object explicitly stores the object's class in addition to OID16:59
faassenmgedmin: yeah, I found that out.16:59
sashavhow do I use a view from a dtml file?17:03
faassenmgedmin: argh, things depend on person instances in the ZODB, so that isn't so easy either. :)17:03
faassenmgedmin:   File "/home/faassen/working/schooltool/schooltool/Zope3/src/zope/app/container/", line 45, in CheckDependency17:04
faassen    raise DependencyError(Message(exception_msg, mapping=mapping))17:04
faassenRemoval of object (${object}) which has dependents (${dependents})17:04
faassenis not possible !17:04
faassensashav: never tried that from DTML17:04
faassenvery helpful error message, that. :)17:04
faassenmgedmin: so maybe using annotations *is* better. :)17:05
* mgedmin wonders why anyone would want to use DTML17:05
mgedminfaassen: if you have a debugger, you can try to zope.i18n.translate(that_message)17:06
sashavmgedmin: generate js17:06
faassenmgedmin: weird that it only shows up on the console and not through the UI17:06
mgedminfaassen: is that a generation script?17:07
faassenmgedmin: yes.17:13
faassenmgedmin: I guess that causes it.17:13
faassenmgedmin: I don't know much about the dependency system in use.17:13
mgedminfaassen: I've just refreshed my memory17:20
mgedminfaassen: let's talk about that on #schooltool after the meeting17:20
faassenmgedmin: okay, thanks. :)17:22
*** alecm has joined #zope3-dev17:47
*** eins has quit IRC17:53
*** regebro has joined #zope3-dev17:58
*** admp has joined #zope3-dev18:16
faassenthe '' path is a reference to the root, right?18:18
regebro('',) should be root.18:18
regebroOr '/'.18:18
regebroUnless this has changed in Z3, but that would be bad.18:19
regebroI guess '' would probably end up returning whatever you traverse from... which often is the root. :)18:21
faassenyeah, tracing some bug.18:21
*** sashav has quit IRC18:24
*** andres has joined #zope3-dev18:29
gnosiscan anyone point me to an example of setting up a join form with pau?18:32
*** niemeyer has quit IRC18:44
*** dobee has quit IRC18:45
*** jinty has joined #zope3-dev18:49
*** niemeyer has joined #zope3-dev18:51
*** bcsaller has joined #zope3-dev18:52
*** ignas has quit IRC19:00
*** vlado has quit IRC19:03
*** tonico has quit IRC19:10
*** tonico has joined #zope3-dev19:11
*** MJ has quit IRC19:22
*** tonico has quit IRC19:23
*** tonico has joined #zope3-dev19:26
*** deo has quit IRC19:34
*** faassen has quit IRC19:36
*** jinty has quit IRC19:40
*** rocky has joined #zope3-dev19:41
*** jinty has joined #zope3-dev19:43
*** mkerrin has quit IRC19:52
*** benji_york has joined #zope3-dev19:56
*** sashav has joined #zope3-dev19:59
*** regebro has quit IRC20:03
*** RaFromBRC has joined #zope3-dev20:05
*** admp has quit IRC20:09
*** Aiste has quit IRC20:20
*** MJ has joined #zope3-dev20:27
*** stub has quit IRC20:38
*** benji_york is now known as benji20:38
*** rocky is now known as rocky|away20:39
*** dobee has joined #zope3-dev20:49
*** Aiste has joined #zope3-dev21:07
*** genconc has quit IRC21:15
*** rocky|away is now known as rocky21:17
*** deo has joined #zope3-dev21:31
*** zbir` has joined #zope3-dev21:49
*** rocky has quit IRC21:49
*** rocky has joined #zope3-dev21:50
*** zbir has quit IRC21:55
*** nebo has quit IRC22:12
*** mgedmin has quit IRC22:14
*** dobee has quit IRC22:16
*** dunny has joined #zope3-dev22:31
*** RaFromBRC is now known as RaFromBRC|away22:32
*** natea has joined #zope3-dev22:53
*** jinty has quit IRC23:07
*** dunny has left #zope3-dev23:39
*** srichter has joined #zope3-dev23:49
*** ChanServ sets mode: +o srichter23:49
*** natea has quit IRC23:50
*** natea has joined #zope3-dev23:50

Generated by 2.15.1 by Marius Gedminas - find it at!