IRC log of #zope for Wednesday, 2012-07-18

*** Spanktar has quit IRC00:13
*** menesis has joined #zope00:15
*** tzicatl has joined #zope00:21
*** kosh has joined #zope00:46
*** evilbungle has joined #zope01:00
*** nebo has joined #zope01:12
*** J1m has quit IRC01:15
*** nebo has quit IRC01:19
*** supton_ has joined #zope01:27
*** supton has quit IRC01:29
*** evilbungle has quit IRC01:29
*** nebo has joined #zope01:47
*** sp0cksbeard has quit IRC01:50
*** nebo has quit IRC02:00
*** mr_jolly has quit IRC02:16
*** nande has joined #zope02:17
*** mr_jolly has joined #zope02:21
*** nebo has joined #zope02:35
*** menesis has quit IRC02:52
*** _mup_ has quit IRC03:00
*** _mup_ has joined #zope03:00
*** daMaestro has quit IRC03:04
*** mr_jolly has quit IRC03:09
*** mr_jolly has joined #zope03:40
*** tiwula has quit IRC03:51
*** tzicatl has quit IRC04:14
*** J1m has joined #zope04:17
*** KageSenshi has joined #zope04:23
*** CIA-80 has quit IRC04:32
*** [Arfrever] has quit IRC04:34
*** CIA-80 has joined #zope04:35
*** dayne has joined #zope04:40
*** J1m has quit IRC04:40
*** [Arfrever] has joined #zope04:40
*** Deathspawn has quit IRC04:41
*** Deathspawn has joined #zope04:45
*** kevinkal has joined #zope04:55
*** kevinkal1 has joined #zope04:56
*** kevinkal has quit IRC05:00
*** mr_jolly has quit IRC05:10
*** nande has quit IRC05:41
*** kosh has quit IRC07:07
*** __mac__ has joined #zope07:38
*** __mac__ has quit IRC07:51
*** [Arfrever] has quit IRC07:53
*** [Arfrever] has joined #zope07:57
*** __mac__ has joined #zope09:06
*** agroszer has joined #zope09:31
*** tisto has joined #zope09:31
*** tisto has quit IRC09:38
*** tisto has joined #zope09:43
*** goschtl has joined #zope09:54
*** giacomos has joined #zope10:09
*** [Arfreve1] has joined #zope10:18
*** [Arfrever] has quit IRC10:19
*** kevinkal1 has quit IRC10:22
*** mr_jolly has joined #zope10:47
*** eperez has joined #zope10:48
*** kiorky_ has quit IRC10:49
*** kiorky has joined #zope10:49
*** avoinea has joined #zope10:54
*** menesis has joined #zope10:59
*** juh has joined #zope11:00
*** evilbungle has joined #zope11:24
*** evilbungle has quit IRC11:26
*** juh has quit IRC11:31
*** juh has joined #zope11:31
*** peaquino has joined #zope11:32
*** fredvd has joined #zope11:42
*** peaquino has quit IRC11:50
*** peaquino has joined #zope11:51
*** maurits has joined #zope12:00
*** KageSenshi has quit IRC12:02
*** evilbungle has joined #zope12:06
*** goschtl_ has joined #zope12:07
*** goschtl has quit IRC12:08
*** goschtl_ is now known as goschtl12:08
*** sunew has joined #zope12:17
*** KageSenshi has joined #zope12:21
*** J1m has joined #zope12:22
*** KageSenshi has quit IRC12:26
*** juh has quit IRC12:37
*** RichardB has joined #zope12:40
*** RichardB has joined #zope12:41
*** evilbungle has quit IRC12:41
*** KageSenshi has joined #zope12:42
*** RichyB has quit IRC12:43
*** RichyB has joined #zope12:44
*** RichardB has quit IRC12:44
*** RichyB has quit IRC12:44
*** RichyB has joined #zope12:44
*** RichyB has quit IRC12:45
*** teix has joined #zope12:58
*** goschtl has quit IRC13:01
*** humanfromearth has joined #zope13:07
humanfromearthis there a channel for buildout related questions?13:07
betabughumanfromearth: dunno if there is a dedicated channel, but try also in #zope3-dev13:11
betabughumanfromearth: and just ask your question, don't ask to ask :-)13:11
humanfromearthyes, well I think it's related to setuptools rather than buildout, thanks anyway13:19
*** humanfromearth has left #zope13:19
betabugnp :-)13:35
*** tisto_ has joined #zope13:50
*** tisto has quit IRC13:52
*** menesis has quit IRC13:52
*** pielgrzym has quit IRC13:54
*** evilbungle has joined #zope13:56
*** eperez has quit IRC14:02
*** Pumukel has joined #zope14:05
*** eperez has joined #zope14:09
*** J1m has quit IRC14:19
*** tisto has joined #zope14:50
*** tisto_ has quit IRC14:54
*** J1m has joined #zope15:01
*** J1m has quit IRC15:19
*** tisto has quit IRC15:43
*** Pumukel has quit IRC15:47
*** yvl has joined #zope15:53
*** fredvd has quit IRC15:53
*** rbanffy has joined #zope16:03
*** eperez has quit IRC16:03
*** kosh has joined #zope16:06
*** J1m has joined #zope16:09
*** menesis has joined #zope16:10
*** tisto has joined #zope16:10
*** _mup_ has quit IRC16:19
*** _mup_ has joined #zope16:20
*** tisto has quit IRC16:21
*** J1m has quit IRC16:22
*** J1m has joined #zope16:27
*** sp0cksbeard has joined #zope16:34
*** tisto has joined #zope16:35
*** J1m has quit IRC16:38
*** J1m has joined #zope16:43
*** kevinkal has joined #zope16:54
*** kevinkal has left #zope17:05
*** dayne has quit IRC17:12
*** fredvd has joined #zope17:38
*** yvl has quit IRC17:50
*** sunew has quit IRC17:55
*** kosh has quit IRC18:07
*** jakke has quit IRC18:09
*** zenwryly has quit IRC18:17
*** nande has joined #zope18:25
*** hannosch has joined #zope18:27
*** Diranged has joined #zope18:28
*** hannosch has left #zope18:28
DirangedJ1m: you around?18:28
J1mmaybe18:28
DirangedJ1m: I'm having a hard time using zc.zk's @children callback from within a python object..18:28
DirangedI'm trying to understand why this callback doesn't work inside of an object, but if I run the commands in a plain simple python shell it works just fine? http://pastie.org/427823018:29
J1mCallbacks get garbage collected.18:29
J1mso if your callback goes away, zc.zk will let it go. It doesn't hold onto it.18:30
DirangedHmm.. ok, let me describe what I'm trying to do in more detail then. Perhaps you can help me figure it out.18:30
*** agroszer has quit IRC18:30
DirangedWe're using Django here for our main codebase… I'm trying to add in Zookeeper support (but I'm, an ops guy… not really an engineer, so this is not my specialty). We want each of our Django processes to create a singleton-style object that manages a list of servers (that are sourced from zookeeper).. so we can say something like "registry.get_nodes(/foo)".. We want a single object created so that we never have more than 1 z18:32
*** alecm has joined #zope18:32
*** alecm has joined #zope18:32
*** jmkacz has joined #zope18:32
DirangedUltimately this single object would have a dict that contains all of the zookeeper paths that our Django app cares about… and that dict would get automatically updated any time a callback event happens through zc.zk. for the clients of this object, we would always be safe returning the data from the dict, because we would know it was updated by the callback in the event of a change..18:33
DirangedJ1m: Any thoughts?18:38
J1mUntested: http://pastie.org/427851118:38
jmkaczI'm having an issue with zc.zk and I have a pile of debugging information. Is this the right channel for zc.zk?18:39
J1mUm, not really.18:40
J1mNot sure where the best place to discuss zk is.18:40
J1mbenbangert, ? #python-zk?18:41
DirangedJ1m: looking a tthe code btw.. thanks..18:44
*** __mac__ has quit IRC18:49
*** alecm has quit IRC18:58
*** tiwula has joined #zope19:01
*** giacomos has quit IRC19:03
Dirangedj1m: that cod works… im not sure WHY .. but it does19:07
*** nande has quit IRC19:40
*** tisto has quit IRC19:47
*** supton has joined #zope19:56
*** nande has joined #zope19:57
*** avoinea has quit IRC20:00
DirangedJ1m: Thanks for that code btw.. solved my issue..20:00
DirangedJ1m: Another question … if I initiate a zookeeper client object but set wait=False, and i then try to register a watcher on a particular path.. what happens?20:00
*** alecm has joined #zope20:04
*** alecm has joined #zope20:04
*** agroszer has joined #zope20:06
*** fredvd has quit IRC20:15
*** agroszer has quit IRC20:25
*** KageSenshi has quit IRC20:29
*** menesis has quit IRC20:29
*** alecm_ has joined #zope20:30
*** alecm_ has joined #zope20:30
J1mDiranged, with wait=False (the default), the ZooKeeper constructor will raise an exception if you can't connect in 9 seconds.20:33
J1mso you won't be able to register a watcher.20:34
Dirangedyeah figured that out… thanks20:34
*** alecm has quit IRC20:34
*** alecm_ is now known as alecm20:34
Dirangedi think ive almost got all the logic right.. so that if ZK is down, we leverage a local cached copy of the dict..20:34
J1mRather than designing your code to tolerate zk being down, I recommend designing your production architecture so zk isn't down.20:35
*** evilbungle has quit IRC20:36
DirangedJ1m: fyi one of our engineers came up with this syntax http://pastie.org/4279063 … he thinks this is more clear. any thoughts?20:40
J1mI prefer decorator syntax.20:41
*** alecm has quit IRC20:51
*** alecm has joined #zope20:57
DirangedJ1m: last question.. promise.. our app already creates a default logger object. is there a way to pass that object to the zookeeper class so that its log run through this default logger?21:00
Dirangedj1m: i dont really want to have to create a dedicated logger config for this one object if possibl21:00
*** alecm has quit IRC21:01
*** daMaestro has joined #zope21:01
*** alecm has joined #zope21:02
*** alecm has joined #zope21:02
J1mNo.  You don't have to create an extra logger object.  If you only want to configure one logger, configure the root logger.21:02
*** alecm_ has joined #zope21:03
DirangedJ1m: ok, before i load up the zc.zk.Zookeeper object, I have created a default logger… but the logs for the zookeeper object dont seem to get there21:03
J1mI don't know what you mean by a default logger.21:03
Dirangedok, we have web.log as a class.. web.log.default_logger() sets up logging. it creates a default logger for everything, thats the root-level logger21:04
J1mIf you configure the root logger, that configuration will apply to other loggers by default.21:04
Diranged(roughly, root_logger = logging.getLogger()21:04
*** alecm_ has quit IRC21:04
Dirangedoh fuck, misread our code..21:04
Dirangedjust found where this log is going21:05
*** alecm has quit IRC21:06
*** maurits has quit IRC21:17
*** mr_jolly has quit IRC21:44
*** Spanktar has joined #zope22:16
*** __mac__ has joined #zope22:19
*** teix has quit IRC22:23
*** povbot_ has joined #zope22:26
*** mitchell` has joined #zope22:29
*** alecm has joined #zope22:29
*** alecm has joined #zope22:29
*** JT___ has joined #zope22:29
*** avn_ has joined #zope22:29
*** purserj_ has joined #zope22:29
*** alecm has quit IRC22:32
*** J1m_ has joined #zope22:33
*** Diranged has quit IRC22:34
*** J1m has quit IRC22:34
*** Guest18070 has quit IRC22:34
*** avn has quit IRC22:34
*** povbot has quit IRC22:34
*** purserj has quit IRC22:34
*** supersheep has quit IRC22:34
*** JT has quit IRC22:34
*** Diranged has joined #zope22:43
*** rbanffy has quit IRC22:50
*** __mac__ has quit IRC23:24
*** evilbungle has joined #zope23:44

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