*** kamalgill has joined #zope3-dev | 00:11 | |
*** efrerich has quit IRC | 00:11 | |
*** zbir has quit IRC | 00:21 | |
*** RaFromBRC is now known as RaFromBRC|away | 00:26 | |
*** benji has quit IRC | 00:34 | |
*** gumpa has left #zope3-dev | 01:10 | |
*** philiKON has joined #zope3-dev | 01:20 | |
srichter | are there still any catalog experts here? | 01:23 |
---|---|---|
srichter | J1m: can I ask you a index question again? | 01:32 |
J1m | sure | 01:32 |
srichter | let's say I have courses | 01:32 |
srichter | which I grade | 01:32 |
srichter | I now want to search for all students that received an A in mathematics? | 01:33 |
srichter | what index would I need to use and how? | 01:33 |
srichter | the thing is, of course, that the courses are not attributes | 01:33 |
srichter | basically, I have a mapping/dictionary course -> grade and I want to find all students that have a particular course -> grade map | 01:34 |
srichter | J1m: any idea? | 01:35 |
srichter | I guess a topic index is what I want? | 01:36 |
J1m | You could have a method that returns a list of course-grade pairs and index the result using a keyword index. | 01:37 |
srichter | ahh, ok | 01:38 |
J1m | So 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 |
J1m | So 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 |
srichter | but then I could not do a find all students that have a grade better than b in 42 | 01:39 |
J1m | sure you could, if you do a range search. | 01:40 |
srichter | how does that work, i.e. where can I read about that? | 01:41 |
srichter | oh, so basically I would give my grades numbers too | 01:42 |
J1m | Each 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 |
srichter | and then I can searcdh from (42, 3) [B] to (42, 4) [A]? | 01:42 |
J1m | I'm not sure we even have a keyword index. :) | 01:42 |
srichter | that's the problem, the documentation is only in the tests, which are not very extensive | 01:42 |
J1m | I have no idea what that would mean. | 01:43 |
srichter | we have a field index | 01:43 |
J1m | You need a keyword index. | 01:43 |
srichter | ah, we have that too | 01:43 |
J1m | Because students take multiple courses. | 01:43 |
srichter | right | 01:44 |
srichter | ok, I think I see how the keyword index would work for me | 01:45 |
srichter | thanks a lot | 01:46 |
J1m | yw | 01:47 |
*** stainsby has joined #zope3-dev | 01:49 | |
*** RaFromBRC|away is now known as RaFromBRC | 02:01 | |
*** J1m has quit IRC | 02:10 | |
*** rocky is now known as rocky|zzz | 02:17 | |
*** gnosis has joined #Zope3-dev | 02:52 | |
*** rocky|zzz has quit IRC | 03:15 | |
*** stainsby has quit IRC | 03:40 | |
*** alecm has quit IRC | 04:31 | |
*** alecm has joined #zope3-dev | 04:34 | |
*** niemeyer has quit IRC | 04:49 | |
*** alecm has quit IRC | 05:11 | |
*** zbir has joined #zope3-dev | 05:20 | |
*** stub has joined #zope3-dev | 05:48 | |
*** dunny has quit IRC | 06:06 | |
*** RaFromBRC has quit IRC | 06:16 | |
*** roym` has quit IRC | 06:28 | |
*** natea has joined #zope3-dev | 06:58 | |
*** jinty has quit IRC | 07:20 | |
*** natea has quit IRC | 07:25 | |
*** dobee has joined #zope3-dev | 07:58 | |
*** sashav has joined #zope3-dev | 08:22 | |
*** eins has joined #zope3-dev | 08:27 | |
*** dunny has joined #zope3-dev | 08:40 | |
*** mexiKON has joined #zope3-dev | 08:42 | |
*** sashav has quit IRC | 08:43 | |
*** philiKON has quit IRC | 08:52 | |
*** d2m has quit IRC | 09:05 | |
*** d2m has joined #zope3-dev | 09:23 | |
*** kamalgill has left #zope3-dev | 09:31 | |
*** mexiKON is now known as philiKON | 09:32 | |
*** eins has quit IRC | 09:42 | |
*** stainsby has joined #zope3-dev | 09:48 | |
*** RaFromBRC has joined #zope3-dev | 09:52 | |
*** zagy has joined #zope3-dev | 09:53 | |
*** Aiste has quit IRC | 09:59 | |
*** dobee has quit IRC | 10:08 | |
*** dobee has joined #zope3-dev | 10:12 | |
*** dunny has quit IRC | 10:15 | |
*** sashav has joined #zope3-dev | 10:21 | |
*** dunny has joined #zope3-dev | 10:33 | |
*** dobee has quit IRC | 10:34 | |
*** dobee has joined #zope3-dev | 10:40 | |
*** MJ has quit IRC | 10:40 | |
*** dobee has quit IRC | 11:08 | |
*** RaFromBRC has quit IRC | 11:09 | |
*** klaus has joined #zope3-dev | 11:10 | |
*** stereo_ has joined #zope3-dev | 11:12 | |
*** stereo_ has left #zope3-dev | 11:12 | |
*** b_52Centos__ has joined #zope3-dev | 11:12 | |
*** nebo has joined #zope3-dev | 11:13 | |
*** dobee has joined #zope3-dev | 11:14 | |
*** dobee has quit IRC | 11:21 | |
*** Aiste has joined #zope3-dev | 11:21 | |
*** srichter has quit IRC | 11:24 | |
*** dobee has joined #zope3-dev | 11:25 | |
*** b_52CEntos has quit IRC | 11:26 | |
*** b_52Centos__ is now known as b_52Centos | 11:27 | |
*** oferw has joined #zope3-dev | 11:32 | |
*** SiggyF has joined #zope3-dev | 11:51 | |
*** deo has joined #zope3-dev | 12:04 | |
*** Theuni has joined #zope3-dev | 12:07 | |
*** MJ has joined #zope3-dev | 12:09 | |
*** zopePloneConsult has joined #zope3-dev | 12:12 | |
*** BjornT_ is now known as BjornT | 12:24 | |
*** mkerrin has joined #zope3-dev | 12:34 | |
*** SiggyF has quit IRC | 12:39 | |
*** ignas has joined #zope3-dev | 12:55 | |
*** b_52Centos has quit IRC | 12:55 | |
*** b_52Centos has joined #zope3-dev | 12:57 | |
*** mgedmin has joined #zope3-dev | 13:00 | |
*** rocky has joined #zope3-dev | 13:12 | |
*** nebo has quit IRC | 13:38 | |
*** J1m has joined #zope3-dev | 13:38 | |
*** dobee has quit IRC | 13:41 | |
*** dobee has joined #zope3-dev | 13:45 | |
*** dobee has quit IRC | 13:52 | |
*** Theuni has quit IRC | 13:53 | |
*** dobee has joined #zope3-dev | 13:57 | |
*** stainsby has quit IRC | 14:11 | |
*** rocky is now known as rocky|away | 14:12 | |
*** oferw has quit IRC | 14:38 | |
*** J1m has quit IRC | 14:41 | |
*** nebo has joined #zope3-dev | 14:47 | |
*** dunny has quit IRC | 14:48 | |
*** klaus has quit IRC | 14:48 | |
*** faassen has joined #zope3-dev | 15:12 | |
*** tonico has joined #zope3-dev | 15:13 | |
*** zbir has quit IRC | 15:14 | |
*** jukart has joined #zope3-dev | 15:25 | |
*** benji has joined #zope3-dev | 15:40 | |
*** vlado has joined #zope3-dev | 15:40 | |
*** eins has joined #zope3-dev | 15:44 | |
jukart | dobee: ayt ? | 15:44 |
dobee | jukart: y | 15:45 |
faassen | hm, anyone have an example of a generations script that changes the class of persistent objects? | 15:47 |
*** zbir has joined #zope3-dev | 16:10 | |
*** rocky|away has quit IRC | 16:15 | |
*** niemeyer has joined #zope3-dev | 16:19 | |
sashav | faassen: I know they have made something like that for schooltool | 16:37 |
sashav | look for some kind of migration script/tool there | 16:38 |
faassen | sashav: ah, okay, I'll take a look at that, thanks. | 16:39 |
faassen | sashav: I'm solving it by recreating the new classes now, that ought to work. | 16:39 |
*** klaus has joined #zope3-dev | 16:39 | |
*** klaus has quit IRC | 16:40 | |
sashav | stefan said that they had walked through the whole zodb and changed classes on persistent objects | 16:40 |
mgedmin | faassen: that's a very hard problem | 16:47 |
mgedmin | I tried to solve it once, then gaveup | 16:47 |
mgedmin | stefan solved a similar but easier problem: changing the location/name of a class | 16:47 |
mgedmin | you need to be able to import the old class with the old name to do that | 16:47 |
mgedmin | if 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-dev | 16:48 | |
mgedmin | you also need to hunt down *all* the references to that object | 16:48 |
mgedmin | and mark the persistent objects that have those references as changed | 16:48 |
*** benji has quit IRC | 16:51 | |
*** jukart has quit IRC | 16:55 | |
faassen | mgedmin: okay, that sucks, I'm just going to replace them. | 16:57 |
mgedmin | yeah, in ZODB every reference to a persistent object explicitly stores the object's class in addition to OID | 16:59 |
faassen | mgedmin: yeah, I found that out. | 16:59 |
sashav | how do I use a view from a dtml file? | 17:03 |
faassen | mgedmin: argh, things depend on person instances in the ZODB, so that isn't so easy either. :) | 17:03 |
faassen | mgedmin: File "/home/faassen/working/schooltool/schooltool/Zope3/src/zope/app/container/dependency.py", line 45, in CheckDependency | 17:04 |
faassen | raise DependencyError(Message(exception_msg, mapping=mapping)) | 17:04 |
faassen | DependencyError: | 17:04 |
faassen | Removal of object (${object}) which has dependents (${dependents}) | 17:04 |
faassen | is not possible ! | 17:04 |
faassen | sashav: never tried that from DTML | 17:04 |
faassen | very helpful error message, that. :) | 17:04 |
faassen | mgedmin: so maybe using annotations *is* better. :) | 17:05 |
* mgedmin wonders why anyone would want to use DTML | 17:05 | |
mgedmin | faassen: if you have a debugger, you can try to zope.i18n.translate(that_message) | 17:06 |
sashav | mgedmin: generate js | 17:06 |
faassen | mgedmin: weird that it only shows up on the console and not through the UI | 17:06 |
mgedmin | faassen: is that a generation script? | 17:07 |
faassen | mgedmin: yes. | 17:13 |
faassen | mgedmin: I guess that causes it. | 17:13 |
faassen | mgedmin: I don't know much about the dependency system in use. | 17:13 |
mgedmin | faassen: I've just refreshed my memory | 17:20 |
mgedmin | faassen: let's talk about that on #schooltool after the meeting | 17:20 |
faassen | mgedmin: okay, thanks. :) | 17:22 |
*** alecm has joined #zope3-dev | 17:47 | |
*** eins has quit IRC | 17:53 | |
*** regebro has joined #zope3-dev | 17:58 | |
*** admp has joined #zope3-dev | 18:16 | |
faassen | the '' path is a reference to the root, right? | 18:18 |
regebro | ('',) should be root. | 18:18 |
regebro | Or '/'. | 18:18 |
regebro | Unless this has changed in Z3, but that would be bad. | 18:19 |
regebro | I guess '' would probably end up returning whatever you traverse from... which often is the root. :) | 18:21 |
faassen | yeah, tracing some bug. | 18:21 |
*** sashav has quit IRC | 18:24 | |
*** andres has joined #zope3-dev | 18:29 | |
gnosis | can anyone point me to an example of setting up a join form with pau? | 18:32 |
*** niemeyer has quit IRC | 18:44 | |
*** dobee has quit IRC | 18:45 | |
*** jinty has joined #zope3-dev | 18:49 | |
*** niemeyer has joined #zope3-dev | 18:51 | |
*** bcsaller has joined #zope3-dev | 18:52 | |
*** ignas has quit IRC | 19:00 | |
*** vlado has quit IRC | 19:03 | |
*** tonico has quit IRC | 19:10 | |
*** tonico has joined #zope3-dev | 19:11 | |
*** MJ has quit IRC | 19:22 | |
*** tonico has quit IRC | 19:23 | |
*** tonico has joined #zope3-dev | 19:26 | |
*** deo has quit IRC | 19:34 | |
*** faassen has quit IRC | 19:36 | |
*** jinty has quit IRC | 19:40 | |
*** rocky has joined #zope3-dev | 19:41 | |
*** jinty has joined #zope3-dev | 19:43 | |
*** mkerrin has quit IRC | 19:52 | |
*** benji_york has joined #zope3-dev | 19:56 | |
*** sashav has joined #zope3-dev | 19:59 | |
*** regebro has quit IRC | 20:03 | |
*** RaFromBRC has joined #zope3-dev | 20:05 | |
*** admp has quit IRC | 20:09 | |
*** Aiste has quit IRC | 20:20 | |
*** MJ has joined #zope3-dev | 20:27 | |
*** stub has quit IRC | 20:38 | |
*** benji_york is now known as benji | 20:38 | |
*** rocky is now known as rocky|away | 20:39 | |
*** dobee has joined #zope3-dev | 20:49 | |
*** Aiste has joined #zope3-dev | 21:07 | |
*** genconc has quit IRC | 21:15 | |
*** rocky|away is now known as rocky | 21:17 | |
*** deo has joined #zope3-dev | 21:31 | |
*** zbir` has joined #zope3-dev | 21:49 | |
*** rocky has quit IRC | 21:49 | |
*** rocky has joined #zope3-dev | 21:50 | |
*** zbir has quit IRC | 21:55 | |
*** nebo has quit IRC | 22:12 | |
*** mgedmin has quit IRC | 22:14 | |
*** dobee has quit IRC | 22:16 | |
*** dunny has joined #zope3-dev | 22:31 | |
*** RaFromBRC is now known as RaFromBRC|away | 22:32 | |
*** natea has joined #zope3-dev | 22:53 | |
*** jinty has quit IRC | 23:07 | |
*** dunny has left #zope3-dev | 23:39 | |
*** srichter has joined #zope3-dev | 23:49 | |
*** ChanServ sets mode: +o srichter | 23:49 | |
*** natea has quit IRC | 23:50 | |
*** natea has joined #zope3-dev | 23:50 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!