*** travisgriggs has quit IRC | 00:00 | |
*** J1m_ has quit IRC | 00:01 | |
*** fdrake has quit IRC | 00:04 | |
supton | zope.index (well, OOBTree) does not like having a None key mixed with datetime.date or datetime.datetimeā¦ so you cannot index objects with NoneType values in zope.index, repoze.catalogā¦ thoughts on workaround> | 00:21 |
---|---|---|
supton | ? | 00:21 |
mcdonc | this is a feature of datetime, not of the index i think | 00:22 |
mcdonc | (although the feature is omnipresent in py3) | 00:22 |
supton | >>> t = OOBTree(); t[datetime.date.today()] = 1; t[None] = 1 # raises TypeError | 00:22 |
mcdonc | yes, datetime cant be compared against other things | 00:22 |
supton | mcdonc: I'd like to workaround in repoze.catalog? Use dummy date/datetime value always? | 00:23 |
mcdonc | but its about the only thing in the stdlib that behaves this way | 00:23 |
mcdonc | well it's pretty nutty to index bare dateime values anyway | 00:23 |
mcdonc | they're way too precise | 00:23 |
mcdonc | i'd cast them to integers | 00:23 |
supton | http://stackoverflow.com/questions/3170640/comparing-if-datetime-datetime-exists-or-none and http://stackoverflow.com/questions/2178931/in-python-sorting-on-date-field-field-may-sometimes-be-null | 00:24 |
mcdonc | https://github.com/Pylons/substanced/blob/master/substanced/util/__init__.py#L12 | 00:24 |
supton | mcdonc: not a bad idea, supposes that I normalize values on query, too though | 00:24 |
mcdonc | yup | 00:24 |
mcdonc | in reality there should probably be a date index | 00:24 |
mcdonc | i'm personally way too lazy for that | 00:25 |
supton | just have to figure out granularity for datetime.date, I guess | 00:25 |
supton | mcdonc: seems extraneous | 00:25 |
mcdonc | well our conversation might have been shorter then ;-) | 00:25 |
supton | mcdonc: I think people will build higher-level interfaces on top of repoze.catalog, that's what I am doing | 00:25 |
mcdonc | bleh, i hope not too many, i've already forked it | 00:26 |
supton | hah | 00:26 |
supton | mcdonc: where's the fork living? | 00:26 |
mcdonc | https://github.com/Pylons/hypatia | 00:26 |
*** LeoRochael has quit IRC | 00:26 | |
supton | mcdonc: thanks | 00:26 |
mcdonc | rationale: default 64-bit datastructures, difference in query language | 00:27 |
mcdonc | (e.g. catalog['title'].eq('Hello') & catalog['interfaces'].eq(SomeInterface) ) | 00:27 |
supton | mcdonc: ok, former saves me effort, simplifies something I am already doing | 00:27 |
mcdonc | i also killed the pathindex | 00:28 |
supton | including an evil monkey patch of repoze.catalog.query.BoolOp I did to force family=BTrees.family64 :-/ | 00:28 |
mcdonc | yeah i wont be maintaining r.catalog anymore for better or worse | 00:29 |
supton | (I subclassed index types and catalog to change the family, but ended up needing to monkey patch the query for expediency because I did not want to subclass it) | 00:29 |
supton | mcdonc: I'll just move to using hypatia before I do a production release of what I'm doing | 00:29 |
mcdonc | that's likely wise | 00:29 |
mcdonc | that said, there's no release and no promise of bw compat yet | 00:30 |
mcdonc | sorry | 00:30 |
mcdonc | for example | 00:31 |
mcdonc | as i mentioned, lots more py3 types are incomparable | 00:31 |
mcdonc | and to get around that, in places that we currently use like OOBTree and OOSet | 00:31 |
*** fredvd has joined #zope | 00:31 | |
mcdonc | we're going to need to use something else | 00:31 |
mcdonc | because some structures (like e.g. _rev_index on kwindex) dont actually need total ordering | 00:32 |
mcdonc | we just use OOBTree for it because it's convenient | 00:32 |
mcdonc | but it's untenable if we ever get a py3 zodb | 00:33 |
mcdonc | for exactly the reason we began talking here | 00:33 |
supton | mcdonc: why not (substanced) use datetime.date.toordinal() vs using calendar? Is the intent of this to have something that could handle both date and datetime? | 01:06 |
supton | (for normalizing int repr) | 01:06 |
*** eperez has quit IRC | 01:08 | |
mcdonc | not sure i cargo culted that code from karl and i was not its original author | 01:08 |
supton | mcdonc: ah, ok. so I suppose I should not ask why 100seconds either... | 01:09 |
supton | :) | 01:09 |
mcdonc | dont know the original reason for that either.. good a choice as any i guess | 01:10 |
*** sp0cksbeard has quit IRC | 01:11 | |
*** supton has quit IRC | 01:16 | |
*** evilbungle has joined #zope | 01:54 | |
*** RichyB has quit IRC | 01:56 | |
*** RichyB has joined #zope | 01:56 | |
*** _mup_ has quit IRC | 02:00 | |
*** _mup_ has joined #zope | 02:00 | |
*** Spanktar has quit IRC | 02:00 | |
*** fredvd has quit IRC | 02:05 | |
*** fdrake has joined #zope | 02:18 | |
*** kosh has quit IRC | 03:13 | |
*** daMaestro has quit IRC | 03:14 | |
*** River-Rat has joined #zope | 03:18 | |
*** RichyB has quit IRC | 03:19 | |
*** River_Rat has quit IRC | 03:21 | |
*** KageSenshi has quit IRC | 03:41 | |
*** evilbungle has quit IRC | 03:46 | |
*** tiwula has quit IRC | 03:58 | |
*** mr_jolly has quit IRC | 04:13 | |
*** Arfrever has quit IRC | 05:04 | |
*** KageSenshi has joined #zope | 06:10 | |
*** River_Rat has joined #zope | 06:29 | |
*** River-Rat has quit IRC | 06:32 | |
*** kosh has joined #zope | 06:55 | |
*** J1m_ has joined #zope | 08:09 | |
*** kosh has quit IRC | 08:16 | |
*** nande has quit IRC | 08:26 | |
*** J1m_ has quit IRC | 08:39 | |
*** zagy has joined #zope | 08:56 | |
*** agroszer has joined #zope | 09:14 | |
*** __mac__ has joined #zope | 09:25 | |
*** MrTango has joined #zope | 10:05 | |
*** goschtl has joined #zope | 10:07 | |
*** giacomos has joined #zope | 10:10 | |
*** avoinea has joined #zope | 10:50 | |
*** JT has quit IRC | 10:51 | |
*** JT has joined #zope | 10:52 | |
*** eperez has joined #zope | 11:17 | |
*** __mac__ has quit IRC | 11:20 | |
*** __mac__ has joined #zope | 11:21 | |
*** maurits has joined #zope | 11:23 | |
*** menesis has joined #zope | 11:35 | |
*** sunew has joined #zope | 11:39 | |
*** mr_jolly has joined #zope | 12:01 | |
*** evilbungle has joined #zope | 12:25 | |
*** RichyB has joined #zope | 12:35 | |
*** evilbungle has quit IRC | 12:37 | |
*** maurits has quit IRC | 12:40 | |
*** maurits has joined #zope | 12:40 | |
*** sunew has quit IRC | 12:45 | |
*** sunew has joined #zope | 12:48 | |
*** RichyB has quit IRC | 13:00 | |
*** RichyB has joined #zope | 13:00 | |
*** evilbungle has joined #zope | 13:02 | |
*** KageSenshi has quit IRC | 13:07 | |
*** fdrake has quit IRC | 13:26 | |
*** maurits has quit IRC | 13:43 | |
*** maurits has joined #zope | 14:06 | |
*** fredvd has joined #zope | 14:07 | |
*** RichyB has left #zope | 14:24 | |
*** menesis has quit IRC | 14:30 | |
*** avoinea has quit IRC | 14:32 | |
*** LeoRochael has joined #zope | 14:41 | |
*** avoinea has joined #zope | 14:42 | |
*** mitchell`off is now known as mitchell` | 14:50 | |
*** eperez has quit IRC | 14:56 | |
*** fdrake has joined #zope | 14:59 | |
*** mr_jolly has quit IRC | 15:07 | |
*** kosh_ has joined #zope | 15:11 | |
*** kosh_ is now known as kosh | 15:12 | |
_mup_ | Bug #1076316 was filed: Tales Expression breakage in lates Zope 2.12.26 and 2.13. <tales> <zope.tales:New> <Zope 2:New> < https://launchpad.net/bugs/1076316 > | 15:18 |
*** menesis has joined #zope | 15:20 | |
*** RichyB has joined #zope | 15:22 | |
*** RichyB has quit IRC | 15:31 | |
*** sp0cksbeard has joined #zope | 15:49 | |
*** goschtl has quit IRC | 15:56 | |
*** kosh has quit IRC | 16:05 | |
*** fredvd has quit IRC | 16:09 | |
*** fredvd has joined #zope | 16:09 | |
*** J1m_ has joined #zope | 16:09 | |
*** mr_jolly has joined #zope | 16:23 | |
*** eperez has joined #zope | 16:29 | |
*** zagy has quit IRC | 16:42 | |
*** RichyB has joined #zope | 16:59 | |
*** MrTango has quit IRC | 17:06 | |
*** menesis has quit IRC | 17:07 | |
*** menesis has joined #zope | 17:08 | |
*** sp0cksbeard has quit IRC | 17:21 | |
*** sunew has quit IRC | 17:27 | |
*** agroszer has quit IRC | 17:30 | |
*** les_sylvains has joined #zope | 17:44 | |
*** __mac__ has quit IRC | 17:48 | |
*** tiwula has joined #zope | 17:50 | |
*** maurits has quit IRC | 17:54 | |
*** supton has joined #zope | 18:04 | |
*** daMaestro has joined #zope | 18:09 | |
*** goschtl has joined #zope | 18:15 | |
*** JT has quit IRC | 18:21 | |
*** avoinea has quit IRC | 18:25 | |
*** JT has joined #zope | 18:29 | |
*** JT has joined #zope | 18:29 | |
*** fredvd has quit IRC | 18:40 | |
*** mr_jolly has quit IRC | 18:42 | |
*** goschtl has quit IRC | 18:46 | |
*** mr_jolly has joined #zope | 18:48 | |
*** mr_jolly has quit IRC | 19:01 | |
*** giacomos has quit IRC | 19:05 | |
*** m8 has joined #zope | 19:21 | |
*** Adniel has joined #zope | 19:45 | |
*** fredvd has joined #zope | 19:46 | |
*** mcdonc has quit IRC | 19:46 | |
*** LeoRochael has left #zope | 19:47 | |
*** LeoRochael has joined #zope | 19:47 | |
*** evilbungle_ has joined #zope | 19:48 | |
*** evilbungle has quit IRC | 19:50 | |
*** evilbungle_ is now known as evilbungle | 19:50 | |
*** Adniel_ has joined #zope | 19:51 | |
*** Adniel has quit IRC | 19:56 | |
*** Adniel_ is now known as Adniel | 19:56 | |
*** Adniel has quit IRC | 19:57 | |
*** kosh has joined #zope | 20:02 | |
*** agroszer has joined #zope | 20:06 | |
*** mr_jolly has joined #zope | 20:11 | |
*** eperez has quit IRC | 20:15 | |
*** eperez has joined #zope | 20:16 | |
*** maurits has joined #zope | 20:19 | |
*** agroszer has quit IRC | 20:21 | |
*** fredvd has quit IRC | 20:34 | |
*** evilbungle has quit IRC | 20:38 | |
*** River_Rat has quit IRC | 20:44 | |
*** River_Rat has joined #zope | 20:47 | |
*** __mac__ has joined #zope | 20:56 | |
*** __mac__ has quit IRC | 20:56 | |
*** __mac__ has joined #zope | 21:01 | |
*** __mac__ has quit IRC | 21:12 | |
*** zagy has joined #zope | 21:15 | |
*** mcdonc has joined #zope | 21:51 | |
*** nande has joined #zope | 21:53 | |
*** zagy has quit IRC | 22:09 | |
*** goschtl has joined #zope | 22:17 | |
*** RichyB has quit IRC | 22:19 | |
*** __mac__ has joined #zope | 22:42 | |
*** nande has quit IRC | 22:44 | |
*** LeoRochael has quit IRC | 22:48 | |
*** maurits has quit IRC | 22:58 | |
*** __mac__ has quit IRC | 23:10 | |
*** goschtl has quit IRC | 23:11 | |
*** nande has joined #zope | 23:13 | |
*** les_sylvains has quit IRC | 23:50 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!