*** povbot_ has joined #zope | 00:05 | |
*** povbot has quit IRC | 00:05 | |
*** mr_jolly has quit IRC | 00:06 | |
*** J1m has quit IRC | 00:27 | |
*** MatthewWilkes is now known as mwilkes|away | 00:50 | |
*** J1m has joined #zope | 00:54 | |
*** hoRn has joined #zope | 01:03 | |
hoRn | Hi. | 01:03 |
---|---|---|
hoRn | a short dumb question from a frontend gui writing some code in python: if I have a object and set it to a other context in zodb with _setObject this seems to be a reference - both are similar and editing affects both. Can I use this like 'symlink' or do I waste my ZODB with this?. | 01:08 |
*** J1m has quit IRC | 01:15 | |
*** m8 has quit IRC | 01:21 | |
RichyB | hoRn: if the object that you're referring to is Persistent, then two different references to it inside the ZODB will both point to the same object correctly. | 01:27 |
RichyB | (i.e. it should usually be a subclass of Persistent, or or something like SimpleItem that subclasses Persistent) | 01:27 |
*** kosh has joined #zope | 01:29 | |
RichyB | However, I believe that if the object that you are referring to from two different references in the ZODB is not a Persistent object then… you will get just one copy shared by both for a little while and it'll appear to work, but as soon as your ZODB-using process restarts or the referring objects fall out of the ZODB cache, you'll get two completely separate copies of the same referred-to object which don't share memory nor any updates. | 01:31 |
RichyB | I should double-check that behaviour. | 01:31 |
RichyB | In the ZODB, you generally want to only refer to objects that are either immutable, like strings, numbers and tuples, or that are Persistent. | 01:31 |
RichyB | hoRn: but provided you make sure that classes descend from Persistent, sure, you can have shared references to a single object in ZODB. http://blog.startifact.com/posts/older/a-misconception-about-the-zodb.html | 01:32 |
*** supton_ has joined #zope | 01:49 | |
*** supton has quit IRC | 01:51 | |
*** dayne has quit IRC | 01:54 | |
*** dayne has joined #zope | 01:56 | |
*** _mup_ has quit IRC | 02:00 | |
*** _mup_ has joined #zope | 02:00 | |
*** nueces has quit IRC | 02:09 | |
*** KageSenshi has joined #zope | 02:10 | |
*** dayne has quit IRC | 02:18 | |
hoRn | RichyB: Thanks for clarification - I will check this and read the recommended post ... | 02:31 |
*** hoRn has quit IRC | 02:39 | |
*** mindthief414 has joined #zope | 02:43 | |
*** J1m has joined #zope | 02:48 | |
*** mindthief414 has quit IRC | 02:49 | |
*** J1m has quit IRC | 02:50 | |
*** tiwula has quit IRC | 03:05 | |
*** Spanktar_ has joined #zope | 03:17 | |
*** Spanktar_ has quit IRC | 03:20 | |
*** Spanktar has quit IRC | 03:21 | |
*** Spanktar has joined #zope | 03:22 | |
*** Spanktar has quit IRC | 03:25 | |
*** tiwula has joined #zope | 03:27 | |
*** mindthief414 has joined #zope | 03:40 | |
*** alecm has quit IRC | 03:44 | |
*** mindthief414 has quit IRC | 03:44 | |
*** daMaestro has quit IRC | 03:56 | |
*** J1m has joined #zope | 03:57 | |
*** tiwula has quit IRC | 03:59 | |
*** alecm has joined #zope | 04:09 | |
*** alecm has joined #zope | 04:09 | |
*** J1m has quit IRC | 04:10 | |
*** alecm has quit IRC | 04:12 | |
*** J1m has joined #zope | 05:05 | |
*** nande has quit IRC | 05:12 | |
*** J1m has quit IRC | 05:14 | |
*** RichyB has quit IRC | 05:25 | |
*** mr_jolly has joined #zope | 06:38 | |
*** mindthief414 has joined #zope | 06:50 | |
*** zenwryly has quit IRC | 07:42 | |
*** mindthief414 has quit IRC | 07:45 | |
*** kosh has quit IRC | 07:51 | |
*** mr_jolly has quit IRC | 08:35 | |
*** alecm has joined #zope | 08:41 | |
*** alecm has joined #zope | 08:41 | |
*** mr_jolly has joined #zope | 08:45 | |
*** Turicas has joined #zope | 09:11 | |
*** alecm has quit IRC | 09:13 | |
*** miano__ has joined #zope | 09:18 | |
*** miano_ has quit IRC | 09:22 | |
*** __mac__ has joined #zope | 09:24 | |
*** mr_jolly_ has joined #zope | 09:32 | |
*** mr_jolly has quit IRC | 09:33 | |
*** mr_jolly_ is now known as mr_jolly | 09:33 | |
*** mr_jolly_ has joined #zope | 09:45 | |
*** mr_jolly has quit IRC | 09:48 | |
*** mr_jolly_ is now known as mr_jolly | 09:48 | |
*** mr_jolly has quit IRC | 09:50 | |
*** mindthief414 has joined #zope | 10:11 | |
*** giacomos has joined #zope | 10:13 | |
*** thetet has joined #zope | 10:19 | |
*** mr_jolly has joined #zope | 10:32 | |
*** mr_jolly has quit IRC | 10:40 | |
*** avoinea has joined #zope | 10:43 | |
*** mr_jolly_ has joined #zope | 10:43 | |
*** eperez has joined #zope | 10:50 | |
*** __mac__ has quit IRC | 10:58 | |
*** Turicas has quit IRC | 11:00 | |
*** mr_jolly_ has quit IRC | 11:05 | |
*** mr_jolly has joined #zope | 11:06 | |
*** giacomos has quit IRC | 11:11 | |
*** menesis has joined #zope | 11:23 | |
*** giacomos has joined #zope | 11:26 | |
*** goschtl has joined #zope | 11:37 | |
*** __mac__ has joined #zope | 11:55 | |
*** mwilkes|away is now known as MatthewWilkes | 11:58 | |
*** AdamDangoor has joined #zope | 12:00 | |
*** kosh has joined #zope | 12:01 | |
*** maurits has joined #zope | 12:03 | |
*** mindthief414 has quit IRC | 12:07 | |
*** RichyB has joined #zope | 12:10 | |
*** miano__ has quit IRC | 12:10 | |
*** menesis has quit IRC | 12:16 | |
*** miano__ has joined #zope | 12:17 | |
*** menesis has joined #zope | 12:20 | |
*** fredvd has joined #zope | 12:25 | |
*** __mac__ has quit IRC | 12:27 | |
*** AdamDangoor has quit IRC | 12:39 | |
*** AdamDangoor has joined #zope | 12:41 | |
*** moumoutte has joined #zope | 12:42 | |
moumoutte | Hello all | 12:42 |
moumoutte | I'm trying to use zope.sqlalchemy | 12:42 |
moumoutte | with ZopeTransactionExtension | 12:42 |
moumoutte | and I saw the new option | 12:42 |
moumoutte | keep_session | 12:43 |
moumoutte | I'm trying to using it | 12:43 |
moumoutte | And its seems to work fine | 12:43 |
moumoutte | But | 12:43 |
moumoutte | At one moment the transaction.commit() expire all the object in session | 12:43 |
moumoutte | there is any reason to do that ? | 12:43 |
moumoutte | Because in all the program the transaction.commit() maintains the object in session | 12:44 |
moumoutte | but in one particular moment, It does'nt. | 12:44 |
moumoutte | http://paste.lisp.org/display/135669 | 12:46 |
*** thetet has quit IRC | 12:47 | |
*** thetet has joined #zope | 12:49 | |
*** thetet has quit IRC | 12:50 | |
*** thetet has joined #zope | 12:50 | |
*** mgedmin_ has joined #zope | 12:59 | |
*** mgedmin_ has quit IRC | 13:00 | |
*** evilbungle has joined #zope | 13:04 | |
*** CosmicB has quit IRC | 13:18 | |
*** povbot_ is now known as povbot | 13:22 | |
*** __mac__ has joined #zope | 13:31 | |
*** CosmicB has joined #zope | 13:32 | |
*** evilbungle has quit IRC | 13:34 | |
*** fdrake has quit IRC | 13:44 | |
*** __mac__ has quit IRC | 13:46 | |
*** __mac__ has joined #zope | 13:47 | |
*** mr_jolly has quit IRC | 13:52 | |
*** mr_jolly has joined #zope | 13:52 | |
*** menesis has quit IRC | 13:55 | |
*** J1m has joined #zope | 13:57 | |
*** mr_jolly has quit IRC | 14:06 | |
*** evilbungle has joined #zope | 14:08 | |
*** J1m has quit IRC | 14:16 | |
*** J1m has joined #zope | 14:17 | |
*** m8 has joined #zope | 14:20 | |
*** J1m has quit IRC | 14:22 | |
*** mr_jolly has joined #zope | 14:25 | |
*** agroszer has joined #zope | 14:25 | |
*** mr_jolly has quit IRC | 14:31 | |
*** agroszer_ has joined #zope | 14:33 | |
*** J1m has joined #zope | 14:34 | |
*** mr_jolly has joined #zope | 14:40 | |
*** zagy has joined #zope | 14:44 | |
*** J1m has quit IRC | 14:45 | |
*** LeoRochael has joined #zope | 14:55 | |
*** mr_jolly_ has joined #zope | 14:56 | |
*** dayne has joined #zope | 14:59 | |
*** mr_jolly has quit IRC | 15:00 | |
*** mr_jolly_ is now known as mr_jolly | 15:00 | |
*** agroszer_ has quit IRC | 15:04 | |
*** fdrake has joined #zope | 15:04 | |
*** goschtl has quit IRC | 15:39 | |
*** dayne has quit IRC | 15:47 | |
*** thetet has quit IRC | 15:48 | |
*** miano_ has joined #zope | 16:04 | |
*** sunew has joined #zope | 16:05 | |
*** miano__ has quit IRC | 16:08 | |
*** J1m has joined #zope | 16:09 | |
*** les_sylvains has joined #zope | 16:26 | |
*** zagy has quit IRC | 16:34 | |
*** menesis has joined #zope | 16:37 | |
*** mr_jolly has quit IRC | 16:57 | |
*** nueces has joined #zope | 17:17 | |
*** mr_jolly has joined #zope | 17:20 | |
*** agroszer has quit IRC | 17:24 | |
*** sunew has quit IRC | 17:28 | |
*** benji has quit IRC | 17:35 | |
*** mitchell` is now known as mitchell`off | 17:37 | |
*** alecm has joined #zope | 17:41 | |
*** fredvd has quit IRC | 18:01 | |
*** maurits has quit IRC | 18:01 | |
*** mcdonc has quit IRC | 18:03 | |
*** nande has joined #zope | 18:04 | |
*** tiwula has joined #zope | 18:07 | |
*** zenwryly has joined #zope | 18:12 | |
*** supton has joined #zope | 18:13 | |
*** kosh has quit IRC | 18:21 | |
*** benji has joined #zope | 18:28 | |
*** menesis has quit IRC | 19:03 | |
*** mr_jolly_ has joined #zope | 19:05 | |
*** mr_jolly has quit IRC | 19:07 | |
*** mr_jolly_ is now known as mr_jolly | 19:07 | |
*** giacomos has quit IRC | 19:11 | |
*** Spanktar has joined #zope | 19:20 | |
*** Spanktar has quit IRC | 19:32 | |
*** AdamDangoor has quit IRC | 19:34 | |
*** Arfrever has joined #zope | 19:38 | |
*** eperez has quit IRC | 19:51 | |
*** daMaestro has joined #zope | 20:19 | |
*** mr_jolly has quit IRC | 20:36 | |
*** mindthief414 has joined #zope | 20:51 | |
*** paltas has joined #zope | 21:01 | |
*** mindthief414 has quit IRC | 21:07 | |
*** mindthief414 has joined #zope | 21:07 | |
*** mindthief414 has quit IRC | 21:18 | |
*** zagy has joined #zope | 21:26 | |
*** roq_ has joined #zope | 21:31 | |
*** zagy1 has joined #zope | 21:40 | |
*** zagy has quit IRC | 21:40 | |
*** MatthewWilkes is now known as mwilkes|away | 21:55 | |
*** avoinea has quit IRC | 21:58 | |
*** thetet has joined #zope | 22:02 | |
*** J1m has quit IRC | 22:13 | |
*** J1m has joined #zope | 22:14 | |
*** mwilkes|away is now known as MatthewWilkes | 22:14 | |
*** roq_ has left #zope | 22:24 | |
*** sm_ has joined #zope | 22:40 | |
*** mindthief414 has joined #zope | 22:58 | |
*** sunew has joined #zope | 23:00 | |
*** sunew has quit IRC | 23:07 | |
*** paltas has quit IRC | 23:33 | |
*** J1m has quit IRC | 23:34 | |
*** mindthief414 has quit IRC | 23:45 | |
*** les_sylvains has quit IRC | 23:48 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!