*** J1m has quit IRC | 00:05 | |
*** fdrake has quit IRC | 00:09 | |
*** LeoRochael has quit IRC | 00:10 | |
*** kosh has joined #zope | 00:18 | |
*** Spanktar has quit IRC | 00:20 | |
*** Spanktar has joined #zope | 00:26 | |
*** benji has joined #zope | 00:27 | |
*** Adniel has joined #zope | 00:39 | |
*** nande has joined #zope | 00:48 | |
*** supton_ has joined #zope | 00:57 | |
*** supton_ has quit IRC | 00:57 | |
*** thetet has joined #zope | 00:58 | |
*** thetet has quit IRC | 00:59 | |
*** thetet has joined #zope | 01:00 | |
*** supton has quit IRC | 01:00 | |
*** Pumukel has quit IRC | 01:01 | |
*** m8 has quit IRC | 01:18 | |
*** mr_jolly has joined #zope | 01:29 | |
*** benji has quit IRC | 01:31 | |
*** elro has quit IRC | 01:50 | |
*** mcdonc has quit IRC | 01:52 | |
*** supton has joined #zope | 02:01 | |
*** Maijin_ has joined #zope | 02: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 #zope | 02:26 | |
*** Adniel has quit IRC | 02:28 | |
*** Adniel_ is now known as Adniel | 02:28 | |
*** thetet has quit IRC | 02:37 | |
*** River_Rat has joined #zope | 02:47 | |
*** RiverRat has quit IRC | 02:50 | |
*** mcdonc has joined #zope | 02:56 | |
*** _mup_ has quit IRC | 03:00 | |
*** _mup_ has joined #zope | 03:00 | |
*** Maijin_ has quit IRC | 03:14 | |
*** supton has quit IRC | 03:28 | |
nande | hey guys i'm looking about how to deal with broken objects, anyone with experience in that' | 03:32 |
nande | ? | 03:32 |
kosh | usually I fix the object | 03:37 |
kosh | as soon as you fix the object enough that it loads you can deal with it more easily | 03:37 |
nande | kosh: good to see/read you again. | 03:40 |
nande | how do you "fix" the object, | 03:40 |
nande | i just changed the location of the classes | 03:41 |
kosh | uhoh | 03:41 |
kosh | that is kind of a bitch to fix | 03:41 |
kosh | pretty much broke one of the basic rules of pickles | 03:41 |
nande | i'd like to do obj.__class__ = newmodule.Class | 03:41 |
kosh | there is a way to do it but darned if I can remember the method since it is serious black magic | 03:42 |
kosh | I think it has something to do with __setstate__ | 03:42 |
kosh | you best bet is to ask on the zope or zope-dev email list | 03:42 |
nande | mmm i'm not freind of mailing lists.. but thanks :) maybe i'll solve it by recreating the objects | 03:43 |
kosh | if you have only moved the files you can symlink to the original location and have them work again | 03:43 |
nande | on windows, cant. | 03:44 |
kosh | in general though never rename or move these files once you have objects created from them | 03:44 |
nande | yeap, but im kind of an arsehole, if my code doesnt look perfect i want to refactor it. | 03:45 |
nande | btw, broken module is great :) i think i'll recreate the objects and copy base attributes | 03:45 |
kosh | then you are going to have a lot of misery | 03:45 |
nande | i am as for today i am. | 03:46 |
kosh | it is just that if you keep doing this you will break things a lot | 03:46 |
nande | i'm having a philosophical question about how to name my imports, and that's almost stupid. | 03:46 |
nande | https://gist.github.com/704910 < kosh sorry dude, but, what do you think of this? | 03:48 |
kosh | see what happens | 03:48 |
*** Spanktar has quit IRC | 03:56 | |
nande | sys.modules['db.models']=banta.db.models < easier to do actually | 04:05 |
nande | >>> banta.db.DB.products.values()[0] | 04:08 |
nande | <banta.db.models.Product object at 0x01F7FEB0> | 04:08 |
nande | the thing now is to actually save it to zodb | 04:08 |
*** tiwula has quit IRC | 04:19 | |
nande | hey kosh do you know why i cant use ZEO.ClientStorage.ClientStorage or transaction ==1.3 on mac? | 04:33 |
kosh | not a clue I don't use macs | 04:34 |
nande | http://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 |
nande | but how can i tell zodb to change the class of an object? | 04:35 |
nande | i commit and nothing happens, next time is still broken | 04:36 |
*** tiwula has joined #zope | 04:36 | |
nande | anyidea ? (i've set the _p_changed val) | 04:39 |
*** River-Rat has joined #zope | 04:47 | |
*** River_Rat has quit IRC | 04:49 | |
nande | is there a way to tell zodb to re-pickle everything? | 04:49 |
*** River-Rat is now known as RiverRat | 04:49 | |
kosh | sorry I need to get to bed | 05:09 |
kosh | just kind of fried from too many other things going on so not much help | 05:09 |
kosh | chemical engineering classes are hard :) | 05:09 |
nande | yeap they are | 05:14 |
nande | rest well :) thanks | 05:14 |
*** raydeo has quit IRC | 05:16 | |
*** raydeo has joined #zope | 05:26 | |
*** kosh has quit IRC | 05:26 | |
nande | found the solution, it was pebkac by sleepness, i just lacked to put the _p_changed somewhere else | 05:33 |
*** betabug has quit IRC | 05:42 | |
*** betabug has joined #zope | 05:48 | |
*** mr_jolly has quit IRC | 06:36 | |
*** Adniel has quit IRC | 06:37 | |
*** tiwula has quit IRC | 06:58 | |
*** fdrake has joined #zope | 07:09 | |
*** nande has quit IRC | 07:55 | |
*** zagy has joined #zope | 09:05 | |
*** zagy has joined #zope | 09:14 | |
*** KageSenshi has quit IRC | 09:15 | |
*** KageSenshi has joined #zope | 09:15 | |
*** agroszer has joined #zope | 09:19 | |
*** __mac__ has joined #zope | 09:23 | |
*** zagy has quit IRC | 09:29 | |
*** miano has joined #zope | 09:49 | |
*** miano_ has joined #zope | 10:04 | |
*** miano has quit IRC | 10:08 | |
*** giacomos has joined #zope | 10:20 | |
*** Arfrever has left #zope | 10:33 | |
*** Arfrever has joined #zope | 10:33 | |
*** avoinea has joined #zope | 10:40 | |
*** J1m has joined #zope | 10:44 | |
*** J1m has quit IRC | 11:02 | |
*** MrTango has joined #zope | 11:02 | |
*** RiverRat has quit IRC | 11:07 | |
*** maurits has joined #zope | 11:13 | |
*** RiverRat has joined #zope | 11:15 | |
*** maurits has quit IRC | 11:19 | |
*** maurits has joined #zope | 11:19 | |
*** zagy has joined #zope | 11:22 | |
*** mr_jolly has joined #zope | 11:32 | |
*** eperez has joined #zope | 11:36 | |
*** miano_ has quit IRC | 11:37 | |
*** miano_ has joined #zope | 11:37 | |
*** fredvd has joined #zope | 11:38 | |
*** elro has joined #zope | 11:49 | |
*** miano__ has joined #zope | 12:02 | |
*** miano_ has quit IRC | 12:03 | |
*** mr_jolly has quit IRC | 12:05 | |
*** Maijin has joined #zope | 12:05 | |
*** RichyB has joined #zope | 12:06 | |
*** miano__ has quit IRC | 12:08 | |
*** mr_jolly has joined #zope | 12:10 | |
*** maurits has quit IRC | 12:13 | |
*** miano has joined #zope | 12:13 | |
*** evilbungle has joined #zope | 12:13 | |
*** mitchell`off is now known as mitchell` | 12:21 | |
*** miano has quit IRC | 12:23 | |
*** Maijin has quit IRC | 12:25 | |
*** goschtl has joined #zope | 12:26 | |
*** miano has joined #zope | 12:29 | |
*** miano_ has joined #zope | 12:40 | |
*** miano__ has joined #zope | 12:42 | |
*** miano has quit IRC | 12:42 | |
*** miano_ has quit IRC | 12:43 | |
*** miano_ has joined #zope | 12:44 | |
*** miano__ has quit IRC | 12:47 | |
*** RichyB has quit IRC | 12:52 | |
*** RichyB has joined #zope | 12:55 | |
*** teix has joined #zope | 12:56 | |
*** maurits has joined #zope | 13:13 | |
*** mr_jolly has quit IRC | 13:13 | |
*** evilbungle_ has joined #zope | 13:15 | |
*** evilbungle has quit IRC | 13:15 | |
*** evilbungle_ is now known as evilbungle | 13:15 | |
*** mr_jolly has joined #zope | 13:24 | |
*** KageSenshi has quit IRC | 13:25 | |
*** goschtl has quit IRC | 13:34 | |
*** fdrake has quit IRC | 13:45 | |
*** evilbungle has quit IRC | 13:56 | |
*** evilbungle has joined #zope | 13:59 | |
*** kosh has joined #zope | 14:05 | |
*** goschtl has joined #zope | 14:12 | |
*** avoinea has quit IRC | 14:19 | |
*** avoinea has joined #zope | 14:28 | |
*** mr_jolly has quit IRC | 14:43 | |
*** Arfrever has quit IRC | 14:56 | |
*** dayne has joined #zope | 15:00 | |
*** fdrake has joined #zope | 15:10 | |
*** sunew has joined #zope | 15:15 | |
*** Guest95802 has joined #zope | 15:49 | |
*** mcdonc_ has joined #zope | 15:58 | |
*** menesis has quit IRC | 16:00 | |
*** kosh has quit IRC | 16:03 | |
*** Guest95802 has quit IRC | 16:03 | |
*** benji has joined #zope | 16:12 | |
*** River_Rat has joined #zope | 16:13 | |
jpic | hi 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 IRC | 16:16 | |
*** goschtl has quit IRC | 16:24 | |
*** goschtl has joined #zope | 16:39 | |
*** menesis has joined #zope | 16:41 | |
*** RichyB has quit IRC | 16:42 | |
*** les_sylvains has joined #zope | 16:43 | |
*** __mac__ has quit IRC | 16:56 | |
*** RichyB has joined #zope | 16:57 | |
*** thetet has joined #zope | 17:14 | |
*** Pumukel has joined #zope | 17:15 | |
*** agroszer has quit IRC | 17:26 | |
*** LeoRochael has joined #zope | 17:32 | |
*** mr_jolly has joined #zope | 17:34 | |
*** tiwula has joined #zope | 17:39 | |
*** sunew has quit IRC | 17:41 | |
*** sunew has joined #zope | 17:50 | |
*** dayne has quit IRC | 17:51 | |
*** zagy has quit IRC | 18:05 | |
*** goschtl_ has joined #zope | 18:11 | |
*** mr_jolly has quit IRC | 18:13 | |
*** goschtl has quit IRC | 18:14 | |
*** goschtl_ is now known as goschtl | 18:14 | |
*** goschtl has quit IRC | 18:33 | |
*** daMaestro has joined #zope | 18:37 | |
*** fredvd has quit IRC | 18:39 | |
*** fredvd has joined #zope | 18:42 | |
*** sunew has quit IRC | 18:43 | |
*** supton has joined #zope | 18:44 | |
*** fredvd has quit IRC | 18:44 | |
*** maurits has quit IRC | 18:50 | |
*** mr_jolly has joined #zope | 18:57 | |
*** giacomos has quit IRC | 19:11 | |
jpic | mcdonc_: /win 16 | 19:15 |
jpic | sry | 19:15 |
*** supton_ has joined #zope | 19:16 | |
*** supton has quit IRC | 19:20 | |
*** supton_ is now known as supton | 19:20 | |
*** mcdonc_ has quit IRC | 19:23 | |
*** thetet has quit IRC | 19:26 | |
*** Spanktar has joined #zope | 19:29 | |
*** avoinea has quit IRC | 19:31 | |
*** benji has quit IRC | 19:32 | |
*** eperez has quit IRC | 19:35 | |
*** mitchell` is now known as mitchell`off | 19:44 | |
*** mr_jolly has quit IRC | 19:51 | |
*** mr_jolly has joined #zope | 20:00 | |
*** Pumukel has quit IRC | 20:03 | |
*** elro has quit IRC | 20:10 | |
*** LeoRochael has quit IRC | 20:18 | |
*** LeoRochael has joined #zope | 20:20 | |
*** supton has quit IRC | 20:20 | |
*** supton has joined #zope | 20:21 | |
*** jarr0dsz has joined #zope | 20:31 | |
jarr0dsz | hi 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 |
jarr0dsz | havent been able to find anything on this online for the last 20 minutes | 20:32 |
betabug | jarr0dsz: ask in #plone, people who use zope without plone won't have that problem | 20:33 |
betabug | I guess you might have a mis-match of the zope and plone versions, but only the plonies could help you there | 20:34 |
jarr0dsz | okay thx betabug | 20:35 |
*** jarr0dsz has left #zope | 20:36 | |
*** evilbungle has quit IRC | 20:38 | |
*** kosh has joined #zope | 20:43 | |
*** mcdonc_ has joined #zope | 20:44 | |
jpic | hi all, i don't understand when to use PersistentMapping and when to use OOBTree | 20:59 |
LeoRochael | jpic: most of the time, OOBTree | 21:00 |
LeoRochael | jpic: you'll want to use PersistentMapping when you *want* to have ConflictErrors if unrelated keys of the dictionary change | 21:01 |
LeoRochael | jpic: and yes, sometimes you want that | 21:01 |
LeoRochael | jpic: 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 |
LeoRochael | jpic: which could be bad or good depending on your application | 21:03 |
LeoRochael | jpic: but if you frequently write to it, then it'll be horrible | 21: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 storage | 21:05 | |
*** benji has joined #zope | 21:06 | |
*** mcdonc_ has quit IRC | 21:08 | |
*** menesis has quit IRC | 21:09 | |
betabug | I'd answer "use *always* OOBTrees" | 21:11 |
betabug | if one day you achieve true master status to do differently to this advice, you will know it yourself | 21:12 |
betabug | when I saw someone in my team use PersistentMapping, I flagged it as a bug | 21:13 |
*** m8 has joined #zope | 21:17 | |
*** RichyB has quit IRC | 21:20 | |
kosh | I would recommmend always OOBTrees also | 21:30 |
kosh | betabug: so how goes the apocalypse? | 21:31 |
betabug | hey kosh! | 21:31 |
betabug | dunno, spend the afternoon on the beach, eating and drinking... so the apocalypse is definitely "not now" | 21:32 |
*** MrTango has quit IRC | 21:32 | |
kosh | yeah that does not sound like much of an apocalypse unless you where on a nude beach filled with overweight americans | 21:32 |
kosh | so how have you been? | 21:33 |
betabug | fine, a bit too much work, but ok after all | 21:35 |
betabug | worked with Zope 3 and pyramid lately | 21:35 |
kosh | I am on track to graduate in two more years just very very busy | 21:35 |
kosh | chemical engineering + work is a lot | 21:35 |
*** mcdonc_ has joined #zope | 21:36 | |
betabug | I can imagine | 21:41 |
betabug | and you're doing it for real, not just slacking in school | 21:41 |
kosh | this semester I have thermodynamics, kinetics (heat transfer), physical chemistry and a engineering statistics and experimental design class | 21:41 |
kosh | you can not slack through an engineering degree | 21:42 |
kosh | you have to work your ass off just to pass | 21:42 |
*** nande has joined #zope | 21:45 | |
jpic | wow, thanks for answering | 21:57 |
*** les_sylvains has quit IRC | 22:03 | |
*** daMaestro has quit IRC | 22:06 | |
*** zagy has joined #zope | 22:10 | |
*** __mac__ has joined #zope | 22:16 | |
*** zagy has quit IRC | 22:18 | |
*** __mac__ has quit IRC | 22:18 | |
*** zagy has joined #zope | 22:24 | |
*** zagy has quit IRC | 22:30 | |
*** teix has quit IRC | 22:30 | |
*** __mac__ has joined #zope | 22:31 | |
*** les_sylvains has joined #zope | 22:38 | |
supton | jpic: 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 it | 22:48 |
supton | jpic: 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 iteration | 22:49 |
*** Arfrever has joined #zope | 22:51 | |
*** kosh has quit IRC | 23:04 | |
jpic | ahh good to know, thanks supton | 23:08 |
*** Adniel has joined #zope | 23:35 | |
*** mcdonc_ has quit IRC | 23:36 | |
*** les_sylvains has quit IRC | 23:37 | |
*** miano_ has quit IRC | 23:40 | |
*** Adniel has quit IRC | 23:48 | |
*** elro has joined #zope | 23:53 | |
*** River-Rat has joined #zope | 23:56 | |
*** River_Rat has quit IRC | 23:58 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!