[Zope-Annce] Five 1.0.1 released!

2005-06-01 Thread Philipp von Weitershausen
Five 1.0.1 released! The Five team is happy to release Five 1.0.1, a bugfix release for Five 1.0. The most important news is unicode support for add and edit forms; other minor fixes are included as well. Please consult the CHANGES_ for more details. .. _CHANGES:

[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/DateTime/tests/testDateTime.py Fixed unit test.

2005-06-01 Thread Florent Guillaume
Log message for revision 30588: Fixed unit test. Changed: U Zope/branches/Zope-2_8-branch/lib/python/DateTime/tests/testDateTime.py -=- Modified: Zope/branches/Zope-2_8-branch/lib/python/DateTime/tests/testDateTime.py === ---

[Zope-Checkins] SVN: Zope/trunk/lib/python/DateTime/tests/testDateTime.py Fixed unit test.

2005-06-01 Thread Florent Guillaume
Log message for revision 30589: Fixed unit test. Changed: U Zope/trunk/lib/python/DateTime/tests/testDateTime.py -=- Modified: Zope/trunk/lib/python/DateTime/tests/testDateTime.py === ---

[Zope-dev] BTrees and Persistance

2005-06-01 Thread Yair Benita
I recently started to use ZODB and python as my chosen database solution. I am having a few problems with retaining changes in BTrees. I have read the documentation and am aware of the _p_changed attribute. Still, here is what I observe: # consider this simplified

Re: [Zope-dev] BTrees and Persistance

2005-06-01 Thread Yair Benita
That is of course true, I only change the set and would like to save the information. Trying T[1]._p_changed = True gives an error: AttributeError: 'set' object has no attribute '_p_changed' so the only way to do it is to set _p_changed=True for the Tree. Does that mean that the entire Tree

Re: [Zope-dev] BTrees and Persistance

2005-06-01 Thread Sidnei da Silva
On Wed, Jun 01, 2005 at 10:36:58AM +0200, Yair Benita wrote: | Can anyone suggest an efficient way that will not require a copy of the | set already stored in T[1]? Maybe use a IISet (from BTrees.IIBTree), which follows the rules of persistence. -- Sidnei da Silva [EMAIL PROTECTED]

[Zope-dev] Re: BTrees and Persistance

2005-06-01 Thread Max M
Yair Benita wrote: # I would really really like this to work T[1].add(6) T._p_changed = True get_transaction().commit() Why not use 'IOSet' in the BTrees package? -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science ___ Zope-Dev

Re: [Zope-dev] BTrees and Persistance

2005-06-01 Thread Yair Benita
Of course, that was it. I guess it also makes more sense. Works perfectly now, and may I say, much faster. Thanks, Yair On Jun 1, 2005, at 11:50, Sidnei da Silva wrote: On Wed, Jun 01, 2005 at 10:36:58AM +0200, Yair Benita wrote: | Can anyone suggest an efficient way that will not require a

Re: [Zope-dev] BTrees and Persistance

2005-06-01 Thread Tim Peters
[Yair Benita] I recently started to use ZODB and python as my chosen database solution. I am having a few problems with retaining changes in BTrees. I have read the documentation and am aware of the _p_changed attribute. Still, here is what I observe: #

[Zope] POP servers

2005-06-01 Thread Varun Parange
hi, which POP servers can i download which are compatible and interfaceable with Zope...? these servers r used to receive mail. hence how do i retrieve the mails received by the server into Zope? regards varun Discover Yahoo! Stay in touch with email, IM, photo sharing & more. Check it

Re: [Zope] POP servers

2005-06-01 Thread Andreas Jung
--On 31. Mai 2005 23:43:19 -0700 Varun Parange [EMAIL PROTECTED] wrote: hi, which POP servers can i download which are compatible and interfaceable with Zope...? Weird question since POP3 is a standard protocol :-) these servers r used to receive mail. hence how do i retrieve the

[Zope] Accessing exported folders from local machine.

2005-06-01 Thread JV Singh
Hi, I downloaded a folder from zope to the local machine using export. but how do i access it from the machine? It is of the type *.zexp. --JV ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML

Re: [Zope] Accessing exported folders from local machine.

2005-06-01 Thread Andreas Jung
--On 1. Juni 2005 12:21:03 +0530 JV Singh [EMAIL PROTECTED] wrote: Hi, I downloaded a folder from zope to the local machine using export. but how do i access it from the machine? What do you mean by access it? For .zexp file is only thought for importing it back through the same mechanism

RE: [Zope] Accessing exported folders from local machine.

2005-06-01 Thread Peter Millar
There was a recent post about this very topic just recently. If you search the archive you will find the entire discussion. The short answer is that you cannot view this file outside of zope. Only zope understands it. It is like a zip file. Peter Millar -Original Message- From:

[Zope] How to read a file object

2005-06-01 Thread John Poltorak
How do I go about reading a Zope file object in Python? I'd appreciate it if anyone could point me to a repository of small code snippets which illustrate some simple techniques usable in Python scripts running under Zope. -- John ___ Zope

[Zope] Re: Creating links dynamically

2005-06-01 Thread Josef Meile
Hi John, The CMF's ActionsTool is a prime example for such a link factory. CMFDefaults main_template.pt demonstrates how to iterate over the links generated by portal_actions (the ActionsTool instance in a CMF site). Does that mean creating a CMF site? I'm finding it hard enough figuring

Re: [Zope] How to read a file object

2005-06-01 Thread Andreas Jung
--On 1. Juni 2005 10:01:22 +0100 John Poltorak [EMAIL PROTECTED] wrote: How do I go about reading a Zope file object in Python? Define what reading a Zope File object means? You mean you want the body of an upload file? -aj pgpmNUJZSSkaB.pgp Description: PGP signature

[Zope] Problem with ZPsyopg

2005-06-01 Thread David
Zope 2.7 / ZPsyopgDA / PostgreSQL7.3.4 My problem is that we're running a lot of little websites on a single server. Each site has its own zope/zpsyopg instance and its own postgresql database. But all databases are served by a single postmaster (postgresql instance). The issue arising is

Re: [Zope] How to read a file object

2005-06-01 Thread John Poltorak
On Wed, Jun 01, 2005 at 12:46:44PM +0200, Andreas Jung wrote: --On 1. Juni 2005 10:01:22 +0100 John Poltorak [EMAIL PROTECTED] wrote: How do I go about reading a Zope file object in Python? Define what reading a Zope File object means? You mean you want the body of an upload file?

Re: [Zope] How to read a file object

2005-06-01 Thread Andreas Jung
--On 1. Juni 2005 12:03:39 +0100 John Poltorak [EMAIL PROTECTED] wrote: On Wed, Jun 01, 2005 at 12:46:44PM +0200, Andreas Jung wrote: --On 1. Juni 2005 10:01:22 +0100 John Poltorak [EMAIL PROTECTED] wrote: How do I go about reading a Zope file object in Python? Define what reading a

Re: [Zope] How to read a file object

2005-06-01 Thread Vital Lobachevsky
John Poltorak wrote: On Wed, Jun 01, 2005 at 12:46:44PM +0200, Andreas Jung wrote: --On 1. Juni 2005 10:01:22 +0100 John Poltorak [EMAIL PROTECTED] wrote: How do I go about reading a Zope file object in Python? Define what reading a Zope File object means? You mean you want the body of

Re: [Zope] How to read a file object

2005-06-01 Thread Andreas Jung
--On 1. Juni 2005 15:02:16 +0300 Vital Lobachevsky [EMAIL PROTECTED] wrote: Suppose your file 'myFile' and your script 'myScript' in the same folder. You can get file data in your script using 'data' property: fileData = container.myFile.data You should *not* do that. You are using an

Re: [Zope] How to read a file object

2005-06-01 Thread Tino Wildenhain
Am Mittwoch, den 01.06.2005, 15:02 +0300 schrieb Vital Lobachevsky: John Poltorak wrote: On Wed, Jun 01, 2005 at 12:46:44PM +0200, Andreas Jung wrote: --On 1. Juni 2005 10:01:22 +0100 John Poltorak [EMAIL PROTECTED] wrote: How do I go about reading a Zope file object in Python?

Re: [Zope] How to read a file object

2005-06-01 Thread Paul Winkler
On Wed, Jun 01, 2005 at 10:01:22AM +0100, John Poltorak wrote: I'd appreciate it if anyone could point me to a repository of small code snippets which illustrate some simple techniques usable in Python scripts running under Zope. http://zopelabs.com/ Note there is a Python(Script) category

Re: [Zope] Creating links dynamically

2005-06-01 Thread John Poltorak
On Tue, May 31, 2005 at 07:17:46PM +0300, Vital Lobachevsky wrote: John Poltorak wrote: On Tue, May 31, 2005 at 06:23:11PM +0300, Vital Lobachevsky wrote: John Poltorak wrote: I want to provide a set of links on a Zope site dynamically. ie don't want to hard code a number of links, but

Re: [Zope] How to read a file object

2005-06-01 Thread Lennart Regebro
On 6/1/05, John Poltorak [EMAIL PROTECTED] wrote: I'm trying to learn some Python basics and hoping to use Zope as front end for writing and running a few snippets of code In that case you should use Zope3. Zope2 is highly-unpythonic, and using it pretty much requires you to learn Zope first,

[Zope] ANNOUNCE: Pound - reverse proxy and load balancer - v1.9

2005-06-01 Thread Robert Segall
This is to announce the release of Pound v1.9. Changes in this version: - Added the VerifyList configuration flag (CA root certs + CRL) - CRL checking code - RewriteRedirect 2 - ignores port value for host matching - Added -c flag (check-only mode) - Added -v flag (verbose mode) - Added -p flag

Re: [Zope] Creating links dynamically

2005-06-01 Thread J Cameron Cooper
John Poltorak wrote: On Tue, May 31, 2005 at 07:17:46PM +0300, Vital Lobachevsky wrote: John Poltorak wrote: On Tue, May 31, 2005 at 06:23:11PM +0300, Vital Lobachevsky wrote: John Poltorak wrote: I want to provide a set of links on a Zope site dynamically. ie don't want to hard code a

Re: [Zope] Re: Creating links dynamically

2005-06-01 Thread J Cameron Cooper
Josef Meile wrote: The CMF's ActionsTool is a prime example for such a link factory. CMFDefaults main_template.pt demonstrates how to iterate over the links generated by portal_actions (the ActionsTool instance in a CMF site). Does that mean creating a CMF site? I'm finding it hard enough

Re: [Zope] XML Content handling questions.

2005-06-01 Thread Nikko Wolf
2) I also need to serve up web-based forms and allow the user to create XML content based on a user-selected schema. Something like what Chiba (http://chiba.sf.net/) is targeting. Of course, though, that isn't a Python/Zope solution. Has anyone seen anything that works?

Re: [Zope] Creating links dynamically

2005-06-01 Thread John Poltorak
On Wed, Jun 01, 2005 at 11:05:04AM -0500, J Cameron Cooper wrote: John Poltorak wrote: On Tue, May 31, 2005 at 07:17:46PM +0300, Vital Lobachevsky wrote: John Poltorak wrote: Well, it's really easy. Create 'linkList' (Python Script) in the folder where you page lives or somewhere

Re: [Zope] Creating links dynamically

2005-06-01 Thread Nikko Wolf
Now, if you're uploading files to Zope, rather than the file system, it's a little different, in that you have to get the data from an object, and you'll probably have to split it by newline yourself. John Poltorak wrote: This is the way I had been thinking of setting it up, but can't

Re: [Zope] Problem with ZPsyopg

2005-06-01 Thread Dieter Maurer
David wrote at 2005-6-1 12:12 +0100: ... Is there a way how I can configure my system, so that idle connections expire when not used for a certain time? In some sense, this is the case -- also not directly controlled by time. Idle connections expire when the DA object is flushed from the

Re: [Zope] Saving the html-code

2005-06-01 Thread Chris Withers
Flemming Bjerke wrote: With a dtml-script I renders data from a mysql-database. But, sometimes I should like to save the html-code generated by the script. When I try to do this with a pythonscript I run into problems with acquiring the html-code generated by the dtml-script. I looks like the

Re: [Zope] Namespace for PythonScript

2005-06-01 Thread Chris Withers
Hong Yuan wrote: If a PythonScript is called from a Page Template, how can it access the variables defined using: tal:define=global ... / in the calling script? no need for the 'global' Go to the Bindings tab of your python script, make sure _ is in the box for namespace. then, in the

[Zope] Visual Reporting tool.

2005-06-01 Thread Fernando Lujan
Hi, I want to know, if is there a visual reporting tool? Like JasperReport, for example, wich works with reportlab's libraries and generate a .py. Thanks and regards, Fernando Lujan ___ Zope maillist - Zope@zope.org

[Zope] Re: DTML in Zope 2 vs Zope 3

2005-06-01 Thread Simon Michael
It's not so hard. :) ___ 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

[Zope] WebDav or Calendar.

2005-06-01 Thread Fernando Lujan
Hi, I need a Calendar or WebDav product wich runs with Zope, allow me to share my calendar with others users using mozilla Calendar, Sunbird. evolution, outlook and so on...Something like OpenGroupware. Do someone have a good suggestion? :) Thanks and regards. Fernando Lujan