IRC log of #zope for Thursday, 2012-09-20

*** J1m has quit IRC00:05
*** fdrake has quit IRC00:09
*** LeoRochael has quit IRC00:10
*** kosh has joined #zope00:18
*** Spanktar has quit IRC00:20
*** Spanktar has joined #zope00:26
*** benji has joined #zope00:27
*** Adniel has joined #zope00:39
*** nande has joined #zope00:48
*** supton_ has joined #zope00:57
*** supton_ has quit IRC00:57
*** thetet has joined #zope00:58
*** thetet has quit IRC00:59
*** thetet has joined #zope01:00
*** supton has quit IRC01:00
*** Pumukel has quit IRC01:01
*** m8 has quit IRC01:18
*** mr_jolly has joined #zope01:29
*** benji has quit IRC01:31
*** elro has quit IRC01:50
*** mcdonc has quit IRC01:52
*** supton has joined #zope02:01
*** Maijin_ has joined #zope02:22
Maijin_Plop Hello all, I'm looking for some infos about ZODB, is it a good idea to use it for a directory?, Second question, I saw that it's just SQL. But can i perform all SQL operations ?02:25
Maijin_thanks ;-)02:25
*** Adniel_ has joined #zope02:26
*** Adniel has quit IRC02:28
*** Adniel_ is now known as Adniel02:28
*** thetet has quit IRC02:37
*** River_Rat has joined #zope02:47
*** RiverRat has quit IRC02:50
*** mcdonc has joined #zope02:56
*** _mup_ has quit IRC03:00
*** _mup_ has joined #zope03:00
*** Maijin_ has quit IRC03:14
*** supton has quit IRC03:28
nandehey guys i'm looking about how to deal with broken objects, anyone with experience in that'03:32
nande?03:32
koshusually I fix the object03:37
koshas soon as you fix the object enough that it loads you can deal with it more easily03:37
nandekosh: good to see/read you again.03:40
nandehow do you "fix" the object,03:40
nandei just changed the location of the classes03:41
koshuhoh03:41
koshthat is kind of a bitch to fix03:41
koshpretty much broke one of the basic rules of pickles03:41
nandei'd like to do obj.__class__ = newmodule.Class03:41
koshthere is a way to do it but darned if I can remember the method since it is serious black magic03:42
koshI think it has something to do with __setstate__03:42
koshyou best bet is to ask on the zope or zope-dev email list03:42
nandemmm i'm not freind of mailing lists.. but thanks :) maybe i'll solve it by recreating the objects03:43
koshif you have only moved the files you can symlink to the original location and have them work again03:43
nandeon windows, cant.03:44
koshin general though never rename or move these files once you have objects created from them03:44
nandeyeap, but im kind of an arsehole, if my code doesnt look perfect i want to refactor it.03:45
nandebtw, broken module is great :) i think i'll recreate the objects and copy base attributes03:45
koshthen you are going to have a lot of misery03:45
nandei am as for today i am.03:46
koshit is just that if you keep doing this you will break things a lot03:46
nandei'm having a philosophical question about how to name my imports, and that's almost stupid.03:46
nandehttps://gist.github.com/704910 < kosh sorry dude, but, what do you think of this?03:48
koshsee what happens03:48
*** Spanktar has quit IRC03:56
nandesys.modules['db.models']=banta.db.models < easier to do actually04:05
nande>>> banta.db.DB.products.values()[0]04:08
nande<banta.db.models.Product object at 0x01F7FEB0>04:08
nandethe thing now is to actually save it to zodb04:08
*** tiwula has quit IRC04:19
nandehey kosh do you know why i cant use ZEO.ClientStorage.ClientStorage or transaction ==1.3 on mac?04:33
koshnot a clue I don't use macs04:34
nandehttp://apidoc.zope.org/++apidoc++/Book/zodb/persistentclass/show.html < i found about broken module, really cool.. i fixed the import with several codes, like faking the module path and creating a classFactory (which btw is cool)04:35
nandebut how can i tell zodb to change the class of an object?04:35
nandei commit and nothing happens, next time is still broken04:36
*** tiwula has joined #zope04:36
nandeanyidea ? (i've set the _p_changed val)04:39
*** River-Rat has joined #zope04:47
*** River_Rat has quit IRC04:49
nandeis there a way to tell zodb to re-pickle everything?04:49
*** River-Rat is now known as RiverRat04:49
koshsorry I need to get to bed05:09
koshjust kind of fried from too many other things going on so not much help05:09
koshchemical engineering classes are hard :)05:09
nandeyeap they are05:14
nanderest well :) thanks05:14
*** raydeo has quit IRC05:16
*** raydeo has joined #zope05:26
*** kosh has quit IRC05:26
nandefound the solution, it was pebkac by sleepness, i just lacked to put the _p_changed somewhere else05:33
*** betabug has quit IRC05:42
*** betabug has joined #zope05:48
*** mr_jolly has quit IRC06:36
*** Adniel has quit IRC06:37
*** tiwula has quit IRC06:58
*** fdrake has joined #zope07:09
*** nande has quit IRC07:55
*** zagy has joined #zope09:05
*** zagy has joined #zope09:14
*** KageSenshi has quit IRC09:15
*** KageSenshi has joined #zope09:15
*** agroszer has joined #zope09:19
*** __mac__ has joined #zope09:23
*** zagy has quit IRC09:29
*** miano has joined #zope09:49
*** miano_ has joined #zope10:04
*** miano has quit IRC10:08
*** giacomos has joined #zope10:20
*** Arfrever has left #zope10:33
*** Arfrever has joined #zope10:33
*** avoinea has joined #zope10:40
*** J1m has joined #zope10:44
*** J1m has quit IRC11:02
*** MrTango has joined #zope11:02
*** RiverRat has quit IRC11:07
*** maurits has joined #zope11:13
*** RiverRat has joined #zope11:15
*** maurits has quit IRC11:19
*** maurits has joined #zope11:19
*** zagy has joined #zope11:22
*** mr_jolly has joined #zope11:32
*** eperez has joined #zope11:36
*** miano_ has quit IRC11:37
*** miano_ has joined #zope11:37
*** fredvd has joined #zope11:38
*** elro has joined #zope11:49
*** miano__ has joined #zope12:02
*** miano_ has quit IRC12:03
*** mr_jolly has quit IRC12:05
*** Maijin has joined #zope12:05
*** RichyB has joined #zope12:06
*** miano__ has quit IRC12:08
*** mr_jolly has joined #zope12:10
*** maurits has quit IRC12:13
*** miano has joined #zope12:13
*** evilbungle has joined #zope12:13
*** mitchell`off is now known as mitchell`12:21
*** miano has quit IRC12:23
*** Maijin has quit IRC12:25
*** goschtl has joined #zope12:26
*** miano has joined #zope12:29
*** miano_ has joined #zope12:40
*** miano__ has joined #zope12:42
*** miano has quit IRC12:42
*** miano_ has quit IRC12:43
*** miano_ has joined #zope12:44
*** miano__ has quit IRC12:47
*** RichyB has quit IRC12:52
*** RichyB has joined #zope12:55
*** teix has joined #zope12:56
*** maurits has joined #zope13:13
*** mr_jolly has quit IRC13:13
*** evilbungle_ has joined #zope13:15
*** evilbungle has quit IRC13:15
*** evilbungle_ is now known as evilbungle13:15
*** mr_jolly has joined #zope13:24
*** KageSenshi has quit IRC13:25
*** goschtl has quit IRC13:34
*** fdrake has quit IRC13:45
*** evilbungle has quit IRC13:56
*** evilbungle has joined #zope13:59
*** kosh has joined #zope14:05
*** goschtl has joined #zope14:12
*** avoinea has quit IRC14:19
*** avoinea has joined #zope14:28
*** mr_jolly has quit IRC14:43
*** Arfrever has quit IRC14:56
*** dayne has joined #zope15:00
*** fdrake has joined #zope15:10
*** sunew has joined #zope15:15
*** Guest95802 has joined #zope15:49
*** mcdonc_ has joined #zope15:58
*** menesis has quit IRC16:00
*** kosh has quit IRC16:03
*** Guest95802 has quit IRC16:03
*** benji has joined #zope16:12
*** River_Rat has joined #zope16:13
jpichi all, i have no idea why transaction.commit() does not commit to the database file on my production server ... when it works locally ... any idea ?16:14
*** RiverRat has quit IRC16:16
*** goschtl has quit IRC16:24
*** goschtl has joined #zope16:39
*** menesis has joined #zope16:41
*** RichyB has quit IRC16:42
*** les_sylvains has joined #zope16:43
*** __mac__ has quit IRC16:56
*** RichyB has joined #zope16:57
*** thetet has joined #zope17:14
*** Pumukel has joined #zope17:15
*** agroszer has quit IRC17:26
*** LeoRochael has joined #zope17:32
*** mr_jolly has joined #zope17:34
*** tiwula has joined #zope17:39
*** sunew has quit IRC17:41
*** sunew has joined #zope17:50
*** dayne has quit IRC17:51
*** zagy has quit IRC18:05
*** goschtl_ has joined #zope18:11
*** mr_jolly has quit IRC18:13
*** goschtl has quit IRC18:14
*** goschtl_ is now known as goschtl18:14
*** goschtl has quit IRC18:33
*** daMaestro has joined #zope18:37
*** fredvd has quit IRC18:39
*** fredvd has joined #zope18:42
*** sunew has quit IRC18:43
*** supton has joined #zope18:44
*** fredvd has quit IRC18:44
*** maurits has quit IRC18:50
*** mr_jolly has joined #zope18:57
*** giacomos has quit IRC19:11
jpicmcdonc_: /win 1619:15
jpicsry19:15
*** supton_ has joined #zope19:16
*** supton has quit IRC19:20
*** supton_ is now known as supton19:20
*** mcdonc_ has quit IRC19:23
*** thetet has quit IRC19:26
*** Spanktar has joined #zope19:29
*** avoinea has quit IRC19:31
*** benji has quit IRC19:32
*** eperez has quit IRC19:35
*** mitchell` is now known as mitchell`off19:44
*** mr_jolly has quit IRC19:51
*** mr_jolly has joined #zope20:00
*** Pumukel has quit IRC20:03
*** elro has quit IRC20:10
*** LeoRochael has quit IRC20:18
*** LeoRochael has joined #zope20:20
*** supton has quit IRC20:20
*** supton has joined #zope20:21
*** jarr0dsz has joined #zope20:31
jarr0dszhi everyone im trying to install plone on top of zope with an plone add-on and get a zope related error     ConfigurationError: ('Invalid value for', 'for', "ImportError: Couldn't import zope.app.publication.interfaces, No module named publication.interfaces in Products.CMFPlone.interfaces.IPloneSiteRoot   <-- is that zope related and fixable?20:31
jarr0dszhavent been able to find anything on this online for the last 20 minutes20:32
betabugjarr0dsz: ask in #plone, people who use zope without plone won't have that problem20:33
betabugI guess you might have a mis-match of the zope and plone versions, but only the plonies could help you there20:34
jarr0dszokay thx betabug20:35
*** jarr0dsz has left #zope20:36
*** evilbungle has quit IRC20:38
*** kosh has joined #zope20:43
*** mcdonc_ has joined #zope20:44
jpichi all, i don't understand when to use PersistentMapping and when to use OOBTree20:59
LeoRochaeljpic: most of the time, OOBTree21:00
LeoRochaeljpic: you'll want to use PersistentMapping when you *want* to have ConflictErrors if unrelated keys of the dictionary change21:01
LeoRochaeljpic: and yes, sometimes you want that21:01
LeoRochaeljpic: also, a PersistentMapping is always loaded from the ZODB at once, for all keys and values (although keys and values could be loaded as ghosts only, if they're persistent objects themselves).21:02
LeoRochaeljpic: which could be bad or good depending on your application21:03
LeoRochaeljpic: but if you frequently write to it, then it'll be horrible21:03
* LeoRochael has nightmares of Localizer MessageCatalog objects, which store data on trees of PersistentMappings. Very fast for lookup, but constant source of ConflictErrors and a huge performance hit whenever one had to be reloaded from ZEO storage21:05
*** benji has joined #zope21:06
*** mcdonc_ has quit IRC21:08
*** menesis has quit IRC21:09
betabugI'd answer "use *always* OOBTrees"21:11
betabugif one day you achieve true master status to do differently to this advice, you will know it yourself21:12
betabugwhen I saw someone in my team use PersistentMapping, I flagged it as a bug21:13
*** m8 has joined #zope21:17
*** RichyB has quit IRC21:20
koshI would recommmend always OOBTrees also21:30
koshbetabug: so how goes the apocalypse?21:31
betabughey kosh!21:31
betabugdunno, spend the afternoon on the beach, eating and drinking... so the apocalypse is definitely "not now"21:32
*** MrTango has quit IRC21:32
koshyeah that does not sound like much of an apocalypse unless you where on a nude beach filled with overweight americans21:32
koshso how have you been?21:33
betabugfine, a bit too much work, but ok after all21:35
betabugworked with Zope 3 and pyramid lately21:35
koshI am on track to graduate in two more years just very very busy21:35
koshchemical engineering + work is a lot21:35
*** mcdonc_ has joined #zope21:36
betabugI can imagine21:41
betabugand you're doing it for real, not just slacking in school21:41
koshthis semester I have thermodynamics, kinetics (heat transfer), physical chemistry and a engineering statistics and experimental design class21:41
koshyou can not slack through an engineering degree21:42
koshyou have to work your ass off just to pass21:42
*** nande has joined #zope21:45
jpicwow, thanks for answering21:57
*** les_sylvains has quit IRC22:03
*** daMaestro has quit IRC22:06
*** zagy has joined #zope22:10
*** __mac__ has joined #zope22:16
*** zagy has quit IRC22:18
*** __mac__ has quit IRC22:18
*** zagy has joined #zope22:24
*** zagy has quit IRC22:30
*** teix has quit IRC22:30
*** __mac__ has joined #zope22:31
*** les_sylvains has joined #zope22:38
suptonjpic: one quick thing of note, BTrees keys/values/items methods return mutable iterators, which is like Python 3, but unlike default dict type in python 2… this can create real head-scratcher issues if you are not aware of it22:48
suptonjpic: so lesson is, use (appropriate-to-data-type-of) BTrees, and always cast calls to keys/values/items to tuple, list, or set if you plan to mutate anything during iteration22:49
*** Arfrever has joined #zope22:51
*** kosh has quit IRC23:04
jpicahh good to know, thanks supton23:08
*** Adniel has joined #zope23:35
*** mcdonc_ has quit IRC23:36
*** les_sylvains has quit IRC23:37
*** miano_ has quit IRC23:40
*** Adniel has quit IRC23:48
*** elro has joined #zope23:53
*** River-Rat has joined #zope23:56
*** River_Rat has quit IRC23:58

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