IRC log of #zope3-dev for Friday, 2009-04-17

*** flox has quit IRC00:04
*** flox has joined #zope3-dev00:05
*** malthe|away has quit IRC00:06
*** jukart has quit IRC00:08
*** aaronv has quit IRC00:10
*** greenman has joined #zope3-dev00:10
*** ChrisW has left #zope3-dev00:10
*** lucielejard has quit IRC00:16
*** flox has quit IRC00:17
*** flox has joined #zope3-dev00:18
*** alga has joined #zope3-dev00:23
*** dunny has joined #zope3-dev00:23
*** redir has quit IRC00:25
*** dunny_ has joined #zope3-dev00:34
*** dunny has quit IRC00:46
*** iham has quit IRC00:47
*** mintsauce has joined #zope3-dev00:52
*** junkafarian has joined #zope3-dev00:54
*** mintsauce has quit IRC00:58
*** iham has joined #zope3-dev01:02
*** jamur2 has quit IRC01:03
*** tarek has quit IRC01:22
*** iham has quit IRC01:26
*** allisterb__ has joined #zope3-dev01:32
*** J1m has quit IRC01:33
*** allisterb_ has quit IRC01:37
*** flox has left #zope3-dev01:43
*** aaronv has joined #zope3-dev01:50
*** sp0cksbeard has quit IRC01:54
*** lurkymclurkleton has quit IRC01:56
*** baijum has quit IRC02:02
*** romanofski has joined #zope3-dev02:05
*** baijum has joined #zope3-dev02:05
*** harobed has quit IRC02:29
*** nathany has quit IRC02:30
*** aaronv has quit IRC02:36
*** dbfrombrc|away is now known as dbfrombrc02:41
*** romanofski has quit IRC02:48
*** baijum has quit IRC03:01
*** romanofski has joined #zope3-dev03:02
*** benji has quit IRC03:11
*** dunny_ has quit IRC03:15
*** jfkw has quit IRC03:16
*** jpcw has quit IRC03:28
*** alecm has joined #zope3-dev03:30
*** alga has quit IRC03:32
*** dbfrombrc is now known as dbfrombrc|away03:59
*** dbfrombrc|away is now known as dbfrombrc04:01
*** dbfrombrc is now known as dbfrombrc|away04:01
*** srichter has quit IRC04:02
*** baijum has joined #zope3-dev04:06
*** junkafarian has quit IRC04:11
*** redir has joined #zope3-dev04:27
*** baijum has quit IRC04:39
*** rocky has joined #zope3-dev04:47
*** rocky has joined #zope3-dev04:48
*** davisagli has left #zope3-dev04:51
*** danielblackburn_ has joined #zope3-dev04:57
*** danielblackburn has quit IRC04:57
*** srichter has joined #zope3-dev05:07
*** stub has joined #zope3-dev05:15
*** alecm has quit IRC05:51
*** alecm has joined #zope3-dev05:52
*** andycat has joined #zope3-dev05:58
*** redir has quit IRC06:13
*** rocky has quit IRC06:36
*** wgrant has quit IRC06:36
*** dbfrombrc|away is now known as dbfrombrc06:38
*** aclark has quit IRC06:46
*** aclark has joined #zope3-dev06:47
*** wgrant has joined #zope3-dev06:55
*** alecm has quit IRC07:11
*** dbfrombrc is now known as dbfrombrc|away07:12
*** afd_ has joined #zope3-dev07:13
*** basti__ has joined #zope3-dev07:58
*** dunny has joined #zope3-dev08:02
*** greenman has quit IRC08:02
*** hazmat has quit IRC08:03
*** dunny has quit IRC08:11
*** zagy has quit IRC08:21
*** davisagli has joined #zope3-dev08:23
*** markusleist has joined #zope3-dev08:26
*** JaRoel|4D has quit IRC08:31
*** dunny_ has joined #zope3-dev08:31
*** zagy has joined #zope3-dev08:52
*** afd_ has quit IRC08:57
*** andycat has quit IRC08:57
*** andycat has joined #zope3-dev09:03
*** __mac__ has joined #zope3-dev09:06
*** malthe has joined #zope3-dev09:07
*** povbot has joined #zope3-dev09:13
*** JaRoel|4D has joined #zope3-dev09:14
*** acsr_ has left #zope3-dev09:15
*** jayaraj has joined #zope3-dev09:16
*** agroszer has joined #zope3-dev09:17
*** tarek has joined #zope3-dev09:23
*** allisterb has joined #zope3-dev09:24
*** acsr has joined #zope3-dev09:24
*** Theuni1 has joined #zope3-dev09:25
*** JaRoel|4D has quit IRC09:28
*** dunny_ has quit IRC09:28
*** pelle_ has quit IRC09:28
*** djinni has quit IRC09:28
*** lisppaste6 has quit IRC09:28
*** chaoflow has quit IRC09:28
*** JaRoel|4D has joined #zope3-dev09:28
*** dunny_ has joined #zope3-dev09:28
*** pelle_ has joined #zope3-dev09:28
*** djinni has joined #zope3-dev09:28
*** lisppaste6 has joined #zope3-dev09:28
*** chaoflow has joined #zope3-dev09:28
*** stub has quit IRC09:32
*** tarek has quit IRC09:32
*** tarek has joined #zope3-dev09:35
*** allisterb__ has quit IRC09:41
*** afd_ has joined #zope3-dev09:51
*** flox has joined #zope3-dev09:54
*** mgedmin has joined #zope3-dev09:54
*** zagy has quit IRC09:58
*** basti__ has quit IRC09:59
*** pyqwer has joined #zope3-dev10:02
*** iham has joined #zope3-dev10:03
*** quodt has joined #zope3-dev10:04
*** imgrey_ has quit IRC10:05
*** imgrey_ has joined #zope3-dev10:06
*** basti__ has joined #zope3-dev10:08
*** zagy has joined #zope3-dev10:08
*** gc_basti has joined #zope3-dev10:08
*** basti__ has quit IRC10:08
*** jayaraj has quit IRC10:10
*** dbfrombrc|away is now known as dbfrombrc10:14
*** dbfrombrc is now known as dbfrombrc|away10:29
*** lamike has joined #zope3-dev10:35
*** davisagli has left #zope3-dev10:49
*** greenman has joined #zope3-dev10:52
*** harobed has joined #zope3-dev10:52
*** stub has joined #zope3-dev11:02
*** jukart has joined #zope3-dev11:03
*** romanofski has quit IRC11:04
*** jpcw has joined #zope3-dev11:05
*** thetet has joined #zope3-dev11:07
*** nyo has joined #zope3-dev11:09
*** malthe has quit IRC11:13
*** junkafarian has joined #zope3-dev11:13
*** malthe has joined #zope3-dev11:14
*** regebro has joined #zope3-dev11:15
*** malthe has quit IRC11:19
*** tarek has quit IRC11:19
*** greenman has quit IRC11:23
*** malthe has joined #zope3-dev11:25
*** lamike has quit IRC11:38
*** jayaraj has joined #zope3-dev11:39
*** greenman has joined #zope3-dev11:42
*** lamike has joined #zope3-dev11:57
*** shane_ has quit IRC12:02
*** junkafarian has quit IRC12:17
*** tarek has joined #zope3-dev12:23
*** MJ has joined #zope3-dev12:29
*** nyo has quit IRC12:29
*** nyo has joined #zope3-dev12:34
*** jayaraj has quit IRC12:34
*** jayaraj has joined #zope3-dev12:34
*** faassen has joined #zope3-dev12:35
*** jfkw has joined #zope3-dev12:37
*** imgrey_ is now known as imgrey12:41
*** junkafarian has joined #zope3-dev12:53
*** pelle__ has joined #zope3-dev12:54
*** pelle_ has quit IRC12:55
*** alga has joined #zope3-dev13:03
*** greenman has quit IRC13:03
*** quodt has quit IRC13:04
*** jayaraj has quit IRC13:09
*** nyo has quit IRC13:21
*** nyo has joined #zope3-dev13:22
*** MrTopf has joined #zope3-dev13:32
*** jayaraj has joined #zope3-dev13:36
*** projekt01 has joined #zope3-dev13:36
*** lamike has quit IRC13:36
*** ChrisW has joined #zope3-dev13:43
ChrisWhey all... can a view not have its methods traversed to?13:43
ChrisWie: I define a view with a "doSomething" method... when I try to visit it in a browser, I get a NotFound on the "doSomething" element of the url... why is that?13:44
zagya normal view doesn't define any futher traversing13:45
ChrisWhmmm, what other types of view are there and how is the traversing set up?13:46
afd_ChrisW: zope.traversing13:46
*** BjornT has quit IRC13:46
ChrisWI would have thought it's a fairly common pattern to have the view and the thing it submits to on seperate urls?13:46
ChrisWafd_: that's a rather unhelpful answer ;-)13:47
afd_ChrisW: you can declare a new view and set the method parameter for the <page /> declaration13:47
ChrisWthe <page /> declaration? which directive are you suggesting I register the view with?13:48
afd_that's muddy waters. In my opinion, pages should be published through the web and browser views only used as "html snippets"13:49
afd_so you should use <page>, IMHO13:49
ChrisWafd_: again, without more context, your comments are essentially meaningless... there are a *lot* of view/page directives, which ones are you talking about and what do you mean by the different between "published through the web" and "html snippets"?13:50
afd_I'm talking about browser:page and browser:view13:51
afd_a form or a POST handler should be a browser:page13:51
ChrisWdon't think I've ever used a non-browser view or page ;-)13:51
afd_a browser:view is something like absolute_url, which you calll from templates with context/@@absolute_url13:52
mgedminChrisW: what you want is possible to do explicitly13:52
mgedmin<page name="form.html" class="MyView"> <page name="form_submit.html" class="MyView" attribute="submit" />13:52
mgedminthen form.html will call MyView.__call__, and form_submit.html will call MyView.submit13:52
mgedminthe usual idiom in Zope 3 is to have self-submitting forms13:53
mgedminso there's just one MyView.__call__ that deals with the form stuff13:53
mgedminit works quite well, since initial form display is very close to what you do when you have a failed form submission and want to redisplay the form with errors highlighted13:53
ChrisWthis is true, although the page sub-directive of browser:pages doesn't appear to have a class attribute ;-)13:54
mgedminI was using the top-level <browser:page> directive13:55
mgedminyou could also use <browser:pages class="MyView"><browser:page name="form.html" /><browser:page name="submit.html" attribute="submit" /></browser:pages>13:56
* mgedmin never used <browser:pages>13:56
ChrisWbrowser:page doesn't have any subdirectives though?13:57
mgedminI suppose if you're going that way you may also want to specify the template in the <browser:page name="form.html" template="foo.pt" />13:57
mgedminbut then I'd like to see how you handle the "failed form submission shows the form with the errors and with your entered values" case13:57
* mgedmin buys some popcorn13:57
afd_ChrisW: you could have a single view (let's say form.html), and in that view's __call__ you can test something like: if "form_submit" not in self.request.form": return some_template()13:57
mgedminno, browser:page has no subdirectives, why should it?13:57
mgedminwhat afd_ suggests is the zope 3 custom, although we usually use z3c.form or zope.formlib13:58
mgedminso no need to have own __call__ or play with self.request13:58
mgedmininstead you specify the schema, the template, and define your actions as methods with the @action decorator13:58
ChrisWer, 'cos you were talking about page directives, and then said you only use the top-level browser:page directive... so what were you meaning when you were talking about page directives? ;-)13:58
* mgedmin is speaking about formlib, z3c.form might spell things differently13:58
mgedminChrisW, resync time?13:59
afd_mgedmin: of course13:59
mgedminI started speaking about the page directive, then you mentioned pages, then I rephrased my suggestions to use pages13:59
* ChrisW isn't going to touch formlib or z3c.form ;-) This is an oooold Zope 2 project that I', just trying to get the code on disk for and out of the zodb ;-)13:59
mgedminsomebody else might have been about pages before I joined the conversation, but I didn't notice13:59
ChrisWwhich page directive were you originally referring to though?13:59
mgedmindepending on the size and complexity of your project you might have better luck rewriting it with Pylons :-)14:00
* mgedmin runs away14:00
mgedminthere's one and only one <browser:page> directive14:00
mgedminI originally wrote it without the xml namespace prefix, for consiseness14:00
mgedminalso, some people declare the browser ns to be the default ns in their browser.zcml14:00
ChrisWahhhh, now I see14:00
ChrisWbrowser:pages having a subdirective of page caused the confusion :-)14:01
ChrisW*grinz* and after all that I think I'll just do it in __call__ and look for a POST ;-)14:09
*** andres has quit IRC14:27
*** BjornT has joined #zope3-dev14:41
*** MJ has quit IRC14:49
*** redir has joined #zope3-dev14:58
*** menesis has joined #zope3-dev15:01
*** Aiste has joined #zope3-dev15:06
*** junkafarian has quit IRC15:08
*** lamike has joined #zope3-dev15:11
*** baijum has joined #zope3-dev15:14
*** redir has quit IRC15:15
*** nyo has quit IRC15:19
*** andres has joined #zope3-dev15:28
*** stub has quit IRC15:29
*** junkafarian has joined #zope3-dev15:35
*** Theuni1 has quit IRC15:40
*** benji has joined #zope3-dev15:44
*** redir has joined #zope3-dev15:47
*** pelle_ has joined #zope3-dev15:47
*** dunny_ has quit IRC15:49
*** pelle__ has quit IRC15:52
*** jsadjohnson has joined #zope3-dev15:53
*** kaeru has quit IRC15:57
*** J1m has joined #zope3-dev16:00
*** jamur2 has joined #zope3-dev16:01
*** lurkymclurkleton has joined #zope3-dev16:02
*** redir has quit IRC16:04
*** jsadjohnson has left #zope3-dev16:18
*** jukart has quit IRC16:19
*** aaronv has joined #zope3-dev16:24
*** menesis has quit IRC16:24
*** menesis has joined #zope3-dev16:24
*** jayaraj has quit IRC16:42
*** jayaraj has joined #zope3-dev16:42
*** redir has joined #zope3-dev16:44
*** gc_basti has quit IRC16:48
*** dbfrombrc|away is now known as dbfrombrc16:53
*** jukart has joined #zope3-dev16:55
*** __mac__ has quit IRC16:56
*** afd_ has quit IRC16:59
*** lucielejard has joined #zope3-dev17:10
*** sp0cksbeard has joined #zope3-dev17:12
*** sp0cksbeard has left #zope3-dev17:12
*** dbfrombrc is now known as dbfrombrc|away17:13
*** ignas has joined #zope3-dev17:27
*** flox has quit IRC17:33
*** jukart has quit IRC17:37
*** Aiste has quit IRC17:40
*** afd_ has joined #zope3-dev17:42
*** srichter has quit IRC17:44
*** pyqwer has quit IRC17:49
*** dbfrombrc|away is now known as dbfrombrc17:50
*** flox has joined #zope3-dev17:56
*** dbfrombrc is now known as dbfrombrc|away18:05
*** baijum has quit IRC18:18
*** baijum has joined #zope3-dev18:22
*** sm has joined #zope3-dev18:24
*** jpcw has left #zope3-dev18:31
*** jpcw has joined #zope3-dev18:32
*** menesis has quit IRC18:35
*** afd__ has joined #zope3-dev18:41
*** shane__ has joined #zope3-dev18:43
*** lamike has left #zope3-dev18:47
*** afd_ has quit IRC18:49
*** projekt01 has quit IRC18:53
*** do3cc has quit IRC18:57
*** davisagli has joined #zope3-dev18:58
*** nathany has joined #zope3-dev18:59
*** mgedmin has quit IRC19:04
*** srichter has joined #zope3-dev19:04
*** alga has quit IRC19:08
*** davisagli has quit IRC19:11
*** jayaraj has quit IRC19:16
*** binseer has joined #zope3-dev19:17
*** binseer has quit IRC19:18
*** malthe has quit IRC19:22
*** alecm has joined #zope3-dev19:22
*** afd___ has joined #zope3-dev19:25
*** junkafarian has quit IRC19:32
*** afd__ has quit IRC19:39
*** malthe has joined #zope3-dev19:48
*** jukart has joined #zope3-dev19:50
*** davisagli has joined #zope3-dev19:54
*** jukart has quit IRC20:00
*** nyo has joined #zope3-dev20:01
*** MrTopf has quit IRC20:02
*** afd___ has quit IRC20:08
*** afd_ has joined #zope3-dev20:10
*** JaRoel|4D has quit IRC20:21
*** bigkevmcd has quit IRC20:24
*** jpcw has left #zope3-dev20:26
*** zagy has quit IRC20:26
*** agroszer has quit IRC20:31
*** agroszer_ has joined #zope3-dev20:31
*** sawdog_ has quit IRC20:33
*** sawdog has joined #zope3-dev20:34
*** rocky has joined #zope3-dev20:41
*** harobed has quit IRC20:45
*** baijum has quit IRC20:54
*** baijum has joined #zope3-dev20:57
*** dbfrombrc|away is now known as dbfrombrc20:59
*** alga has joined #zope3-dev21:05
*** regebro has quit IRC21:10
*** regebro has joined #zope3-dev21:13
*** nyo has quit IRC21:14
*** ChrisW has left #zope3-dev21:15
*** agroszer_ has quit IRC21:16
*** Theuni1 has joined #zope3-dev21:16
*** agroszer__ has joined #zope3-dev21:16
*** JaRoel|4D has joined #zope3-dev21:19
*** allisterb_ has joined #zope3-dev21:23
*** ignas has quit IRC21:24
*** faassen has quit IRC21:27
*** sm has quit IRC21:28
*** allisterb has quit IRC21:39
*** Theuni1 has quit IRC21:42
*** iham has quit IRC21:47
*** ChrisW has joined #zope3-dev21:51
ChrisWhi all, how would I go about setting the target language for rendering just one particular zpt? (so, if one chunk of the page is in a specific language specified by the user)21:52
afd_ChrisW: you could specifically call zope.i18n.translate(msgid, target=lang)22:05
afd_for a certain variable22:05
afd_not sure how to do it for a whole template, though22:06
*** projekt01 has joined #zope3-dev22:07
*** malthe has quit IRC22:08
*** iham has joined #zope3-dev22:10
ChrisWyeah, that's what I was doing, but then I refactored that code so it uses a zpt22:12
*** iham has quit IRC22:12
*** sm has joined #zope3-dev22:32
*** rocky has quit IRC22:40
*** BjornT has quit IRC22:44
*** afd_ has quit IRC22:45
*** dbfrombrc is now known as dbfrombrc|away22:59
*** dbfrombrc|away is now known as dbfrombrc22:59
*** baijum has quit IRC23:04
*** iham has joined #zope3-dev23:06
*** baijum has joined #zope3-dev23:11
*** iham has quit IRC23:13
*** BjornT has joined #zope3-dev23:13
*** shane__ is now known as shane|away23:19
*** agroszer__ has quit IRC23:24
*** nyo has joined #zope3-dev23:27
*** dbfrombrc has quit IRC23:28
*** shane|away is now known as shane_23:40
*** shane_ is now known as shane__23:40
*** shane__ is now known as hathawsh23:42
*** hathawsh is now known as hathawsh|away23:44
*** hathawsh|away has quit IRC23:47
*** hathawsh has joined #zope3-dev23:48
*** iham has joined #zope3-dev23:48
*** iham has quit IRC23:54
*** BjornT has quit IRC23:56

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