IRC log of #zope3-dev for Tuesday, 2005-12-13

*** efrerich has joined #zope3-dev00:09
*** alga has quit IRC00:14
*** zbir has quit IRC00:21
*** efrerich has quit IRC00:26
J1msrichter, so, zope.app.server.mkzopeinstance creates twisted-based server configs.00:55
*** Theuni has quit IRC00:56
*** hazmat has joined #zope3-dev00:56
*** ChanServ sets mode: +o hazmat00:56
*** benji has quit IRC00:58
*** vlado has joined #zope3-dev01:09
*** drzoltron_ has joined #zope3-dev01:12
*** efge has joined #zope3-dev01:18
*** _anguenot has joined #zope3-dev01:18
*** zbir has joined #zope3-dev01:24
*** drzoltron_ has quit IRC01:26
*** vlado has quit IRC01:26
*** sashav has quit IRC01:33
*** jinty has joined #zope3-dev01:41
MJbenji: (3 hours late) thanks01:47
MJbut I do need something more philosophical01:47
philiKONMJ, tried any of the Appetizers?01:48
philiKONhttp://worldcookery.com/Appetizers01:48
*** MJ has quit IRC01:48
*** efge has quit IRC01:56
*** philiKON has quit IRC02:14
*** J1m has quit IRC02:15
*** andres_ has joined #zope3-dev02:18
*** andres has quit IRC02:18
*** hazmat is now known as replicant02:22
*** cellerdoor has joined #zope3-dev02:29
*** tiredbones has left #zope3-dev02:31
*** stub has joined #zope3-dev02:52
*** jinty has quit IRC02:59
*** jinty has joined #zope3-dev03:00
*** jinty has left #zope3-dev03:16
*** _anguenot has quit IRC03:35
*** _anguenot has joined #zope3-dev03:36
*** WebMaven has quit IRC03:58
*** _anguenot has quit IRC04:05
*** nie_away is now known as niemeyer04:08
*** WebMaven has joined #zope3-dev04:09
*** _anguenot has joined #zope3-dev04:13
*** natea has quit IRC04:15
*** replicant is now known as hazmat04:15
*** niemeyer has quit IRC04:30
*** natea has joined #zope3-dev04:51
*** tiredbones has joined #zope3-dev04:58
*** andres_ is now known as andres05:34
*** yota has quit IRC05:44
*** stub has quit IRC06:43
*** _anguenot has quit IRC07:17
*** _anguenot has joined #zope3-dev07:29
*** BjornT_ has joined #zope3-dev07:32
*** BjornT has quit IRC07:32
*** dobee has joined #zope3-dev07:41
*** __mac__ has quit IRC07:47
*** dobee has quit IRC08:05
*** zagy has quit IRC08:16
*** sashav has joined #zope3-dev08:17
*** dobee has joined #zope3-dev08:18
*** zagy has joined #zope3-dev08:18
*** zagy has joined #zope3-dev08:20
*** eins has joined #zope3-dev08:26
einshi08:27
*** newpers_ has quit IRC08:39
*** sashav has quit IRC09:09
*** BjornT_ has quit IRC09:33
*** BjornT has joined #zope3-dev09:33
*** xenru has quit IRC09:39
*** romanofski has joined #zope3-dev09:53
romanofskimoin09:53
*** agroszer has joined #zope3-dev09:58
*** Theuni has joined #zope3-dev10:07
*** stub has joined #zope3-dev10:30
*** sashav has joined #zope3-dev10:38
*** bradb has joined #zope3-dev10:46
*** jinty has joined #zope3-dev10:48
*** xenru has joined #zope3-dev10:51
*** andrew_m has quit IRC10:54
*** jinty has quit IRC11:05
*** hazmat is now known as replicant11:06
*** jinty has joined #zope3-dev11:07
*** andrew_m has joined #zope3-dev11:07
*** ignas has joined #zope3-dev11:09
*** MrTopf has joined #zope3-dev11:09
*** mgedmin has joined #zope3-dev11:16
*** jinty has quit IRC11:24
*** jinty has joined #zope3-dev11:26
*** elro has joined #zope3-dev11:38
*** jinty has quit IRC11:43
*** elro has quit IRC11:47
*** j-w has joined #zope3-dev12:28
*** elro has joined #zope3-dev12:34
*** dobee has quit IRC12:39
*** philiKON has joined #zope3-dev12:50
*** alga has joined #zope3-dev12:52
*** yota has joined #zope3-dev12:59
*** mkerrin has joined #zope3-dev13:04
*** _anguenot has quit IRC13:10
*** SteveA has quit IRC13:24
*** niemeyer has joined #zope3-dev13:29
*** J1m has joined #zope3-dev13:33
philiKONhey J1m13:35
J1mhey13:35
*** dobee has joined #zope3-dev13:47
*** efge has joined #zope3-dev14:00
*** SteveA has joined #zope3-dev14:07
*** andres has quit IRC14:22
*** andres_ has joined #zope3-dev14:22
*** andres has joined #zope3-dev14:22
*** srichter has quit IRC14:26
*** J1m has quit IRC14:30
*** adamSummers has joined #zope3-dev14:36
*** ignas has quit IRC14:38
*** zbir has quit IRC14:47
*** faassen has joined #zope3-dev14:52
*** xenru|clone has joined #zope3-dev15:02
*** srichter has joined #zope3-dev15:13
*** elro has quit IRC15:21
*** xenru has quit IRC15:31
*** _anguenot has joined #zope3-dev15:31
*** ChanServ sets mode: +o srichter15:34
*** ignas has joined #zope3-dev15:35
*** mgedmin has quit IRC15:35
*** elro has joined #zope3-dev15:35
*** SteveA has quit IRC15:37
sashavare 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
philiKONthey're global for a certain request15:38
philiKONso, within a request there's only one site, no matter where in the object space you are15:38
philiKONthat one site is (by default behaviour) the one closest to the object *traversed*15:39
philiKONso, e.g. your URL is http://somefolder/site/subsite/some_obj15:39
philiKONgetSite() will be subsite15:40
philiKONeven if you do something with somefolder/site/foobar_object within that request, getSite() is still subsite15:41
philiKONand component lookups will start there15:41
*** benji has joined #zope3-dev15:51
*** BjornT has quit IRC15:52
*** zbir has joined #zope3-dev15:55
*** BjornT has joined #zope3-dev15:57
*** SteveA has joined #zope3-dev16:16
*** dobee has quit IRC16:21
*** tonico_ has quit IRC16:32
*** tonico has joined #zope3-dev16:38
*** sashav has quit IRC16:51
*** tarek has quit IRC17:05
*** tarek has joined #zope3-dev17:06
andresI 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-dev17:16
*** jhauser has joined #zope3-dev17:17
SteveA /template/macros/name17:19
SteveAwithout the leading /17:19
SteveAfrom a page template17:19
andresI only get a key error.17:22
andresThat the confusing thing.17:23
andresHm. As long as i define the macro inside a use-macro, it doesnt work...17:26
SteveAinside a use-macro, i expect the markup is discarded17:26
SteveAafter all, you're using a macro there17:27
SteveAor do i mean fill-slot17:27
SteveA?17:27
*** VladDrac has joined #zope3-dev17:27
*** xenru|clone has quit IRC17:28
*** xenru has joined #zope3-dev17:28
*** BjornT has quit IRC17:30
*** jhauser_ has quit IRC17:31
andresSteveA, 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
SteveAyou have a template, a page of your site17:38
SteveAthis template uses the sitewide macros17:38
andresyes.17:38
SteveAin the template, you define a macro for that template17:38
SteveAbut, you define the macro within a use-macro element in that template17:38
SteveAbut not inside a fill-slot17:38
SteveAis that the situation?17:39
andresyes17:39
SteveAif so, the problem is this: all macros get processed before the content of the template is interpreted17:39
SteveAso, your new macro, defined in the template that is a page of your site, is removed right away, before it can be interpreted17:40
SteveAbecause all the text of your template that is inside a use-macro element, except that also inside a fill-slot, is removed17:40
*** stub has quit IRC17:41
andresSteveA, thanks.17:42
andresI will move it out of the use-macro or inside a fill-slot.17:43
*** clueck has joined #zope3-dev17:43
SteveAbug 351617:43
SteveAwrong channel17:44
*** J1m has joined #zope3-dev17:50
*** alga has quit IRC17:50
*** eins has quit IRC18:12
*** sashav has joined #zope3-dev18:16
*** j-w has quit IRC18:22
*** zagy has quit IRC18:31
*** zeboul has joined #zope3-dev18:34
*** elro has quit IRC18:48
*** zagy has joined #zope3-dev18:48
*** zagy has quit IRC18:49
*** strichter has joined #zope3-dev18:57
*** srichter has quit IRC18:58
*** strichter is now known as srichter18:58
*** ChanServ sets mode: +o srichter18:58
*** deo has joined #zope3-dev18:58
*** zagy has joined #zope3-dev19:00
adamSummersHi, 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-dev19:05
*** sashav has quit IRC19:05
*** sashav_ is now known as sashav19:05
*** sashav_ has joined #zope3-dev19:06
*** sashav has quit IRC19:06
*** sashav_ is now known as sashav19:06
*** sashav_ has joined #zope3-dev19:07
*** sashav has quit IRC19:07
*** sashav_ is now known as sashav19:07
romanofskiadamSummers: something like  myMethod?paremeter=foo19:07
romanofski?19:07
*** sashav_ has joined #zope3-dev19:07
*** sashav has quit IRC19:07
*** sashav_ is now known as sashav19:07
*** sashav_ has joined #zope3-dev19:08
*** sashav has quit IRC19:08
*** sashav_ is now known as sashav19:08
*** sashav_ has joined #zope3-dev19:09
*** sashav has quit IRC19:09
*** sashav_ is now known as sashav19:09
benjiadamSummers, you can do python:view.foo(bar)19:09
*** sashav_ has joined #zope3-dev19:09
*** sashav has quit IRC19:09
*** sashav_ is now known as sashav19:09
srichteradamSummers: benji is right, but this is a slippery slope19:10
*** sashav_ has joined #zope3-dev19:10
srichteryou really should do all of your computations in the view class19:10
*** sashav has quit IRC19:10
*** sashav_ is now known as sashav19:10
benjiI didn't say it was good :)19:10
*** sashav_ has joined #zope3-dev19:10
*** sashav has quit IRC19:10
*** sashav_ is now known as sashav19:10
*** sashav was kicked by srichter (User terminated!)19:11
*** sashav has joined #zope3-dev19:11
*** sashav_ has joined #zope3-dev19:11
*** sashav has quit IRC19:11
*** sashav_ is now known as sashav19:11
srichtersashav: I am baout to ban you ;-)19:11
adamSummersyeah :) 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 on19:12
*** sashav_ has joined #zope3-dev19:12
srichtergeneric methods in views are bad19:12
*** zeboul has left #zope3-dev19:12
*** sashav has quit IRC19:12
*** sashav_ is now known as sashav19:12
srichterjust compute everything for the attributes right away19:12
*** sashav_ has joined #zope3-dev19:13
*** sashav has quit IRC19:13
*** sashav_ is now known as sashav19:13
adamSummersthis 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 same19:14
*** srichter sets mode: +b sashav!*@*19:14
*** sashav was kicked by srichter (User terminated!)19:14
*** sashav_ has joined #zope3-dev19:14
benjiadamSummers, judicious use of properties can also help19:14
*** sashav_ is now known as sashav19:14
adamSummershow so?19:14
benjisashav, is annoying19:14
*** sashav was kicked by srichter (User terminated!)19:14
*** sashav_ has joined #zope3-dev19:14
*** sashav_ is now known as sashav19:14
*** sashav was kicked by srichter (User terminated!)19:14
srichterbenji: I am trying to ban him19:15
benjiadamSummers, in some cases you can do your calculations in a property, but it'll look like simple attribute access in your ZPT19:15
benjisrichter, his client must be misconfigured19:16
*** sashav_ has joined #zope3-dev19:16
*** sashav_ is now known as sashav19:16
srichterbenji: worst is, I cannot effectively ban him19:16
*** srichter sets mode: +b *!*@*.024-54-6d6c6d2.cust.bredbandsbolaget.se19:17
*** sashav was kicked by srichter (User terminated!)19:17
ignassrichter, is there a way to pass parameters to a viewlet manager ?19:17
ignaslet's say - an "event" object being rendered ...19:17
srichterignas: yes, see the zope.contentprovider documentation19:17
srichter(viewlet managers are just content providers)19:18
*** Aiste has quit IRC19:30
*** zagy has quit IRC19:42
*** Aiste has joined #zope3-dev19:47
ignashow does one do directlyProvides in zcml ?19:54
*** romanofski is now known as rom|aw19:55
philiKONone doesn't19:56
ignasphiliKON, the example in zope.contentprovider does:19:59
ignas  >>> zope.interface.directlyProvides(IMessageText,19:59
ignas  ...                                 interfaces.ITALNamespaceData)19:59
philiKONah, with interfaces there's a special trick19:59
philiKON<interface interface="..." type="..." />19:59
ignasi did that, so probably my problems are in some other place now :)20:00
*** MrTopf has quit IRC20:00
ignasthanks20:00
*** zmi_junkie has joined #zope3-dev20:00
*** andres_ has quit IRC20:04
*** tarek has quit IRC20:10
*** tarek has joined #zope3-dev20:11
*** _anguenot has quit IRC20:21
*** BjornT_ is now known as BjornT20:22
*** faassen has quit IRC20:40
*** clueck has left #zope3-dev20:45
*** natea has quit IRC20:45
*** replicant is now known as hazmat21:01
*** agroszer has quit IRC21:11
*** natea has joined #zope3-dev21:19
*** mkerrin has quit IRC21:25
*** bradb has quit IRC21:31
*** efge has quit IRC21:32
srichterunban *!*@*.024-54-6d6c6d2.cust.bredbandsbolaget.se21:41
*** srichter sets mode: -b *!*@*.024-54-6d6c6d2.cust.bredbandsbolaget.se21:41
*** srichter sets mode: -b sashav!*@*21:41
*** srichter sets mode: -b _sashav!*@*21:41
*** sashav has joined #zope3-dev21:43
benjisashav, have you regained your sanity?  :)21:45
*** srichter has quit IRC21:45
*** srichter has joined #zope3-dev21:45
sashavhehe yes :) had two irc clients killing eachother21:45
sashavwho won? :)21:45
*** ChanServ sets mode: +o srichter21:45
benjisrichter21:46
sashavhehe :)21:46
*** hazmat has quit IRC21:50
*** ruda_porto has joined #zope3-dev22:00
*** jinty has joined #zope3-dev22:02
*** ignas has quit IRC22:09
*** philiKON has quit IRC22:18
*** jinty has quit IRC22:20
*** drzoltron_ has joined #zope3-dev22:30
*** niemeyer has quit IRC23:07
*** niemeyer has joined #zope3-dev23:08
*** drzoltron_ has quit IRC23:53

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