*** flox has quit IRC | 00:04 | |
*** flox has joined #zope3-dev | 00:05 | |
*** malthe|away has quit IRC | 00:06 | |
*** jukart has quit IRC | 00:08 | |
*** aaronv has quit IRC | 00:10 | |
*** greenman has joined #zope3-dev | 00:10 | |
*** ChrisW has left #zope3-dev | 00:10 | |
*** lucielejard has quit IRC | 00:16 | |
*** flox has quit IRC | 00:17 | |
*** flox has joined #zope3-dev | 00:18 | |
*** alga has joined #zope3-dev | 00:23 | |
*** dunny has joined #zope3-dev | 00:23 | |
*** redir has quit IRC | 00:25 | |
*** dunny_ has joined #zope3-dev | 00:34 | |
*** dunny has quit IRC | 00:46 | |
*** iham has quit IRC | 00:47 | |
*** mintsauce has joined #zope3-dev | 00:52 | |
*** junkafarian has joined #zope3-dev | 00:54 | |
*** mintsauce has quit IRC | 00:58 | |
*** iham has joined #zope3-dev | 01:02 | |
*** jamur2 has quit IRC | 01:03 | |
*** tarek has quit IRC | 01:22 | |
*** iham has quit IRC | 01:26 | |
*** allisterb__ has joined #zope3-dev | 01:32 | |
*** J1m has quit IRC | 01:33 | |
*** allisterb_ has quit IRC | 01:37 | |
*** flox has left #zope3-dev | 01:43 | |
*** aaronv has joined #zope3-dev | 01:50 | |
*** sp0cksbeard has quit IRC | 01:54 | |
*** lurkymclurkleton has quit IRC | 01:56 | |
*** baijum has quit IRC | 02:02 | |
*** romanofski has joined #zope3-dev | 02:05 | |
*** baijum has joined #zope3-dev | 02:05 | |
*** harobed has quit IRC | 02:29 | |
*** nathany has quit IRC | 02:30 | |
*** aaronv has quit IRC | 02:36 | |
*** dbfrombrc|away is now known as dbfrombrc | 02:41 | |
*** romanofski has quit IRC | 02:48 | |
*** baijum has quit IRC | 03:01 | |
*** romanofski has joined #zope3-dev | 03:02 | |
*** benji has quit IRC | 03:11 | |
*** dunny_ has quit IRC | 03:15 | |
*** jfkw has quit IRC | 03:16 | |
*** jpcw has quit IRC | 03:28 | |
*** alecm has joined #zope3-dev | 03:30 | |
*** alga has quit IRC | 03:32 | |
*** dbfrombrc is now known as dbfrombrc|away | 03:59 | |
*** dbfrombrc|away is now known as dbfrombrc | 04:01 | |
*** dbfrombrc is now known as dbfrombrc|away | 04:01 | |
*** srichter has quit IRC | 04:02 | |
*** baijum has joined #zope3-dev | 04:06 | |
*** junkafarian has quit IRC | 04:11 | |
*** redir has joined #zope3-dev | 04:27 | |
*** baijum has quit IRC | 04:39 | |
*** rocky has joined #zope3-dev | 04:47 | |
*** rocky has joined #zope3-dev | 04:48 | |
*** davisagli has left #zope3-dev | 04:51 | |
*** danielblackburn_ has joined #zope3-dev | 04:57 | |
*** danielblackburn has quit IRC | 04:57 | |
*** srichter has joined #zope3-dev | 05:07 | |
*** stub has joined #zope3-dev | 05:15 | |
*** alecm has quit IRC | 05:51 | |
*** alecm has joined #zope3-dev | 05:52 | |
*** andycat has joined #zope3-dev | 05:58 | |
*** redir has quit IRC | 06:13 | |
*** rocky has quit IRC | 06:36 | |
*** wgrant has quit IRC | 06:36 | |
*** dbfrombrc|away is now known as dbfrombrc | 06:38 | |
*** aclark has quit IRC | 06:46 | |
*** aclark has joined #zope3-dev | 06:47 | |
*** wgrant has joined #zope3-dev | 06:55 | |
*** alecm has quit IRC | 07:11 | |
*** dbfrombrc is now known as dbfrombrc|away | 07:12 | |
*** afd_ has joined #zope3-dev | 07:13 | |
*** basti__ has joined #zope3-dev | 07:58 | |
*** dunny has joined #zope3-dev | 08:02 | |
*** greenman has quit IRC | 08:02 | |
*** hazmat has quit IRC | 08:03 | |
*** dunny has quit IRC | 08:11 | |
*** zagy has quit IRC | 08:21 | |
*** davisagli has joined #zope3-dev | 08:23 | |
*** markusleist has joined #zope3-dev | 08:26 | |
*** JaRoel|4D has quit IRC | 08:31 | |
*** dunny_ has joined #zope3-dev | 08:31 | |
*** zagy has joined #zope3-dev | 08:52 | |
*** afd_ has quit IRC | 08:57 | |
*** andycat has quit IRC | 08:57 | |
*** andycat has joined #zope3-dev | 09:03 | |
*** __mac__ has joined #zope3-dev | 09:06 | |
*** malthe has joined #zope3-dev | 09:07 | |
*** povbot has joined #zope3-dev | 09:13 | |
*** JaRoel|4D has joined #zope3-dev | 09:14 | |
*** acsr_ has left #zope3-dev | 09:15 | |
*** jayaraj has joined #zope3-dev | 09:16 | |
*** agroszer has joined #zope3-dev | 09:17 | |
*** tarek has joined #zope3-dev | 09:23 | |
*** allisterb has joined #zope3-dev | 09:24 | |
*** acsr has joined #zope3-dev | 09:24 | |
*** Theuni1 has joined #zope3-dev | 09:25 | |
*** JaRoel|4D has quit IRC | 09:28 | |
*** dunny_ has quit IRC | 09:28 | |
*** pelle_ has quit IRC | 09:28 | |
*** djinni has quit IRC | 09:28 | |
*** lisppaste6 has quit IRC | 09:28 | |
*** chaoflow has quit IRC | 09:28 | |
*** JaRoel|4D has joined #zope3-dev | 09:28 | |
*** dunny_ has joined #zope3-dev | 09:28 | |
*** pelle_ has joined #zope3-dev | 09:28 | |
*** djinni has joined #zope3-dev | 09:28 | |
*** lisppaste6 has joined #zope3-dev | 09:28 | |
*** chaoflow has joined #zope3-dev | 09:28 | |
*** stub has quit IRC | 09:32 | |
*** tarek has quit IRC | 09:32 | |
*** tarek has joined #zope3-dev | 09:35 | |
*** allisterb__ has quit IRC | 09:41 | |
*** afd_ has joined #zope3-dev | 09:51 | |
*** flox has joined #zope3-dev | 09:54 | |
*** mgedmin has joined #zope3-dev | 09:54 | |
*** zagy has quit IRC | 09:58 | |
*** basti__ has quit IRC | 09:59 | |
*** pyqwer has joined #zope3-dev | 10:02 | |
*** iham has joined #zope3-dev | 10:03 | |
*** quodt has joined #zope3-dev | 10:04 | |
*** imgrey_ has quit IRC | 10:05 | |
*** imgrey_ has joined #zope3-dev | 10:06 | |
*** basti__ has joined #zope3-dev | 10:08 | |
*** zagy has joined #zope3-dev | 10:08 | |
*** gc_basti has joined #zope3-dev | 10:08 | |
*** basti__ has quit IRC | 10:08 | |
*** jayaraj has quit IRC | 10:10 | |
*** dbfrombrc|away is now known as dbfrombrc | 10:14 | |
*** dbfrombrc is now known as dbfrombrc|away | 10:29 | |
*** lamike has joined #zope3-dev | 10:35 | |
*** davisagli has left #zope3-dev | 10:49 | |
*** greenman has joined #zope3-dev | 10:52 | |
*** harobed has joined #zope3-dev | 10:52 | |
*** stub has joined #zope3-dev | 11:02 | |
*** jukart has joined #zope3-dev | 11:03 | |
*** romanofski has quit IRC | 11:04 | |
*** jpcw has joined #zope3-dev | 11:05 | |
*** thetet has joined #zope3-dev | 11:07 | |
*** nyo has joined #zope3-dev | 11:09 | |
*** malthe has quit IRC | 11:13 | |
*** junkafarian has joined #zope3-dev | 11:13 | |
*** malthe has joined #zope3-dev | 11:14 | |
*** regebro has joined #zope3-dev | 11:15 | |
*** malthe has quit IRC | 11:19 | |
*** tarek has quit IRC | 11:19 | |
*** greenman has quit IRC | 11:23 | |
*** malthe has joined #zope3-dev | 11:25 | |
*** lamike has quit IRC | 11:38 | |
*** jayaraj has joined #zope3-dev | 11:39 | |
*** greenman has joined #zope3-dev | 11:42 | |
*** lamike has joined #zope3-dev | 11:57 | |
*** shane_ has quit IRC | 12:02 | |
*** junkafarian has quit IRC | 12:17 | |
*** tarek has joined #zope3-dev | 12:23 | |
*** MJ has joined #zope3-dev | 12:29 | |
*** nyo has quit IRC | 12:29 | |
*** nyo has joined #zope3-dev | 12:34 | |
*** jayaraj has quit IRC | 12:34 | |
*** jayaraj has joined #zope3-dev | 12:34 | |
*** faassen has joined #zope3-dev | 12:35 | |
*** jfkw has joined #zope3-dev | 12:37 | |
*** imgrey_ is now known as imgrey | 12:41 | |
*** junkafarian has joined #zope3-dev | 12:53 | |
*** pelle__ has joined #zope3-dev | 12:54 | |
*** pelle_ has quit IRC | 12:55 | |
*** alga has joined #zope3-dev | 13:03 | |
*** greenman has quit IRC | 13:03 | |
*** quodt has quit IRC | 13:04 | |
*** jayaraj has quit IRC | 13:09 | |
*** nyo has quit IRC | 13:21 | |
*** nyo has joined #zope3-dev | 13:22 | |
*** MrTopf has joined #zope3-dev | 13:32 | |
*** jayaraj has joined #zope3-dev | 13:36 | |
*** projekt01 has joined #zope3-dev | 13:36 | |
*** lamike has quit IRC | 13:36 | |
*** ChrisW has joined #zope3-dev | 13:43 | |
ChrisW | hey all... can a view not have its methods traversed to? | 13:43 |
---|---|---|
ChrisW | ie: 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 |
zagy | a normal view doesn't define any futher traversing | 13:45 |
ChrisW | hmmm, what other types of view are there and how is the traversing set up? | 13:46 |
afd_ | ChrisW: zope.traversing | 13:46 |
*** BjornT has quit IRC | 13:46 | |
ChrisW | I would have thought it's a fairly common pattern to have the view and the thing it submits to on seperate urls? | 13:46 |
ChrisW | afd_: that's a rather unhelpful answer ;-) | 13:47 |
afd_ | ChrisW: you can declare a new view and set the method parameter for the <page /> declaration | 13:47 |
ChrisW | the <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>, IMHO | 13:49 |
ChrisW | afd_: 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:view | 13:51 |
afd_ | a form or a POST handler should be a browser:page | 13:51 |
ChrisW | don'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_url | 13:52 |
mgedmin | ChrisW: what you want is possible to do explicitly | 13:52 |
mgedmin | <page name="form.html" class="MyView"> <page name="form_submit.html" class="MyView" attribute="submit" /> | 13:52 |
mgedmin | then form.html will call MyView.__call__, and form_submit.html will call MyView.submit | 13:52 |
mgedmin | the usual idiom in Zope 3 is to have self-submitting forms | 13:53 |
mgedmin | so there's just one MyView.__call__ that deals with the form stuff | 13:53 |
mgedmin | it 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 highlighted | 13:53 |
ChrisW | this is true, although the page sub-directive of browser:pages doesn't appear to have a class attribute ;-) | 13:54 |
mgedmin | I was using the top-level <browser:page> directive | 13:55 |
mgedmin | you 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 | |
ChrisW | browser:page doesn't have any subdirectives though? | 13:57 |
mgedmin | I 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 |
mgedmin | but then I'd like to see how you handle the "failed form submission shows the form with the errors and with your entered values" case | 13:57 |
* mgedmin buys some popcorn | 13: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 |
mgedmin | no, browser:page has no subdirectives, why should it? | 13:57 |
mgedmin | what afd_ suggests is the zope 3 custom, although we usually use z3c.form or zope.formlib | 13:58 |
mgedmin | so no need to have own __call__ or play with self.request | 13:58 |
mgedmin | instead you specify the schema, the template, and define your actions as methods with the @action decorator | 13:58 |
ChrisW | er, '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 differently | 13:58 | |
mgedmin | ChrisW, resync time? | 13:59 |
afd_ | mgedmin: of course | 13:59 |
mgedmin | I started speaking about the page directive, then you mentioned pages, then I rephrased my suggestions to use pages | 13: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 | |
mgedmin | somebody else might have been about pages before I joined the conversation, but I didn't notice | 13:59 |
ChrisW | which page directive were you originally referring to though? | 13:59 |
mgedmin | depending on the size and complexity of your project you might have better luck rewriting it with Pylons :-) | 14:00 |
* mgedmin runs away | 14:00 | |
mgedmin | there's one and only one <browser:page> directive | 14:00 |
mgedmin | I originally wrote it without the xml namespace prefix, for consiseness | 14:00 |
mgedmin | also, some people declare the browser ns to be the default ns in their browser.zcml | 14:00 |
ChrisW | ahhhh, now I see | 14:00 |
ChrisW | browser: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 IRC | 14:27 | |
*** BjornT has joined #zope3-dev | 14:41 | |
*** MJ has quit IRC | 14:49 | |
*** redir has joined #zope3-dev | 14:58 | |
*** menesis has joined #zope3-dev | 15:01 | |
*** Aiste has joined #zope3-dev | 15:06 | |
*** junkafarian has quit IRC | 15:08 | |
*** lamike has joined #zope3-dev | 15:11 | |
*** baijum has joined #zope3-dev | 15:14 | |
*** redir has quit IRC | 15:15 | |
*** nyo has quit IRC | 15:19 | |
*** andres has joined #zope3-dev | 15:28 | |
*** stub has quit IRC | 15:29 | |
*** junkafarian has joined #zope3-dev | 15:35 | |
*** Theuni1 has quit IRC | 15:40 | |
*** benji has joined #zope3-dev | 15:44 | |
*** redir has joined #zope3-dev | 15:47 | |
*** pelle_ has joined #zope3-dev | 15:47 | |
*** dunny_ has quit IRC | 15:49 | |
*** pelle__ has quit IRC | 15:52 | |
*** jsadjohnson has joined #zope3-dev | 15:53 | |
*** kaeru has quit IRC | 15:57 | |
*** J1m has joined #zope3-dev | 16:00 | |
*** jamur2 has joined #zope3-dev | 16:01 | |
*** lurkymclurkleton has joined #zope3-dev | 16:02 | |
*** redir has quit IRC | 16:04 | |
*** jsadjohnson has left #zope3-dev | 16:18 | |
*** jukart has quit IRC | 16:19 | |
*** aaronv has joined #zope3-dev | 16:24 | |
*** menesis has quit IRC | 16:24 | |
*** menesis has joined #zope3-dev | 16:24 | |
*** jayaraj has quit IRC | 16:42 | |
*** jayaraj has joined #zope3-dev | 16:42 | |
*** redir has joined #zope3-dev | 16:44 | |
*** gc_basti has quit IRC | 16:48 | |
*** dbfrombrc|away is now known as dbfrombrc | 16:53 | |
*** jukart has joined #zope3-dev | 16:55 | |
*** __mac__ has quit IRC | 16:56 | |
*** afd_ has quit IRC | 16:59 | |
*** lucielejard has joined #zope3-dev | 17:10 | |
*** sp0cksbeard has joined #zope3-dev | 17:12 | |
*** sp0cksbeard has left #zope3-dev | 17:12 | |
*** dbfrombrc is now known as dbfrombrc|away | 17:13 | |
*** ignas has joined #zope3-dev | 17:27 | |
*** flox has quit IRC | 17:33 | |
*** jukart has quit IRC | 17:37 | |
*** Aiste has quit IRC | 17:40 | |
*** afd_ has joined #zope3-dev | 17:42 | |
*** srichter has quit IRC | 17:44 | |
*** pyqwer has quit IRC | 17:49 | |
*** dbfrombrc|away is now known as dbfrombrc | 17:50 | |
*** flox has joined #zope3-dev | 17:56 | |
*** dbfrombrc is now known as dbfrombrc|away | 18:05 | |
*** baijum has quit IRC | 18:18 | |
*** baijum has joined #zope3-dev | 18:22 | |
*** sm has joined #zope3-dev | 18:24 | |
*** jpcw has left #zope3-dev | 18:31 | |
*** jpcw has joined #zope3-dev | 18:32 | |
*** menesis has quit IRC | 18:35 | |
*** afd__ has joined #zope3-dev | 18:41 | |
*** shane__ has joined #zope3-dev | 18:43 | |
*** lamike has left #zope3-dev | 18:47 | |
*** afd_ has quit IRC | 18:49 | |
*** projekt01 has quit IRC | 18:53 | |
*** do3cc has quit IRC | 18:57 | |
*** davisagli has joined #zope3-dev | 18:58 | |
*** nathany has joined #zope3-dev | 18:59 | |
*** mgedmin has quit IRC | 19:04 | |
*** srichter has joined #zope3-dev | 19:04 | |
*** alga has quit IRC | 19:08 | |
*** davisagli has quit IRC | 19:11 | |
*** jayaraj has quit IRC | 19:16 | |
*** binseer has joined #zope3-dev | 19:17 | |
*** binseer has quit IRC | 19:18 | |
*** malthe has quit IRC | 19:22 | |
*** alecm has joined #zope3-dev | 19:22 | |
*** afd___ has joined #zope3-dev | 19:25 | |
*** junkafarian has quit IRC | 19:32 | |
*** afd__ has quit IRC | 19:39 | |
*** malthe has joined #zope3-dev | 19:48 | |
*** jukart has joined #zope3-dev | 19:50 | |
*** davisagli has joined #zope3-dev | 19:54 | |
*** jukart has quit IRC | 20:00 | |
*** nyo has joined #zope3-dev | 20:01 | |
*** MrTopf has quit IRC | 20:02 | |
*** afd___ has quit IRC | 20:08 | |
*** afd_ has joined #zope3-dev | 20:10 | |
*** JaRoel|4D has quit IRC | 20:21 | |
*** bigkevmcd has quit IRC | 20:24 | |
*** jpcw has left #zope3-dev | 20:26 | |
*** zagy has quit IRC | 20:26 | |
*** agroszer has quit IRC | 20:31 | |
*** agroszer_ has joined #zope3-dev | 20:31 | |
*** sawdog_ has quit IRC | 20:33 | |
*** sawdog has joined #zope3-dev | 20:34 | |
*** rocky has joined #zope3-dev | 20:41 | |
*** harobed has quit IRC | 20:45 | |
*** baijum has quit IRC | 20:54 | |
*** baijum has joined #zope3-dev | 20:57 | |
*** dbfrombrc|away is now known as dbfrombrc | 20:59 | |
*** alga has joined #zope3-dev | 21:05 | |
*** regebro has quit IRC | 21:10 | |
*** regebro has joined #zope3-dev | 21:13 | |
*** nyo has quit IRC | 21:14 | |
*** ChrisW has left #zope3-dev | 21:15 | |
*** agroszer_ has quit IRC | 21:16 | |
*** Theuni1 has joined #zope3-dev | 21:16 | |
*** agroszer__ has joined #zope3-dev | 21:16 | |
*** JaRoel|4D has joined #zope3-dev | 21:19 | |
*** allisterb_ has joined #zope3-dev | 21:23 | |
*** ignas has quit IRC | 21:24 | |
*** faassen has quit IRC | 21:27 | |
*** sm has quit IRC | 21:28 | |
*** allisterb has quit IRC | 21:39 | |
*** Theuni1 has quit IRC | 21:42 | |
*** iham has quit IRC | 21:47 | |
*** ChrisW has joined #zope3-dev | 21:51 | |
ChrisW | hi 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 variable | 22:05 |
afd_ | not sure how to do it for a whole template, though | 22:06 |
*** projekt01 has joined #zope3-dev | 22:07 | |
*** malthe has quit IRC | 22:08 | |
*** iham has joined #zope3-dev | 22:10 | |
ChrisW | yeah, that's what I was doing, but then I refactored that code so it uses a zpt | 22:12 |
*** iham has quit IRC | 22:12 | |
*** sm has joined #zope3-dev | 22:32 | |
*** rocky has quit IRC | 22:40 | |
*** BjornT has quit IRC | 22:44 | |
*** afd_ has quit IRC | 22:45 | |
*** dbfrombrc is now known as dbfrombrc|away | 22:59 | |
*** dbfrombrc|away is now known as dbfrombrc | 22:59 | |
*** baijum has quit IRC | 23:04 | |
*** iham has joined #zope3-dev | 23:06 | |
*** baijum has joined #zope3-dev | 23:11 | |
*** iham has quit IRC | 23:13 | |
*** BjornT has joined #zope3-dev | 23:13 | |
*** shane__ is now known as shane|away | 23:19 | |
*** agroszer__ has quit IRC | 23:24 | |
*** nyo has joined #zope3-dev | 23:27 | |
*** dbfrombrc has quit IRC | 23:28 | |
*** shane|away is now known as shane_ | 23:40 | |
*** shane_ is now known as shane__ | 23:40 | |
*** shane__ is now known as hathawsh | 23:42 | |
*** hathawsh is now known as hathawsh|away | 23:44 | |
*** hathawsh|away has quit IRC | 23:47 | |
*** hathawsh has joined #zope3-dev | 23:48 | |
*** iham has joined #zope3-dev | 23:48 | |
*** iham has quit IRC | 23:54 | |
*** BjornT has quit IRC | 23:56 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!