[Zope] select age(birthday) from web_users
Hi, Query in the topic from postgresql database returns from psql line, years, months and days. From testing same query in zope i get only days, is there a way to force it to return as psql does return it? As in: brain_dev=# select age(birthday) from web_users; age 13 years 8 mons 8 days (записей: 6) brain_dev=# thanks Pavel ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] variable propagation
В Пнд, 24/07/2006 в 15:00 -0700, David H пишет > Pavel, > > You question is a bit vague but ... > > Make your index_html a python script. And then stuff your REQUEST with > info you want > > Then just call the Page Template ... > > request.set('formvar1', somevalue) > return context.myPageTemplate(context.request) > > Of course of you have submit with an action="." and method="post". > > Then you can intercept all calls using index_html, do what you need to > do and *then* render the next form. here is description: root/ index_html index_tmpl <-- invokes here.content_html root/some/web/page index_html <-- overriding root one, calls -- context.index_tmpl(some parameters=some parameters). content_html <-- gets called from index_tmpl So i want parameters that are presented to index_html be presented to context_html just like they would be presented to index_html. So i would be able to call context_html from outside as well from the inside. Ie should work in both cases. I thought thats the way zope's code reuse works. Thanks Pavel ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] variable propagation
Hi, I would like to ask how to propagate variables from initial index_html call to deeper levels. Say I have index_html python script, I invoke it then I would like to feed some data to "generic" template, that will in turn will invoke template in the same directory that will do nice layout of my results. Generic template lies below all other objects, in directory tree, in the root. When I execute the command chain, variables are not passed and options is lost on one layer of zpt calls. Is there way to rectify that. Thanks Pavel ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] WebDAV BUGS and access to /tmp directory
Florent Guillaume wrote: Pavel Zaitsev <[EMAIL PROTECTED]> wrote: I am back trying to figure out why my zope crashes on Please define "crashes". Well zope is trying to create file in /tmp , process gets 'state' -> 'U' which is not defined in the manual, maybe Unresponsive, like 'D' sign? then after while whole system locks up, it gets killed by overlooking parent, after which things sort of go back to normal.(pid of process gotten by 'ps aux|grep zope' changes.) gdb does not seem to be able to dump a backtrace of the process either, it says that process has quit while evaluating injected statement i have no idea what is going on. pavel. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] WebDAV BUGS and access to /tmp directory
Hi, I am back trying to figure out why my zope crashes on open('/tmp/tmp4fd4foo') kind of opens, which seem to originated from webdav code. Question to someone who is expert in webdav/*.py code... I just would like to know so I can further my investigation into the bug/malfuction of zope on OS X. regards, Pavel ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Mac OS X and zope (continued)
Oops looks like i have made mistake to use select instead of thread command... post more log stuff later. pavel ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )