Re: [Zope] Script execute with every request

2006-07-24 Thread Tino Wildenhain
Joshua Burvill wrote: Hi, I’d like to log certain parts of each request into a database table for every request to provide an audit trail. I thought of inserting a dtml-call xxx into the standard_html_header, but when there is a RESPONSE.redirect, it will not be the original request

Re: [Zope] Catalog aware

2006-07-24 Thread Garito
Lennart Regebro escribió: On 7/19/06, Garito [EMAIL PROTECTED] wrote: Look at the CatalogAware mixin class. But with this class I could create a new class of PT Catalog aware, isn't it? Yup. I would like to convert a normal PT is this possible?' Yes, with monkeypatches, but really, you

Re: [Zope] Script execute with every request

2006-07-24 Thread Jonathan
You have notmentioned what your use case is or what data you want to store, but another possible option would be to have every url call the same script; that script then logs/stores the desired information and then passes control (redirect or directcall) to the target routine (information

[Zope] Re: Announcing the release of Zope version 2.8.8

2006-07-24 Thread Chris Withers
Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maciej Wiśniowski wrote: Zope 2.8.8 Released Is there a Windows version? Nope -- I can't build one. Chris Withers knows how, I think. I'm afraid I only do Zope 2.9 + as I don't have Visual Studio 6... Sidnei da Silva might

RE: [Zope] Script execute with every request

2006-07-24 Thread Dieter Maurer
Joshua Burvill wrote at 2006-7-24 14:01 +1000: ... Basically I just want to do an insert into a database of some stuff from each request. Sounds like work for a SiteAccess AccessRule... -- Dieter ___ Zope maillist - Zope@zope.org

[Zope] DB in Zope

2006-07-24 Thread Alan
Hi! I need a very simple DB in Zope, a table with 5 columns, less than 100 entries, to write, read and update, nothing else. Is Gadfly a serious option? Do l loose my database if Zope is restarted? Which other option, easy to use? A tutorial? Many thinks in advance. Cheers, Alan -- Alan

Re: [Zope] DB in Zope

2006-07-24 Thread Alexis Roda
En/na Alan ha escrit: Hi! I need a very simple DB in Zope, a table with 5 columns, less than 100 entries, to write, read and update, nothing else. Is Gadfly a serious option? Do l loose my database if Zope is restarted? Which other option, easy to use? A tutorial? Take a look at

[Zope] Mark Pilgrim's Feed Parser in Zope

2006-07-24 Thread kjzz.webmaster
I'm trying to move our sites from Zope 2.5.1 to Zope 2.8.1-final and I'm receiving an error with this script: http://www.zope.org/Members/johntynan/feedparser/ In particular, I receive the following error, when using the attached page template nprnews.pt: Unauthorized: You are not allowed

[Zope] Mark Pilgrim's Feed Parser in Zope

2006-07-24 Thread kjzz.webmaster
I'm trying to move our sites from Zope 2.5.1 to Zope 2.8.1-final and I'm receiving an error with this script: http://www.zope.org/Members/johntynan/feedparser/ In particular, I receive the following error, when using the attached page template nprnews.pt: Unauthorized: You are not allowed

[Zope] variable propagation

2006-07-24 Thread Pavel Zaitsev
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

Re: [Zope] Re: accessing object from a list constructed in __init__.py

2006-07-24 Thread kevin7kal
Thank you everybody for your input and help with this. What was explained to me and what I missed when reading about acquisition is that _getattr_ is used by acquisition to return attributes in context. If your objects are in a list, _getattr_ is not available, but _getitem_ is used to return

Re: [Zope] variable propagation

2006-07-24 Thread David H
Pavel Zaitsev wrote: 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

Re: [Zope] variable propagation

2006-07-24 Thread Pavel Zaitsev
В Пнд, 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

Re: [Zope] variable propagation

2006-07-24 Thread David H
Pavel Zaitsev wrote: В Пнд, 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

RE: [Zope] Script execute with every request

2006-07-24 Thread Joshua Burvill
Say no more, that’s exactly what I was looking for. I just (zope 2.6.4) selected Set access Rule in the zmi and click Add, enter the name of the script I want to execute and that’s it. I knew there had to be a simple way. Thanks a lot Dieter, Josh -Original Message- From: Dieter Maurer