IRC log of #zope3-dev for Wednesday, 2007-04-04

*** dobee has quit IRC00:00
*** BjornT_ has joined #zope3-dev00:01
srichterdoes anyone know how povbot generates the HTML version of the channel log?00:03
*** timte has quit IRC00:04
*** avoine has quit IRC00:08
*** meatballhat has left #zope3-dev00:13
*** faassen has joined #zope3-dev00:26
*** stub has quit IRC00:30
*** pcardune has joined #zope3-dev00:32
*** marcin_ant has joined #zope3-dev00:51
*** yota has quit IRC00:52
*** dobee has joined #zope3-dev00:53
*** reco has joined #zope3-dev01:01
*** dobee has quit IRC01:10
*** seonew has joined #zope3-dev01:18
*** jbb666 has quit IRC01:20
seonewin contents.pt the macros 'contents' is defined.  can this macro be accessed in a PT through @@standard_macros?01:23
seonewuse-macro="context/@@standard_macros/???"01:24
*** marcin_ant has quit IRC01:25
*** d2m has quit IRC01:27
*** seonew has quit IRC01:48
*** pcardune has quit IRC01:55
*** natea|naples has joined #zope3-dev01:57
*** bigkevmcd has quit IRC01:58
*** jbb666 has joined #zope3-dev02:04
*** jbb666 has quit IRC02:38
*** faassen has quit IRC02:41
*** jbb666 has joined #zope3-dev02:42
*** jodok|LA has joined #zope3-dev02:47
*** rocky has quit IRC03:03
*** natea|naples has quit IRC03:04
*** jodok|LA has quit IRC03:15
*** wrobel has quit IRC03:23
*** root has joined #zope3-dev03:26
*** root is now known as blackburnd03:32
*** blackburnd has quit IRC03:36
*** niemeyer has quit IRC03:37
*** niemeyer has joined #zope3-dev03:40
*** niemeyer has quit IRC03:42
*** b52lap has quit IRC03:42
*** jinty has quit IRC03:58
*** whit has quit IRC04:15
*** baijum has joined #zope3-dev05:54
*** jbb666 has quit IRC06:09
*** jbb666 has joined #zope3-dev06:11
*** stub has joined #zope3-dev06:22
*** pcardune has joined #zope3-dev06:48
*** pcardune has quit IRC07:08
*** jbb666 has quit IRC07:37
*** Bhaskar has joined #zope3-dev07:41
*** MiUlEr has joined #zope3-dev07:42
*** Rimal has joined #zope3-dev07:45
*** reco has quit IRC07:47
*** afd_ has joined #zope3-dev07:51
*** stub has quit IRC08:38
*** wrobel has joined #zope3-dev08:39
*** afd_ has quit IRC08:45
*** naro has joined #zope3-dev08:46
*** afd_ has joined #zope3-dev08:46
*** ghendi has joined #zope3-dev08:52
*** MiUlEr has quit IRC08:52
*** dobee has joined #zope3-dev08:59
*** me2 has joined #zope3-dev09:00
*** zagy has joined #zope3-dev09:03
*** jukart has joined #zope3-dev09:04
*** sorin has joined #zope3-dev09:05
*** sorin is now known as sorindregan09:05
*** pghoratiu has joined #zope3-dev09:14
*** timte has joined #zope3-dev09:26
*** d2m has joined #zope3-dev09:34
*** Aiste has joined #zope3-dev09:42
*** zagy_ has joined #zope3-dev09:44
*** zagy has quit IRC09:44
*** tarek has joined #zope3-dev09:49
*** zagy_ is now known as zagy09:50
*** natea|naples has joined #zope3-dev09:58
*** BjornT has quit IRC10:11
*** romanofski has joined #zope3-dev10:12
*** lurker has joined #zope3-dev10:15
*** BjornT_ is now known as BjornT10:20
*** yota has joined #zope3-dev10:36
*** wreutz has joined #zope3-dev10:39
*** harobed has joined #zope3-dev10:39
*** stub has joined #zope3-dev10:57
*** jfroche has quit IRC11:14
*** jinty has joined #zope3-dev11:14
*** jfroche has joined #zope3-dev11:16
*** benji has quit IRC11:18
*** lzdych has joined #zope3-dev11:28
*** stub has quit IRC11:54
*** projekt01 has joined #zope3-dev12:00
*** Henri__ has joined #zope3-dev12:11
*** softdevr has joined #zope3-dev12:15
*** b52laptop has joined #zope3-dev12:27
*** Henri__ has left #zope3-dev12:27
baijumAnyone successfuly used zope.paste with Apache mod_python ?12:38
philiKONno, but i want to try :)12:39
*** me2 has quit IRC12:39
*** Rimal has quit IRC12:39
*** Bhaskar has quit IRC12:39
baijumI was trying to do as described here : http://pylonshq.com/project/pylonshq/wiki/ModPython12:40
baijumbut not yet succeded ...12:40
* baijum waiting for philiKON 's tutorial on zope.paste + mod_python :)12:43
philiKON:)12:43
timtephiliKON: didn't you write a soc proposal on implementing a mod_wsgi or something like that? does this make that unnecessary?13:07
philiKONwell, i did improve zope.paste slightly at the bbq sprint and last week to work in that direction13:08
philiKONthis is nothing that i would use in production yet13:08
timtefirst zserver, then twisted and now some wsgi server, lots of efforts on the servers13:11
*** Aiste has quit IRC13:12
timtewasn't the wsgi server available when the twisted server was implemented? or maybe it's not nearly as performant13:12
philiKONwsgi is an API spec13:13
philiKONboth zope.server and twisted are hooked up using wsgi13:13
philiKONfor the http part that is13:13
philiKONftp still needs to hooked up differently13:14
philiKONalso, there's unnecessary code duplication13:14
philiKONit just needs to evolve13:14
philiKONstuff like paste.deploy lets us get rid of a lot of the code duplication13:14
philiKONi plan to blog on this soonish :)13:14
*** mkerrin has joined #zope3-dev13:14
timtebut paste includes a wsgi server that will be run if you have Paste.Main in zope.conf, doesn't it?  that's the wsgi server I meant13:15
philiKONno13:15
philiKONthat Paste.Main thing is a way to hook some wsgi middlewares between the zope wsgi app and whichever wsgi server *zope uses*, using paste.deploy13:16
philiKONit's a big ugly actually13:16
philiKONpaste.script comes with some simple http server, yeah13:16
philiKONso you can go paster serve foo.ini13:16
timtebut it's just for development?13:17
philiKONthat's my impression13:17
philiKONi need to find out what django and TG use for production13:17
timteI don't think django has something integrated. You will configure fastcgi + apache + other stuff for yourself.13:18
philiKONok, so it's fcgi13:18
baijumphiliKON, I think you can look into Pylons also, their deployment looks good (I think Ian Bicking is behind it)13:23
philiKONyup, ian does a lot with pylons13:24
baijumbtw, I managed to run Zope 3 using zope.paste and mod_python, http://zope3.pastey.net/10277 But it's very very slow ...13:26
* baijum is awasy13:26
philiKONbaijum: this might be due to the fact that mod_python loads a new python interpreter for each new process13:27
philiKONhence starting zope every time13:27
*** Aiste has joined #zope3-dev13:36
*** ignas has joined #zope3-dev13:45
*** philiKON has quit IRC13:47
*** ktwilight has quit IRC13:49
*** ktwilight has joined #zope3-dev13:54
*** ktwilight has joined #zope3-dev13:55
*** afd_ has quit IRC14:03
*** pghoratiu has left #zope3-dev14:05
*** dlk has joined #zope3-dev14:15
*** stub has joined #zope3-dev14:31
*** dlk has left #zope3-dev14:32
* baijum is back14:32
*** afd_ has joined #zope3-dev14:33
softdevrhi, contents.pt has the macro 'contents' defined within it - can I use that macro from my own page template?14:36
*** salfield has joined #zope3-dev14:36
lurkeryes14:37
softdevri'm accessing the view as 'context/@@contents.html/' but can't find the 'contents' macro within it14:37
lurkermacros/contents14:37
softdevrthat doesn't work for me14:37
lurkerwell, @@contents.html is the view class, innit?14:38
softdevryeah14:39
*** philiKON has joined #zope3-dev14:39
softdevrI've tried context/@@contents.html/macros/contents14:39
lurkeryou need the pt14:39
softdevrbut get a traversal error on 'macros'14:40
softdevrif I just drop in 'context/@@contents.html' that works14:40
softdevrI just can't get access to the specific macro within the PT that I want14:41
afd_softdevr: you can do something like this in your view class14:43
afd_macro_page = ViewPageTemplate('contents.pt')14:43
afd_and inside your template you'll have:14:44
afd_tal:define="macros_page view/macro_page"14:44
afd_and then metal:use-macro="macros_page/macros/content"14:44
afd_I guess something like this will work, haven't tried though14:44
softdevrright, I'll have a go, thanks14:45
softdevrgoing back to the original attempt, it looks like macros isn't defined for @@contents.html, either that or I can't access it14:46
lurker@@contents.html is *not* the template14:46
lurkerbut the view14:46
softdevrIn the examples I've seen templates are accessed through the view14:49
afd_softdevr: which examples?14:49
softdevrWeitershauen's book14:50
*** jfroche_ has joined #zope3-dev14:56
softdevrwhat syntax would be used to access the template directly?14:57
*** jfroche has quit IRC15:04
softdevrlurker: can I point to the pt from the path expression or does it need to be done as afd_ suggested?15:05
*** dlk has joined #zope3-dev15:09
*** dlk has quit IRC15:10
*** niemeyer has joined #zope3-dev15:24
*** b52lap has joined #zope3-dev15:28
*** pghoratiu has joined #zope3-dev15:39
*** MarkB1 has joined #zope3-dev15:43
*** MarkB1 has left #zope3-dev15:43
*** b52laptop has quit IRC15:44
*** MiUlEr has joined #zope3-dev15:48
*** afd_ has quit IRC15:49
*** philiKON has quit IRC15:49
*** benji has joined #zope3-dev15:53
*** natea|naples has quit IRC15:53
*** twcook has left #zope3-dev15:54
*** MiUlEr has quit IRC15:59
*** ofer_ has joined #zope3-dev15:59
*** hazmat has joined #zope3-dev16:07
*** ChanServ sets mode: +o hazmat16:07
*** afd_ has joined #zope3-dev16:09
*** hazmat has quit IRC16:22
*** philiKON has joined #zope3-dev16:24
*** avoine has joined #zope3-dev16:26
*** philiKON has quit IRC16:27
*** lzdych has quit IRC16:28
*** salfield has quit IRC16:28
*** salfield_ has joined #zope3-dev16:28
*** philiKON has joined #zope3-dev16:32
*** tarek_ has joined #zope3-dev16:32
*** pghoratiu has left #zope3-dev16:36
*** ghendi has quit IRC16:37
* baijum just looked at zope.paste and mod_python again16:39
baijumNow I added 'PythonInterpreter main_interpreter' in httpd.conf16:39
*** whit has joined #zope3-dev16:40
*** philiKON has quit IRC16:40
projekt01dobbe, ayt?16:40
baijumI can access the page for first time..when access again it's shows 500 status and the log is here: http://zope3.pastey.net/1029416:41
*** tarek has quit IRC16:42
baijumAny idea what this function does ? File "/mbaiju/wa/Zope3trunk/src/ZODB/lock_file.py", line 42, in lock_file\n    fcntl.flock(file.fileno(), _flags)16:42
*** mgedmin has joined #zope3-dev16:43
projekt01dobee, should we define own i18n domains for namespace packages in z3c.schema16:45
baijumWhen I just commented that line, everything woked fine :)16:45
dobeeprojekt01: yes, z3c.i18n is for other purposes16:46
dobeevocabularies etc16:46
projekt01dobee, Ok, will do that16:47
* baijum so running Zope 3 using zope.paste and Apache mod_python is just few steps: http://zope3.pastey.net/1027716:49
* baijum now I have to figure out src/ZODB/lock_file.py, line 4216:49
*** hazmat has joined #zope3-dev17:04
*** ChanServ sets mode: +o hazmat17:04
afd_softdevr: look in zope.formlib configure.zcml, you'll see there the view/template namespace adapter17:07
*** stub has quit IRC17:15
*** philiKON has joined #zope3-dev17:17
baijumphiliKON, ping ?17:20
philiKONpong17:20
baijumphiliKON, I was looking at zope.paste again17:20
philiKONcool17:20
philiKONwhat's up?17:20
baijumWhen I can access the page for first time is showed without any problem..when access again it's shows 500 status and the log is here: http://zope3.pastey.net/1029417:21
philiKONyes, it's what i told you17:21
philiKONit opens a new interpreter17:21
philiKONhence it will load a new zope application17:21
baijumNow I added 'PythonInterpreter main_interpreter' in httpd.conf17:21
philiKONwhich won't work17:21
philiKONbecause of zodb lock files17:21
philiKONah, ok17:22
philiKONthat might work17:22
baijumbut still the problem remains17:22
philiKONwell, reduce the number of processes to 117:22
baijumphiliKON, see the log..why zodb file is opened for each request ?17:23
philiKONsigh17:23
philiKONi tried to explain this above17:23
philiKONbecause it opens a new interpreter for new requests17:23
philiKONit's the way apache prefork works17:23
baijumah. ok17:23
baijumso, what's the solution ?17:24
philiKONthere are several solutions17:24
philiKONi already told you one17:24
philiKONreduce the number of processes to 117:25
philiKONan alternative is to use zeo17:25
baijumbut 'reducing the number of processes to 1' doesn't seem to work ...17:25
philiKONhow are you doing it?17:26
baijumsee this: http://zope3.pastey.net/1027717:26
baijummy steps are given there17:26
philiKONyes, but i see nowhere where you tell apache to only fork 1 process17:28
baijumI added it later : PythonInterpreter main_interpreter17:28
baijumbelow PythonHandler17:29
philiKONthat's not about processes17:29
philiKONthat just tells it which interpreter *definition* to use17:29
baijumah17:30
baijumhow to do it ?17:30
philiKONif you're using mpm_prefork, MaxSpareServers 1017:31
philiKONjust read the apache docs17:31
*** whit has quit IRC17:31
baijumok17:31
baijumphiliKON, thanks ! I will look into this later17:32
* baijum leaving17:32
*** baijum has quit IRC17:33
*** srichter has quit IRC17:37
*** srichter has joined #zope3-dev17:37
*** sorindregan has quit IRC17:40
*** twcook has joined #zope3-dev17:42
*** jbb666 has joined #zope3-dev17:49
*** ofer_ has quit IRC17:50
*** jfroche_ has quit IRC17:50
*** jfroche_ has joined #zope3-dev17:51
*** whitmo has joined #zope3-dev17:51
*** lurker has quit IRC18:00
*** whitmo has quit IRC18:08
mgedminwaah, python's profiling tools make me cry18:14
timteoh there is a mod_wsgi18:15
timtephiliKON: did you try mod_wsgi?18:16
philiKONno18:16
*** wreutz has quit IRC18:18
jbb666i didnt think it was released yet?18:21
*** jfroche_ has quit IRC18:22
*** whit has joined #zope3-dev18:24
jbb666oh it is now....18:24
*** jrc2e has left #zope3-dev18:28
*** tarek__ has joined #zope3-dev18:31
*** tarek has joined #zope3-dev18:36
*** tarek__ has quit IRC18:40
*** ignas has quit IRC18:43
*** whit has quit IRC18:44
*** tarek_ has quit IRC18:45
*** timte has quit IRC18:56
*** jukart has quit IRC18:56
*** ChanServ sets mode: +o srichter19:14
*** harobed has quit IRC19:15
*** hazmat has quit IRC19:15
*** rocky has joined #zope3-dev19:16
*** hazmat has joined #zope3-dev19:18
*** ChanServ sets mode: +o hazmat19:18
*** romanofski has quit IRC19:18
*** timte has joined #zope3-dev19:19
*** faassen has joined #zope3-dev19:20
*** hazmat has quit IRC19:21
*** hazmat has joined #zope3-dev19:22
*** ChanServ sets mode: +o hazmat19:22
*** lurker has joined #zope3-dev19:22
*** jkakar has quit IRC19:22
*** jkakar has joined #zope3-dev19:28
*** wreutz has joined #zope3-dev19:29
*** softdevr has quit IRC19:35
*** projekt01 has quit IRC19:51
*** benji has quit IRC19:53
philiKONanybody going to europython and willing to share a room?19:56
*** natea|naples has joined #zope3-dev20:07
*** dobee has quit IRC20:09
*** tarek has left #zope3-dev20:15
*** wreutz_ has joined #zope3-dev20:15
* pbugni wishes he had the funds for that20:21
*** jukart has joined #zope3-dev20:23
*** tarek has joined #zope3-dev20:23
*** wreutz has quit IRC20:23
*** whit has joined #zope3-dev20:27
*** tonico has quit IRC20:40
*** tonico has joined #zope3-dev20:41
*** benji has joined #zope3-dev20:51
*** dobee has joined #zope3-dev20:54
*** mgedmin has quit IRC21:05
*** pbugni is now known as pbugni|afk21:16
*** harobed has joined #zope3-dev21:19
*** jinty has quit IRC21:24
*** jbb666 has quit IRC21:29
*** wreutz_ has quit IRC21:30
*** ksmith99 has joined #zope3-dev21:30
*** naro has quit IRC21:32
*** bigkevmcd has joined #zope3-dev21:34
*** jukart has quit IRC21:42
*** natea|naples is now known as natea|away21:43
*** jkakar has quit IRC21:44
*** jkakar has joined #zope3-dev21:44
*** romanofski has joined #zope3-dev21:47
*** rocky has quit IRC21:49
*** dunny has joined #zope3-dev21:57
*** jukart_ has joined #zope3-dev22:06
*** tom__ has joined #zope3-dev22:22
*** salfield_ has quit IRC22:29
*** tom__ has quit IRC22:38
*** tarek_ has joined #zope3-dev22:40
*** salfield has joined #zope3-dev22:40
*** tarek has quit IRC22:49
*** jukart_ has quit IRC22:54
*** jukart has joined #zope3-dev23:06
*** jbb666 has joined #zope3-dev23:06
*** jukart has quit IRC23:15
*** salfield_ has joined #zope3-dev23:15
*** jrc2e has joined #zope3-dev23:15
*** jrc2e has left #zope3-dev23:17
*** dobee has quit IRC23:24
*** mkerrin has quit IRC23:25
*** romanofski has quit IRC23:26
*** tarek__ has joined #zope3-dev23:26
*** timte has quit IRC23:27
*** dobee has joined #zope3-dev23:28
*** salfield has quit IRC23:31
*** natea|away_ has joined #zope3-dev23:36
*** natea|away has quit IRC23:36
*** natea|away_ has quit IRC23:39
*** natea|away has joined #zope3-dev23:39
*** tarek__ has quit IRC23:40
*** tarek has joined #zope3-dev23:40
*** tarek_ has quit IRC23:45
*** natea|away is now known as natea23:47
*** jfroche has joined #zope3-dev23:55
*** Jell-O-Fishi has joined #zope3-dev23:55
*** avoine has quit IRC23:56
*** jfroche has quit IRC23:59

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