IRC log for #storm on 20070917

00:00.13*** join/#storm wallflower (n=wallflow@216.113.246.205)
00:23.02*** join/#storm jml (n=jml@ppp121-44-213-76.lns1.hba1.internode.on.net)
02:39.44*** join/#storm leifkb (n=leifkb@dsl82.brbovtma.sover.net)
02:44.20*** join/#storm leifkb (n=leifkb@dsl82.brbovtma.sover.net)
03:42.34*** join/#storm jml (n=jml@dsl-210-15-197-192-static.TAS.netspace.net.au)
05:44.41*** join/#storm jml_ (n=jml@ppp121-44-213-76.lns1.hba1.internode.on.net)
06:03.51*** join/#storm jukart (n=jukart@lsfw01.lovelysystems.com)
07:32.53*** join/#storm dobee (n=dobeee@194.183.146.186)
07:50.22*** join/#storm mcella (n=michele@ip-176-22.sn2.eutelia.it)
09:09.56*** join/#storm Key_Gena8 (i=lok@gateway/tor/x-1b2578551decca64)
10:41.50*** join/#storm rafael_ (n=rafael@p5089DB87.dip.t-dialin.net)
11:54.41*** join/#storm jukart (n=jukart@lsfw01.lovelysystems.com)
12:04.20*** join/#storm statik (n=emurphy@189.66.188.72.cfl.res.rr.com)
12:21.13*** join/#storm niemeyer (n=niemeyer@200.103.134.216)
12:29.48jameshhi niemeyer
12:30.02niemeyerjamesh: Hello James!
12:31.14jameshniemeyer: I got the database disconnect branch mostly ready and pushed
12:31.39jameshbut the LP branch publisher seems to be having problems and the last few revisions aren't public yet
12:31.50niemeyerjamesh: Sweet!
12:38.45jameshniemeyer: are you currently doing any retry handling with Storm in Landscape?
12:39.23niemeyerjamesh: Not yet..
12:39.42niemeyerjamesh: Client => server communication have retries, but in a different level
12:49.32*** join/#storm jml (n=jml@ppp121-44-213-76.lns1.hba1.internode.on.net)
12:55.35niemeyerjamesh: From the description you posted it looks like a nice approach
12:57.55jameshniemeyer: I filed a bug against zope 3 about making it easier to mark exceptions as retryable.
12:59.09jameshJim proposed an alternative way to do it, but hopefully we'll be able to make zstorm automatically retry disconnections and other relevant exceptions
13:05.00jameshniemeyer: I've just sent an up to date patch to the list, if you're interested in seeing the current code
13:05.38*** join/#storm EnTeQuAk (n=EnTeQuAk@p57B9B8B6.dip0.t-ipconnect.de)
13:06.47niemeyerjamesh: Hmmm..
13:07.00niemeyerjamesh: Doesn't Zope offer a Retry exception already?
13:07.19jameshniemeyer: yes it does
13:07.38niemeyerjamesh: I wonder if injecting it as a base of DisconnectionError would be enough
13:08.01jameshniemeyer: https://bugs.edge.launchpad.net/zope3/+bug/137905
13:08.07ubot3Malone bug 137905 in zope3 "Make it easier to raise retryable exceptions" [Undecided,Confirmed]
13:08.52niemeyerExcept that I guess we'd have to form a diamond if we wanted to make DisconnectError inherit from any DBAPI exception as well
13:09.41jameshas it currently stands you have two options: raise a Retry early, and get truncated exceptions on failed requests
13:09.55jameshor check for each exception you want to retry in the publisher's handle_exception() method
13:14.12*** join/#storm WebMaven (n=webmaven@63-253-185-227.ip.mcleodusa.net)
13:14.39niemeyerjamesh: Just looked at it.. makes sense, even though I think the marker approach is more explicit and consequently cleaner
13:15.13niemeyerWebMaven: Heya
13:17.40jameshniemeyer: yeah.  I need to test the view approach to see if it actually solves the problem
13:17.53jameshif it doesn't, we might get the marker interface
13:18.55WebMavenniemeyer: yo
13:18.56niemeyerjamesh: It most probably may solve, but certainly will require tweaks in handleException
13:20.59jameshniemeyer: I suspect it'd cause problems if you also want to display an error to the user
13:21.09niemeyerjamesh: Looking at the method, at least the error will get logged when the Retry is raised by the view, while it's not in other situations
13:21.47jameshniemeyer: usually I'd only want the exception logged if I exhaust the retries
13:21.54niemeyerjamesh: Agreed
13:23.02niemeyerjamesh: For displaying the error, I think the view would have to be aware of the counting logic
13:23.37jameshI suppose it could check request.supportsRetry() to decide whether to render an error page or raise Retry()
13:24.02jameshbut this gets a bit complicated
13:24.11jameshand ties rendering of the error page to the retry behaviour
13:25.59niemeyerRight.. just making the view decide to Retry a request already sounds like crossing domain boundaries incorrectly
13:37.25*** join/#storm WebMaven (n=webmaven@63-253-185-227.ip.mcleodusa.net)
13:46.04*** join/#storm statik (n=emurphy@189.66.188.72.cfl.res.rr.com)
14:14.16*** join/#storm WebMaven (n=webmaven@63-253-185-227.ip.mcleodusa.net)
14:15.07*** join/#storm mcella (n=michele@ip-176-22.sn2.eutelia.it)
14:31.27*** join/#storm brosner (n=brian@63.150.173.39)
14:35.35*** join/#storm oubiwann (n=oubiwann@209-181-153-103.omah.qwest.net)
15:32.48*** join/#storm michelp (n=michelp@69-30-72-119.dq1sf.easystreet.com)
15:48.57*** join/#storm statik (n=emurphy@189.66.188.72.cfl.res.rr.com)
16:20.48*** join/#storm Key_Gena8 (i=lok@gateway/tor/x-cfcc803f7d9ec454)
16:28.32EnTeQuAkehm, If I implement a Reference. Are there any attributes in the "referenced" columns showing that they're part of a reference?
16:30.40radixhuh
16:30.52radixEnTeQuAk: I don't understand your question
16:32.25EnTeQuAkI can mark a column as a reference to other columns.
16:33.14jameshEnTeQuAk: maybe it would help if you tried to describe what you want to do at a higher level
16:33.27EnTeQuAkyepp, still in progress ;)
16:36.26EnTeQuAkplease take a look at http://paste.pocoo.org/show/3992/
16:36.59EnTeQuAkIf I have the property object of `People.school_id`
16:37.33EnTeQuAkare there any attributes that shows that People.school_id is referenced to School.id ?
16:40.12niemeyerEnTeQuAk: Ok.. so what do you want to do?
16:40.31niemeyerEnTeQuAk: The reference you explicitly declared of course shows that it's a reference
16:41.02EnTeQuAkniemeyer, I'm still working on the automatic schema creation and for now I'm just watching at the PropertyColumn related attributes.
16:41.18niemeyerEnTeQuAk: Ah, that, ok :)
16:41.31niemeyerEnTeQuAk: No, there's nothing in school_id that shows the reference
16:41.55EnTeQuAkdamn... Then I have to go the longer way :D
16:41.59niemeyerEnTeQuAk: The reference is the only thing that says that, well, a reference exists (that sounds badly circular :)
16:42.42EnTeQuAkahh, I understand. Then I have an idea how to implement the Reference things.
16:43.32EnTeQuAkehm, by the way: What's about Proxies. What are they exactly, should I handle them in the CREATE TABLE - Code?
16:45.15niemeyerEnTeQuAk: Proxies are a way to use an attribute of a referenced object as if it were a local one
16:45.26niemeyerEnTeQuAk: I don't think it makes sense in that context
16:46.22EnTeQuAkhmm, that means: (in my example code) --- that I can use School.id as a key, defined in the People class?
16:46.56niemeyerNo.. Proxies are something which work on top of everything else
16:47.09EnTeQuAkahh, ok :D
16:47.11niemeyerThey are not a replacement for any of the concepts already in your toolbox
16:47.49niemeyerEnTeQuAk: They are just there for comfort..
16:48.12*** join/#storm jukart (n=jukart@85-124-221-45.static.xdsl-line.inode.at)
16:48.27EnTeQuAkgood, then the're not important for the automatic table creation
16:49.08niemeyerRight
16:50.52EnTeQuAkbtw: I'll also implement a `max_length` attribute for some Properties (e.g Int and Unicode/RawStr, maybe it also makes sense for List's)
16:59.40niemeyermax_length for ints?
17:00.45EnTeQuAkI just remembered that there are `smallint`, `int` and some other kinds of integer types in SQL defined
17:02.07niemeyerEnTeQuAk: Right.. max_length looks like an inappropriate name for the concept
17:04.09EnTeQuAkmaybe, I'm searching for another one ;)
17:15.42*** part/#storm mcella (n=michele@ip-176-22.sn2.eutelia.it)
17:24.08radixEnTeQuAk: "size" is probably a better word than "length"
17:47.32EnTeQuAkyey, thanks radix :D
17:55.17*** join/#storm dobee (n=dobeee@81-223-53-162.dornbirn.xdsl-line.inode.at)
18:55.19*** join/#storm dobee (n=dobeee@81-223-53-162.dornbirn.xdsl-line.inode.at)
19:22.28*** join/#storm jukart (n=jukart@85-124-221-45.static.xdsl-line.inode.at)
19:26.30*** join/#storm jukart_ (n=jukart@85-124-221-45.static.xdsl-line.inode.at)
19:27.27*** join/#storm jukart (n=jukart@85-124-221-45.static.xdsl-line.inode.at)
19:39.09*** join/#storm jukart_ (n=jukart@85-124-221-45.static.xdsl-line.inode.at)
19:50.18*** join/#storm dobee (n=dobeee@81-223-53-162.dornbirn.xdsl-line.inode.at)
20:40.49*** join/#storm WebMaven (n=webmaven@63-253-185-227.ip.mcleodusa.net)
21:09.21*** join/#storm michelp (n=michelp@69-30-72-119.dq1sf.easystreet.com)
22:40.07*** join/#storm jukart (n=jukart@85-124-221-45.static.xdsl-line.inode.at)
23:15.23*** join/#storm brosner (n=brian@63.150.173.39)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.