IRC log of #zope for Tuesday, 2012-07-03

*** evilbungle has joined #zope00:20
*** runyaga has joined #zope00:23
*** runyaga has quit IRC00:23
*** runyaga has joined #zope00:23
*** evilbungle has quit IRC00:27
*** DerekD has joined #zope00:40
DerekDhi - is there a ZODB/ZEO-specific channel?00:40
DerekD...or a channel which people are actively monitoring?00:44
*** RiverRat has quit IRC00:45
*** supton_ has joined #zope00:46
*** RiverRat has joined #zope00:46
*** supton has quit IRC00:49
*** supton_ has quit IRC00:51
runyagaDerekD, here00:56
runyagaDerekD, or #repoze00:57
runyaga#zope, #repoze, #pyramid, #plone00:57
DerekDhi, cool00:57
DerekDI'm seeing some weirdness with my ClientStorage00:57
DerekDmight be something I'm doing wrong00:57
DerekDI have a single OOSet under the root that holds objects of a specific type00:58
DerekDI 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 fetched01:00
mcdoncindependent of everything except your last sentence01:10
mcdoncwhoops sorry01:10
mcdoncyour last sentence is true independent of what came before it01:10
*** DerekD has quit IRC01:11
mcdoncyou do often need to explicitly ask for an attribute of an object for the state of the object to be fetched01:11
*** runyaga has quit IRC01:16
*** sp0cksbeard has quit IRC01:21
*** J1m has quit IRC01:37
*** ccomb has quit IRC01:48
*** sunew has quit IRC01:50
*** mcdonc has quit IRC01:56
*** mcdonc has joined #zope01:56
*** sp0cksbeard has joined #zope02:03
*** tiwula has joined #zope02:07
*** evilbungle has joined #zope02:33
*** mcdonc has quit IRC02:36
*** mr_jolly has joined #zope02:36
*** evilbungle has quit IRC02:38
*** evilbungle has joined #zope02:49
*** _mup_ has quit IRC03:00
*** _mup_ has joined #zope03:00
*** Spanktar has quit IRC03:27
*** J1m has joined #zope03:42
*** J1m has quit IRC03:44
*** tiwula has quit IRC04:27
*** mr_jolly has quit IRC04:32
*** daMaestro has quit IRC05:25
*** nande has quit IRC05:27
*** sp0cksbeard has quit IRC05:42
*** sp0cksbeard has joined #zope05:59
*** supton has joined #zope07:07
*** kosh has quit IRC07:53
*** sp0cksbeard has quit IRC08:03
*** supton has quit IRC08:10
*** tisto has joined #zope09:01
*** __mac__ has joined #zope09:03
*** MrTango has joined #zope09:53
*** benji has quit IRC09:57
*** benji___ has joined #zope09:59
*** ccomb has joined #zope10:11
*** menesis has joined #zope10:11
*** eperez has joined #zope10:44
*** avoinea has joined #zope10:50
moo-_-I get Host not found for 50% of download.zope.org queries11:03
moo-_-has anybody else issues?11:03
betabugnot downloading much there lately11:04
betabugmoo-_-: if you can reproduce it, maybe mail zope-web@zope.org mailing list11:04
moo-_-betabug: thanks11:07
betabughmmm, yeah, something is fishy with DNS11:16
betabugns7.zoneedit.com and ns1.zoneedit.com do not always respond11:19
betabugmaybe they need a reboot after the leap second thing?11:19
betabugsame for www.zope.org btw11:19
*** maurits has joined #zope11:23
betabugmoo-_-: looks like the problem fixed itself, works for me again now11:23
moo-_-betabug: that's why I said 50%11:29
moo-_-did the same yesterday11:29
moo-_-:)11:29
moo-_-zope car driving with two wheels11:30
moo-_-or on two wheels11:30
*** mr_jolly has joined #zope11:36
*** eperez has quit IRC11:53
*** sunew has joined #zope12:24
*** fredvd has joined #zope12:24
*** eperez has joined #zope12:44
*** teix has joined #zope12:48
*** menesis has quit IRC13:31
*** ccomb has quit IRC13:32
*** J1m has joined #zope13:33
*** tisto has quit IRC13:42
*** tisto has joined #zope13:44
*** __mac__1 has joined #zope13:51
*** __mac__ has quit IRC13:51
*** tisto has quit IRC13:54
*** tisto has joined #zope13:56
*** menesis has joined #zope14:13
*** menesis has quit IRC14:29
*** menesis has joined #zope14:29
*** J1m has quit IRC14:48
*** supton has joined #zope15:02
*** eperez has quit IRC15:11
*** eperez has joined #zope15:14
*** thetet has joined #zope15:24
*** sunew has quit IRC15:25
*** sunew has joined #zope15:46
*** tisto is now known as tisto|away15:48
*** yvl has quit IRC15:50
*** juh has joined #zope16:01
*** Pumukel has joined #zope16:04
*** eperez has quit IRC16:06
*** WFD has joined #zope16:12
*** WFD is now known as DerekD16:12
*** J1m has joined #zope16:14
*** kosh has joined #zope16:16
*** sp0cksbeard has joined #zope16:45
*** juh has quit IRC16:48
*** __mac__1 has quit IRC16:51
*** supton has quit IRC16:54
*** benji___ is now known as benji17:10
*** J1m has quit IRC17:16
*** supton has joined #zope17:18
*** juh has joined #zope17:18
*** juh has quit IRC17:20
*** J1m has joined #zope17:21
*** tisto|away is now known as tisto17:41
DerekDhi - 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 IRC17:51
*** menesis has joined #zope17:54
*** tisto is now known as tisto|afk17:56
*** DerekD has quit IRC17:57
*** tisto|afk is now known as tisto17:58
koshhmm he did not remain around very long17:59
koshI actually know the answer to that one17:59
*** sunew has quit IRC18:01
*** daMaestro has joined #zope18:02
*** frapell has joined #zope18:03
*** WFD has joined #zope18:16
*** WFD is now known as DerekD18:17
*** supton has quit IRC18:24
*** DerekD has quit IRC18:29
*** WFD has joined #zope18:29
betabughey kosh, that's how IRC is supposed to work: ask a question and then run as fast as you can18:31
betabugwe have been doing it wrong all those years18:32
teixkosh: well seems that DerekD is WFD now :)18:34
*** WFD is now known as DerekD18:34
DerekDha, sorry18:35
DerekDI didn't realize that this comp was going to keep going to sleep on me18:35
koshah18:35
DerekDI leave for 2 mins and I'm off18:35
koshokay 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 db18:35
koshif you access any other attribute/method first you can then check __dict__ and it will work18:35
koshbetabug, 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
DerekDyup...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
koshaccess a method that your object has18:37
DerekDi.e. I don't have an attribute that will always exist at runtime18:37
DerekDok18:37
DerekDwell, I do have __str__(), etc18:37
koshsince your objects are stored in the db don't they all have an id?18:37
DerekDjust to give a little more background, let me run through a use case18:38
DerekDit's actually VERY similar to this: http://www.blueskyonmars.com/images/2008/06/examples.html18:38
DerekDit's a decorator pattern-y OOSet of objects of the same class18:39
DerekDon one side, I create a certain number of objects and add them to the OOSet18:40
DerekDthese are then retrieved and listed or modified on the other side18:40
koshif those things all have self.name then just access yourobject.name   first18:40
DerekDunfortunately, they may not.  they'll have some set of attributes, but the client doesn't necessarily know (or care) which ones18:41
DerekDthat was the purpose of __str__() using self.__dict__18:41
DerekDif I have an object called derek, "print derek.__str_()" successfully populates the dict before returning18:43
DerekDbut "print derek" doesn't, even though derek.__str__() is being called18:43
DerekDis there a good way of getting the list of attributes without using __dict__?18:55
*** roq_ has joined #zope18:55
*** fredvd has quit IRC18:55
*** runyaga has joined #zope18:57
*** runyaga has quit IRC18:57
*** runyaga has joined #zope18:57
koshuse a standard variable to hold all those attributes like data instead of assigning them like you are18:58
koshanything you touch __dict__ and it is not for debugging your code is wrong18:58
koshhowever I have to get going18:58
*** pbauer has quit IRC18:59
*** pbauer has joined #zope19:00
DerekDok19:01
DerekDthanks19:02
koshsorry I did not have more time to help for now19:02
koshorganic chemistry is not much fun19:03
koshhave fun freaks19:03
koshbetabug, make sure to prepare for the end of the world, go play some fallout 3 to get ready for next week :)19:03
betabughahaha19:03
* betabug <- not the gamer time19:03
betabughf at skool19:04
*** kosh has quit IRC19:08
*** benbangert has quit IRC19:12
*** tisto has quit IRC19:13
mgedminDerekD, obj._p_activate()19:14
mgedminwill cause a ghost object to be fully loaded19:14
mgedminactually even hasattr(obj, 'does_not_matter_what') will work19:14
mgedminwhen I pdb and do a p obj.__dict__ and see {}, I generally hit up to repeat the line and do p obj.__dict__x19:15
mgedminjust to trigger a load with the minimum number of keystrokes19:15
DerekDhi mgedmin - that's interesting19:15
DerekDso I have 2 options now: change my class to contain all user-defined attributes in a dict, or "bootstrap" the object19:16
DerekDI guess one issue with bootstrapping is that I don't know which function will be the first to attempt to access19:17
*** benbangert has joined #zope19:17
*** Spanktar has joined #zope19:18
*** Wu has quit IRC20:01
*** tiwula has joined #zope20:02
*** MrTango has quit IRC20:04
*** maurits has quit IRC20:05
*** Wu has joined #zope20:08
*** menesis has quit IRC20:26
*** Arfrever has joined #zope20:29
*** avoinea has quit IRC20:34
*** thetet has quit IRC20:34
*** DerekD has quit IRC20:34
*** tintin has joined #zope20:39
tintinAnyone there?20:39
*** supton has joined #zope20:49
*** tintin has left #zope21:00
*** tiwula has quit IRC21:04
*** tiwula has joined #zope21:10
betabugsure21:18
*** mcdonc has joined #zope21:24
*** nande has joined #zope21:33
*** tiwula has quit IRC21:41
*** Pumukel has quit IRC21:51
*** tiwula has joined #zope22:03
*** dayne1 has quit IRC22:52
*** thetet has joined #zope22:53
*** thetet has quit IRC23:03
*** thetet has joined #zope23:04
*** thetet has quit IRC23:10
*** thetet has joined #zope23:10
*** teix has quit IRC23:10
*** thetet has quit IRC23:22
*** thetet has joined #zope23:30
*** nande has quit IRC23:57

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