*** efrerich has joined #zope3-dev | 00:09 | |
*** alga has quit IRC | 00:14 | |
*** zbir has quit IRC | 00:21 | |
*** efrerich has quit IRC | 00:26 | |
J1m | srichter, so, zope.app.server.mkzopeinstance creates twisted-based server configs. | 00:55 |
---|---|---|
*** Theuni has quit IRC | 00:56 | |
*** hazmat has joined #zope3-dev | 00:56 | |
*** ChanServ sets mode: +o hazmat | 00:56 | |
*** benji has quit IRC | 00:58 | |
*** vlado has joined #zope3-dev | 01:09 | |
*** drzoltron_ has joined #zope3-dev | 01:12 | |
*** efge has joined #zope3-dev | 01:18 | |
*** _anguenot has joined #zope3-dev | 01:18 | |
*** zbir has joined #zope3-dev | 01:24 | |
*** drzoltron_ has quit IRC | 01:26 | |
*** vlado has quit IRC | 01:26 | |
*** sashav has quit IRC | 01:33 | |
*** jinty has joined #zope3-dev | 01:41 | |
MJ | benji: (3 hours late) thanks | 01:47 |
MJ | but I do need something more philosophical | 01:47 |
philiKON | MJ, tried any of the Appetizers? | 01:48 |
philiKON | http://worldcookery.com/Appetizers | 01:48 |
*** MJ has quit IRC | 01:48 | |
*** efge has quit IRC | 01:56 | |
*** philiKON has quit IRC | 02:14 | |
*** J1m has quit IRC | 02:15 | |
*** andres_ has joined #zope3-dev | 02:18 | |
*** andres has quit IRC | 02:18 | |
*** hazmat is now known as replicant | 02:22 | |
*** cellerdoor has joined #zope3-dev | 02:29 | |
*** tiredbones has left #zope3-dev | 02:31 | |
*** stub has joined #zope3-dev | 02:52 | |
*** jinty has quit IRC | 02:59 | |
*** jinty has joined #zope3-dev | 03:00 | |
*** jinty has left #zope3-dev | 03:16 | |
*** _anguenot has quit IRC | 03:35 | |
*** _anguenot has joined #zope3-dev | 03:36 | |
*** WebMaven has quit IRC | 03:58 | |
*** _anguenot has quit IRC | 04:05 | |
*** nie_away is now known as niemeyer | 04:08 | |
*** WebMaven has joined #zope3-dev | 04:09 | |
*** _anguenot has joined #zope3-dev | 04:13 | |
*** natea has quit IRC | 04:15 | |
*** replicant is now known as hazmat | 04:15 | |
*** niemeyer has quit IRC | 04:30 | |
*** natea has joined #zope3-dev | 04:51 | |
*** tiredbones has joined #zope3-dev | 04:58 | |
*** andres_ is now known as andres | 05:34 | |
*** yota has quit IRC | 05:44 | |
*** stub has quit IRC | 06:43 | |
*** _anguenot has quit IRC | 07:17 | |
*** _anguenot has joined #zope3-dev | 07:29 | |
*** BjornT_ has joined #zope3-dev | 07:32 | |
*** BjornT has quit IRC | 07:32 | |
*** dobee has joined #zope3-dev | 07:41 | |
*** __mac__ has quit IRC | 07:47 | |
*** dobee has quit IRC | 08:05 | |
*** zagy has quit IRC | 08:16 | |
*** sashav has joined #zope3-dev | 08:17 | |
*** dobee has joined #zope3-dev | 08:18 | |
*** zagy has joined #zope3-dev | 08:18 | |
*** zagy has joined #zope3-dev | 08:20 | |
*** eins has joined #zope3-dev | 08:26 | |
eins | hi | 08:27 |
*** newpers_ has quit IRC | 08:39 | |
*** sashav has quit IRC | 09:09 | |
*** BjornT_ has quit IRC | 09:33 | |
*** BjornT has joined #zope3-dev | 09:33 | |
*** xenru has quit IRC | 09:39 | |
*** romanofski has joined #zope3-dev | 09:53 | |
romanofski | moin | 09:53 |
*** agroszer has joined #zope3-dev | 09:58 | |
*** Theuni has joined #zope3-dev | 10:07 | |
*** stub has joined #zope3-dev | 10:30 | |
*** sashav has joined #zope3-dev | 10:38 | |
*** bradb has joined #zope3-dev | 10:46 | |
*** jinty has joined #zope3-dev | 10:48 | |
*** xenru has joined #zope3-dev | 10:51 | |
*** andrew_m has quit IRC | 10:54 | |
*** jinty has quit IRC | 11:05 | |
*** hazmat is now known as replicant | 11:06 | |
*** jinty has joined #zope3-dev | 11:07 | |
*** andrew_m has joined #zope3-dev | 11:07 | |
*** ignas has joined #zope3-dev | 11:09 | |
*** MrTopf has joined #zope3-dev | 11:09 | |
*** mgedmin has joined #zope3-dev | 11:16 | |
*** jinty has quit IRC | 11:24 | |
*** jinty has joined #zope3-dev | 11:26 | |
*** elro has joined #zope3-dev | 11:38 | |
*** jinty has quit IRC | 11:43 | |
*** elro has quit IRC | 11:47 | |
*** j-w has joined #zope3-dev | 12:28 | |
*** elro has joined #zope3-dev | 12:34 | |
*** dobee has quit IRC | 12:39 | |
*** philiKON has joined #zope3-dev | 12:50 | |
*** alga has joined #zope3-dev | 12:52 | |
*** yota has joined #zope3-dev | 12:59 | |
*** mkerrin has joined #zope3-dev | 13:04 | |
*** _anguenot has quit IRC | 13:10 | |
*** SteveA has quit IRC | 13:24 | |
*** niemeyer has joined #zope3-dev | 13:29 | |
*** J1m has joined #zope3-dev | 13:33 | |
philiKON | hey J1m | 13:35 |
J1m | hey | 13:35 |
*** dobee has joined #zope3-dev | 13:47 | |
*** efge has joined #zope3-dev | 14:00 | |
*** SteveA has joined #zope3-dev | 14:07 | |
*** andres has quit IRC | 14:22 | |
*** andres_ has joined #zope3-dev | 14:22 | |
*** andres has joined #zope3-dev | 14:22 | |
*** srichter has quit IRC | 14:26 | |
*** J1m has quit IRC | 14:30 | |
*** adamSummers has joined #zope3-dev | 14:36 | |
*** ignas has quit IRC | 14:38 | |
*** zbir has quit IRC | 14:47 | |
*** faassen has joined #zope3-dev | 14:52 | |
*** xenru|clone has joined #zope3-dev | 15:02 | |
*** srichter has joined #zope3-dev | 15:13 | |
*** elro has quit IRC | 15:21 | |
*** xenru has quit IRC | 15:31 | |
*** _anguenot has joined #zope3-dev | 15:31 | |
*** ChanServ sets mode: +o srichter | 15:34 | |
*** ignas has joined #zope3-dev | 15:35 | |
*** mgedmin has quit IRC | 15:35 | |
*** elro has joined #zope3-dev | 15:35 | |
*** SteveA has quit IRC | 15:37 | |
sashav | are the zope.app.component.hooks.setSite/getSite global for a zope instance or can I have several instances of my site and get the right site with getSite from subobjects in a site? | 15:37 |
philiKON | they're global for a certain request | 15:38 |
philiKON | so, within a request there's only one site, no matter where in the object space you are | 15:38 |
philiKON | that one site is (by default behaviour) the one closest to the object *traversed* | 15:39 |
philiKON | so, e.g. your URL is http://somefolder/site/subsite/some_obj | 15:39 |
philiKON | getSite() will be subsite | 15:40 |
philiKON | even if you do something with somefolder/site/foobar_object within that request, getSite() is still subsite | 15:41 |
philiKON | and component lookups will start there | 15:41 |
*** benji has joined #zope3-dev | 15:51 | |
*** BjornT has quit IRC | 15:52 | |
*** zbir has joined #zope3-dev | 15:55 | |
*** BjornT has joined #zope3-dev | 15:57 | |
*** SteveA has joined #zope3-dev | 16:16 | |
*** dobee has quit IRC | 16:21 | |
*** tonico_ has quit IRC | 16:32 | |
*** tonico has joined #zope3-dev | 16:38 | |
*** sashav has quit IRC | 16:51 | |
*** tarek has quit IRC | 17:05 | |
*** tarek has joined #zope3-dev | 17:06 | |
andres | I fear i have something very big in front of my head: What is the easiest way to refer to a macro defined in the same document? | 17:11 |
*** BjornT_ has joined #zope3-dev | 17:16 | |
*** jhauser has joined #zope3-dev | 17:17 | |
SteveA | /template/macros/name | 17:19 |
SteveA | without the leading / | 17:19 |
SteveA | from a page template | 17:19 |
andres | I only get a key error. | 17:22 |
andres | That the confusing thing. | 17:23 |
andres | Hm. As long as i define the macro inside a use-macro, it doesnt work... | 17:26 |
SteveA | inside a use-macro, i expect the markup is discarded | 17:26 |
SteveA | after all, you're using a macro there | 17:27 |
SteveA | or do i mean fill-slot | 17:27 |
SteveA | ? | 17:27 |
*** VladDrac has joined #zope3-dev | 17:27 | |
*** xenru|clone has quit IRC | 17:28 | |
*** xenru has joined #zope3-dev | 17:28 | |
*** BjornT has quit IRC | 17:30 | |
*** jhauser_ has quit IRC | 17:31 | |
andres | SteveA, i have a sitewide macro/template which i include as first thing so that all page look the same, which is, i think, quite common. At one page using the site wide template i needed another macro, which i defined inside the other use-macro. Which doesnt seem to work. | 17:36 |
SteveA | you have a template, a page of your site | 17:38 |
SteveA | this template uses the sitewide macros | 17:38 |
andres | yes. | 17:38 |
SteveA | in the template, you define a macro for that template | 17:38 |
SteveA | but, you define the macro within a use-macro element in that template | 17:38 |
SteveA | but not inside a fill-slot | 17:38 |
SteveA | is that the situation? | 17:39 |
andres | yes | 17:39 |
SteveA | if so, the problem is this: all macros get processed before the content of the template is interpreted | 17:39 |
SteveA | so, your new macro, defined in the template that is a page of your site, is removed right away, before it can be interpreted | 17:40 |
SteveA | because all the text of your template that is inside a use-macro element, except that also inside a fill-slot, is removed | 17:40 |
*** stub has quit IRC | 17:41 | |
andres | SteveA, thanks. | 17:42 |
andres | I will move it out of the use-macro or inside a fill-slot. | 17:43 |
*** clueck has joined #zope3-dev | 17:43 | |
SteveA | bug 3516 | 17:43 |
SteveA | wrong channel | 17:44 |
*** J1m has joined #zope3-dev | 17:50 | |
*** alga has quit IRC | 17:50 | |
*** eins has quit IRC | 18:12 | |
*** sashav has joined #zope3-dev | 18:16 | |
*** j-w has quit IRC | 18:22 | |
*** zagy has quit IRC | 18:31 | |
*** zeboul has joined #zope3-dev | 18:34 | |
*** elro has quit IRC | 18:48 | |
*** zagy has joined #zope3-dev | 18:48 | |
*** zagy has quit IRC | 18:49 | |
*** strichter has joined #zope3-dev | 18:57 | |
*** srichter has quit IRC | 18:58 | |
*** strichter is now known as srichter | 18:58 | |
*** ChanServ sets mode: +o srichter | 18:58 | |
*** deo has joined #zope3-dev | 18:58 | |
*** zagy has joined #zope3-dev | 19:00 | |
adamSummers | Hi, Is it possible to have methods in views which take parameters? If so, how would you call them from the page template? | 19:04 |
*** sashav_ has joined #zope3-dev | 19:05 | |
*** sashav has quit IRC | 19:05 | |
*** sashav_ is now known as sashav | 19:05 | |
*** sashav_ has joined #zope3-dev | 19:06 | |
*** sashav has quit IRC | 19:06 | |
*** sashav_ is now known as sashav | 19:06 | |
*** sashav_ has joined #zope3-dev | 19:07 | |
*** sashav has quit IRC | 19:07 | |
*** sashav_ is now known as sashav | 19:07 | |
romanofski | adamSummers: something like myMethod?paremeter=foo | 19:07 |
romanofski | ? | 19:07 |
*** sashav_ has joined #zope3-dev | 19:07 | |
*** sashav has quit IRC | 19:07 | |
*** sashav_ is now known as sashav | 19:07 | |
*** sashav_ has joined #zope3-dev | 19:08 | |
*** sashav has quit IRC | 19:08 | |
*** sashav_ is now known as sashav | 19:08 | |
*** sashav_ has joined #zope3-dev | 19:09 | |
*** sashav has quit IRC | 19:09 | |
*** sashav_ is now known as sashav | 19:09 | |
benji | adamSummers, you can do python:view.foo(bar) | 19:09 |
*** sashav_ has joined #zope3-dev | 19:09 | |
*** sashav has quit IRC | 19:09 | |
*** sashav_ is now known as sashav | 19:09 | |
srichter | adamSummers: benji is right, but this is a slippery slope | 19:10 |
*** sashav_ has joined #zope3-dev | 19:10 | |
srichter | you really should do all of your computations in the view class | 19:10 |
*** sashav has quit IRC | 19:10 | |
*** sashav_ is now known as sashav | 19:10 | |
benji | I didn't say it was good :) | 19:10 |
*** sashav_ has joined #zope3-dev | 19:10 | |
*** sashav has quit IRC | 19:10 | |
*** sashav_ is now known as sashav | 19:10 | |
*** sashav was kicked by srichter (User terminated!) | 19:11 | |
*** sashav has joined #zope3-dev | 19:11 | |
*** sashav_ has joined #zope3-dev | 19:11 | |
*** sashav has quit IRC | 19:11 | |
*** sashav_ is now known as sashav | 19:11 | |
srichter | sashav: I am baout to ban you ;-) | 19:11 |
adamSummers | yeah :) I understand - the computations are in the view class, but I want to have generic methods which take which the attribute of in interface to compute on | 19:12 |
*** sashav_ has joined #zope3-dev | 19:12 | |
srichter | generic methods in views are bad | 19:12 |
*** zeboul has left #zope3-dev | 19:12 | |
*** sashav has quit IRC | 19:12 | |
*** sashav_ is now known as sashav | 19:12 | |
srichter | just compute everything for the attributes right away | 19:12 |
*** sashav_ has joined #zope3-dev | 19:13 | |
*** sashav has quit IRC | 19:13 | |
*** sashav_ is now known as sashav | 19:13 | |
adamSummers | this is for things like sum() where I have containers which contain numeric data -- I don't want to be writing sum functions all over the place which do the same | 19:14 |
*** srichter sets mode: +b sashav!*@* | 19:14 | |
*** sashav was kicked by srichter (User terminated!) | 19:14 | |
*** sashav_ has joined #zope3-dev | 19:14 | |
benji | adamSummers, judicious use of properties can also help | 19:14 |
*** sashav_ is now known as sashav | 19:14 | |
adamSummers | how so? | 19:14 |
benji | sashav, is annoying | 19:14 |
*** sashav was kicked by srichter (User terminated!) | 19:14 | |
*** sashav_ has joined #zope3-dev | 19:14 | |
*** sashav_ is now known as sashav | 19:14 | |
*** sashav was kicked by srichter (User terminated!) | 19:14 | |
srichter | benji: I am trying to ban him | 19:15 |
benji | adamSummers, in some cases you can do your calculations in a property, but it'll look like simple attribute access in your ZPT | 19:15 |
benji | srichter, his client must be misconfigured | 19:16 |
*** sashav_ has joined #zope3-dev | 19:16 | |
*** sashav_ is now known as sashav | 19:16 | |
srichter | benji: worst is, I cannot effectively ban him | 19:16 |
*** srichter sets mode: +b *!*@*.024-54-6d6c6d2.cust.bredbandsbolaget.se | 19:17 | |
*** sashav was kicked by srichter (User terminated!) | 19:17 | |
ignas | srichter, is there a way to pass parameters to a viewlet manager ? | 19:17 |
ignas | let's say - an "event" object being rendered ... | 19:17 |
srichter | ignas: yes, see the zope.contentprovider documentation | 19:17 |
srichter | (viewlet managers are just content providers) | 19:18 |
*** Aiste has quit IRC | 19:30 | |
*** zagy has quit IRC | 19:42 | |
*** Aiste has joined #zope3-dev | 19:47 | |
ignas | how does one do directlyProvides in zcml ? | 19:54 |
*** romanofski is now known as rom|aw | 19:55 | |
philiKON | one doesn't | 19:56 |
ignas | philiKON, the example in zope.contentprovider does: | 19:59 |
ignas | >>> zope.interface.directlyProvides(IMessageText, | 19:59 |
ignas | ... interfaces.ITALNamespaceData) | 19:59 |
philiKON | ah, with interfaces there's a special trick | 19:59 |
philiKON | <interface interface="..." type="..." /> | 19:59 |
ignas | i did that, so probably my problems are in some other place now :) | 20:00 |
*** MrTopf has quit IRC | 20:00 | |
ignas | thanks | 20:00 |
*** zmi_junkie has joined #zope3-dev | 20:00 | |
*** andres_ has quit IRC | 20:04 | |
*** tarek has quit IRC | 20:10 | |
*** tarek has joined #zope3-dev | 20:11 | |
*** _anguenot has quit IRC | 20:21 | |
*** BjornT_ is now known as BjornT | 20:22 | |
*** faassen has quit IRC | 20:40 | |
*** clueck has left #zope3-dev | 20:45 | |
*** natea has quit IRC | 20:45 | |
*** replicant is now known as hazmat | 21:01 | |
*** agroszer has quit IRC | 21:11 | |
*** natea has joined #zope3-dev | 21:19 | |
*** mkerrin has quit IRC | 21:25 | |
*** bradb has quit IRC | 21:31 | |
*** efge has quit IRC | 21:32 | |
srichter | unban *!*@*.024-54-6d6c6d2.cust.bredbandsbolaget.se | 21:41 |
*** srichter sets mode: -b *!*@*.024-54-6d6c6d2.cust.bredbandsbolaget.se | 21:41 | |
*** srichter sets mode: -b sashav!*@* | 21:41 | |
*** srichter sets mode: -b _sashav!*@* | 21:41 | |
*** sashav has joined #zope3-dev | 21:43 | |
benji | sashav, have you regained your sanity? :) | 21:45 |
*** srichter has quit IRC | 21:45 | |
*** srichter has joined #zope3-dev | 21:45 | |
sashav | hehe yes :) had two irc clients killing eachother | 21:45 |
sashav | who won? :) | 21:45 |
*** ChanServ sets mode: +o srichter | 21:45 | |
benji | srichter | 21:46 |
sashav | hehe :) | 21:46 |
*** hazmat has quit IRC | 21:50 | |
*** ruda_porto has joined #zope3-dev | 22:00 | |
*** jinty has joined #zope3-dev | 22:02 | |
*** ignas has quit IRC | 22:09 | |
*** philiKON has quit IRC | 22:18 | |
*** jinty has quit IRC | 22:20 | |
*** drzoltron_ has joined #zope3-dev | 22:30 | |
*** niemeyer has quit IRC | 23:07 | |
*** niemeyer has joined #zope3-dev | 23:08 | |
*** drzoltron_ has quit IRC | 23:53 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!