*** chacha_c1audhry has joined #zope3-dev | 00:00 | |
*** jfroche_ has quit IRC | 00:01 | |
*** chacha_chaudhry has quit IRC | 00:02 | |
*** jfroche has quit IRC | 00:10 | |
*** Aiste has quit IRC | 00:13 | |
*** dobee has quit IRC | 00:17 | |
*** RaFromBRC|lunch has quit IRC | 00:22 | |
*** RaFromBRC has joined #zope3-dev | 00:22 | |
*** NomadNate has quit IRC | 00:23 | |
*** NomadNate has joined #zope3-dev | 00:27 | |
*** WebMaven has joined #zope3-dev | 00:28 | |
*** NomadNate has quit IRC | 00:35 | |
*** chacha_chaudhry has joined #zope3-dev | 00:41 | |
*** chacha_c1audhry has quit IRC | 00:41 | |
*** regebro has left #zope3-dev | 00:44 | |
*** srichter has joined #zope3-dev | 00:45 | |
*** computerNERDie has joined #zope3-dev | 00:47 | |
*** bigkevmcd has quit IRC | 00:56 | |
*** benji has quit IRC | 00:58 | |
*** BjornT has quit IRC | 01:01 | |
*** derek_richardson is now known as derek|office | 01:03 | |
*** BjornT has joined #zope3-dev | 01:06 | |
*** WebMaven has quit IRC | 01:06 | |
*** J1m has quit IRC | 01:14 | |
*** timte has quit IRC | 01:16 | |
*** computerNERDie has left #zope3-dev | 01:22 | |
*** chacha_chaudhry has quit IRC | 01:42 | |
*** chacha_chaudhry has joined #zope3-dev | 01:42 | |
*** ccomb has left #zope3-dev | 01:54 | |
*** tarek has quit IRC | 01:59 | |
*** tarek has joined #zope3-dev | 02:05 | |
*** chacha_chaudhry has quit IRC | 02:06 | |
*** chacha_chaudhry has joined #zope3-dev | 02:06 | |
*** chacha_c1audhry has joined #zope3-dev | 02:12 | |
*** tarek has quit IRC | 02:12 | |
*** yota has quit IRC | 02:14 | |
*** RaFromBRC has left #zope3-dev | 02:14 | |
*** RaFromBRC has joined #zope3-dev | 02:15 | |
*** chacha_c1audhry has quit IRC | 02:17 | |
*** chacha_c1audhry has joined #zope3-dev | 02:17 | |
*** chacha_chaudhry has quit IRC | 02:18 | |
CSWookie | In a string expression on a PT, ;; is how you put a semicolon in a string, right? | 02:19 |
---|---|---|
*** chacha_c1audhry has quit IRC | 02:25 | |
*** chacha_chaudhry has joined #zope3-dev | 02:25 | |
*** whit has quit IRC | 02:29 | |
*** whit has joined #zope3-dev | 02:31 | |
*** whit has quit IRC | 02:40 | |
*** whit has joined #zope3-dev | 02:41 | |
*** chacha_c1audhry has joined #zope3-dev | 02:59 | |
*** chacha_chaudhry has quit IRC | 02:59 | |
*** chacha_c1audhry has quit IRC | 03:08 | |
*** chacha_chaudhry has joined #zope3-dev | 03:08 | |
*** whit has quit IRC | 03:17 | |
*** whit has joined #zope3-dev | 04:00 | |
*** zez_zez has quit IRC | 04:06 | |
*** benji has joined #zope3-dev | 04:19 | |
*** projekt01 has quit IRC | 04:26 | |
*** rcrafton has quit IRC | 04:40 | |
*** b52laptop has quit IRC | 04:47 | |
*** RaFromBRC has quit IRC | 04:49 | |
*** niemeyer has quit IRC | 05:13 | |
*** ChanServ sets mode: +o srichter | 05:25 | |
*** run|home has joined #zope3-dev | 05:29 | |
*** alecm has quit IRC | 06:19 | |
*** alecm has joined #zope3-dev | 06:46 | |
*** CSWookie_ has joined #zope3-dev | 07:11 | |
*** CSWookie has quit IRC | 07:12 | |
*** whitmo has joined #zope3-dev | 07:14 | |
*** whit has quit IRC | 07:14 | |
*** dobee has joined #zope3-dev | 07:18 | |
*** huajie has joined #zope3-dev | 07:31 | |
*** whitmo has quit IRC | 07:31 | |
*** whit has joined #zope3-dev | 07:31 | |
*** afd__ has joined #zope3-dev | 07:42 | |
*** stub has joined #zope3-dev | 07:50 | |
*** baijum has joined #zope3-dev | 07:58 | |
*** alecm_ has joined #zope3-dev | 08:06 | |
*** alecm has quit IRC | 08:06 | |
*** BjornT has quit IRC | 08:23 | |
*** BjornT has joined #zope3-dev | 08:24 | |
*** run|home has quit IRC | 08:27 | |
*** BjornT has joined #zope3-dev | 08:29 | |
*** alecm has joined #zope3-dev | 08:30 | |
*** alecm_ has quit IRC | 08:30 | |
*** sorin has joined #zope3-dev | 08:32 | |
*** sorin is now known as sorindregan | 08:32 | |
*** jukart has joined #zope3-dev | 08:36 | |
*** romanofski has quit IRC | 08:49 | |
*** jodok has quit IRC | 08:56 | |
*** Aiste has joined #zope3-dev | 09:00 | |
*** whit has quit IRC | 09:06 | |
*** timte has joined #zope3-dev | 09:06 | |
*** ghendi has joined #zope3-dev | 09:07 | |
*** d2m has joined #zope3-dev | 09:17 | |
*** Aiste has quit IRC | 09:26 | |
*** alecm_ has joined #zope3-dev | 09:29 | |
*** jodok has joined #zope3-dev | 09:34 | |
*** andrew_m has quit IRC | 09:35 | |
*** romanofski has joined #zope3-dev | 09:36 | |
*** stu1 has joined #zope3-dev | 09:39 | |
*** jodok has quit IRC | 09:41 | |
romanofski | moin :) | 09:41 |
*** jodok has joined #zope3-dev | 09:41 | |
*** MJ has joined #zope3-dev | 09:42 | |
*** tarek has joined #zope3-dev | 09:43 | |
*** schwendinger has quit IRC | 09:44 | |
*** Aiste has joined #zope3-dev | 09:46 | |
*** alecm_ has quit IRC | 09:48 | |
*** NomadNate has joined #zope3-dev | 09:50 | |
*** alecm has quit IRC | 09:51 | |
*** schwendinger has joined #zope3-dev | 09:56 | |
*** huajie has quit IRC | 09:56 | |
*** stub has quit IRC | 09:57 | |
*** harobed has joined #zope3-dev | 09:57 | |
*** jfroche has joined #zope3-dev | 10:07 | |
*** jinty_ has quit IRC | 10:13 | |
*** romanofski has quit IRC | 10:14 | |
*** romanofski has joined #zope3-dev | 10:17 | |
*** jinty has joined #zope3-dev | 10:18 | |
*** BjornT has quit IRC | 10:21 | |
*** BjornT has joined #zope3-dev | 10:21 | |
*** CSWookie_ is now known as CSWookie | 10:23 | |
*** jinty_ has joined #zope3-dev | 10:23 | |
*** afd__ has quit IRC | 10:24 | |
*** BjornT has quit IRC | 10:26 | |
*** BjornT has joined #zope3-dev | 10:27 | |
*** BjornT has quit IRC | 10:28 | |
*** NomadNate has quit IRC | 10:28 | |
*** BjornT has joined #zope3-dev | 10:32 | |
*** NomadNate has joined #zope3-dev | 10:34 | |
*** jinty has quit IRC | 10:37 | |
*** BjornT has quit IRC | 10:43 | |
*** BjornT has joined #zope3-dev | 10:43 | |
*** yota has joined #zope3-dev | 10:46 | |
*** ccomb has joined #zope3-dev | 10:49 | |
*** bigkevmcd has joined #zope3-dev | 10:55 | |
*** yvl has joined #zope3-dev | 11:12 | |
*** povbot has joined #zope3-dev | 11:16 | |
*** nour1 has joined #zope3-dev | 11:18 | |
*** nour1 has left #zope3-dev | 11:19 | |
*** NomadNate_ has joined #zope3-dev | 11:22 | |
*** ignas has joined #zope3-dev | 11:28 | |
*** Aiste has quit IRC | 11:33 | |
*** Aiste has joined #zope3-dev | 11:53 | |
*** philiKON_ has joined #zope3-dev | 12:04 | |
*** philiKON has quit IRC | 12:15 | |
*** NomadNate_ has quit IRC | 12:38 | |
*** mkerrin has joined #zope3-dev | 12:50 | |
*** projekt01 has joined #zope3-dev | 12:51 | |
*** MJ is now known as MJ|out | 12:52 | |
*** MJ|out has quit IRC | 12:59 | |
*** norro has joined #zope3-dev | 13:07 | |
*** norro has quit IRC | 13:21 | |
*** dunny has quit IRC | 13:21 | |
*** rocky|away is now known as rocky | 13:33 | |
*** salfield has joined #zope3-dev | 13:49 | |
*** zez_zez has joined #zope3-dev | 13:55 | |
*** stu1 has quit IRC | 14:05 | |
*** tonico has joined #zope3-dev | 14:08 | |
*** benji has quit IRC | 14:18 | |
ignas | hi | 14:40 |
dennis_ | hi ignas | 14:41 |
*** Newfie2007 has joined #zope3-dev | 14:41 | |
ignas | a question - i have a few different types of objects, like Sections, Persons, Groups, and i want to have a indexes that allow me to query them by IHaveSchoolyear schoolyear attribute | 14:42 |
ignas | how should i implement it so that i would have separate indexes for every type of the object | 14:42 |
dennis_ | add 3 indexes, field type, schoolyear attribute, not callable (or is), and each for a different interface, so 1 for ISection, IGroup, IPerson, etc .. ? | 14:43 |
ignas | you see - ISection, IGroup and IPerson are already in there and they do not inherit from IHaveSchoolyear | 14:44 |
ignas | i don't want to duplicate them to just add separate interfaces for every object to index by | 14:45 |
ignas | hmm, i guess i could add a SchoolYearIndex class that acts in a simmilar manner as the AttributeIndex | 14:47 |
ignas | indexes by IHaveSchoolYear schoolyear, but filters objects by their unique Interfaces | 14:47 |
*** MJ|out has joined #zope3-dev | 14:54 | |
*** MJ|out is now known as MJ | 14:55 | |
*** J1m has joined #zope3-dev | 15:00 | |
dennis_ | adapt them? | 15:03 |
xbeanx | is it possible to have zope.schema.date default to today? | 15:03 |
*** niemeyer has joined #zope3-dev | 15:03 | |
*** MJ has quit IRC | 15:03 | |
*** MJ has joined #zope3-dev | 15:04 | |
*** grahal has joined #zope3-dev | 15:09 | |
*** ignas has quit IRC | 15:13 | |
*** ignas has joined #zope3-dev | 15:14 | |
*** mgedmin has joined #zope3-dev | 15:16 | |
*** malthe has joined #zope3-dev | 15:16 | |
xbeanx | everyone's asleep today :) | 15:35 |
xbeanx | can I specify a radio widget for a Bool() schema inside of the schema itself? or do I have to do it in zcml? | 15:36 |
mgedmin | no and no | 15:37 |
*** rcrafton has joined #zope3-dev | 15:37 | |
mgedmin | well... | 15:37 |
mgedmin | you could subclass Bool and declare the radio widget to be the default for MyBool, so in a sense you can specify the widget in the schema | 15:38 |
mgedmin | but that's not very nice, I think | 15:38 |
mgedmin | the usual way is to specify a custom widget in the form that uses the schema | 15:39 |
malthe | Which interface does the browser-view adapter provide? It seems not IBrowserView. | 15:51 |
mgedmin | just Interface | 15:51 |
malthe | really? | 15:51 |
mgedmin | the code that looks up views does getMultiAdapter((context, request), name='...') | 15:52 |
malthe | mgedmin: so how would one use getAdapters to find all of them? | 15:52 |
mgedmin | although if you want your view to actually work, it has to implement IBrowserPublisher | 15:52 |
*** nando has joined #zope3-dev | 15:52 | |
mgedmin | the <browser:page> zcml directive does some magic to add the IBrowserPublisher implementation to your view classes | 15:52 |
malthe | ah cool | 15:53 |
mgedmin | it's one of the murkier bits of zope 3 | 15:53 |
malthe | right | 15:53 |
malthe | I spent some hours on that | 15:53 |
malthe | it seemed obvious to me that they were registered for IBrowserView :-) | 15:53 |
malthe | but I guess that was a bit too high level | 15:53 |
*** projekt01 has left #zope3-dev | 15:54 | |
mgedmin | don't ask me the reasons, I just know how to read the source code :) | 15:54 |
xbeanx | thanks mgedmin.. I think I will actually subclass Bool as you said because I have 20 Bool()s in my schema for this one form.. And I have to do a very customized widget for these with javascript as well | 16:04 |
malthe | mgedmin: right | 16:08 |
malthe | mgedmin: is there any way to only get the adapters/view that are registered for a certain layer? | 16:09 |
*** schwendinger has quit IRC | 16:19 | |
mgedmin | dunno, I never bothered with getting lists of adapters | 16:25 |
mgedmin | layers sublcass the request, iirc, so you could look up adapters on IMyContentType, IMyLayer | 16:25 |
*** jodok_ has joined #zope3-dev | 16:26 | |
*** jodok has quit IRC | 16:28 | |
*** MJ has quit IRC | 16:28 | |
*** jodok_ is now known as jodok | 16:29 | |
* Cripps pokes the room in the face. | 16:29 | |
Cripps | morning folks. | 16:29 |
dennis_ | hi cripps | 16:29 |
*** baijum has quit IRC | 16:30 | |
*** sorindregan has quit IRC | 16:30 | |
Cripps | hey dennis_ , how's it going? | 16:33 |
xbeanx | I'm trying to write a schema field that contains a Bool and a Text field together. if the Bool is checked, then info is required in the text field.. Where should I start? :) | 16:34 |
xbeanx | What zope.schema field should I extend, I gues I'm asking | 16:35 |
*** BjornT_ has joined #zope3-dev | 16:36 | |
*** BjornT has quit IRC | 16:36 | |
ccomb | nando: thanks for your answers. So it really was an optimisation, and it does work. | 16:36 |
Cripps | zope.schema._field.Choice maybe? | 16:36 |
Cripps | xbeanx: ^^ | 16:37 |
nando | ccomb: welcome! | 16:37 |
xbeanx | dunno, the docs for IChoice say "Field whose value is contained in a predefined set" .....not exactly what I am looking for I think | 16:37 |
xbeanx | Maybe I need to just start with IField and go fromt here | 16:38 |
Cripps | xbeanx: maybe. Just read over the whole _field.py file and see what good stuff you find in there. | 16:38 |
xbeanx | hah, fun stuff | 16:38 |
nando | ccomb: I'm happy seing people taking advantage of my code | 16:38 |
nando | ccomb: many things I've made, probably will be bad done... | 16:39 |
xbeanx | I'm thinking perhaps IAbstractBag...... | 16:39 |
*** norro has joined #zope3-dev | 16:40 | |
nando | ccomb: programming and learning at the same time | 16:40 |
nando | ccomb: so pleased to get feedback, corrections and suggestions :-) | 16:41 |
ccomb | nando: Doing exactly the same. :) I've seen you wanted to enable comments in your app. That's something I will do very soon for an app I'm creating. I'll try to make it reusable... | 16:41 |
nando | ccomb: great! | 16:42 |
nando | ccomb: looking forward to see your app live soon! | 16:43 |
ccomb | you won't because this is a private extranet | 16:43 |
*** whit has joined #zope3-dev | 16:43 | |
ccomb | but I will publish the code | 16:43 |
nando | ahhh I see | 16:43 |
nando | well | 16:43 |
dennis_ | xbeanx you could use an invariant ? | 16:43 |
xbeanx | dennis_: interesting..never actually thought of that :) | 16:44 |
xbeanx | My problem is I have an aweful lot of Bools on a single page.. To have the text boxes there as well makes the page encredibly long.. So I wanted to hide the textboxes until the bools were clicked as 'true' then use javascript to render the textbox for input.. | 16:45 |
xbeanx | make sense? | 16:45 |
xbeanx | it's turning out to be quite a challenge for my tiny brain | 16:46 |
xbeanx | I figured a custom field/widget would make things easier, but I dunno... | 16:46 |
*** mgedmin has quit IRC | 16:47 | |
*** mgedmin has joined #zope3-dev | 16:47 | |
xbeanx | actually, the bool isn't really necessary, it's only there to enable/disable the textbox.. maybe I can use a custom textbox widget to do that :) | 16:50 |
*** ktwilight has quit IRC | 16:50 | |
*** ktwilight has joined #zope3-dev | 16:51 | |
dennis_ | xbeanx one possibility is a custom widget which renders a bool with some onclick=javascript to make the textbox visible, but you'll have to set .custom_widget on all those fields in your form code | 16:52 |
mgedmin | or make your custom widget the default for text fields in your application's layer | 16:52 |
xbeanx | yes, I was thinking to subclass "Text" and then use a <zope:page> directive to set the widget for that new field class | 16:53 |
xbeanx | because I still need standard text widgets as well | 16:53 |
Cripps | I'm making a generic NameChooser adapter for the entirety of a web app (it's using UUIDs) ... and I'm adapting IContainer for said adapter, but for the checkName method, how would I go about checking to see if the generated UUID is not in a container? | 16:55 |
Cripps | i.e. not in the container that the NameChooser is called for. | 16:56 |
dennis_ | cripps usually a uuid has a 2^128 or so chance of collisions, no? | 16:56 |
Cripps | dennis_: yeah, something like that ... so it's a really small chance, but it *could* happen. | 16:57 |
dennis_ | ehm | 16:57 |
Cripps | :) | 16:57 |
dennis_ | there is a greater chance your house will get swallowed up by a flying dragon from another dimension | 16:57 |
dennis_ | give or take | 16:57 |
Cripps | hahaha | 16:57 |
Cripps | dennis_: point taken ... 340282366920938463463374607431768211456 combinations ... | 16:58 |
Cripps | :P | 16:58 |
xbeanx | rofl | 16:59 |
Cripps | ...give or take a couple hundred ;) | 16:59 |
xbeanx | http://wiki.zope.org/zope3/FAQ#how-to-give-unique-name-for-an-object-within-a-container ? | 17:01 |
*** rcrafton has quit IRC | 17:01 | |
*** rcrafton has joined #zope3-dev | 17:03 | |
*** BjornT_ has quit IRC | 17:03 | |
*** BjornT has joined #zope3-dev | 17:03 | |
*** nando has quit IRC | 17:08 | |
*** ghendi has quit IRC | 17:09 | |
*** BjornT has quit IRC | 17:13 | |
*** BjornT has joined #zope3-dev | 17:13 | |
*** Aiste has quit IRC | 17:19 | |
*** schwendinger has joined #zope3-dev | 17:20 | |
*** jodok_ has joined #zope3-dev | 17:25 | |
*** b52laptop has joined #zope3-dev | 17:28 | |
*** derek|office is now known as derek_richardson | 17:37 | |
*** jodok has quit IRC | 17:41 | |
*** jodok_ is now known as jodok | 17:42 | |
*** BjornT has quit IRC | 17:52 | |
*** BjornT has joined #zope3-dev | 17:53 | |
*** tarek_ has joined #zope3-dev | 17:53 | |
*** tarek has quit IRC | 18:09 | |
*** meatballhat has joined #zope3-dev | 18:09 | |
*** MJ has joined #zope3-dev | 18:42 | |
*** chacha_chaudhry has quit IRC | 18:45 | |
ignas | philiKON_: ayt? | 18:49 |
philiKON_ | yes | 18:49 |
ignas | a question about translations | 18:49 |
philiKON_ | um, ok | 18:49 |
ignas | as i understand all the translations in zope are in the same namespace | 18:49 |
ignas | "zope" or something like that | 18:49 |
philiKON_ | in the same domain, yes | 18:49 |
philiKON_ | right | 18:49 |
ignas | domain, sorry | 18:49 |
philiKON_ | and they're all in zope.app.locales | 18:50 |
philiKON_ | np | 18:50 |
ignas | wouldn't you get conflicts if you would use multiple po files | 18:50 |
ignas | by dividing the main po file by project/egg | 18:50 |
philiKON_ | they would have to use separate domains | 18:50 |
ignas | i mean some strings being translated more than once for different eggs | 18:50 |
philiKON_ | such as? | 18:50 |
ignas | so it's not just a tool that splits the .po file by domain is | 18:51 |
ignas | s/domain/project | 18:51 |
ignas | someone would have to change domains for all the eggs | 18:51 |
philiKON_ | right | 18:51 |
philiKON_ | you're right | 18:51 |
philiKON_ | i forgot that :) | 18:51 |
ignas | if this would get performed | 18:51 |
philiKON_ | but that can also be done mechanically, i think | 18:51 |
ignas | the current i18nextract tool supports crude (import based) domain checker | 18:51 |
philiKON_ | yeah | 18:51 |
*** sm has quit IRC | 18:52 | |
ignas | which works for schooltool at least, though you must pass the domain you are extracting as a parameter | 18:52 |
philiKON_ | right, i know | 18:52 |
*** sm has joined #zope3-dev | 18:53 | |
*** BjornT has quit IRC | 18:53 | |
*** tonico has quit IRC | 18:53 | |
* ignas will have to do something like that for schooltool too | 18:53 | |
ksmith99 | hi zopers, I'm working with large result lists returned from catalog that need to be sorted. Does it save me anything if I were to sort them based on a custom __repr__? I'm hoping not to load the objects in memory to perform the sort. | 19:02 |
dennis_ | ksmith99 if you figure that out please document it, for my news folder where i just want the latest 10 entries :) | 19:03 |
*** projekt01 has joined #zope3-dev | 19:03 | |
philiKON_ | ksmith99: sorting w/o loading objects in memory is pretty much impossible | 19:04 |
philiKON_ | that custom __repr__ requires having the object | 19:04 |
philiKON_ | and having the object requires loading it into memory | 19:04 |
philiKON_ | gotta bite the bullet | 19:04 |
philiKON_ | dennis_: there are tricks for that | 19:04 |
philiKON_ | if you keep an index of all such items, BTrees will efficiently allow you to get slices, e.g. [-10:] | 19:05 |
philiKON_ | naturally, this means the index is pre-sorted | 19:05 |
philiKON_ | should be easily doable with a btree, though | 19:05 |
dennis_ | philiKON_, I do have an index on the timestamp, but a query needs a start timestamp and an end timestamp, so I have to know roughly where my last 10 objects are | 19:06 |
Theuni | win 2 | 19:06 |
Theuni | brrr | 19:06 |
Theuni | ww | 19:06 |
ksmith99 | philiKON_, thanks.... is there any documentation anywhere about pre-sorting an index? | 19:06 |
dennis_ | (or maybe you didn't mean through the catalog, sorry) | 19:07 |
philiKON_ | right | 19:07 |
philiKON_ | this doesn't necessarily go thru the catalog | 19:07 |
ksmith99 | oh | 19:07 |
philiKON_ | possibly the existing FieldIndex can be used for this | 19:07 |
philiKON_ | but it's really a simple thing | 19:07 |
philiKON_ | shove each new news item into that index (read: btree) | 19:07 |
philiKON_ | make the key some sort of chronological thing | 19:08 |
philiKON_ | (datetime.datetime() comes to mind) | 19:08 |
*** alecm has joined #zope3-dev | 19:08 | |
philiKON_ | and then get the last 10 things from that index | 19:08 |
dennis_ | ah so instead of going through the catalog query'ing, just slice the index ? it can do that? :) | 19:08 |
philiKON_ | not sure if the index api allows that | 19:08 |
philiKON_ | perhaps it does | 19:09 |
philiKON_ | no idea | 19:09 |
philiKON_ | heck, just take a Folder, shove the items in there, make sure their name in the folder sorts like dates | 19:09 |
philiKON_ | e.g. strftime(something) | 19:09 |
philiKON_ | and get the last 10 items in the folder | 19:09 |
philiKON_ | (that would be poor man's pre-sorted index :)) | 19:09 |
ksmith99 | ahhh... wasn't sure if that was reliable, awesome :) | 19:10 |
dennis_ | didnt realize a folder implicitly sorts its entries in any particular order | 19:10 |
philiKON_ | folders use btrees underneath | 19:10 |
philiKON_ | and btrees always need a total ordering | 19:10 |
philiKON_ | that's how their algorithm works | 19:10 |
philiKON_ | otherwise they couldn't be so efficient | 19:10 |
dennis_ | could I change __cmp__ for my news item object as well to make this work? | 19:10 |
ksmith99 | so the are organized by __name__ | 19:11 |
philiKON_ | yes | 19:11 |
philiKON_ | dennis_: the trick isn't the __cmp__ of the object, but the keys under which you put them in the mapping | 19:11 |
dennis_ | ah yeah of course | 19:11 |
philiKON_ | containers (such as folders) want strings | 19:11 |
philiKON_ | so poor man's indexing would use some sort of string | 19:11 |
philiKON_ | if you'd code it yourself with an OOBTree and datetime keys, the api is probably nicer | 19:12 |
dennis_ | there's some good ideas here to play with, thanks a lot :) | 19:13 |
ksmith99 | a container like that would be a nice addition to grok ;) | 19:13 |
ksmith99 | yes, thanks | 19:13 |
philiKON_ | well, a pre-made index that supports the slicing syntax would already be enough | 19:14 |
philiKON_ | if you've managed to create one, let us know :) | 19:14 |
philiKON_ | even better, make an egg and tell us about it | 19:14 |
*** ignas has quit IRC | 19:14 | |
*** yvl has quit IRC | 19:14 | |
dennis_ | i like the slicing a | 19:14 |
dennis_ | oops | 19:14 |
*** grahal has quit IRC | 19:15 | |
dennis_ | i like the 'slicing an index from a catalog' idea the most though, that would be really useful and still allow date-based searches | 19:15 |
dennis_ | will try that out | 19:15 |
philiKON_ | right | 19:15 |
philiKON_ | i suggest basing it on fieldindex | 19:15 |
philiKON_ | or zc.catalog's valueindex | 19:15 |
*** zagy has joined #zope3-dev | 19:21 | |
*** romanofski has quit IRC | 19:21 | |
*** jukart has quit IRC | 19:21 | |
dennis_ | speaking of eggs, should I learn about them for future zope releases? | 19:23 |
dennis_ | (insert zope+eggs doc here :) | 19:24 |
ksmith99 | dennis_, yes - learn eggs plus zc.buildout, it's a real time saver | 19:30 |
dennis_ | do al the zc. and z3c. packages work cleanly with zope or are they more specific (like branches to be merged later) | 19:31 |
ksmith99 | dennis_, they are independent components, with their own set of dependencies, that work with zope3. | 19:32 |
*** zagy_ has joined #zope3-dev | 19:34 | |
*** projekt01 has quit IRC | 19:36 | |
*** BjornT has joined #zope3-dev | 19:36 | |
*** dobee has quit IRC | 19:38 | |
*** zagy has quit IRC | 19:38 | |
*** edgordon has quit IRC | 19:39 | |
*** zagy_ has left #zope3-dev | 19:40 | |
*** zagy has joined #zope3-dev | 19:45 | |
*** MJ has quit IRC | 19:48 | |
*** schwendinger has quit IRC | 19:52 | |
*** zagy has quit IRC | 19:54 | |
*** edgordon has joined #zope3-dev | 20:02 | |
*** yvl has joined #zope3-dev | 20:02 | |
*** grahal has joined #zope3-dev | 20:07 | |
*** salfield has quit IRC | 20:11 | |
*** salfield has joined #zope3-dev | 20:13 | |
*** torkel_ has joined #zope3-dev | 20:13 | |
*** RaFromBRC has joined #zope3-dev | 20:15 | |
*** edgordon has quit IRC | 20:19 | |
*** romanofski has joined #zope3-dev | 20:33 | |
*** stephengr has joined #zope3-dev | 20:36 | |
stephengr | i ran zeo and found an Atrribute error on py 2.5 | 20:42 |
stephengr | /usr/local/lib/python2.5/threading.py(169)__init__() | 20:42 |
stephengr | -> self._release_save = lock._release_save | 20:42 |
*** afd__ has joined #zope3-dev | 20:43 | |
afd__ | what's the reason for the weird install procedure for the borg example, instead of a full GS setup? | 20:43 |
mgedmin | borg? GS? | 20:45 |
afd__ | could it be done as an import step? | 20:45 |
afd__ | mgedmin: http://dev.plone.org/collective/browser/borg/trunk/examples/charity | 20:45 |
*** harobed has quit IRC | 20:46 | |
afd__ | sorry, wrong channel :) | 20:46 |
afd__ | should be on plone | 20:46 |
mgedmin | that explains it :) | 20:46 |
mgedmin | not even a readme.txt in that svn directory | 20:46 |
mgedmin | ah, there is one one level above | 20:46 |
afd__ | 2 lines | 20:47 |
afd__ | actually, borg in itself is well documented | 20:47 |
stephengr | i ran zeo and found an Atrribute error on py 2.5 | 20:47 |
afd__ | there's a tutorial on plone | 20:48 |
afd__ | anyway | 20:48 |
mgedmin | stephengr: and? | 20:48 |
stephengr | got hanged | 20:49 |
*** zez_zez has quit IRC | 20:50 | |
mgedmin | that's a pretty strict punishment for an attribute error :) | 20:50 |
stephengr | but i think there is some problem in accquiring the lock | 20:50 |
stephengr | It is getting hanged in threading.py | 20:51 |
J1m | I've noticed that the ZEO tests hang on 2.5. :( | 20:51 |
J1m | I haven't had time to pursue it. | 20:51 |
* J1m looks at threading.py | 20:52 | |
J1m | stephengr, it would be good for you to share what you've learned on the zodb-dev list. | 20:53 |
J1m | It happens that the author of the threading module pays attention to that list. | 20:53 |
stephengr | i saw a recent post regarding discconection error there | 20:54 |
J1m | Line 169 explicitly ignopres the attribute error. | 20:55 |
J1m | It would simple prevent the condition from having that attr. | 20:55 |
stephengr | but it is getting stuck between 226 and 232 later . | 20:56 |
J1m | Nothing in ZEO tries to access that attribute. | 20:56 |
J1m | well, of course | 20:57 |
J1m | It is waiting for something that, presumably, isn't happening. | 20:57 |
J1m | The question is why nobody is calling notify or notifyAll. | 20:57 |
*** febb has joined #zope3-dev | 20:57 | |
stephengr | Is disconnetion error in ZEO when run with python2.5 related to this | 20:59 |
J1m | I have no idea | 20:59 |
J1m | All I know is that the tests hang. :) | 20:59 |
Cripps | hello stephengr. | 21:00 |
J1m | And that I don't have time to look at it. | 21:00 |
stephengr | hello Cripps | 21:00 |
Cripps | stephengr: were you looking for something from me specifically? | 21:01 |
*** schwendinger has joined #zope3-dev | 21:01 | |
stephengr | Ya I meant to ask this itself | 21:01 |
*** jkakar has quit IRC | 21:08 | |
*** stephengr has left #zope3-dev | 21:09 | |
*** jsadjohnson has quit IRC | 21:12 | |
*** jkakar has joined #zope3-dev | 21:14 | |
*** RaFromBRC is now known as RaFromBRC|mtg | 21:17 | |
*** whit is now known as whit|mtg | 21:26 | |
*** jsadjohnson has joined #zope3-dev | 21:27 | |
Cripps | hey dennis_, is it okay if I quote you in my doctest? | 21:38 |
Cripps | dennis_: I'm leaving soon, so just message me a "yes" or a "no" when you get the chance :) | 21:42 |
*** BjornT has quit IRC | 21:43 | |
*** BjornT has joined #zope3-dev | 21:47 | |
*** torkel_ has quit IRC | 21:49 | |
*** jinty_ has quit IRC | 21:51 | |
*** jinty has joined #zope3-dev | 21:51 | |
*** jinty has joined #zope3-dev | 21:53 | |
*** salfield is now known as tav | 21:53 | |
*** ktwilight has quit IRC | 21:55 | |
*** ktwilight has joined #zope3-dev | 21:56 | |
*** malthe has quit IRC | 21:56 | |
*** ignas has joined #zope3-dev | 21:59 | |
*** lucielejard has joined #zope3-dev | 22:02 | |
*** BjornT has quit IRC | 22:08 | |
*** Newfie2007 has quit IRC | 22:09 | |
*** mkerrin has quit IRC | 22:12 | |
*** bigkevmcd has quit IRC | 22:12 | |
*** deo has joined #zope3-dev | 22:18 | |
*** d2m has quit IRC | 22:26 | |
*** malthe has joined #zope3-dev | 22:31 | |
*** malthe_ has joined #zope3-dev | 22:33 | |
*** dunny has joined #zope3-dev | 22:36 | |
*** schwendinger has quit IRC | 22:38 | |
*** schwendinger has joined #zope3-dev | 22:41 | |
*** whit|mtg is now known as whit | 22:43 | |
*** RaFromBRC|mtg is now known as RaFromBRC | 22:45 | |
*** malthe_ has quit IRC | 22:48 | |
*** malthe has quit IRC | 22:48 | |
*** RaFromBRC is now known as RaFromBRC|lunch | 22:53 | |
*** BjornT has joined #zope3-dev | 22:58 | |
*** Aiste has joined #zope3-dev | 22:59 | |
*** dobee has joined #zope3-dev | 23:00 | |
*** malthe has joined #zope3-dev | 23:15 | |
*** dunny has quit IRC | 23:23 | |
*** ignas has quit IRC | 23:34 | |
*** benji has joined #zope3-dev | 23:38 | |
*** harobed has joined #zope3-dev | 23:41 | |
*** schwendinger has quit IRC | 23:46 | |
*** tav has quit IRC | 23:47 | |
*** RaFromBRC|lunch is now known as RaFromBRC | 23:47 | |
*** mgedmin has quit IRC | 23:48 | |
*** schwendinger has joined #zope3-dev | 23:53 | |
*** schwendinger has quit IRC | 23:57 | |
*** schwendinger has joined #zope3-dev | 23:59 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!