[Zope-Annce] [ANN] ZopeEditManger 0.9.6 Released

2005-06-22 Thread Zachery Bir
I'm pleased to announce the release of ZopeEditManager 0.9.6. ZopeEditManager is a native Cocoa application that provides ExternalEditor functionality for Mac OS X users. Written using the PyObjC bindings, it extends the original work done by Casey Duncan, and makes it possible for Mac

[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/PluginIndexes/common/UnIndex.py removed dead code: getIndexSourceNames was defined twice

2005-06-22 Thread Yvo Schubbe
Log message for revision 30892: removed dead code: getIndexSourceNames was defined twice Changed: UU Zope/trunk/lib/python/Products/PluginIndexes/common/UnIndex.py -=- Modified: Zope/trunk/lib/python/Products/PluginIndexes/common/UnIndex.py

Re: [Zope] ZPT tutorial

2005-06-22 Thread Mark Barratt
Andreas Jung wrote: --On 21. Juni 2005 23:04:12 +0100 Mark Barratt [EMAIL PROTECTED] wrote: or there's PHP, where the communities are probably more newbie-friendly and there are loads of tutorials. Don't compare PHP with Zope. PHP is a tiny language compared to the fat Zope frameworks.

[Zope] Re: ZODB error when trying to index object (Input/output error)

2005-06-22 Thread Felix Ulrich-Oltean
Felix Ulrich-Oltean [EMAIL PROTECTED] writes: Just to follow up on the original problem, in case someone else has similar troubles. It turned out that the physical disk was broken - I couldn't even copy the files at the os level. Felix. ___ Zope

Re: [Zope] ZPT tutorial

2005-06-22 Thread Chris McDonough
The Zope Book says this in its preface FWIW: To make effective use of the book, you should know how to use a web browser and you should have a basic understanding of HTML (Hyper Text Markup Language) and URLs (Uniform Resource Locators). You don't need to be a highly-skilled programmer in order

Re: [Zope] Newbie Questions - many-many relationships? Zope 2 or 3?

2005-06-22 Thread Lennart Regebro
On 6/21/05, Jim Vine [EMAIL PROTECTED] wrote: but the Zope Book (2.7 version)'s chapter on Creating a Basic Application all seems to be through the ZMI. Unfortunately is the correct word there. Now, Zope's original appeal to me was using the graphical interface provided by the ZMI to create

Re: [Zope] ZPT contents slot

2005-06-22 Thread John Poltorak
On Tue, Jun 21, 2005 at 04:46:55PM -0500, J Cameron Cooper wrote: John Poltorak wrote: Is 'stxfile' the actual filename? I'm not concerned about it being structured initially - just want to see it working in principle with any file containg some text. It's the name of an object. I

Re: [Zope] ZPT tutorial

2005-06-22 Thread Peter Bengtsson
I think we (the Zope community) should try to be clearer in telling newcomers what the 'entry requirements' are. My preference is to lie about the complexity. Newcomers are welcoming it much more then. Because if you say it is easy people will blame themselfs if they get stuck and to avoid

Re: [Zope] ZPT tutorial

2005-06-22 Thread John Poltorak
On Tue, Jun 21, 2005 at 11:04:12PM +0100, Mark Barratt wrote: John Poltorak wrote: I was on a course over the weekend where ordinary people in their 70's with no technical ability were knocking together websites in just a few hours with no prior training and no understanding of the

Re: [Zope] Newbie Questions - many-many relationships? Zope 2 or 3?

2005-06-22 Thread Jim Vine
On 21.Jun 2005 - 21:59:41, Jim Vine wrote: Say, for example that my Zope App in some way has a House object, which records the address, the owner, and a short description. Later on, I may wish to add further fields to record, say, the number of bedrooms, but the system is already in

Re: [Zope] ZPT tutorial

2005-06-22 Thread Andrew Milton
+---[ John Poltorak ]-- | On Tue, Jun 21, 2005 at 11:04:12PM +0100, Mark Barratt wrote: | [Snip] | Most (not all) of the people who hang out here have all three of these | skill sets, and like many skilled people, they find it hard to | understand that the skills

Re: [Zope] Newbie Questions - many-many relationships? Zope 2 or 3?

2005-06-22 Thread Lennart Regebro
On 6/22/05, Jim Vine [EMAIL PROTECTED] wrote: I think I've convinced myself that the complexity of my app takes it beyond method 1, but I'm strugling to get my head around the implications of selecting method 2 or 3. Am I right in thinking that either of these will result in my building a

Re: [Zope] Newbie Questions - many-many relationships? Zope 2 or 3?

2005-06-22 Thread Philip Kilner
Hi Jim, Jim Vine wrote: I’d greatly appreciate any guidance that can be provided on these subjects. I know a lot has been said since your original query, but re-reading it I was surprised that no one had asked a fundamental question: - If the data is structured in nature and fits the

Re: [Zope] Newbie Questions - many-many relationships? Zope 2 or 3?

2005-06-22 Thread Andreas Pakulat
On 22.Jun 2005 - 12:04:02, Jim Vine wrote: On 21.Jun 2005 - 21:59:41, Jim Vine wrote: Say, for example that my Zope App in some way has a House object, which records the address, the owner, and a short description. Later on, I may wish to add further fields to record, say, the

[Zope] ZopeZoo

2005-06-22 Thread John Poltorak
In my quest to get to grips with the basics of ZPT I eventually stumbled across ZopeZoo which I found very useful. Looking at it again, there seem to be several variations of the same examples. I used this one:- http://www.plope.com/Books/2_7Edition/SimpleExamples.stx#2-10 but find there

[Zope] bytecode cache?

2005-06-22 Thread Jaroslav Lukeš
Dear zope core developers, I have idea about bytecode cache in Zope, it is possible to implement? What I mean: python scripts (in ZODB), DTML documents/methods, ZPT will be bytecode compiled in similar way like ordinary .py scripts into .pyc and then run much faster than noncompiled ZODB

RE: [Zope] bytecode cache?

2005-06-22 Thread Pascal Peregrina
Well, as far as I know, bytecode is generated by the marshal module. And marshal can only precompile simple data types and code (classes, functions). So objects (class instances) can not be byte compiled. But I may be wrong... However, I had a funny idea too... I have been wondering about using

[Zope] Re: ZopeZoo

2005-06-22 Thread yuppie
Hi John! John Poltorak wrote: In my quest to get to grips with the basics of ZPT I eventually stumbled across ZopeZoo which I found very useful. Looking at it again, there seem to be several variations of the same examples. I used this one:-

Re: [Zope] automagic reindexing of objects

2005-06-22 Thread Jürgen Herrmann
hi all! as i had time to look at all the stuff, i realized, that i'm getting closer, but this is not exactly what i wanted... as i can see from the path, one has to call: beforeCommitHook(method, **args, **kwargs) on each transaction, correct? this is contrary to my idea of everything doing

Re: [Zope] automagic reindexing of objects

2005-06-22 Thread Florent Guillaume
Have a look at how CPS uses this hook to delay indexing to the end of the transaction. Code is at http://svn.nuxeo.org/trac/pub/file/CPSCore/trunk/ IndexationManager.py Then in all objects for which we want to delay indexing, we replace the reindexObject() method with: def

RE: [Zope] bytecode cache?

2005-06-22 Thread Brian Lloyd
I have idea about bytecode cache in Zope, it is possible to implement? What I mean: python scripts (in ZODB), DTML documents/methods, ZPT will be bytecode compiled in similar way like ordinary .py scripts into .pyc and then run much faster than noncompiled ZODB objects. I think that it

Re: [Zope] automagic reindexing of objects

2005-06-22 Thread Jürgen Herrmann
[ Jürgen Herrmann wrote:] ... hook = object.get('_before_transaction_commit', None) if hook: hook() ... of course it should be: getattr(object, '_before_transaction_commit', None) regards, juergen herrmann ___

Re: [Zope] Newbie Questions - many-many relationships? Zope 2 or 3?

2005-06-22 Thread Paul Winkler
On Wed, Jun 22, 2005 at 02:02:30PM +0200, Andreas Pakulat wrote: No, method 2 aka ZClasses don't involve producing a Product. Sure it does. A ZClass-based Product is still a Product. As for why I don't use ZClasses: 1) Doing everything in restricted mode is a big pain. You end up writing a

Re: [Zope] Traversal question

2005-06-22 Thread David Pratt
I have gone over the zope book to see what I can do about calling a sql with a form and getting three additional parameters in the request and am wanting this to get better looking urls that calling the parameters directly in the url. I asked a similar question yesterday but perhaps it

[Zope] From Zope 2.5.1 to Zope 2.7.6

2005-06-22 Thread Tim Suter
I am upgrading our current Zope from 2.5.1 to Zope 2.7.6. I have the new version installed as a different instance on a different server. The Zope 2.5.1 is in tact and what I am wondering is, how do you migrate everything from the older to the newer? I thought exporting the .zexp out of Zope

Re: [Zope] Traversal question

2005-06-22 Thread Jonathan
- Original Message - From: David Pratt [EMAIL PROTECTED] I have gone over the zope book to see what I can do about calling a sql with a form and getting three additional parameters in the request and am wanting this to get better looking urls that calling the parameters directly in

Re: [Zope] From Zope 2.5.1 to Zope 2.7.6

2005-06-22 Thread Bakhtiar A Hamid
On 6/22/05, Tim Suter [EMAIL PROTECTED] wrote: I am upgrading our current Zope from 2.5.1 to Zope 2.7.6. I have the new version installed as a different instance on a different server. The Zope 2.5.1 is in tact and what I am wondering is, how do you migrate everything from the older to the

Re: [Zope] From Zope 2.5.1 to Zope 2.7.6

2005-06-22 Thread Peter Bengtsson
Are any of your applications relying on the 'bobobase_modification_time' attribute? That's something that changes when you import a .zexp file which could maybe explain why things appear differently now. On 6/22/05, Tim Suter [EMAIL PROTECTED] wrote: I am upgrading our current Zope from 2.5.1

Re: [Zope] Traversal question

2005-06-22 Thread Peter Bengtsson
I have never used traversal into zsql methods simply because I don't want to expose geeky things like employee_by_id to the user. People should be able to find out what you call your ZSQL methods. My suggestion is to consider a more controlled solution. About having request variables in the URL I

Re: [Zope] ZPT tutorial

2005-06-22 Thread Bakhtiar A Hamid
I'm sufficiently aware of Zope to know it provides a far more comprehensive build environment than PHP ever will and I would like to adopt it as my platform of choice, but it would be nice if the ZOPE support community was as newbie-friendly as the PHP crowd. Loads of tutorials and worked

Re: [Zope] Traversal question

2005-06-22 Thread David Pratt
Hi Jonathan. Thank you for your reply. The ? = don't make for very friendly or future proof urls. I have thought of this possibility you have suggested but thought there might be a way to do this with traversal. I read a tutorial by Chris McDonough getting rid of the ? = appeared to

Re: [Zope] Traversal question

2005-06-22 Thread David Pratt
Hi Peter. This is very interesting. I will look at the code! I agree with you about exposing the zsql methods and also I tend to use a naming convention for zsql methods might even stick out more. Many thanks for your reply. Regards, David On Wednesday, June 22, 2005, at 12:27 PM,

Re: [Zope] Newbie Questions - many-many relationships? Zope 2 or 3?

2005-06-22 Thread Andreas Pakulat
On 22.Jun 2005 - 09:52:23, Paul Winkler wrote: On Wed, Jun 22, 2005 at 02:02:30PM +0200, Andreas Pakulat wrote: No, method 2 aka ZClasses don't involve producing a Product. Sure it does. A ZClass-based Product is still a Product. Can't remember to have created a product, but then this was

Re: [Zope] Traversal question

2005-06-22 Thread David Pratt
Hi Pascal. These are good suggestions. Can you point me to something that could help me with the Site Access Rule part of this solution? I am sure I can google for a mod_rewrite rule that could help. Regards, David On Wednesday, June 22, 2005, at 12:18 PM, Pascal Peregrina wrote:

Re: [Zope] From Zope 2.5.1 to Zope 2.7.6

2005-06-22 Thread Tim Suter
Excuse the newbie question, but how would I find that out? I inherited this 'project' of upgrading Zope and migrating the data. I have had NO help with it so I have been banging through it all the way. Thanks, Tim On Wed, 2005-06-22 at 16:22 +0100, Peter Bengtsson wrote: Are any of your

Re: [Zope] From Zope 2.5.1 to Zope 2.7.6

2005-06-22 Thread Peter Bengtsson
Try something like this: $ cd zopehome/Products/ $ grep -rn bobobase_modification_time . That will tell you if any of your diskbased python products rely on bobobase_modification_time On 6/22/05, Tim Suter [EMAIL PROTECTED] wrote: Excuse the newbie question, but how would I find that out? I

[Zope] Re: Problem with keep-alive timeout (zope: addressed to exclusive (zope: addressed to exclusive sender for this address) sender for this address)

2005-06-22 Thread Ralph
On Tuesday 21 June 2005 23:28, Tres Seaver - [EMAIL PROTECTED] wrote: No that's not possible with HTTP1.0. The problem is, why IE is using HTTP1.0? With HTTP1.1 its possible to change keepalive-timeout. 'keepalive' only refers to the lenght of time that the browser-webserver connection

Re: [Zope] accessing session data error

2005-06-22 Thread Leticia Larrosa
Hi all: Thanks to Paul Winkler for his FWIW. Thanks a lot to Michael Dunstan for insists in the fact of response.redirect('init2-second-half'), because like he perhaps imagined I do the return init2-second-half instead of redirect. I test with the redirect and the error disapear, for now

Re: [Zope] Re: Problem with keep-alive timeout

2005-06-22 Thread Andrew Langmead
If you really need handle an arbitrary processing time. You might need to separate the request submission from the processing, and the processing from the results display. Roughly the way it would work would be like dropping your laundry off at the cleaners. You bring in the dirty clothes

Re: [Zope] ZPT contents slot

2005-06-22 Thread J Cameron Cooper
John Poltorak wrote: On Tue, Jun 21, 2005 at 04:46:55PM -0500, J Cameron Cooper wrote: John Poltorak wrote: Is 'stxfile' the actual filename? I'm not concerned about it being structured initially - just want to see it working in principle with any file containg some text. It's the name

Re: [Zope] Re: Problem with keep-alive timeout

2005-06-22 Thread Jonathan
A possible work-around: Set up your web page so that it has two frames: the main frame (visable) invokes the long running zope script; and a secondary (hidden) frame uses a javascript routine (running on a timer) which queries a no-op zope script. This should stop your browser from timing

[Zope] Batch folder creation

2005-06-22 Thread John Poltorak
Is there any way to create folders in batch? I need to create around 50 but don't fancy doing this manually. -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related

Re: [Zope] Batch folder creation

2005-06-22 Thread David H
John Poltorak wrote: Is there any way to create folders in batch? I need to create around 50 but don't fancy doing this manually. John, Put this in a python script and test. for n in range(10): container.manage_addFolder(id= str(n)) David

Re: [Zope] From Zope 2.5.1 to Zope 2.7.6

2005-06-22 Thread Tim Suter
FWIW, here's the output of the old 2.5.1 install: sprite:/var/lib/zope# grep -rn bobobase_modification_time . Binary file ./var/Data.fs matches grep: ./var/Z2-pcgi.soc: No such device or address ./var/Z2.log:59809:127.0.0.1- - [11/Jun/2002:21:04:53 -0500] GET

Re: [Zope] Re: Problem with keep-alive timeout

2005-06-22 Thread Andrew Langmead
On Jun 22, 2005, at 1:25 PM, Jonathan wrote:Set up your web page so that it has two frames: the main frame (visable) invokes the long running zope script;  and a secondary (hidden) frame uses a _javascript_ routine (running on a timer) which queries a no-op zope script. This should stop your

[Zope] Re: From Zope 2.5.1 to Zope 2.7.6

2005-06-22 Thread Simon Michael
Tim, subtopics appearing from nowhere could be due to a Zwiki upgrade. If you are indeed looking at a wiki page, the Zwiki release notes and admin guide will explain. Add a false boolean 'show_subtopics' property to the folder to make them go away.

Re: [Zope] TypeError: Cache values must be persistent objects.

2005-06-22 Thread Dieter Maurer
Nikko Wolf wrote at 2005-6-21 15:08 -0600: I'm trying to develop a filesystem-based Product (here 'ABCD') and unless I remove the ABCD folder from my Products directory, I get the following error IN THE MANAGEMENT INTERFACE. Is it possible to determine what's causing the problem? After

Re: [Zope] bytecode cache?

2005-06-22 Thread Dieter Maurer
Jaroslav Luke-Bš wrote at 2005-6-22 14:51 +0200:-A I have idea about bytecode cache in Zope, it is possible to implement? What I mean: python scripts (in ZODB), DTML documents/methods, ZPT will be bytecode compiled in similar way like ordinary .py scripts into .pyc and then run much faster

Re: [Zope] TypeError: Cache values must be persistent objects.

2005-06-22 Thread Dieter Maurer
Nikko Wolf wrote at 2005-6-21 16:13 -0600: ... But that begs the questions + why didn't the stack backtrace give the problem ID? It would not have helped: the problem was not an individual instance but a class problem... Your problem is of a rather rare type (few people remove Persistence