IRC log of #zope for Thursday, 2012-11-08

*** travisgriggs has quit IRC00:00
*** J1m_ has quit IRC00:01
*** fdrake has quit IRC00:04
suptonzope.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
mcdoncthis is a feature of datetime, not of the index i think00:22
mcdonc(although the feature is omnipresent in py3)00:22
supton>>> t = OOBTree(); t[datetime.date.today()] = 1; t[None] = 1  # raises TypeError00:22
mcdoncyes, datetime cant be compared against other things00:22
suptonmcdonc: I'd like to workaround in repoze.catalog?  Use dummy date/datetime value always?00:23
mcdoncbut its about the only thing in the stdlib that behaves this way00:23
mcdoncwell it's pretty nutty to index bare dateime values anyway00:23
mcdoncthey're way too precise00:23
mcdonci'd cast them to integers00:23
suptonhttp://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-null00:24
mcdonchttps://github.com/Pylons/substanced/blob/master/substanced/util/__init__.py#L1200:24
suptonmcdonc: not a bad idea, supposes that I normalize values on query, too though00:24
mcdoncyup00:24
mcdoncin reality there should probably be a date index00:24
mcdonci'm personally way too lazy for that00:25
suptonjust have to figure out granularity for datetime.date, I guess00:25
suptonmcdonc: seems extraneous00:25
mcdoncwell our conversation might have been shorter then ;-)00:25
suptonmcdonc: I think people will build higher-level interfaces on top of repoze.catalog, that's what I am doing00:25
mcdoncbleh, i hope not too many, i've already forked it00:26
suptonhah00:26
suptonmcdonc: where's the fork living?00:26
mcdonchttps://github.com/Pylons/hypatia00:26
*** LeoRochael has quit IRC00:26
suptonmcdonc: thanks00:26
mcdoncrationale: default 64-bit datastructures, difference in query language00:27
mcdonc(e.g. catalog['title'].eq('Hello') & catalog['interfaces'].eq(SomeInterface) )00:27
suptonmcdonc: ok, former saves me effort, simplifies something I am already doing00:27
mcdonci also killed the pathindex00:28
suptonincluding an evil monkey patch of repoze.catalog.query.BoolOp I did to force family=BTrees.family64 :-/00:28
mcdoncyeah i wont be maintaining r.catalog anymore for better or worse00: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
suptonmcdonc: I'll just move to using hypatia before I do a production release of what I'm doing00:29
mcdoncthat's likely wise00:29
mcdoncthat said, there's no release and no promise of bw compat yet00:30
mcdoncsorry00:30
mcdoncfor example00:31
mcdoncas i mentioned, lots more py3 types are incomparable00:31
mcdoncand to get around that, in places that we currently use like OOBTree and OOSet00:31
*** fredvd has joined #zope00:31
mcdoncwe're going to need to use something else00:31
mcdoncbecause some structures (like e.g. _rev_index on kwindex) dont actually need total ordering00:32
mcdoncwe just use OOBTree for it because it's convenient00:32
mcdoncbut it's untenable if we ever get a py3 zodb00:33
mcdoncfor exactly the reason we began talking here00:33
suptonmcdonc: 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 IRC01:08
mcdoncnot sure i cargo culted that code from karl and i was not its original author01:08
suptonmcdonc: ah, ok.  so I suppose I should not ask why 100seconds either...01:09
supton:)01:09
mcdoncdont know the original reason for that either.. good a choice as any i guess01:10
*** sp0cksbeard has quit IRC01:11
*** supton has quit IRC01:16
*** evilbungle has joined #zope01:54
*** RichyB has quit IRC01:56
*** RichyB has joined #zope01:56
*** _mup_ has quit IRC02:00
*** _mup_ has joined #zope02:00
*** Spanktar has quit IRC02:00
*** fredvd has quit IRC02:05
*** fdrake has joined #zope02:18
*** kosh has quit IRC03:13
*** daMaestro has quit IRC03:14
*** River-Rat has joined #zope03:18
*** RichyB has quit IRC03:19
*** River_Rat has quit IRC03:21
*** KageSenshi has quit IRC03:41
*** evilbungle has quit IRC03:46
*** tiwula has quit IRC03:58
*** mr_jolly has quit IRC04:13
*** Arfrever has quit IRC05:04
*** KageSenshi has joined #zope06:10
*** River_Rat has joined #zope06:29
*** River-Rat has quit IRC06:32
*** kosh has joined #zope06:55
*** J1m_ has joined #zope08:09
*** kosh has quit IRC08:16
*** nande has quit IRC08:26
*** J1m_ has quit IRC08:39
*** zagy has joined #zope08:56
*** agroszer has joined #zope09:14
*** __mac__ has joined #zope09:25
*** MrTango has joined #zope10:05
*** goschtl has joined #zope10:07
*** giacomos has joined #zope10:10
*** avoinea has joined #zope10:50
*** JT has quit IRC10:51
*** JT has joined #zope10:52
*** eperez has joined #zope11:17
*** __mac__ has quit IRC11:20
*** __mac__ has joined #zope11:21
*** maurits has joined #zope11:23
*** menesis has joined #zope11:35
*** sunew has joined #zope11:39
*** mr_jolly has joined #zope12:01
*** evilbungle has joined #zope12:25
*** RichyB has joined #zope12:35
*** evilbungle has quit IRC12:37
*** maurits has quit IRC12:40
*** maurits has joined #zope12:40
*** sunew has quit IRC12:45
*** sunew has joined #zope12:48
*** RichyB has quit IRC13:00
*** RichyB has joined #zope13:00
*** evilbungle has joined #zope13:02
*** KageSenshi has quit IRC13:07
*** fdrake has quit IRC13:26
*** maurits has quit IRC13:43
*** maurits has joined #zope14:06
*** fredvd has joined #zope14:07
*** RichyB has left #zope14:24
*** menesis has quit IRC14:30
*** avoinea has quit IRC14:32
*** LeoRochael has joined #zope14:41
*** avoinea has joined #zope14:42
*** mitchell`off is now known as mitchell`14:50
*** eperez has quit IRC14:56
*** fdrake has joined #zope14:59
*** mr_jolly has quit IRC15:07
*** kosh_ has joined #zope15:11
*** kosh_ is now known as kosh15: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 #zope15:20
*** RichyB has joined #zope15:22
*** RichyB has quit IRC15:31
*** sp0cksbeard has joined #zope15:49
*** goschtl has quit IRC15:56
*** kosh has quit IRC16:05
*** fredvd has quit IRC16:09
*** fredvd has joined #zope16:09
*** J1m_ has joined #zope16:09
*** mr_jolly has joined #zope16:23
*** eperez has joined #zope16:29
*** zagy has quit IRC16:42
*** RichyB has joined #zope16:59
*** MrTango has quit IRC17:06
*** menesis has quit IRC17:07
*** menesis has joined #zope17:08
*** sp0cksbeard has quit IRC17:21
*** sunew has quit IRC17:27
*** agroszer has quit IRC17:30
*** les_sylvains has joined #zope17:44
*** __mac__ has quit IRC17:48
*** tiwula has joined #zope17:50
*** maurits has quit IRC17:54
*** supton has joined #zope18:04
*** daMaestro has joined #zope18:09
*** goschtl has joined #zope18:15
*** JT has quit IRC18:21
*** avoinea has quit IRC18:25
*** JT has joined #zope18:29
*** JT has joined #zope18:29
*** fredvd has quit IRC18:40
*** mr_jolly has quit IRC18:42
*** goschtl has quit IRC18:46
*** mr_jolly has joined #zope18:48
*** mr_jolly has quit IRC19:01
*** giacomos has quit IRC19:05
*** m8 has joined #zope19:21
*** Adniel has joined #zope19:45
*** fredvd has joined #zope19:46
*** mcdonc has quit IRC19:46
*** LeoRochael has left #zope19:47
*** LeoRochael has joined #zope19:47
*** evilbungle_ has joined #zope19:48
*** evilbungle has quit IRC19:50
*** evilbungle_ is now known as evilbungle19:50
*** Adniel_ has joined #zope19:51
*** Adniel has quit IRC19:56
*** Adniel_ is now known as Adniel19:56
*** Adniel has quit IRC19:57
*** kosh has joined #zope20:02
*** agroszer has joined #zope20:06
*** mr_jolly has joined #zope20:11
*** eperez has quit IRC20:15
*** eperez has joined #zope20:16
*** maurits has joined #zope20:19
*** agroszer has quit IRC20:21
*** fredvd has quit IRC20:34
*** evilbungle has quit IRC20:38
*** River_Rat has quit IRC20:44
*** River_Rat has joined #zope20:47
*** __mac__ has joined #zope20:56
*** __mac__ has quit IRC20:56
*** __mac__ has joined #zope21:01
*** __mac__ has quit IRC21:12
*** zagy has joined #zope21:15
*** mcdonc has joined #zope21:51
*** nande has joined #zope21:53
*** zagy has quit IRC22:09
*** goschtl has joined #zope22:17
*** RichyB has quit IRC22:19
*** __mac__ has joined #zope22:42
*** nande has quit IRC22:44
*** LeoRochael has quit IRC22:48
*** maurits has quit IRC22:58
*** __mac__ has quit IRC23:10
*** goschtl has quit IRC23:11
*** nande has joined #zope23:13
*** les_sylvains has quit IRC23:50

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