*** evilbungle has joined #zope | 00:20 | |
*** runyaga has joined #zope | 00:23 | |
*** runyaga has quit IRC | 00:23 | |
*** runyaga has joined #zope | 00:23 | |
*** evilbungle has quit IRC | 00:27 | |
*** DerekD has joined #zope | 00:40 | |
DerekD | hi - is there a ZODB/ZEO-specific channel? | 00:40 |
---|---|---|
DerekD | ...or a channel which people are actively monitoring? | 00:44 |
*** RiverRat has quit IRC | 00:45 | |
*** supton_ has joined #zope | 00:46 | |
*** RiverRat has joined #zope | 00:46 | |
*** supton has quit IRC | 00:49 | |
*** supton_ has quit IRC | 00:51 | |
runyaga | DerekD, here | 00:56 |
runyaga | DerekD, or #repoze | 00:57 |
runyaga | #zope, #repoze, #pyramid, #plone | 00:57 |
DerekD | hi, cool | 00:57 |
DerekD | I'm seeing some weirdness with my ClientStorage | 00:57 |
DerekD | might be something I'm doing wrong | 00:57 |
DerekD | I have a single OOSet under the root that holds objects of a specific type | 00:58 |
DerekD | I want to be able to access and modify them from a Python CGI page. It works for the most part but it seems like I need to explicitly touch each object in the set in order for the members of each objest to be fetched | 01:00 |
mcdonc | independent of everything except your last sentence | 01:10 |
mcdonc | whoops sorry | 01:10 |
mcdonc | your last sentence is true independent of what came before it | 01:10 |
*** DerekD has quit IRC | 01:11 | |
mcdonc | you do often need to explicitly ask for an attribute of an object for the state of the object to be fetched | 01:11 |
*** runyaga has quit IRC | 01:16 | |
*** sp0cksbeard has quit IRC | 01:21 | |
*** J1m has quit IRC | 01:37 | |
*** ccomb has quit IRC | 01:48 | |
*** sunew has quit IRC | 01:50 | |
*** mcdonc has quit IRC | 01:56 | |
*** mcdonc has joined #zope | 01:56 | |
*** sp0cksbeard has joined #zope | 02:03 | |
*** tiwula has joined #zope | 02:07 | |
*** evilbungle has joined #zope | 02:33 | |
*** mcdonc has quit IRC | 02:36 | |
*** mr_jolly has joined #zope | 02:36 | |
*** evilbungle has quit IRC | 02:38 | |
*** evilbungle has joined #zope | 02:49 | |
*** _mup_ has quit IRC | 03:00 | |
*** _mup_ has joined #zope | 03:00 | |
*** Spanktar has quit IRC | 03:27 | |
*** J1m has joined #zope | 03:42 | |
*** J1m has quit IRC | 03:44 | |
*** tiwula has quit IRC | 04:27 | |
*** mr_jolly has quit IRC | 04:32 | |
*** daMaestro has quit IRC | 05:25 | |
*** nande has quit IRC | 05:27 | |
*** sp0cksbeard has quit IRC | 05:42 | |
*** sp0cksbeard has joined #zope | 05:59 | |
*** supton has joined #zope | 07:07 | |
*** kosh has quit IRC | 07:53 | |
*** sp0cksbeard has quit IRC | 08:03 | |
*** supton has quit IRC | 08:10 | |
*** tisto has joined #zope | 09:01 | |
*** __mac__ has joined #zope | 09:03 | |
*** MrTango has joined #zope | 09:53 | |
*** benji has quit IRC | 09:57 | |
*** benji___ has joined #zope | 09:59 | |
*** ccomb has joined #zope | 10:11 | |
*** menesis has joined #zope | 10:11 | |
*** eperez has joined #zope | 10:44 | |
*** avoinea has joined #zope | 10:50 | |
moo-_- | I get Host not found for 50% of download.zope.org queries | 11:03 |
moo-_- | has anybody else issues? | 11:03 |
betabug | not downloading much there lately | 11:04 |
betabug | moo-_-: if you can reproduce it, maybe mail zope-web@zope.org mailing list | 11:04 |
moo-_- | betabug: thanks | 11:07 |
betabug | hmmm, yeah, something is fishy with DNS | 11:16 |
betabug | ns7.zoneedit.com and ns1.zoneedit.com do not always respond | 11:19 |
betabug | maybe they need a reboot after the leap second thing? | 11:19 |
betabug | same for www.zope.org btw | 11:19 |
*** maurits has joined #zope | 11:23 | |
betabug | moo-_-: looks like the problem fixed itself, works for me again now | 11:23 |
moo-_- | betabug: that's why I said 50% | 11:29 |
moo-_- | did the same yesterday | 11:29 |
moo-_- | :) | 11:29 |
moo-_- | zope car driving with two wheels | 11:30 |
moo-_- | or on two wheels | 11:30 |
*** mr_jolly has joined #zope | 11:36 | |
*** eperez has quit IRC | 11:53 | |
*** sunew has joined #zope | 12:24 | |
*** fredvd has joined #zope | 12:24 | |
*** eperez has joined #zope | 12:44 | |
*** teix has joined #zope | 12:48 | |
*** menesis has quit IRC | 13:31 | |
*** ccomb has quit IRC | 13:32 | |
*** J1m has joined #zope | 13:33 | |
*** tisto has quit IRC | 13:42 | |
*** tisto has joined #zope | 13:44 | |
*** __mac__1 has joined #zope | 13:51 | |
*** __mac__ has quit IRC | 13:51 | |
*** tisto has quit IRC | 13:54 | |
*** tisto has joined #zope | 13:56 | |
*** menesis has joined #zope | 14:13 | |
*** menesis has quit IRC | 14:29 | |
*** menesis has joined #zope | 14:29 | |
*** J1m has quit IRC | 14:48 | |
*** supton has joined #zope | 15:02 | |
*** eperez has quit IRC | 15:11 | |
*** eperez has joined #zope | 15:14 | |
*** thetet has joined #zope | 15:24 | |
*** sunew has quit IRC | 15:25 | |
*** sunew has joined #zope | 15:46 | |
*** tisto is now known as tisto|away | 15:48 | |
*** yvl has quit IRC | 15:50 | |
*** juh has joined #zope | 16:01 | |
*** Pumukel has joined #zope | 16:04 | |
*** eperez has quit IRC | 16:06 | |
*** WFD has joined #zope | 16:12 | |
*** WFD is now known as DerekD | 16:12 | |
*** J1m has joined #zope | 16:14 | |
*** kosh has joined #zope | 16:16 | |
*** sp0cksbeard has joined #zope | 16:45 | |
*** juh has quit IRC | 16:48 | |
*** __mac__1 has quit IRC | 16:51 | |
*** supton has quit IRC | 16:54 | |
*** benji___ is now known as benji | 17:10 | |
*** J1m has quit IRC | 17:16 | |
*** supton has joined #zope | 17:18 | |
*** juh has joined #zope | 17:18 | |
*** juh has quit IRC | 17:20 | |
*** J1m has joined #zope | 17:21 | |
*** tisto|away is now known as tisto | 17:41 | |
DerekD | hi - does anyone know why the __dict__ of any object I have in ZODB is empty when it's in ghost state? | 17:43 |
*** menesis has quit IRC | 17:51 | |
*** menesis has joined #zope | 17:54 | |
*** tisto is now known as tisto|afk | 17:56 | |
*** DerekD has quit IRC | 17:57 | |
*** tisto|afk is now known as tisto | 17:58 | |
kosh | hmm he did not remain around very long | 17:59 |
kosh | I actually know the answer to that one | 17:59 |
*** sunew has quit IRC | 18:01 | |
*** daMaestro has joined #zope | 18:02 | |
*** frapell has joined #zope | 18:03 | |
*** WFD has joined #zope | 18:16 | |
*** WFD is now known as DerekD | 18:17 | |
*** supton has quit IRC | 18:24 | |
*** DerekD has quit IRC | 18:29 | |
*** WFD has joined #zope | 18:29 | |
betabug | hey kosh, that's how IRC is supposed to work: ask a question and then run as fast as you can | 18:31 |
betabug | we have been doing it wrong all those years | 18:32 |
teix | kosh: well seems that DerekD is WFD now :) | 18:34 |
*** WFD is now known as DerekD | 18:34 | |
DerekD | ha, sorry | 18:35 |
DerekD | I didn't realize that this comp was going to keep going to sleep on me | 18:35 |
kosh | ah | 18:35 |
DerekD | I leave for 2 mins and I'm off | 18:35 |
kosh | okay the reason why __dict__ doesn't work is that accessing __dict__ and other magic methods does not cause an object to be loaded from the db | 18:35 |
kosh | if you access any other attribute/method first you can then check __dict__ and it will work | 18:35 |
kosh | betabug, so how is life going? is your country still burning to the ground and trying to take the rest of the world with it? | 18:36 |
DerekD | yup...that's consistent with what I'm seeing. Is there a foolproof way of triggering this if my object's attributes aren't set in stone? | 18:36 |
kosh | access a method that your object has | 18:37 |
DerekD | i.e. I don't have an attribute that will always exist at runtime | 18:37 |
DerekD | ok | 18:37 |
DerekD | well, I do have __str__(), etc | 18:37 |
kosh | since your objects are stored in the db don't they all have an id? | 18:37 |
DerekD | just to give a little more background, let me run through a use case | 18:38 |
DerekD | it's actually VERY similar to this: http://www.blueskyonmars.com/images/2008/06/examples.html | 18:38 |
DerekD | it's a decorator pattern-y OOSet of objects of the same class | 18:39 |
DerekD | on one side, I create a certain number of objects and add them to the OOSet | 18:40 |
DerekD | these are then retrieved and listed or modified on the other side | 18:40 |
kosh | if those things all have self.name then just access yourobject.name first | 18:40 |
DerekD | unfortunately, they may not. they'll have some set of attributes, but the client doesn't necessarily know (or care) which ones | 18:41 |
DerekD | that was the purpose of __str__() using self.__dict__ | 18:41 |
DerekD | if I have an object called derek, "print derek.__str_()" successfully populates the dict before returning | 18:43 |
DerekD | but "print derek" doesn't, even though derek.__str__() is being called | 18:43 |
DerekD | is there a good way of getting the list of attributes without using __dict__? | 18:55 |
*** roq_ has joined #zope | 18:55 | |
*** fredvd has quit IRC | 18:55 | |
*** runyaga has joined #zope | 18:57 | |
*** runyaga has quit IRC | 18:57 | |
*** runyaga has joined #zope | 18:57 | |
kosh | use a standard variable to hold all those attributes like data instead of assigning them like you are | 18:58 |
kosh | anything you touch __dict__ and it is not for debugging your code is wrong | 18:58 |
kosh | however I have to get going | 18:58 |
*** pbauer has quit IRC | 18:59 | |
*** pbauer has joined #zope | 19:00 | |
DerekD | ok | 19:01 |
DerekD | thanks | 19:02 |
kosh | sorry I did not have more time to help for now | 19:02 |
kosh | organic chemistry is not much fun | 19:03 |
kosh | have fun freaks | 19:03 |
kosh | betabug, make sure to prepare for the end of the world, go play some fallout 3 to get ready for next week :) | 19:03 |
betabug | hahaha | 19:03 |
* betabug <- not the gamer time | 19:03 | |
betabug | hf at skool | 19:04 |
*** kosh has quit IRC | 19:08 | |
*** benbangert has quit IRC | 19:12 | |
*** tisto has quit IRC | 19:13 | |
mgedmin | DerekD, obj._p_activate() | 19:14 |
mgedmin | will cause a ghost object to be fully loaded | 19:14 |
mgedmin | actually even hasattr(obj, 'does_not_matter_what') will work | 19:14 |
mgedmin | when I pdb and do a p obj.__dict__ and see {}, I generally hit up to repeat the line and do p obj.__dict__x | 19:15 |
mgedmin | just to trigger a load with the minimum number of keystrokes | 19:15 |
DerekD | hi mgedmin - that's interesting | 19:15 |
DerekD | so I have 2 options now: change my class to contain all user-defined attributes in a dict, or "bootstrap" the object | 19:16 |
DerekD | I guess one issue with bootstrapping is that I don't know which function will be the first to attempt to access | 19:17 |
*** benbangert has joined #zope | 19:17 | |
*** Spanktar has joined #zope | 19:18 | |
*** Wu has quit IRC | 20:01 | |
*** tiwula has joined #zope | 20:02 | |
*** MrTango has quit IRC | 20:04 | |
*** maurits has quit IRC | 20:05 | |
*** Wu has joined #zope | 20:08 | |
*** menesis has quit IRC | 20:26 | |
*** Arfrever has joined #zope | 20:29 | |
*** avoinea has quit IRC | 20:34 | |
*** thetet has quit IRC | 20:34 | |
*** DerekD has quit IRC | 20:34 | |
*** tintin has joined #zope | 20:39 | |
tintin | Anyone there? | 20:39 |
*** supton has joined #zope | 20:49 | |
*** tintin has left #zope | 21:00 | |
*** tiwula has quit IRC | 21:04 | |
*** tiwula has joined #zope | 21:10 | |
betabug | sure | 21:18 |
*** mcdonc has joined #zope | 21:24 | |
*** nande has joined #zope | 21:33 | |
*** tiwula has quit IRC | 21:41 | |
*** Pumukel has quit IRC | 21:51 | |
*** tiwula has joined #zope | 22:03 | |
*** dayne1 has quit IRC | 22:52 | |
*** thetet has joined #zope | 22:53 | |
*** thetet has quit IRC | 23:03 | |
*** thetet has joined #zope | 23:04 | |
*** thetet has quit IRC | 23:10 | |
*** thetet has joined #zope | 23:10 | |
*** teix has quit IRC | 23:10 | |
*** thetet has quit IRC | 23:22 | |
*** thetet has joined #zope | 23:30 | |
*** nande has quit IRC | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!