[Zope] newbie:cookie expiry problem

2005-04-12 Thread prabuddha ray
This may be very silly plz help I gave this cookie expiry statement in a python script: RESPONSE.expireCookie('login') return context.REQUEST.RESPONSE.redirect('index_html') but when i checked the cookie values in request page, it wasn't removed. the last redirect still worked. when i put an i

Re: [Zope] too big data.fs

2005-04-12 Thread Andreas Jung
--On Dienstag, 12. April 2005 22:06 Uhr -0400 Jianping Zhu <[EMAIL PROTECTED]> wrote: I have redhat 9.0 with zope on it. the size data.fs is 3.2 GB. my question is 3.2 GB is nothing I would call *large* or *big*. 1. how can find to size of folder and file inside data.fs, So i can ask the idiot

[Zope] too big data.fs

2005-04-12 Thread Jianping Zhu
I have redhat 9.0 with zope on it. the size data.fs is 3.2 GB. my question is 1. how can find to size of folder and file inside data.fs, So i can ask the idiot who upload large file to zope to delete it. 2, Recentlt i often get troulble of losing network connection of my redhat server, is there a

Re: [Zope] ZEO and Sessions.

2005-04-12 Thread Chris McDonough
On Tue, 2005-04-12 at 20:01, Richard Jones wrote: > On Wed, 13 Apr 2005 09:44 am, you wrote: > > On Tue, 2005-04-12 at 19:08, Richard Jones wrote: > > > Is there a viable non-versioned alternative to the filestorage approach? > > > My sessions database grows ridiculously quickly. I'm also fairly su

[Zope] Re: ZEO and Sessions.

2005-04-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard Jones wrote: > On Wed, 13 Apr 2005 09:44 am, Chris McDonough wrote: >>>Probably not hard. You could write a "session data manager" >>>implementation that used a relational database. The interface for those >>>things is in Products/Sessions/S

Re: [Zope] ZEO and Sessions.

2005-04-12 Thread Chris McDonough
On Tue, 2005-04-12 at 19:08, Richard Jones wrote: > Is there a viable non-versioned alternative to the filestorage approach? My > sessions database grows ridiculously quickly. I'm also fairly sure it's > causing problems when my site gets ~5 requests a second (yes, that low) You could use tempor

Re: [Zope] ZEO and Sessions.

2005-04-12 Thread Richard Jones
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 13 Apr 2005 09:44 am, you wrote: > On Tue, 2005-04-12 at 19:08, Richard Jones wrote: > > Is there a viable non-versioned alternative to the filestorage approach? > > My sessions database grows ridiculously quickly. I'm also fairly sure > > it's

Re: [Zope] METALError:incompatible version error when try to do use-macro and python script

2005-04-12 Thread Andrew Milton
+---[ Gautam Saha ]-- | Hi: | | I am getting a METALError when I try to do use-macro in ZPT. | | Here is my code in main_template.pt | . | .. [snip] | | | | | [snip] | I am basically returning 'here/subtab/macros/tools_sub' from the |

[Zope] METALError:incompatible version error when try to do use-macro and python script

2005-04-12 Thread Gautam Saha
Hi: I am getting a METALError when I try to do use-macro in ZPT. Here is my code in main_template.pt . .. The first use-macro works (as I put the full macro path), But the 2nd call does not work and giving the error. I am basically returning 'here/subta

Re: [Zope] ZEO and Sessions.

2005-04-12 Thread Richard Jones
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 13 Apr 2005 05:47 am, Fernando Lujan wrote: > Isn't there a easy way to do this? I was wondering if I couldn just > createa new filestorage entry in the zeo.conf, and add some lines in my > zope.conf file. Is there a viable non-versioned alter

Re: [Zope] Q: Embedding documentation in Page Templates?

2005-04-12 Thread Paul Winkler
On Tue, Apr 12, 2005 at 04:49:26PM -0500, J Cameron Cooper wrote: > Stephen Nesbitt wrote: > >All: > > > >Does anyone know of a way of embedding documentation directly into a page > >template without using ? In other words is there some construct > >which tells the rendering engine to simply igno

Re: [Zope] ZEO and Sessions.

2005-04-12 Thread Chris McDonough
On Tue, 2005-04-12 at 18:23, Fernando Lujan wrote: > Please, take a look in what I've done! Is that right? It works pretty > fine here! :-) If it works for you, it's right. ;-) > > If this is right, are there a desire for a how-to? I think I can write > one, once it's pretty simple as you said

Re: [Zope] ZEO and Sessions.

2005-04-12 Thread Fernando Lujan
Chris McDonough wrote: Yes. All the information in that article is geared for Zope 2.5 which had no facility for using mounted databases from a config file... everything up until "At this time you should be able to navigate to the /session_storage folder..." in that article can be done by reconfigu

Re: [Zope] Q: Embedding documentation in Page Templates?

2005-04-12 Thread J Cameron Cooper
Stephen Nesbitt wrote: All: Does anyone know of a way of embedding documentation directly into a page template without using ? In other words is there some construct which tells the rendering engine to simply ignore some content.? I usually use comment in here There are other constructs, bu

[Zope] Q: Embedding documentation in Page Templates?

2005-04-12 Thread Stephen Nesbitt
All: Does anyone know of a way of embedding documentation directly into a page template without using ? In other words is there some construct which tells the rendering engine to simply ignore some content.? Thanks, -steve -- Stephen Nesbitt Senior Configuration Management Engineer The Coba

Re: [Zope] ZEO and Sessions.

2005-04-12 Thread Chris McDonough
Yes. All the information in that article is geared for Zope 2.5 which had no facility for using mounted databases from a config file... everything up until "At this time you should be able to navigate to the /session_storage folder..." in that article can be done by reconfiguring ZEO using zeo.con

[Zope] ZEO and Sessions.

2005-04-12 Thread Fernando Lujan
Hi again people, I've just read the article about SESSIONS in the upcoming ZOPE Book 2.7. Here, we have ZEO running, and I need to use SESSION and ZEO. I read the article http://www.zope.org/Members/randy/ZEO-Sessions. Isn't there a easy way to do this? I was wondering if I couldn just createa n

Re: [Zope] Session without cookies.

2005-04-12 Thread Fernando Lujan
Jens Vagelpohl wrote: On Apr 12, 2005, at 1:02, Fernando Lujan wrote: The URL "test1" in the form tag is obviously *not* generated by Zope. You put it in there manually. So it cannot work as you expect. Hum, I see. Just web pages that aren't dinamically generated by Zope. For instance, other DTM

Re: [Zope] Security on email.Message.Message

2005-04-12 Thread Tim Hicks
Tim Hicks said: > Andreas Jung said: > >>> Module RestrictedPython.Guards, line 96, in handler >>> TypeError: object does not support item or slice assignment >>> >>> Does anyone have any idea what the problem is? > > Digging further... > > I made the TypeError a little more revealing on line

Re: [Zope] developer docs

2005-04-12 Thread Milos Prudek
Rather, I would look at the venerable old Boring and Minimal example products. (But be aware that Boring (last time I looked) Oh yes, I will look at those. Thanks for the supporting documentation in your post. -- Milos Prudek http://www.spoxdesign.com - your web usability testing __

Re: [Zope] developer docs

2005-04-12 Thread Paul Winkler
On Tue, Apr 12, 2005 at 04:37:58PM +0200, Milos Prudek wrote: > I do not feel I can contribute to ZDG at this time. Is there any other > resource you can recommend, please? ZDG is really it. It could use some cleanup to fold in the comments and errata that are posted to the online version. For n

Re: [Zope] Security on email.Message.Message

2005-04-12 Thread Tim Hicks
Andreas Jung said: >> Module RestrictedPython.Guards, line 96, in handler >> TypeError: object does not support item or slice assignment >> >> Does anyone have any idea what the problem is? Digging further... I made the TypeError a little more revealing on line 96 of RestrictedPython/Guard

Re: [Zope] developer docs

2005-04-12 Thread Stephan Richter
On Tuesday 12 April 2005 11:47, Milos Prudek wrote: > > Yes. In Zope X3.0 you can only develop filesystem-based Python packages, > > so in > > Well, then your book debuted at number 1 on my book shopping list. Cool. :-) Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts P

Re: [Zope] developer docs

2005-04-12 Thread Milos Prudek
Yes. In Zope X3.0 you can only develop filesystem-based Python packages, so in Well, then your book debuted at number 1 on my book shopping list. -- Milos Prudek http://www.spoxdesign.com - your web usability testing ___ Zope maillist - Zope@zope.org h

Re: [Zope] Security on email.Message.Message

2005-04-12 Thread Tim Hicks
Andreas Jung said: >> Module RestrictedPython.Guards, line 96, in handler >> TypeError: object does not support item or slice assignment >> >> Does anyone have any idea what the problem is? > > Move your code into an external method which is less painful than dealing > with module security i

Re: [Zope] Security on email.Message.Message

2005-04-12 Thread Andreas Jung
--On Dienstag, 12. April 2005 16:18 Uhr +0100 Tim Hicks <[EMAIL PROTECTED]> wrote: Hi, I'm trying to import and use the email.Message.Message class in a zope 'Script (Python)'. I have the following security assertions in my product code:: from AccessControl import allow_module, allow_class f

[Zope] Security on email.Message.Message

2005-04-12 Thread Tim Hicks
Hi, I'm trying to import and use the email.Message.Message class in a zope 'Script (Python)'. I have the following security assertions in my product code:: from AccessControl import allow_module, allow_class from AccessControl import ModuleSecurityInfo ModuleSecurityInfo('email.Message').

Re: [Zope] developer docs

2005-04-12 Thread Milos Prudek
I don't know about best documents! There is a minimal Product How To: http://www.zope.org/Members/maxm/HowTo/minimal_01/ That's exactly what I was looking for. Thanks! -- Milos Prudek http://www.spoxdesign.com - your web usability testing ___ Zope maillis

Re: [Zope] developer docs

2005-04-12 Thread Stephan Richter
On Tuesday 12 April 2005 11:01, Milos Prudek wrote: > > I'll note that we *try* to answer questions on the zope3-users mailing > > list in a timely fashion. If noone response to your question there, it is > > usually because it is a harder problem. ;-);-) > > I found out that you wrote a book about

Re: [Zope] developer docs

2005-04-12 Thread Milos Prudek
I'll note that we *try* to answer questions on the zope3-users mailing list in a timely fashion. If noone response to your question there, it is usually because it is a harder problem. ;-) I found out that you wrote a book about Zope 3 that gather raving reviews on Amazon. Does the book contain

Re: [Zope] developer docs

2005-04-12 Thread Milos Prudek
> It is your good right to expect documentation but documentation has to > be written I've written about 50 pages of rather detailed documentation for Zope Page Templates and it is available online at www.root.cz. But not in English. So I know, understand and follow the concept you mentioned. I

Re: [Zope] developer docs

2005-04-12 Thread Stephan Richter
On Tuesday 12 April 2005 09:47, Cliff Ford wrote: > Faced with the same problem (conversion of ZClasses to file system > Products), I decided to have a look at Zope3X. There are a couple of > good new books with worked examples - but as soon as I stepped off the > guided path I found myself struggl

Re: [Zope] developer docs

2005-04-12 Thread Cliff Ford
Milos Prudek wrote: What are the best documents for creating Zope products? I know Zope Book very well and I write TTW scripts. I need to convert a bunch of ZClasses into Products. ZDG seems very outdated. Should I start with mxmEasyProduct and then read ZDG? Is there a book available in booksho

Re: [Zope] developer docs

2005-04-12 Thread Andreas Jung
--On Dienstag, 12. April 2005 15:02 Uhr +0200 Milos Prudek <[EMAIL PROTECTED]> wrote: > Why is it out-dated? Most things are still valid. If not, point them out > to be > corrected or even better: help producing a never version of the ZDG. Hello Andreas, This kind of response is so common that

Re: [Zope] developer docs

2005-04-12 Thread Milos Prudek
> Why is it out-dated? Most things are still valid. If not, point them out > to be > corrected or even better: help producing a never version of the ZDG. Hello Andreas, This kind of response is so common that it deserves a shortcut of its own. Such as RTFM. You essentially told me to f*k off. But

Re: [Zope] "The Zope Book"

2005-04-12 Thread Chris McDonough
No, sorry. THe canonical version is on the web. - C On Tue, 2005-04-12 at 04:10, Dario Lopez-KÃsten wrote: > Chris McDonough wrote: > > I don't think anyone has given much thought to actually documenting all > > these nice nifty features in 2.9. Which is no change from the norm, and > > it will

Re: [Zope] developer docs

2005-04-12 Thread Andreas Jung
--On Dienstag, 12. April 2005 13:46 Uhr +0200 Milos Prudek <[EMAIL PROTECTED]> wrote: ZDG seems very outdated. Should I start with mxmEasyProduct and then read ZDG? Is there a book available in bookshops that is better than ZDG and contains all required information for building products? Why is i

[Zope] developer docs

2005-04-12 Thread Milos Prudek
What are the best documents for creating Zope products? I know Zope Book very well and I write TTW scripts. I need to convert a bunch of ZClasses into Products. ZDG seems very outdated. Should I start with mxmEasyProduct and then read ZDG? Is there a book available in bookshops that is better th

[Zope] newbie:cookie expiry problem

2005-04-12 Thread prabuddha ray
This may be very silly plz help I gave this cookie expiry statement in a python script: RESPONSE.expireCookie('login') return context.REQUEST.RESPONSE.redirect('index_html') but when i checked the cookie values in request page, it wasn't removed. the last redirect still worked. when i put an

Re: [Zope] DTML namespace problem (was: dtml-tree issue)

2005-04-12 Thread Vangelis Mihalopoulos
Just added__allow_access_to_unprotected_subobjects__=1as an attribute of my class defined in an external python script and it works fine. Thanks Tino! Tino Wildenhain wrote: Hi, Am Montag, den 11.04.2005, 14:08 +0300 schrieb Vangelis Mihalopoulos: Andreas Jung wrote: You should *

Re: [Zope] "The Zope Book"

2005-04-12 Thread Dario Lopez-Kästen
Chris McDonough wrote: I don't think anyone has given much thought to actually documenting all these nice nifty features in 2.9. Which is no change from the norm, and it will be a fairly organic process again. I hate it, but whatever. - C Speaking of which, and being one of the people that promis

Re: [Zope] Full-text search in Office/PDF

2005-04-12 Thread Marco Bizzarri
You could do that using the excellent TextIndexNG inside a ZCatalog. This will allow you to index all your documents inside the TextIndexNG, and then search them using ZCatalog. TextIndexNG includes support for a number of plugins in order to convert from MS Office/PDF to text and then index th

Re: [Zope] Full-text search in Office/PDF

2005-04-12 Thread Andreas Jung
--On Dienstag, 12. April 2005 9:16 Uhr +0200 Robert Sösemann <[EMAIL PROTECTED]> wrote: Hello, I am using a ZOPE-based application on top of the ZOPE APE (http://opensource.ca.com/projects/zopeape) persitence mechanism (sort of binary storage). So the binaries are in the normal unix file system.

[Zope] Full-text search in Office/PDF

2005-04-12 Thread Robert Sösemann
Hello, I am using a ZOPE-based application on top of the ZOPE APE (http://opensource.ca.com/projects/zopeape) persitence mechanism (sort of binary storage). So the binaries are in the normal unix file system. I now need to extend my application to allow full-text search inside binaries document