*** Spanktar has quit IRC | 00:13 | |
*** menesis has joined #zope | 00:15 | |
*** tzicatl has joined #zope | 00:21 | |
*** kosh has joined #zope | 00:46 | |
*** evilbungle has joined #zope | 01:00 | |
*** nebo has joined #zope | 01:12 | |
*** J1m has quit IRC | 01:15 | |
*** nebo has quit IRC | 01:19 | |
*** supton_ has joined #zope | 01:27 | |
*** supton has quit IRC | 01:29 | |
*** evilbungle has quit IRC | 01:29 | |
*** nebo has joined #zope | 01:47 | |
*** sp0cksbeard has quit IRC | 01:50 | |
*** nebo has quit IRC | 02:00 | |
*** mr_jolly has quit IRC | 02:16 | |
*** nande has joined #zope | 02:17 | |
*** mr_jolly has joined #zope | 02:21 | |
*** nebo has joined #zope | 02:35 | |
*** menesis has quit IRC | 02:52 | |
*** _mup_ has quit IRC | 03:00 | |
*** _mup_ has joined #zope | 03:00 | |
*** daMaestro has quit IRC | 03:04 | |
*** mr_jolly has quit IRC | 03:09 | |
*** mr_jolly has joined #zope | 03:40 | |
*** tiwula has quit IRC | 03:51 | |
*** tzicatl has quit IRC | 04:14 | |
*** J1m has joined #zope | 04:17 | |
*** KageSenshi has joined #zope | 04:23 | |
*** CIA-80 has quit IRC | 04:32 | |
*** [Arfrever] has quit IRC | 04:34 | |
*** CIA-80 has joined #zope | 04:35 | |
*** dayne has joined #zope | 04:40 | |
*** J1m has quit IRC | 04:40 | |
*** [Arfrever] has joined #zope | 04:40 | |
*** Deathspawn has quit IRC | 04:41 | |
*** Deathspawn has joined #zope | 04:45 | |
*** kevinkal has joined #zope | 04:55 | |
*** kevinkal1 has joined #zope | 04:56 | |
*** kevinkal has quit IRC | 05:00 | |
*** mr_jolly has quit IRC | 05:10 | |
*** nande has quit IRC | 05:41 | |
*** kosh has quit IRC | 07:07 | |
*** __mac__ has joined #zope | 07:38 | |
*** __mac__ has quit IRC | 07:51 | |
*** [Arfrever] has quit IRC | 07:53 | |
*** [Arfrever] has joined #zope | 07:57 | |
*** __mac__ has joined #zope | 09:06 | |
*** agroszer has joined #zope | 09:31 | |
*** tisto has joined #zope | 09:31 | |
*** tisto has quit IRC | 09:38 | |
*** tisto has joined #zope | 09:43 | |
*** goschtl has joined #zope | 09:54 | |
*** giacomos has joined #zope | 10:09 | |
*** [Arfreve1] has joined #zope | 10:18 | |
*** [Arfrever] has quit IRC | 10:19 | |
*** kevinkal1 has quit IRC | 10:22 | |
*** mr_jolly has joined #zope | 10:47 | |
*** eperez has joined #zope | 10:48 | |
*** kiorky_ has quit IRC | 10:49 | |
*** kiorky has joined #zope | 10:49 | |
*** avoinea has joined #zope | 10:54 | |
*** menesis has joined #zope | 10:59 | |
*** juh has joined #zope | 11:00 | |
*** evilbungle has joined #zope | 11:24 | |
*** evilbungle has quit IRC | 11:26 | |
*** juh has quit IRC | 11:31 | |
*** juh has joined #zope | 11:31 | |
*** peaquino has joined #zope | 11:32 | |
*** fredvd has joined #zope | 11:42 | |
*** peaquino has quit IRC | 11:50 | |
*** peaquino has joined #zope | 11:51 | |
*** maurits has joined #zope | 12:00 | |
*** KageSenshi has quit IRC | 12:02 | |
*** evilbungle has joined #zope | 12:06 | |
*** goschtl_ has joined #zope | 12:07 | |
*** goschtl has quit IRC | 12:08 | |
*** goschtl_ is now known as goschtl | 12:08 | |
*** sunew has joined #zope | 12:17 | |
*** KageSenshi has joined #zope | 12:21 | |
*** J1m has joined #zope | 12:22 | |
*** KageSenshi has quit IRC | 12:26 | |
*** juh has quit IRC | 12:37 | |
*** RichardB has joined #zope | 12:40 | |
*** RichardB has joined #zope | 12:41 | |
*** evilbungle has quit IRC | 12:41 | |
*** KageSenshi has joined #zope | 12:42 | |
*** RichyB has quit IRC | 12:43 | |
*** RichyB has joined #zope | 12:44 | |
*** RichardB has quit IRC | 12:44 | |
*** RichyB has quit IRC | 12:44 | |
*** RichyB has joined #zope | 12:44 | |
*** RichyB has quit IRC | 12:45 | |
*** teix has joined #zope | 12:58 | |
*** goschtl has quit IRC | 13:01 | |
*** humanfromearth has joined #zope | 13:07 | |
humanfromearth | is there a channel for buildout related questions? | 13:07 |
---|---|---|
betabug | humanfromearth: dunno if there is a dedicated channel, but try also in #zope3-dev | 13:11 |
betabug | humanfromearth: and just ask your question, don't ask to ask :-) | 13:11 |
humanfromearth | yes, well I think it's related to setuptools rather than buildout, thanks anyway | 13:19 |
*** humanfromearth has left #zope | 13:19 | |
betabug | np :-) | 13:35 |
*** tisto_ has joined #zope | 13:50 | |
*** tisto has quit IRC | 13:52 | |
*** menesis has quit IRC | 13:52 | |
*** pielgrzym has quit IRC | 13:54 | |
*** evilbungle has joined #zope | 13:56 | |
*** eperez has quit IRC | 14:02 | |
*** Pumukel has joined #zope | 14:05 | |
*** eperez has joined #zope | 14:09 | |
*** J1m has quit IRC | 14:19 | |
*** tisto has joined #zope | 14:50 | |
*** tisto_ has quit IRC | 14:54 | |
*** J1m has joined #zope | 15:01 | |
*** J1m has quit IRC | 15:19 | |
*** tisto has quit IRC | 15:43 | |
*** Pumukel has quit IRC | 15:47 | |
*** yvl has joined #zope | 15:53 | |
*** fredvd has quit IRC | 15:53 | |
*** rbanffy has joined #zope | 16:03 | |
*** eperez has quit IRC | 16:03 | |
*** kosh has joined #zope | 16:06 | |
*** J1m has joined #zope | 16:09 | |
*** menesis has joined #zope | 16:10 | |
*** tisto has joined #zope | 16:10 | |
*** _mup_ has quit IRC | 16:19 | |
*** _mup_ has joined #zope | 16:20 | |
*** tisto has quit IRC | 16:21 | |
*** J1m has quit IRC | 16:22 | |
*** J1m has joined #zope | 16:27 | |
*** sp0cksbeard has joined #zope | 16:34 | |
*** tisto has joined #zope | 16:35 | |
*** J1m has quit IRC | 16:38 | |
*** J1m has joined #zope | 16:43 | |
*** kevinkal has joined #zope | 16:54 | |
*** kevinkal has left #zope | 17:05 | |
*** dayne has quit IRC | 17:12 | |
*** fredvd has joined #zope | 17:38 | |
*** yvl has quit IRC | 17:50 | |
*** sunew has quit IRC | 17:55 | |
*** kosh has quit IRC | 18:07 | |
*** jakke has quit IRC | 18:09 | |
*** zenwryly has quit IRC | 18:17 | |
*** nande has joined #zope | 18:25 | |
*** hannosch has joined #zope | 18:27 | |
*** Diranged has joined #zope | 18:28 | |
*** hannosch has left #zope | 18:28 | |
Diranged | J1m: you around? | 18:28 |
J1m | maybe | 18:28 |
Diranged | J1m: I'm having a hard time using zc.zk's @children callback from within a python object.. | 18:28 |
Diranged | I'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/4278230 | 18:29 |
J1m | Callbacks get garbage collected. | 18:29 |
J1m | so if your callback goes away, zc.zk will let it go. It doesn't hold onto it. | 18:30 |
Diranged | Hmm.. 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 IRC | 18:30 | |
Diranged | We'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 z | 18:32 |
*** alecm has joined #zope | 18:32 | |
*** alecm has joined #zope | 18:32 | |
*** jmkacz has joined #zope | 18:32 | |
Diranged | Ultimately 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 |
Diranged | J1m: Any thoughts? | 18:38 |
J1m | Untested: http://pastie.org/4278511 | 18:38 |
jmkacz | I'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 |
J1m | Um, not really. | 18:40 |
J1m | Not sure where the best place to discuss zk is. | 18:40 |
J1m | benbangert, ? #python-zk? | 18:41 |
Diranged | J1m: looking a tthe code btw.. thanks.. | 18:44 |
*** __mac__ has quit IRC | 18:49 | |
*** alecm has quit IRC | 18:58 | |
*** tiwula has joined #zope | 19:01 | |
*** giacomos has quit IRC | 19:03 | |
Diranged | j1m: that cod works… im not sure WHY .. but it does | 19:07 |
*** nande has quit IRC | 19:40 | |
*** tisto has quit IRC | 19:47 | |
*** supton has joined #zope | 19:56 | |
*** nande has joined #zope | 19:57 | |
*** avoinea has quit IRC | 20:00 | |
Diranged | J1m: Thanks for that code btw.. solved my issue.. | 20:00 |
Diranged | J1m: 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 #zope | 20:04 | |
*** alecm has joined #zope | 20:04 | |
*** agroszer has joined #zope | 20:06 | |
*** fredvd has quit IRC | 20:15 | |
*** agroszer has quit IRC | 20:25 | |
*** KageSenshi has quit IRC | 20:29 | |
*** menesis has quit IRC | 20:29 | |
*** alecm_ has joined #zope | 20:30 | |
*** alecm_ has joined #zope | 20:30 | |
J1m | Diranged, with wait=False (the default), the ZooKeeper constructor will raise an exception if you can't connect in 9 seconds. | 20:33 |
J1m | so you won't be able to register a watcher. | 20:34 |
Diranged | yeah figured that out… thanks | 20:34 |
*** alecm has quit IRC | 20:34 | |
*** alecm_ is now known as alecm | 20:34 | |
Diranged | i 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 |
J1m | Rather 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 IRC | 20:36 | |
Diranged | J1m: fyi one of our engineers came up with this syntax http://pastie.org/4279063 … he thinks this is more clear. any thoughts? | 20:40 |
J1m | I prefer decorator syntax. | 20:41 |
*** alecm has quit IRC | 20:51 | |
*** alecm has joined #zope | 20:57 | |
Diranged | J1m: 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 |
Diranged | j1m: i dont really want to have to create a dedicated logger config for this one object if possibl | 21:00 |
*** alecm has quit IRC | 21:01 | |
*** daMaestro has joined #zope | 21:01 | |
*** alecm has joined #zope | 21:02 | |
*** alecm has joined #zope | 21:02 | |
J1m | No. 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 #zope | 21:03 | |
Diranged | J1m: 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 there | 21:03 |
J1m | I don't know what you mean by a default logger. | 21:03 |
Diranged | ok, 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 logger | 21:04 |
J1m | If 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 IRC | 21:04 | |
Diranged | oh fuck, misread our code.. | 21:04 |
Diranged | just found where this log is going | 21:05 |
*** alecm has quit IRC | 21:06 | |
*** maurits has quit IRC | 21:17 | |
*** mr_jolly has quit IRC | 21:44 | |
*** Spanktar has joined #zope | 22:16 | |
*** __mac__ has joined #zope | 22:19 | |
*** teix has quit IRC | 22:23 | |
*** povbot_ has joined #zope | 22:26 | |
*** mitchell` has joined #zope | 22:29 | |
*** alecm has joined #zope | 22:29 | |
*** alecm has joined #zope | 22:29 | |
*** JT___ has joined #zope | 22:29 | |
*** avn_ has joined #zope | 22:29 | |
*** purserj_ has joined #zope | 22:29 | |
*** alecm has quit IRC | 22:32 | |
*** J1m_ has joined #zope | 22:33 | |
*** Diranged has quit IRC | 22:34 | |
*** J1m has quit IRC | 22:34 | |
*** Guest18070 has quit IRC | 22:34 | |
*** avn has quit IRC | 22:34 | |
*** povbot has quit IRC | 22:34 | |
*** purserj has quit IRC | 22:34 | |
*** supersheep has quit IRC | 22:34 | |
*** JT has quit IRC | 22:34 | |
*** Diranged has joined #zope | 22:43 | |
*** rbanffy has quit IRC | 22:50 | |
*** __mac__ has quit IRC | 23:24 | |
*** evilbungle has joined #zope | 23:44 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!