[Zope] developing with zmi: how to move a patch from data from devel to live?

2005-06-20 Thread gabor
hi, my problem is the following... imagine that you develop something for the customer using zope. while developing you use the ZMI a lot... to set some settings, to create python scripts and so on. you do this on the 'devel' server. then you deliver the solution to the customer (to the

RE: [Zope] developing with zmi: how to move a patch from data fro m devel to live?

2005-06-20 Thread Pascal Peregrina
You can manually export objects from your dev zope to individual files and then import them back to the live instance through ZMI. You could try this : http://zsyncer.sourceforge.net/ It will enable you, for built-in Zope object types (but then you can extend it with your own types) to list the

Re: [Zope] automagic reindexing of objects

2005-06-20 Thread Jürgen Herrmann
[ Dieter Maurer wrote:] Jürgen Herrmann wrote at 2005-6-17 14:19 +0200: i make heavy use of indexes in my extension classes. these all inherit from catalogpathaware, so i have to call object.reindex_object() on each changed instance. calling it from attribute getters/setters f.ex. is not a good

Re: [Zope] developing with zmi: how to move a patch from data from devel to live?

2005-06-20 Thread Jens Vagelpohl
On 20 Jun 2005, at 07:35, gabor wrote: now you create the fix/improvement on the devel server. but now how do you move the improvement/fix to the live server? you cannot just copy the data.fs over. the customer already has some content/data in it... one way seems to be to not use the ZMI

Re: [Zope] developing with zmi: how to move a patch from data from devel to live?

2005-06-20 Thread gabor
Jens Vagelpohl wrote: On 20 Jun 2005, at 07:35, gabor wrote: now you create the fix/improvement on the devel server. but now how do you move the improvement/fix to the live server? you cannot just copy the data.fs over. the customer already has some content/data in it... one way seems

Re: [Zope] developing with zmi: how to move a patch from data from devel to live?

2005-06-20 Thread Jens Vagelpohl
On 20 Jun 2005, at 10:16, gabor wrote: well, or let me ask the question a different way: if i should not use the ZMI, then why is it there? The ZMI is great for maintenance tasks, but not great for software development. You already ran into the first issue, replicating changes to other

Re: [Zope] Passing parameters using DTML

2005-06-20 Thread John Poltorak
On Fri, Jun 17, 2005 at 05:39:23PM -0500, J Cameron Cooper wrote: I'm assuming the above line comes from a page template. You neglected to mention what the calling DTML looks like, but I *guess* that it was something like this: dtml-var some_template(parm='ABC') yes? no? This is what

Re: [Zope] Graphical front end for Zope?

2005-06-20 Thread Lennart Regebro
On 6/20/05, John Poltorak [EMAIL PROTECTED] wrote: I don't suppose there is such a thing as a graphical front end for building Zope sites... I've just been trying out a Flash based product called SiteMaker http://www.moonfruit.com/ which made designing web pages a doddle. Just wish

[Zope] where is the appendix in the online book

2005-06-20 Thread Michael Rosenberg
i was searching for the same thing today, and i found it at: http://plone-book.agmweb.ca/ you have to chexk out each chapters errata, from there you have links to each chapters relavant scripts and links. a little tricky, huh ? hope to have been of some help, michi

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

2005-06-20 Thread Felix Ulrich-Oltean
Hi I get the following error when certain new objects are added into a plone site - when archetypes tries to set the UID, it asks the catalog for all unique values of the index UID. I;ve never had input/output errors before from the ZODB. There's definitely enough space on the drive and objects

Re: [Zope] developing with zmi: how to move a patch from data fro m devel to live?

2005-06-20 Thread Paul Winkler
On Mon, Jun 20, 2005 at 09:13:57AM +0200, Pascal Peregrina wrote: You can manually export objects from your dev zope to individual files and then import them back to the live instance through ZMI. You could try this : http://zsyncer.sourceforge.net/ It will enable you, for built-in Zope

[Zope] custom_persist_obj

2005-06-20 Thread Tamas Hegedus
Hi, I am new to Zope and not a programmer. It is a little bit complex for me. I am very frustrated, as I can not find the solution for a pretty simple task: I would like to have persistent object with dictionaries. I think I do not need a ZClass or Product, just a simple object for holding

Re: [Zope] custom_persist_obj

2005-06-20 Thread Paul Winkler
On Mon, Jun 20, 2005 at 05:12:29AM -0400, Tamas Hegedus wrote: Hi, I am new to Zope and not a programmer. It is a little bit complex for me. I am very frustrated, as I can not find the solution for a pretty simple task: I would like to have persistent object with dictionaries. I think I

RE: [Zope] custom_persist_obj

2005-06-20 Thread Pascal Peregrina
You have a built-in Zope object for this : PersistentMapping. dict1=PersistentMapping({'a':1,'b':1,'c':1, ...}) dict1=PersistentMapping({'a':2,'d':4,'e':6}) The only thing you can not do compared to dictionaries is : for key in dict1: do something (you need to use for key in dict1.keys():...)

Re: [Zope] custom_persist_obj

2005-06-20 Thread Paul Winkler
Well, sure. But you need to write some unrestricted (i.e. filesystem-based) code if you want to create instanced of PersistentMapping and the like. by the way, if it's ever going to get large, you might look into using OOBTree instead of PersistentMapping. See:

Re: [Zope] Getting information about current method

2005-06-20 Thread Florent Guillaume
Peter Bengtsson [EMAIL PROTECTED] wrote: On 6/17/05, Jan-Ole Esleben [EMAIL PROTECTED] wrote: It's an application instance wrapped in a list; it seems to be identical to self, actually - self.REQUEST['URL'] and self.REQUEST.PARENTS[0].REQUEST['URL'] are the same. However, the two

Re: [Zope] automagic reindexing of objects

2005-06-20 Thread Florent Guillaume
Dieter Maurer [EMAIL PROTECTED] wrote: Jürgen Herrmann wrote at 2005-6-17 14:19 +0200: i make heavy use of indexes in my extension classes. these all inherit from catalogpathaware, so i have to call object.reindex_object() on each changed instance. calling it from attribute getters/setters

Re: [Zope] Getting information about current method

2005-06-20 Thread Peter Bengtsson
Then I don't know. (The application instance is none other than zope itself. ) I can honestly not think of a way to extract this information. I've even tried setting up a simple example method and I couldn't get hold of the zodb name of the external method that is called. You can go

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

2005-06-20 Thread Felix Ulrich-Oltean
Felix Ulrich-Oltean [EMAIL PROTECTED] writes: Hi I get the following error when certain new objects are added into a plone site - when archetypes tries to set the UID, it asks the catalog for all unique values of the index UID. I;ve never had input/output errors before from the ZODB.

[Zope] accessing session data error

2005-06-20 Thread Leticia Larrosa
Hi all: I think that I found a ZOPE bug. Is really very important for me know what can I do for avoid it. The first 9 steps are to recreate the situation and the other steps are to provoke the error. Step 1: Crate a folder called "reproducingError" in Zope Interface Manage Step 2:

[Zope] ZMYSQLDA 2.0.9 lock problem

2005-06-20 Thread Dennis Allison
IE, Zope 2.7.6, Python 2.4.1, MYSQLDA 2.0.9 One of our developers is reporting a curious problem, which I have not been able to track down. It appears to be threading related, somewhere in the ZBMYSQLDB adaptor. The database connection string is bare of transaction indicators. The database

[Zope] Problem with keep-alive timeout

2005-06-20 Thread Ralph
I made a small and simple database applikation with some reports on a large database. But surprise, IE 6.0 (WinXP,SP2) is getting always a timeout after 60seconds, because IE communicates with Zope through the HTTP1.0-protocoll. My reports needing always 40s-120s, so is there someone that

Re: [Zope] Problem with keep-alive timeout

2005-06-20 Thread Peter Bengtsson
I had a similar problem and solved it by having a cron job that runs in the background with wget. In my case was able to divid it up to run a little bit of the big report at a time. This way I'm now able to have a cron job happening every hour. On 6/20/05, Ralph [EMAIL PROTECTED] wrote: I made

Re: [Zope] accessing session data error

2005-06-20 Thread Chris McDonough
Hi Leticia, Thanks for the detailed bug report. I have tried to replicate the bug as you indicate below but cannot. I've gone through the process you describe ten times without errors (in Zope 2.7.6). If it's possible to simplify the steps to recreate the error, that would be helpful in further

Re: [Zope] accessing session data error

2005-06-20 Thread Leticia Larrosa
Hi: Thanks for the rapid aswer of Chris McDonough. I will change the steps to replicate the error (sorry for the large steps before :( , I thinks that maybe was needful). Remember that the key of the error is the time interval between the request. If with 5 seconds don't appear the errortry

Re: [Zope] accessing session data error

2005-06-20 Thread Leticia Larrosa
Hi: I follow the steps to replicate the errorin zope2.7 for Debian and i get the error to. Thanks in advanced, Leticia -Original Message-From: "Leticia Larrosa" [EMAIL PROTECTED]To: "Chris McDonough" [EMAIL PROTECTED]Cc: zope@zope.orgDate: Mon, 20 Jun 2005 16:25:08 -0400Subject:

[Zope] Zope Foundation ideas

2005-06-20 Thread Rob Page
In preparation for tomorrow's IRC session (reminder/details below) we have prepared some initial ideas about the Zope Foundation. These are available online at: o http://tinyurl.com/74pd3 Note -- the document is written with phrases like the Foundation will, Contributors shall, etc. This is

Re: [Zope] accessing session data error

2005-06-20 Thread Michael Dunstan
Hi Leticia, The mixture of ``response.write()`` including JavaScript to drive the browser to a new location along with writing objects in ZODB all within the same transaction can break some of the promises that you'd normally expect Zope and a browser to keep. My guess is that browser is

[Zope] ZPT tutorial

2005-06-20 Thread John Poltorak
Does a ZPT tutorial exist anywhere? -- John ___ 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

Re: [Zope] ZPT tutorial

2005-06-20 Thread Peter Bengtsson
Don't know of a good tutorial but I know there are many. I'm sure that plone.org has some good ones. In case you already know your DTML, this little howto has helped people a lot. http://www.zope.org/Members/peterbe/DTML2ZPT On 6/20/05, John Poltorak [EMAIL PROTECTED] wrote: Does a ZPT

[Zope] New External Editor release 0.9

2005-06-20 Thread Chris McDonough
Since Casey Duncan, the original author of Zope External Editor is happily hacking away on other things at a new job, I figure I might as well pick up maintenance of this product. The new location for External Editor releases will be: http://plope.com/software/ExternalEditor/ A new release

Re: [Zope] ZPT tutorial

2005-06-20 Thread Andreas Jung
--On 20. Juni 2005 23:45:34 +0100 John Poltorak [EMAIL PROTECTED] wrote: Does a ZPT tutorial exist anywhere? Aren't the *three* ZPT chapters in the Zope Book good enough? -aj pgpRrnfGY61Jv.pgp Description: PGP signature ___ Zope maillist -

[Zope-Checkins] CVS: Zope/lib/python/nt_svcutils - service.py:1.1.2.6

2005-06-20 Thread Tim Peters
Update of /cvs-repository/Zope/lib/python/nt_svcutils In directory cvs.zope.org:/tmp/cvs-serv5742/lib/python/nt_svcutils Modified Files: Tag: Zope-2_7-branch service.py Log Message: Shut down cleanly when Windows is shutting down. === Zope/lib/python/nt_svcutils/service.py

[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/nt_svcutils/service.py Port from 2.7 branch.

2005-06-20 Thread Tim Peters
Log message for revision 30868: Port from 2.7 branch. Shut down cleanly when Windows is shutting down. Changed: U Zope/branches/Zope-2_8-branch/lib/python/nt_svcutils/service.py -=- Modified: Zope/branches/Zope-2_8-branch/lib/python/nt_svcutils/service.py

[Zope-Checkins] SVN: Zope/trunk/lib/python/nt_svcutils/service.py Merge rev 30868 from 2.8 branch.

2005-06-20 Thread Tim Peters
Log message for revision 30869: Merge rev 30868 from 2.8 branch. Port from 2.7 branch. Shut down cleanly when Windows is shutting down. Changed: U Zope/trunk/lib/python/nt_svcutils/service.py -=- Modified: Zope/trunk/lib/python/nt_svcutils/service.py

[Zope-dev] Re: [Z3lab] Zope Corporation's Initial Reaction on the ZF Comments

2005-06-20 Thread Martijn Faassen
Hadar Pedhazur wrote: [clarifications and opinions] Hey, I just wanted to chip in that: * I'm very happy a foundation has been announced. This is what I and others advocated for, starting in earnest after the castle sprint last year. This is a major step in the right direction. Thank you

Re: [Zope-dev] Re: Zope 2.9 goals

2005-06-20 Thread Martijn Faassen
Lennart Regebro wrote: OK, so becuase of the tomembased release schedule, let's not dicuss what goes in 2.9. let's discuss what features we found most urgent/desirable, so we can start working on that, like now. I think it's fine to discuss what we want to be in Zope 2.9. This way we can plan

Re: [Zope-dev] Re: Zope 2.9 goals

2005-06-20 Thread Chris McDonough
As I mentioned before, I'd like to see Christian's blob work make it into 2.9. So that's one feature. ;-) On Mon, 2005-06-20 at 09:55 +0200, Martijn Faassen wrote: Lennart Regebro wrote: OK, so becuase of the tomembased release schedule, let's not dicuss what goes in 2.9. let's discuss what

[Zope-dev] Re: [Z3lab] Zope Corporation's Initial Reaction on the ZF Comments

2005-06-20 Thread piero . goletto
Hi everybody, Martin Faassen wrote: * I'm very happy a foundation has been announced. Me too, and I am grateful to Zope Corp. for that. * We all agree that the Foundation should be about more than just vendors [...] We have extremely significant contributors in the community [...] It

[Zope-dev] ZOBD and pointers

2005-06-20 Thread Yair Benita
Hi All, As my ZODB data files become larger and larger I am looking at ways to make the structure of my objects more efficient. To simplify my question, suppose I have two different classes and both contain a list of a objects from a third class: class x has the attribute x.elements = [objects

[Zope-dev] Re: ZOBD and pointers

2005-06-20 Thread Laurence Rowe
As far as I am aware, ZODB will store a list of pointers to the lists of z objects. What you should be careful of for efficient use of ZODB is that your list is stored in an efficient way, well if the list is updated often or long anyway. When you pack your ZODB does it take up a lot less

Re: [Zope-dev] ZOBD and pointers

2005-06-20 Thread Tim Peters
[Yair Benita] ... suppose I have two different classes and both contain a list of a objects from a third class: class x has the attribute x.elements = [objects of class z] class y has the attribute y.elements = [objects of class z] As far as I understand python the lists x.elements and

Re: [Zope-dev] Re: ZOBD and pointers

2005-06-20 Thread Tim Peters
[Laurence Rowe] ... Unless you use a special PersistentList ZODB will have no choice but to store a new copy of the whole list when that list is modified. Caution: that's true of a PersistentList too. The purpose of PersistentList isn't realy to supply more-effecient storage (that's the

Re: [Zope-dev] ZOBD and pointers

2005-06-20 Thread Yair Benita
As always. Clear, detailed and to the point. Thanks Tim. Actually, the z class isn't a subclass of persistent because it just holds data (has no methods) and never changes. Same goes to the lists of x and y, they tend to hold a few elements and also never change. The X and Y classes are

Re: [Zope-dev] ZOBD and pointers

2005-06-20 Thread Tim Peters
[Yair Benita] ... Reading this answer I understand that anything I store should be persistent, even if its a list I don't plan to edit. I wouldn't say that. For example, for _most_ applications it would be foolish to create a subclass of Persistent to store an integer, as opposed to just

[Zope-dev] Re: ZOBD and pointers

2005-06-20 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim Peters wrote: [Yair Benita] ... Reading this answer I understand that anything I store should be persistent, even if its a list I don't plan to edit. I wouldn't say that. For example, for _most_ applications it would be foolish to create

[Zope-dev] FW: [Zope-Annce] Zope Foundation ideas

2005-06-20 Thread Hadar Pedhazur
FYI, for the few of you who may not actually listen to the bigger lists ;-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Page Sent: Monday, June 20, 2005 5:54 PM To: zope@zope.org; zope-announce@zope.org Subject: [Zope-Annce] Zope Foundation ideas