[Zope] Re: [Zope-dev] Re: [Zope3-Users] is it possible to copy object b/w two zodb Database

2008-06-14 Thread Dieter Maurer
Jim Fulton wrote at 2008-6-11 15:18 -0400:
>
>On Jun 11, 2008, at 10:36 AM, rahul bhaskar wrote:
>
>> Hi,
>> I am facing some problem with merging two zodb file.
>> is it possible to open two zodb Database at a time and copy object
>> from one to another.
>
>
>Yes, using the export/import mechanism.

Another option is to mount both ZODB's and then copy the objects.

It is necessary to decouple the copy from its source before
it can be stored in the target. Apparently, "copy.deepcopy" is
able to reliably decouple.



-- 
Dieter
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zope-memory-readings

2008-05-30 Thread Paul Winkler
On Fri, May 30, 2008 at 3:56 PM, Tres Seaver <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Peter Bengtsson wrote:
>> Check it out
>> http://code.google.com/p/zope-memory-readings/
>>
>> Perhaps useful
>
> Looks really cool.  Thanks for releasing it!

Yeah. It also looks nicely non-zope-specific.
All it really needs to do its job is a PID and a log file in apache's
common format.
The only zope-specific stuff is just a couple lines of code that uses
a path to a Zope instance to find those.

-- 
http://www.slinkp.com
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zope-memory-readings

2008-05-30 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Peter Bengtsson wrote:
> Check it out
> http://code.google.com/p/zope-memory-readings/
> 
> Perhaps useful

Looks really cool.  Thanks for releasing it!


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIQFvm+gerLs4ltQ4RAnX5AJ4zVxk8RdCJv6C+/7Ls8e7apoWkuQCeMGC3
BZd6MLBKfHMVb42mO5Kzi6Q=
=M7LL
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope threads and the GIL

2008-05-05 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Manuel Vazquez Acosta wrote:
> Dieter Maurer wrote:
>> Manuel Vazquez Acosta wrote at 2008-5-4 11:12 -0400:
>>> ...
>>> That would mean that the only place where real multitasking occurs is
>>> when fetching objects from ZEO and other I/O bounded tasks, isn't?
>> I depends what you mean with "real multitasking".
>>
>> If you mean by this that several CPUs are concurrently active for your
>> Zope process, then you are near. 
> 
> Exactly. Several CPUs, I would like to use.

Generally, the rule-of-thumb for scaling Zope on a multi-CPU box is to
run an appserver instance per CPU, each talking to a shared storage
(ZEO, usually, but RelStorage would do as well).


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIH7wa+gerLs4ltQ4RAndLAJwM+qs7w5hQy0tA9ZY33mJBGPeTBgCeN8fi
J50GVau5mZLxpFnRyJLYCIc=
=09EA
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope Digest, Vol 47, Issue 13

2008-04-12 Thread member madhangc
hi all, can anyone tel me how to query string in URL for querying data from
ZSQL from page containg DTML code.
thanx in advance..

On Sat, Apr 12, 2008 at 9:30 PM, <[EMAIL PROTECTED]> wrote:

> Send Zope mailing list submissions to
>zope@zope.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>http://mail.zope.org/mailman/listinfo/zope
> or, via email, send a message with subject or body 'help' to
>[EMAIL PROTECTED]
>
> You can reach the person managing the list at
>[EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Zope digest..."
>
>
> Today's Topics:
>
>   1. Re: Upgrade to 2.7.2 results in all content unavailable (Jonathan)
>   2. Re: Upgrade to 2.7.2 results in all content unavailable
>  (Wes Modes)
>   3. Re: Upgrade to 2.7.2 results in all content unavailable
>  (Thomas Bennett)
>   4. Critical System Hosed, Plan B - upgrade zope, convert db
>  (Wes Modes)
>   5. Database conversion (Wes Modes)
>   6. Re: Database conversion (Andreas Jung)
>
>
> --
>
> Message: 1
> Date: Fri, 11 Apr 2008 14:24:09 -0400
> From: "Jonathan" <[EMAIL PROTECTED]>
> Subject: Re: [Zope] Upgrade to 2.7.2 results in all content
>unavailable
> To: "Wes Modes" <[EMAIL PROTECTED]>, 
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; format=flowed; charset="iso-8859-1";
>reply-type=original
>
>
> - Original Message -
> From: "Wes Modes" <[EMAIL PROTECTED]>
> To: "Dieter Maurer" <[EMAIL PROTECTED]>; 
> Sent: Friday, April 11, 2008 1:44 PM
> Subject: Re: [Zope] Upgrade to 2.7.2 results in all content unavailable
>
>
> >2008-04-11 10:36:54 ERROR ZODB.lock_file Error locking file
> >/var/lib/zope/var/Data.fs.lock
> >Traceback (most recent call last):
> >  File "/usr/lib/zope/lib/python/ZODB/lock_file.py", line 63, in
> >__init__
> >lock_file(self._fp)
> >  File "/usr/lib/zope/lib/python/ZODB/lock_file.py", line 42, in
> >lock_file
> >fcntl.flock(file.fileno(), _flags)
> >IOError: [Errno 11] Resource temporarily unavailable
>
> Make sure you have read/write access to the /var/lib/zope/var directory
> and
> that is 'owned' by 'zope'
>
>
> Jonathan
>
>
>
> --
>
> Message: 2
> Date: Fri, 11 Apr 2008 12:14:30 -0700
> From: Wes Modes <[EMAIL PROTECTED]>
> Subject: Re: [Zope] Upgrade to 2.7.2 results in all content
>unavailable
> To: Dieter Maurer <[EMAIL PROTECTED]>, zope@zope.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Better yet, here's a more informative debug output.  It tells me that
> zope thinks this is a new instance.  Though the old database is it place
> right where it should expect to see it.
>
>[EMAIL PROTECTED] zope]# bin/zopectl debug*
>Starting debugger (the name "app" is bound to the top-level Zope
> object)
>2008-04-11 12:04:05 WARNING Init Class
>Products.HappySession.HappySession.HappySession has a security
>declaration for nonexistent method 'manage_menu'
>[snipped a bunch of warnings...]
>
>*>>> import Zope, ZPublisher*
>
>*>>> ZPublisher.Zope('')*
>
>Status: 200 OK
>X-Powered-By: Zope (www.zope.org), Python (www.python.org)
>Content-Length: 4066
>Content-Type: text/html
>
>[snipped a bunch of html and helpful info]
>Zope Quick Start
>You have not created any users in this Zope instance.  In order to
>log in and manage this Zope instance, you'll need to add an
>adminstrative
>user account.
>
>If you're running Zope on UNIX or Linux, you can create an
>administrative
>user account via the "zopectl adduser" command from a shell.
>Note: You'll
>need to shut Zope itself down before "zopectl adduser" will work.
>Restart
>Zope after executing this command in order to log in.
>
>WARNING: you are running Zope 2.8.X with python 2.4.X, this is not a
>supported
>combination. Don't file bugreports or ask for support on zope.org.
>
>
>
>
> And apparently, I'm running 2.8.7 not 2.7.2 as I thought.  And I'm not
> supposted to ask you for help.  Help!
>
> W.
>
>
> >
> >
> >
> > Dieter Maurer wrote:
> >> Dieter Maurer wrote at 2008-4-11 19:13 +0200:
> >>
> >>> Wes Modes wrote at 2008-4-10 21:04 -0700:
> >>>
>  I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope.
>  Honestly I'm not sure what the previous version I was running was
> (nor
>  am I sure how to find out).
> 
>  Now, every page results in
> 
>  Site Error
>  An error was encountered while publishing this resource.
>  Resource not found
>  Sorry, the requested resource does not exist.
>  Check the URL and try again.
>  Resource: Zope GET
> 
> >>> Difficult problems can be analyzed in in

Re: [Zope] Re: zope on google file system

2008-03-31 Thread Tim Nash
This is what I love about zope. It can be a much more flexible way to
store data than in a relational db. Maybe some combination of zodb and
s3 would be efficient. Zodb for frequently used business objects and a
library (localfs modified ?) for storing data documents on s3. Could
you update your plan when you get time?

Thanks!
Tim




On 3/31/08, Laurence Rowe <[EMAIL PROTECTED]> wrote:
> As an experiment, I started porting zodb to amazon s3 storage a while
> ago... http://code.google.com/p/s3storage/
>
> You can use it to start zope, but it makes far too many writes
> inefficiently (it took about 15 minutes for zope2 to create all it's
> objects on a first start).
>
> Now that ec2 comes with static IP addresses, I might end up looking at
> it again. It needs refactoring to write only one file per transaction
> (or savepoint), but once done I would imagine it might then offer
> reasonable performance.
>
> Laurence
>
> Tim Nash wrote:
> > The google summer of code is almost underway and already has a lot of
> > good ideas but I was wondering if any of my fellow zope users would
> > have any interest in the following area:
> >
> > I don't have the skills but I think it would be cool if some
> > student ported Zope to utilize features of the google file system or
> > libferris. Libferris is a virtual file system that mounts just about
> > everything including postgres, xml and OpenOffice docs.  If zope ran
> > on the gfs (primarily adding business logic, security and publishing)
> > it would give a boost to the value of any zope based company. Also, I
> > think it would be fun to run map/reduce on my stored objects! A zope
> > that ran on libferris and offered secure publishing of libferris
> > resources would just be cool.
> >
> > If anybody else thinks this would be useful I will jon the gsoc user
> > list, (even though I'm not a student and I'm not experienced enough
> > with zope to be a mentor) and do my best to make this happen.
> > ___
> > 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
> >  http://mail.zope.org/mailman/listinfo/zope-dev )
> >
>
> ___
> 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
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zope on google file system

2008-03-31 Thread Laurence Rowe
As an experiment, I started porting zodb to amazon s3 storage a while 
ago... http://code.google.com/p/s3storage/


You can use it to start zope, but it makes far too many writes 
inefficiently (it took about 15 minutes for zope2 to create all it's 
objects on a first start).


Now that ec2 comes with static IP addresses, I might end up looking at 
it again. It needs refactoring to write only one file per transaction 
(or savepoint), but once done I would imagine it might then offer 
reasonable performance.


Laurence

Tim Nash wrote:

The google summer of code is almost underway and already has a lot of
good ideas but I was wondering if any of my fellow zope users would
have any interest in the following area:

I don't have the skills but I think it would be cool if some
student ported Zope to utilize features of the google file system or
libferris. Libferris is a virtual file system that mounts just about
everything including postgres, xml and OpenOffice docs.  If zope ran
on the gfs (primarily adding business logic, security and publishing)
it would give a boost to the value of any zope based company. Also, I
think it would be fun to run map/reduce on my stored objects! A zope
that ran on libferris and offered secure publishing of libferris
resources would just be cool.

If anybody else thinks this would be useful I will jon the gsoc user
list, (even though I'm not a student and I'm not experienced enough
with zope to be a mentor) and do my best to make this happen.
___
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

 http://mail.zope.org/mailman/listinfo/zope-dev )



___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope Zeo Performance

2008-03-17 Thread Dieter Maurer
FuBuJo wrote at 2008-3-14 22:06 +:
> ...
>I thought putting Apache in front of Zope was very common (using VirtualHost
>Monster) - guess not. 

This is common. But, usually, a ZEO client is not abbreviated as "ZEO".
"ZEO" usually means the ZEO server.

> ...
>It's the python process on the Zeo Client that grows large and seems to become
>unresponsive. Possibly due to the "Transaction blocking" being reported in the
>Zeo Severs log.

Occational "transaction blocking" messages are no reason to worry about.
Only, when you see it very often or the number of waiting clients
is quite high, bad things are happening.



-- 
Dieter
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope Zeo Performance

2008-03-14 Thread robert rottermann
FuBuJo schrieb:
> I apologize that my description was so confusing.
> I appreciate the feedback and so would like to clarify.
> 
> The diagram is how the traffic flows.  So we have:
> Step 1 - a Load Balancer that passes traffic to Apache
> 
> Step 2 - Apache which uses mod_proxy to obfuscate the URL and proxies traffic 
> to
> the Zeo Client
is that so?
does not apache talk to a zope server ?

robert

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope Zeo Performance

2008-03-14 Thread FuBuJo
I apologize that my description was so confusing.
I appreciate the feedback and so would like to clarify.

The diagram is how the traffic flows.  So we have:
Step 1 - a Load Balancer that passes traffic to Apache

Step 2 - Apache which uses mod_proxy to obfuscate the URL and proxies traffic to
the Zeo Client

Step 3 - the Zeo Client (residing on the same physical box as Apache) that then
forwards the traffic to the Zeo Server

Step 4- the Zeo Server that runs on its own box and writes to the ZODB.


I thought putting Apache in front of Zope was very common (using VirtualHost
Monster) - guess not. 

As for versions:
FreeBSD 5.3
Python 2.3.5
Zope 2.7


The load on the Zeo Server is minuscule.
The load on the Zeo Client(s) gets very large.

It's the python process on the Zeo Client that grows large and seems to become
unresponsive. Possibly due to the "Transaction blocking" being reported in the
Zeo Severs log.  Strangely disconnecting the Zeo Client from the Server while
the Zeo Client is "locked" rarely gives the ... "disconnected during
transaction" error message that I expected to see more of.

Hope that clears up things for anyone else who'd like to chime in.

Dieter - As for your suggestions. Thanks so much!
I will certainly begin to investigate and pursue each.  They seem very good
things to do - just in general. I appreciate the input. I'll let the list knows
how everything works out.

I do notice that there was no mention of any general (config file) configuration
techniques (increasing threads, cache objects, etc. etc.) --- is configuration
not really that big of a performance boost?

Thanks again for the direction.



___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zope starts in foreground but not normaly

2008-03-11 Thread Maurits van Rees
robert rottermann, on 2008-03-11:
> Hi there,
>
> after a software upgrade (system and zope/plone) we have a strange problem.
> we have an old site that runs under plone 2.1
> Zope-2.8.9-final
> python 2.3.5
>
> when I start it in the foreground with bin/zopectl fg everything works fine.
> if I however start it with bin/zopectl start

This is a problem with Zope 2.8.9.  It was fixed in the shortly after
released 2.8.9.1.  See the top of this file:

http://www.zope.org/Products/Zope/2.8.9.1/CHANGES.txt

-- 
Maurits van Rees | http://maurits.vanrees.org/
Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope Digest, Vol 45, Issue 25

2008-02-29 Thread Tim Nash
Maybe you could map it to libferris instead of the file system and
then we could many types of different data storage.

http://www.linuxjournal.com/article/9373



On Fri, Feb 29, 2008 at 10:52 AM, Dieter Maurer <[EMAIL PROTECTED]> wrote:
> Garito wrote at 2008-2-29 00:35 +0100:
>
> >I can understand Yuri
>  >Zope uses the tree to run and the filesystem is a tree
>  >
>  >When I'm developing Yanged (my Zope project) I think about that. I would
>  >like to create a version of Zope with the most essential parts:
>  >the traverse way
>  >the adquisition
>  >in an apache module (and apache of course)
>  >the filesystem as object data base
>  >and Zope Smart Manager as ZMI
>
>  It would not be that difficult:
>
>   Your Apache module would call "ZPublisher.Publish.publish"
>   with a module name different from "Zope2".
>
>   Your "Zope2" replacement would provide the objects
>   required by "ZPublisher.Publish.get_module_info".
>   It could e.g. use a LocalFS instance as "bobo_application"
>   and immediately, your objects would come from the filesystem (as
>   mapped by "LocalFS").
>
>
>
>  --
>  Dieter
>
>
> ___
>  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
>   http://mail.zope.org/mailman/listinfo/zope-dev )
>
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope Digest, Vol 45, Issue 25

2008-02-29 Thread Dieter Maurer
Garito wrote at 2008-2-29 00:35 +0100:
>I can understand Yuri
>Zope uses the tree to run and the filesystem is a tree
>
>When I'm developing Yanged (my Zope project) I think about that. I would
>like to create a version of Zope with the most essential parts:
>the traverse way
>the adquisition
>in an apache module (and apache of course)
>the filesystem as object data base
>and Zope Smart Manager as ZMI

It would not be that difficult:

  Your Apache module would call "ZPublisher.Publish.publish"
  with a module name different from "Zope2".

  Your "Zope2" replacement would provide the objects
  required by "ZPublisher.Publish.get_module_info".
  It could e.g. use a LocalFS instance as "bobo_application"
  and immediately, your objects would come from the filesystem (as
  mapped by "LocalFS").



-- 
Dieter
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope Digest, Vol 45, Issue 25

2008-02-28 Thread Garito
I can understand Yuri
Zope uses the tree to run and the filesystem is a tree

When I'm developing Yanged (my Zope project) I think about that. I would
like to create a version of Zope with the most essential parts:
the traverse way
the adquisition
in an apache module (and apache of course)
the filesystem as object data base
and Zope Smart Manager as ZMI

Yanged will be some day this with a couple more rules and that's all: a
Plone (+Zope) like product server with 1000 lines of code

Do you imagine how much lines of code will save if we try to reduce them in
our projects instead of add more features?

In my opinion the present hardware will fly with this kind of work or, if we
make the same with the hardware our computers will spend a minimal part of
energy but we prefer to grow in comparison with the last year... (crazy
world!)

2008/2/28, Tim Nash <[EMAIL PROTECTED]>:
>
> Sure, zope products. But what does it mean to be a zope site without
> ZODB? There are ZPT implementations separate from ZODB.
> Subversion, grep, sed, whole code changes are all possible with zope 2.
>
>
> On Thu, Feb 28, 2008 at 12:26 AM, Yuri <[EMAIL PROTECTED]> wrote:
> > [EMAIL PROTECTED] wrote:
> >  >>  I want to be able to have a zope site entirely in the file system
> with
> >  >>  no ZODB, so I can keep it in subversion, and use normal things like
> >  >>  grep, patch and sed to apply changes to the whole codebase.
> >  >>
> >  >
> >  > You can do this with zope 2 but you can also allow user customization
> >  > that you can later migrate in to the filesystem code.
> >  >
> >
> >   Really??
> >  ___
> >  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
> >   http://mail.zope.org/mailman/listinfo/zope-dev )
> >
> ___
> 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
>   http://mail.zope.org/mailman/listinfo/zope-dev )
>



-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope Digest, Vol 45, Issue 25

2008-02-28 Thread Tim Nash
Sure, zope products. But what does it mean to be a zope site without
ZODB? There are ZPT implementations separate from ZODB.
Subversion, grep, sed, whole code changes are all possible with zope 2.

On Thu, Feb 28, 2008 at 12:26 AM, Yuri <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>  >>  I want to be able to have a zope site entirely in the file system with
>  >>  no ZODB, so I can keep it in subversion, and use normal things like
>  >>  grep, patch and sed to apply changes to the whole codebase.
>  >>
>  >
>  > You can do this with zope 2 but you can also allow user customization
>  > that you can later migrate in to the filesystem code.
>  >
>
>   Really??
>  ___
>  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
>   http://mail.zope.org/mailman/listinfo/zope-dev )
>
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope Digest, Vol 45, Issue 25

2008-02-28 Thread Yuri

[EMAIL PROTECTED] wrote:

 I want to be able to have a zope site entirely in the file system with
 no ZODB, so I can keep it in subversion, and use normal things like
 grep, patch and sed to apply changes to the whole codebase.



You can do this with zope 2 but you can also allow user customization
that you can later migrate in to the filesystem code.
  


Really??
___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope 3 and Rails - a pragmatic and agile comparation (put the hype aside)

2008-02-24 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Marcelo de Moraes Serpa wrote:
> Hello,
> 
> I come from a Rails background, been working with Rails for about 1 year
> and a half, it has been a great experience but my last project required
> me to use Plone as a base framework for the portal/application.
> 
> I then started deeply studying Plone 3. Bought and read Martin's
> excellent book Professional Plone Development from cover to cover.
> Struggled with Zope concepts but almost always could grasp them by
> reading the other books from the Zope/Plone bookshelf or online
> articles/tutorials.
> 
> It has been 3 months already. The project is almost done and I've
> learned to like Plone and Zope 2. However, what attracted me the most
> was Zope 3 and its elegant concepts and OOP patterns and this led me to
> question some things:
> 
>  * The differences in the approaches taken by Rails and Zope 3 to
> provide developer productivity, scalability and application maintability.
> Rails is productive, no doubt regarding this. However, I feel that it
> restricts me in the OOP side of things, hiding much of the OOP patterns
> from the developer. The "put there it will just work" philosophy often
> makes it hard (at least harder than if it were being implemented on Zope
> 3) to make more advanced, complex and specific things.
> 
> I do believe in the agile methodology and I always follow it whatever I
> am working with Java, python, C or Rails. Rails just happens to be an
> out-of-the-box solution that has attract millions of developers becouse
> of its magic promises and easy learning-curve.
> 
> I feel however, that Zope 3 with its Component Architecture is much more
> elegant and can be as productive as Rails AND provide better application
> scalability and maintability than Rails if you know what you are doing.
> 
> I can't speak for Zope 2 though :)
> 
> What do you think? Would you mind sharing your experiences and ideas
> regarding this subject?

Thanks very much for the insight into Zope's stregths and weaknesses as
seen by one coming from the Rails world.  I know that lots of folks in
Zopeland envy the Rails folks for their success at attracting
developers:  at one point, Zope was doing for Python what Rails has been
doing more reccently for Ruby.

The Grok folks (http://grok.zope.org/) have made efforts to make a
Zope-based development experience which draws on soem of the Rails
memes:  "don't repeat yourself", "conventiion over configuration", etc.
 I find those memes problematic, myself, for some of the same reasons
you point out for Rails.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHwaqG+gerLs4ltQ4RAoCqAKCivoVCHYoVNHcIEzM7xpoDKrd3QACgtPtX
AcWg/oDEJbqVOrCQjgcKdA0=
=GAAr
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope/plone behind ISS

2008-02-07 Thread Max M

TrashMan skrev:

I can't. There is another service active with IIS .


Oh yes. Just put apache in front of that and proxy it. No one will know 
the difference.



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope ZMI Templates

2008-01-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Garito wrote:
> Hi again, Tres!
> Can you point as where we can find this kind of help? Are there some
> reference manual or similar? (I'm using Zope2) Perhaps on Five manual?

I'm afraid I don't know the docs very well:  I tend to use the source
when memory fails me. ;)  Honestly, I typed those examples in off the
top of my head, and then created the product to test them:  except for a
single typo, it Just Worked (TM).



Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHjRoC+gerLs4ltQ4RAsF9AJ9g5kghDMORCsHeD6bM391MuGpLKwCg0erV
+9TiFSIzjeSwRGpz720sDGQ=
=CytP
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope ZMI Templates

2008-01-15 Thread Garito
Hi again, Tres!
Can you point as where we can find this kind of help? Are there some
reference manual or similar? (I'm using Zope2) Perhaps on Five manual?

Thanks a lot!

2008/1/15, Tres Seaver <[EMAIL PROTECTED]>:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Jurian Botha wrote:
> > I'm currently developing some customized ZMI pages and I was hoping
> someone
> > could give me some insight into what the best way would be to do this.
> >
> > I see that Zope 2 uses dtml methods to build the standard ZMI pages but
> as
> > far as I know (Zope 3 wise) I should rather be using Zope Page Templates
> to
> > build the pages.
> >
> > I would also like the product to gracefully move on to Zope 3 in future,
> so
> > that should be taken into consideration as well.
> >
> > Are there perhaps some existsing templates for ZMI that can also be used
> > with Zope 3?
>
> You could choose to use a 'zmi_master' template which looked like so::
>
> 
> 
> 
> 
>Non-boilerplate goes here.
> 
> 
> 
>
> If you registered that template as a view in your product's
> 'configure.zcml', e.g.:
>
> for="*"
>  name="zmi_master"
>  template="zmi_master.pt"
>  />
>
> you can then use it in your own ZMI templates, e.g.:
>
>   
>   
>   
> Test ZMI Macro 
>   
>   
>   
>
> I have attached a tarball of a simple Zope2 product which does this.
> After installation, you should be able to visit
> http://localhost:8080/zmi_test to see the results.
>
>
> Tres.
> - --
> ===
> Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
> Palladion Software   "Excellence by Design"http://palladion.com
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHjQMy+gerLs4ltQ4RAvHpAJ4h8VuFM3M4v333UU4jB71CJgvNqgCfcnjf
> YMSO8d3hiDf5eMyG31nn9Ng=
> =fh+F
> -END PGP SIGNATURE-
>
> ___
> 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
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
>


-- 
Mis Cosas
http://blogs.sistes.net/Garito
Zope Smart Manager
http://blogs.sistes.net/Garito/670
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope ZMI Templates

2008-01-15 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jurian Botha wrote:
> I'm currently developing some customized ZMI pages and I was hoping someone
> could give me some insight into what the best way would be to do this.
> 
> I see that Zope 2 uses dtml methods to build the standard ZMI pages but as
> far as I know (Zope 3 wise) I should rather be using Zope Page Templates to
> build the pages.
> 
> I would also like the product to gracefully move on to Zope 3 in future, so
> that should be taken into consideration as well.
> 
> Are there perhaps some existsing templates for ZMI that can also be used
> with Zope 3?

You could choose to use a 'zmi_master' template which looked like so::

 
 
 
 
   Non-boilerplate goes here.
 
 
 

If you registered that template as a view in your product's
'configure.zcml', e.g.:

  

you can then use it in your own ZMI templates, e.g.:

  
  
  
Test ZMI Macro 
  
  
  

I have attached a tarball of a simple Zope2 product which does this.
After installation, you should be able to visit
http://localhost:8080/zmi_test to see the results.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHjQMy+gerLs4ltQ4RAvHpAJ4h8VuFM3M4v333UU4jB71CJgvNqgCfcnjf
YMSO8d3hiDf5eMyG31nn9Ng=
=fh+F
-END PGP SIGNATURE-


zmi3.tar.gz
Description: application/gzip
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope Digest, Vol 43, Issue 10

2007-12-13 Thread Yuri



Appending data would require the manipulation of the linked list of
Pdata elements. There is no API for this available...so basically
forget it.



I figured it'd be a lot more obvious if it was possible.  Ah well.

Thanks
-J
  

In this case, just use an external method to manipulate a fs file :)

This file can be mapped with ExFile to zope, so you can use it in zope.
___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope Jobs

2007-11-07 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom Von Lahndorff wrote:
> Anyone have any recommendations for a good place to post a Zope job?  
> Its for a freelance, work from where ever gig. Thanks.

Here is probably a good place, or zope-dev.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHMcbU+gerLs4ltQ4RAndjAKDYis35TfnMSZYBtIrwuiw7+Iv8pwCbB1Zl
wM6DTW4N3dbfkhkeuwAL3bQ=
=bW2l
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope 3 Cookbook beta.. model?

2007-10-09 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Pleas check out the following:

 ' Philipp von Weiterhausen's "Zope3 book site",
   http://worldcookery.com/

 - "Grok",
   http://grok.zope.org/

Both of those provide goot entry points for folks interested in "pure"
Zope3 development.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHC9qv+gerLs4ltQ4RAtdlAJ4nSg0hNpDMuuZz722fvgWb1a2HygCfTsqR
MF2YW3iiTgF07S0jbGl+X6s=
=tOCW
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope is in trouble

2007-09-28 Thread Gregory Dudek

I suspect almost everybody on this list is aware that many zope
activities have moved elsewhere, but it still looks bad to have the  
main site looking neglected.
For many different reasons.  This is even more true for a project  
that is all about web development!


Even with the other sites, there are still things (like the list of  
other Zope sites) that zope.org is necessary for.

I am very happy to hear that there is high hopes for the future.

As good as the cheeseshop might be, and it does have some nice  
features, it's still not as good as the
zope.org product list once was, since the product list was organized  
specifically for zope development.
I know this cannot continue on zope.org, but hopefully zope.org can  
provide the necessary guidance

for using the other sites.

Greg

On Sep 28, 2007, at 6:13 AM, Philipp von Weitershausen wrote:


Gregory Dudek wrote:
A key factor is that from the zope.org web site it is not clear if  
the community is healthy or not, and the general impression is  
that the project is stalled since so many links are dead and  
defunct (and in fact I am not so sure of the zope community health  
myself any longer, despite the ongoing zope postings here).   In  
my opinion, making zope.org look healthy and be usable is the MOST  
important obstacle for the Zope community.  I believe this is both  
a symptom and a cause of disarray in the Zope user/developer  
community.
Zope was always a bit hairy to get into, without saying anything  
about Plone development or Zope 3, I just want to point out that  
without a clear simple up-to-date main web site, things are  
looking really bad.  I introduced some zope-based material in an  
introductory computer science course a few years ago with moderate  
success, but am starting to doubt it would be appropriate any longer.
I am not criticizing the people on this list or the other Zope  
developers: I have enormous appreciation for what has been built,  
I just would hate to see is dwindle in vitality and use.


Gregory, thanks for bringing this up. Please be assured that we're  
aware of this problem just as well. With the Zope Foundation in  
place, we can now tackle tasks like zope.org much better. But it  
takes time to get settled and we need volunteers. We've made some  
progress already, but we're not there yet. There's a committee  
which is actively planning on improving zope.org in the near future.


As far as zope.org's focus is concerned, it has shifted, as many  
already pointed out. We're no longer trying to make it a site with  
member accounts. Software is best released through the Python  
CheeseShop (aka PyPI) these days and bug collectors can be found on  
Launchpad. Outsourcing high-maintenance factors like these will  
allow us to focus on zope.org's actual message: promoting Zope.



--
http://worldcookery.com -- Professional Zope documentation and  
training


___
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
http://mail.zope.org/mailman/listinfo/zope-dev )


___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope is in trouble

2007-09-28 Thread Philipp von Weitershausen

Gregory Dudek wrote:
A key factor is that from the zope.org web site it is not clear if the 
community is healthy or not, and the general impression is that the 
project is stalled since so many links are dead and defunct (and in fact 
I am not so sure of the zope community health myself any longer, despite 
the ongoing zope postings here).   In my opinion, making zope.org look 
healthy and be usable is the MOST important obstacle for the Zope 
community.  I believe this is both a symptom and a cause of disarray in 
the Zope user/developer community.


Zope was always a bit hairy to get into, without saying anything about 
Plone development or Zope 3, I just want to point out that without a 
clear simple up-to-date main web site, things are looking really bad.  I 
introduced some zope-based material in an introductory computer science 
course a few years ago with moderate success, but am starting to doubt 
it would be appropriate any longer.


I am not criticizing the people on this list or the other Zope 
developers: I have enormous appreciation for what has been built, I just 
would hate to see is dwindle in vitality and use.


Gregory, thanks for bringing this up. Please be assured that we're aware 
of this problem just as well. With the Zope Foundation in place, we can 
now tackle tasks like zope.org much better. But it takes time to get 
settled and we need volunteers. We've made some progress already, but 
we're not there yet. There's a committee which is actively planning on 
improving zope.org in the near future.


As far as zope.org's focus is concerned, it has shifted, as many already 
pointed out. We're no longer trying to make it a site with member 
accounts. Software is best released through the Python CheeseShop (aka 
PyPI) these days and bug collectors can be found on Launchpad. 
Outsourcing high-maintenance factors like these will allow us to focus 
on zope.org's actual message: promoting Zope.



--
http://worldcookery.com -- Professional Zope documentation and training

___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope is in trouble

2007-09-27 Thread Simon Michael

Gregory Dudek wrote:
In my opinion, making zope.org look 
healthy and be usable is the MOST important obstacle for the Zope 
community.  I believe this is both a symptom and a cause of disarray in 
the Zope user/developer community.


I agree with you. Thanks for raising the issue again.

___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope is in trouble

2007-09-27 Thread Max M

Andreas Jung skrev:
Basically everything is true. The time of www.zope.org as a software 
repository has gone. In earlier times zope.org has been the only Zope 
related site. Nowadays with the growth and Zope and a lot of new 
projects, projects moved out into different sites. zope.org is an 
official project of the Zope Foundation and there were some talks on 
relaunching zope.org - however I don't know about details and the 
current state. The new site is likely to become a small site 
representing the Zope platform  in the first place.



I used to be pretty active on the original Zope site. Then we got what 
we asked for, and it was migrated to Plone.


Then it got too cumbersome to work with, and I put all the new stuff out 
on my own site.


These days I use a mix of plone.org and my own site.

zope.org is pretty irrelevant to what I do these days. I believe it is 
so for many zope people.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope is in trouble

2007-09-26 Thread Michael Haubenwallner

baiewola schrieb:

Often when you find a product on zope.org, there's just a link out to
another site, so the most recent downloads aren't even available on
zope.org. It's often more useful and faster just to google on your zope
topics, rather than use zope.org.

How can the community help, that's what we need to know?



How you can help:

- report broken links, errors and any issues with the website to 
[EMAIL PROTECTED]
- use [EMAIL PROTECTED] for discussions about zope.org website and 
proposals (archive at http://mail.zope.org/mailman/listinfo/zope-web)

- join the IRC chat at irc.feenode.net, #zope-web

Just for a start...

Michael

--
http://www.zope.org/Members/d2m
http:/planetzope.org

___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [Zope-dev] Moving the Zope (2) collector to launchpad.

2007-09-26 Thread Andreas Jung



--On 20. September 2007 10:06:54 -0400 Jim Fulton <[EMAIL PROTECTED]> wrote:



I'm going to start the process of moving the Zope 2 collector today.  It
will be impossible to submit issues using the existing collector.  We'll
announce the availability of the launchpad-based collector soon.




We are now through with the migration. The migrated Zope 2 collector is
now available on Launchpad:

  

The old Zope 2 collector is no longer available. Because  the bug trackers 
on Launchpad are using a different numbering scheme, there is transparent 
redirection in place that redirects  from


  http://www.zope.org/Collectors/Zope/

to the location of the migrated issue on Launchpad.

Many thanks to Jim for working on the export on the zope.org side and the 
friendly guys at Canonical - especially James Henstridge  - for working on 
the migration.


Andreas



pgpQJNMkslgsM.pgp
Description: PGP signature
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: [Zope-DB] case insensitive ZSQL queries

2007-09-07 Thread Peter Bengtsson




 upper(lastname) like upper()
   

* Don't use LIKE without any regular expression

* Use ILIKE instead of UPPER(...) = UPPER(...) since it's usually faster 
(I've "proven" this for PostgreSQL at least)


* Fastest method is always to use an index and you can write an index 
based on the UPPER() of a column. I've done this for a postcode table 
and sped up my queries by more than 10 times.



On 06/09/07, *Jaroslav Lukesh* < [EMAIL PROTECTED] 
> wrote:


Use MS-SQL or Sybase :o)

- Original Message -
From: "onsombal" <[EMAIL PROTECTED] >
 >
 > is there an easy way to make the following ZSQL query
case-insensitive?
 >
 > select * from clients
 > 
 >
 >  
 >
 >  
 >
 >  
 >
___
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
http://mail.zope.org/mailman/listinfo/zope-dev
 )





___
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

 http://mail.zope.org/mailman/listinfo/zope-dev )


--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: [Zope-DB] case insensitive ZSQL queries

2007-09-06 Thread Josh Burvill
Providing your database has the upper() function, or replace with similar


select ...

  
 upper(firstname) like upper()
   
  

 upper(lastname) like upper()
   
  
...etc...
  

On 06/09/07, Jaroslav Lukesh <[EMAIL PROTECTED]> wrote:
>
> Use MS-SQL or Sybase :o)
>
> - Original Message -
> From: "onsombal" <[EMAIL PROTECTED]>
> >
> > is there an easy way to make the following ZSQL query case-insensitive?
> >
> > select * from clients
> > 
> >
> >  
> >
> >  
> >
> >  
> >
> ___
> 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
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [Zope-DB] case insensitive ZSQL queries

2007-09-05 Thread Jaroslav Lukesh

Use MS-SQL or Sybase :o)

- Original Message - 
From: "onsombal" <[EMAIL PROTECTED]>


is there an easy way to make the following ZSQL query case-insensitive?

select * from clients

   
 
   
 
   
 


___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zope 2.10.4 for windows installer

2007-08-15 Thread Chris Withers

Sidnei da Silva wrote:

New build is available:

http://files.enfoldsystems.com/Zope-2.9.8-Final-7409.exe


After some light testing, it's also now "officially" up:

http://www.zope.org/Products/Zope/2.9.8

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zope 2.10.4 for windows installer

2007-08-13 Thread Chris Withers

chan.yinghoong wrote:

Chris Withers <[EMAIL PROTECTED]> writes:

Are there plans to release Zope 2.9.8 window installer also?


Sidnei, could you crank the handle?

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zope 2.10.4 for windows installer

2007-08-13 Thread chan . yinghoong
Chris Withers <[EMAIL PROTECTED]> writes:

> 
> anton wrote:
> > Hi,
> > 
> > its now over a motch that zope 2.10.4 was released.
> > 
> > Does anybody have an idea when there will be a windows installer?
> 
> Likely on Saturday...
> 
> Chris
> 

Are there plans to release Zope 2.9.8 window installer also?

CYH


___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope 3.3.1 tests fail on FC6 x86_64

2007-08-02 Thread Roman Budzianowski
Right you are. For some reason a brand new installation of FC6 didn't  
include 127.0.0.1 address in /etc/hosts.


Thanks a lot.

Roman

On Aug 2, 2007, at 6:02 AM, Tres Seaver wrote:




   File "", line 1, in connect
gaierror: (-2, 'Name or service not known')

Do I have to downgrade to python 2.4.3?


Nope.  You've got some kind of name resolution problem:  the error
message says that it is trying to bind to an unknown hostname (likely
'localhost').  Check that you have that name in /etc/hosts.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGsdXl+gerLs4ltQ4RAgoGAJ42hnEIxKZy6zDchNryPzi6Ak9YjACgjoQq
LiTnEE5PprULqMyKWH9VYWw=
=QBYr
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope 3.3.1 tests fail on FC6 x86_64

2007-08-02 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Roman Budzianowski wrote:
> I am trying to build Zope 3.3.1 on FC6 x86_64. Python is 2.4.4.  
> Config reports that it is an acceptable version.
> I get a lot of test failures like:
> 
> Error in test testNOK (ZEO.tests.testAuth.PlainTextAuth)
> Traceback (most recent call last):
>File "/usr/lib64/python2.4/unittest.py", line 251, in run
>  self.setUp()
>File "/home/Zope-3.3.1/build/lib.linux-x86_64-2.4/ZEO/tests/ 
> testAuth.py", line 41, in setUp
>  self.__super_setUp()
>File "/home/Zope-3.3.1/build/lib.linux-x86_64-2.4/ZEO/tests/ 
> ConnectionTests.py", line 112, in setUp
>  self.startServer()
>File "/home/Zope-3.3.1/build/lib.linux-x86_64-2.4/ZEO/tests/ 
> ConnectionTests.py", line 211, in startServer
>  zeoport, adminaddr, pid, path = forker.start_zeo_server(
>File "/home/Zope-3.3.1/build/lib.linux-x86_64-2.4/ZEO/tests/ 
> forker.py", line 149, in start_zeo_server
>  s.connect(adminaddr)
>File "", line 1, in connect
> gaierror: (-2, 'Name or service not known')
> 
> Do I have to downgrade to python 2.4.3?

Nope.  You've got some kind of name resolution problem:  the error
message says that it is trying to bind to an unknown hostname (likely
'localhost').  Check that you have that name in /etc/hosts.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGsdXl+gerLs4ltQ4RAgoGAJ42hnEIxKZy6zDchNryPzi6Ak9YjACgjoQq
LiTnEE5PprULqMyKWH9VYWw=
=QBYr
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


RE: [Zope] Re: Zope 2.10.4 Upgrade

2007-07-13 Thread David Ayres

That's what I did in the past and what I finally did for this upgrade. I was
just wondering for future reference.

Dave

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jens
Vagelpohl
Sent: Friday, July 13, 2007 2:54 AM
To: zope user list
Subject: Re: [Zope] Re: Zope 2.10.4 Upgrade

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 13 Jul 2007, at 01:40, David Ayres wrote:

>
> Thanks to everyone for the replies. In the past, I usually created a 
> brand new instance and just copied over my Data.fs, Products, etc. 
> But, I figured there was a way to do an upgrade. Attempt 1: Failed. :)
>
> If I run mkzopeinstance over my existing instance, will it upgrade the 
> instance without destroying my data, etc. ?

Why don't you just create a new instance, copy or link all products from the
old instance and copy the ZODB into it? That way you keep your old instance
as a backup.

jens


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGlyF0RAx5nvEhZLIRAmsdAJ9azJJneG3xJFDTEpiPj9w3jvRtpACgmeam
haF+C83m8ELmyR2O4/wG+Es=
=PJvd
-END PGP SIGNATURE-
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope 2.10.4 Upgrade

2007-07-12 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 13 Jul 2007, at 01:40, David Ayres wrote:



Thanks to everyone for the replies. In the past, I usually created  
a brand
new instance and just copied over my Data.fs, Products, etc. But, I  
figured

there was a way to do an upgrade. Attempt 1: Failed. :)

If I run mkzopeinstance over my existing instance, will it upgrade the
instance without destroying my data, etc. ?


Why don't you just create a new instance, copy or link all products  
from the old instance and copy the ZODB into it? That way you keep  
your old instance as a backup.


jens


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGlyF0RAx5nvEhZLIRAmsdAJ9azJJneG3xJFDTEpiPj9w3jvRtpACgmeam
haF+C83m8ELmyR2O4/wG+Es=
=PJvd
-END PGP SIGNATURE-
___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


RE: [Zope] Re: Zope 2.10.4 Upgrade

2007-07-12 Thread David Ayres
 
Thanks to everyone for the replies. In the past, I usually created a brand
new instance and just copied over my Data.fs, Products, etc. But, I figured
there was a way to do an upgrade. Attempt 1: Failed. :)

If I run mkzopeinstance over my existing instance, will it upgrade the
instance without destroying my data, etc. ?

Thanks Again,
Dave

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Maurits van Rees
Sent: Thursday, July 12, 2007 11:34 AM
To: zope@zope.org
Subject: [Zope] Re: Zope 2.10.4 Upgrade

David Ayres, on 2007-07-12:
> I recently upgraded from Zope 2.10.0 to 2.10.4. However, the Zope 
> instance still reflects 2.10.0 in the control panel.
>  
> I installed Zope 2.10.4. Then, in my instance, I changed the variables 
> in 'zopectl' and 'zope.conf' to reflect the new 2.10.4 version and
restarted.
> Did I miss a step?

You can run a mkzopeinstance over an existing instance and those things will
be upgraded.  Not completely sure what happens to any modifications to the
zope.conf file.

--
Maurits van Rees | http://maurits.vanrees.org/ [NL]
Work | http://zestsoftware.nl/ "Do not worry about your
difficulties in computers,  I can assure you mine are still greater."

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope 2.10.4 Upgrade

2007-07-12 Thread Maurits van Rees
David Ayres, on 2007-07-12:
> I recently upgraded from Zope 2.10.0 to 2.10.4. However, the Zope instance
> still reflects 2.10.0 in the control panel. 
>  
> I installed Zope 2.10.4. Then, in my instance, I changed the variables in
> 'zopectl' and 'zope.conf' to reflect the new 2.10.4 version and restarted.
> Did I miss a step?

You can run a mkzopeinstance over an existing instance and those
things will be upgraded.  Not completely sure what happens to any
modifications to the zope.conf file.

-- 
Maurits van Rees | http://maurits.vanrees.org/ [NL]
Work | http://zestsoftware.nl/
"Do not worry about your difficulties in computers,
 I can assure you mine are still greater."

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope 2.10.4 Upgrade

2007-07-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jens Vagelpohl wrote:
> 
> On 12 Jul 2007, at 05:03, David Ayres wrote:
> 
>> I recently upgraded from Zope 2.10.0 to 2.10.4. However, the Zope  
>> instance still reflects 2.10.0 in the control panel.
> 
>> I installed Zope 2.10.4. Then, in my instance, I changed the  
>> variables in 'zopectl' and 'zope.conf' to reflect the new 2.10.4  
>> version and restarted. Did I miss a step?
> 
> 
> Taking an existing instance and mucking with the scripts in it to  
> point to newer code isn't recommended. However, it can be expedient  
> if you really know what you're doing. You need to edit pretty much  
> every file under bin/ and etc/ in your instance and do a search/ 
> replace, not just etc/zope.conf and bin/zopectl.

in particular, 'zopectl' invokes 'runzope' to start the application server.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGlkEd+gerLs4ltQ4RAtiVAJ976kguMdfO+ebdvgLcG8SKTrgu8gCgwnUT
ljZjUSxpqqlQdWsRCjRMVmY=
=Ug8d
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope products that allows people to Add Commentsto publications

2007-06-29 Thread Max M

Shane Graber skrev:


A quick look at svn
(http://squishdot.svn.sourceforge.net/viewvc/squishdot/) shows no
activity for 11 months, which also lends itself to this inference.
I'm not meaning to sound harsh so I hope it doesn't come across this
way.


Ahh ... spoken as a true Plone developer. You are too used to minor 
versions breaking stuff.


The upshot of the dev team moving their time and efforts to zope 3 is 
that the zope 2 base stays very stable :-s


I have some stuff from years ago that runs unchanged on recent zope 2's

If it it aint broke ... :-)


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] RE: Zope Digest, Vol 37, Issue 16

2007-06-18 Thread Mark, Jonathan (Integic)


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, June 18, 2007 12:00 PM
To: zope@zope.org
Subject: Zope Digest, Vol 37, Issue 16

Send Zope mailing list submissions to
zope@zope.org

To subscribe or unsubscribe via the World Wide Web, visit
http://mail.zope.org/mailman/listinfo/zope
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Zope digest..."


Today's Topics:

   1. Re: Auto Cataloging my ZCatalog (kamal hamzat)
   2. Re: zope stopped working suddenly (Mohammed Tlais)
   3. Re: zope stopped working suddenly (Maciej Wisniowski)
   4. Re: Auto Cataloging my ZCatalog (Jonathan)
   5. RSS to HTML in Zope (Tom Von Lahndorff)
   6. Re: security assertion needed for dictionary? (tomvon)
   7. RE: security assertion needed for dictionary?
  (Doyon, Jean-Francois)
   8. Re: RSS to HTML in Zope (Andreas Jung)
   9. RE: security assertion needed for dictionary? (tomvon)


--

Message: 1
Date: Sun, 17 Jun 2007 18:01:28 +0100
From: "kamal hamzat" <[EMAIL PROTECTED]>
Subject: Re: [Zope] Auto Cataloging my ZCatalog
To: "Jonathan" <[EMAIL PROTECTED]>, 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
reply-type=response


- Original Message - 
From: "Jonathan" <[EMAIL PROTECTED]>
To: "kamal hamzat" <[EMAIL PROTECTED]>; 
Sent: Friday, June 15, 2007 5:58 PM
Subject: Re: [Zope] Auto Cataloging my ZCatalog


>
> - Original Message - 
> From: "kamal hamzat" <[EMAIL PROTECTED]>
> To: 
> Sent: Friday, June 15, 2007 12:51 PM
> Subject: [Zope] Auto Cataloging my ZCatalog
>
>
> Hello,
>
> I have a ZCatalog that my users use to catalog there news articles
which 
> are (DTML Documents). I have already explained it to them to always
input 
> the id for the new DTML Documents under "with ids" section on the Find

> Objects tab on the ZMI to catalog new articles. But most time they
will 
> not and they end up cataloging the entire articles which runs to
13,000 
> records.
>
> What i want is either to be able to display error when the "with ids"
is 
> missing on Find Objects form or to be able to automate it. For example
use 
> a python code. I am new to python but very eager to learn.
>>
>
> One possible approach:
>
> - I would not allow end-users access to the ZMI.
>
> - Have users interact with the application through a menu driven
interface
>
> - Use a series of forms to collect data, then use python
scripts/external 
> methods to create/store objects (eg. your DTML Documents) and update
the 
> ZCatalog(s).
>

This sound interesting, but i do not have an idea of how to use python/ 
external method to create/store objects.
I will appreciate if you can point me to links or articles that have
treated 
something similar.

Thanks
kamal 



--

Message: 2
Date: Mon, 18 Jun 2007 08:18:22 +0300
From: "Mohammed Tlais" <[EMAIL PROTECTED]>
Subject: Re: [Zope] zope stopped working suddenly
To: "Maciej Wisniowski" <[EMAIL PROTECTED]>
Cc: zope@zope.org
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

On 6/15/07, Maciej Wisniowski <[EMAIL PROTECTED]>
wrote:

>
> >   File "/opt/Zope-2.10/lib/python/Zope2/Startup/__init__.py", line
> > 234, in dropPrivileges
> > return dropPrivileges(self.cfg)
> >   File "/opt/Zope-2.10/lib/python/Zope2/Startup/__init__.py", line
> > 403, in dropPrivileges
> > raise ZConfig.ConfigurationError(msg)
> > ZConfig.ConfigurationError: A user was not specified to setuid to;
fix
> > this to start as root (change the effective-user directive in
zope.conf)
> > /** END **/
> You have answer above. To run as root you have
> to change effective-user at zope.conf file


I tried to change effective-user from the zope.conf.in file and saved it
as
zope.conf, I used the command

effective-user tleis , as stated in the example of that file, but no
thing
changed. if anyone knows why please tell me (just curousity)



> >
> > When everything was ok in the past I was able to run zope through
> > ./zopectl start (as a root)
> > but now the stop command displays that  the daemon manager is not
open.
> Strange that it worked. In general I think you shouldn't
> run zope as root.
>
> --
> Maciej Wisniowski


I created a new user as Maciej said, and there i tried to create an
instance, but I got a denied permission message. What I did finally is
that
I deleted the folders in both /tmp/zope and /opt/Zope-2.10 folders, and
installed Zope Again and everything is working fine right
now! but i still want to understand why this happened to me?
Thanks for you
-- next part --
An HTML attachment was scrubbed...
URL:
http://m

[Zope] Re: zope stopped working suddenly

2007-06-13 Thread Maurits van Rees
Mohammed Tlais, on 2007-06-13:
> Greetings
> First , I am glad to join you at this list. I installed Zope on Fedora Core
> 6, and started to learn how to use it. for a few days i was able to access
> the management interface (ZMI) through http://127.0.0.1:8080 after starting
> zope through .../zopectl start. but as a sudden I found myself unable to
> enter to the ZMI anymore. The browser displays  an error as if zope is not
> started at all.
> I am a newbie in both Linux and Zope, so please can anyone pass me some tips
> on how to check what is causing the problem and how to solve it?

Two options:

1. Look for errors in the log/event.log file of your zope instance.

2. Start Zope with bin/zopectl fg

That last one will start zope in the foreground, which will let you
see any warnings and errors that it runs into when starting up.

-- 
Maurits van Rees | http://maurits.vanrees.org/ [NL]
Work | http://zestsoftware.nl/
"Do not worry about your difficulties in computers,
 I can assure you mine are still greater."

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] RE: Zope 2.9 windows

2007-06-07 Thread Josef Albert Meile

Hi Chris


I have a customer that using windows xp, The zope server is giving the
following error when starting up

\zope\lib\python\Zserver\medusa\thread\select_trigger.py, line 133, in
__init__
a.listen(1)
File "(string)", line 1, in listen socket.error: (10022, 'Invalid 
argument')


Does anybyd have any idea what wrong?


It could be related to this problem:

* Possible windows+python bug
http://groups.google.ch/group/muc.lists.bugtraq/browse_thread/thread/5a605d82d30f6839/45646887b9817c61

They wrote there that this happened with C as well, so, it is not a bug.
I know the code posted there is not the same, but it could be a related
problem.

My best guest is that the problem is related to the Windows Firewall.
In mentioned thread, somebody suggested to deactivate it and see if
it works. You could also add an exception for the port that zope uses.

There are some other suggestions from which I'm not sure, for I
usally run zope under linux.

2) Try to run it in an account without admin privileges. I have tested
   zope with admin privileges under windows without any problem.

3) Disable raw sockets (This is written there, but I have no idea if
   this can help):
   Net stop SharedAccess

   Then start zope and restart the SharedAccess service

Regards
Josef

_
Like puzzles? Play free games & earn great prizes. Play Clink now. 
http://club.live.com/clink.aspx?icid=clink_hotmailtextlink2


___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope 2.7 - sporadic service hangup

2007-06-05 Thread Maciej Wisniowski
>   In the trace.log (after turning this on) we can see entries for
> the last requests that completes and three requests that begins,
> but never finish (see below).
This is typical behaviour when all your threads are busy. Zope
accepts requests and AFAIR they're even written into z2.log but
doesn't serve them because all it's threads are busy.

Solution is to use DeadlockDebugger to see what your threads are doing
while Zope seems to be 'hang'.

-- 
Maciej Wisniowski
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope 2.7 - sporadic service hangup

2007-06-05 Thread Jaroslav Lukesh
Don't repair which is not broken

Make downgrade...

I have Mandrake 9.1 with Zope 2.5.1 and second server Mandrake 10.2 with 
Zope 2.9.4, old mandrake is much more better, at 10.2 I have in crontab 
line:

00 4 * * * root /zope/../bin/zopectl restart

It sometimes hangs me too.

  - Original Message - 
  From: Jostein Leira

  After upgrading the OS (kernel and packages) this spring (around April 
2007) we are experiencing problems with our Zope-servers "hanging". It 
accepts connections, but does not give any response. Nothing is shown in the 
event.log or access.log (since request never finish).
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope 2.7 - sporadic service hangup

2007-06-05 Thread Jostein Leira
We have for several years run a site without any problems until now. It has 
over 70.000 registered users, but only about 1.000 logins each day. It is low 
load on this site.
   
  After upgrading the OS (kernel and packages) this spring (around April 2007) 
we are experiencing problems with our Zope-servers "hanging". It accepts 
connections, but does not give any response. Nothing is shown in the event.log 
or access.log (since request never finish).
   
  In the trace.log (after turning this on) we can see entries for the last 
requests that completes and three requests that begins, but never finish (see 
below). Following requests are not logged in the trace.log file.
   
  We experience the same behavior on our production and development system. The 
production system "hangs" about once every 10-20 days. The development system 
hangs more often. We are not sure if the "hangs" are related to high load on 
the systems. I have tried to provoke a "hang" situation by running multiple 
wgets in tight loops in parallel, but have not managed to produce a hang.
  
Development system:
hw: HP Proliant DL140
  From Control_Panel:
Zope Version  (Zope 2.7.9-final, python 2.3.5, linux2)  
Python Version  2.3.5 (#2, Oct 16 2006, 19:19:48) [GCC 3.3.5 (Debian 
1:3.3.5-13)] 
  cat /proc/version
Linux version 2.6.8-3-686 ([EMAIL PROTECTED]) (gcc version 3.3.5 (Debian 
1:3.3.5-13)) #1 Tue Dec 5 21:26:38 UTC 2006
  
Production:
hw: HP Proliant DL360 G4p
  From Control_Panel:
Zope Version  (Zope 2.7.8-final, python 2.3.5, linux2)  
Python Version  2.3.5 (#2, Oct 16 2006, 19:19:48) [GCC 3.3.5 (Debian 
1:3.3.5-13)] 
  cat /proc/version
Linux version 2.6.8-3-686-smp ([EMAIL PROTECTED]) (gcc version 3.3.5 (Debian 
1:3.3.5-13)) #1 SMP Tue Dec 5 23:17:50 UTC 2006
  
We are not using LDAP or any Oracle stuff, but are using Object Craft's Sybase 
interface (python-sybase) (0.37) and mysql-python.
   
  We are not using ZEO, just a single instance of Zope.
   
  
trace.log (paths truncated):

B 1178565228 2007-05-15T09:08:31 GET 
/VirtualHostBase/http/dev:80/fj/www/VirtualHostRoot/images/background_my_page.gif
I 1178565228 2007-05-15T09:08:31 0
A 1178565228 2007-05-15T09:08:32 200 577
E 1178565228 2007-05-15T09:08:32
B 1165378476 2007-05-15T09:08:32 POST 
/VirtualHostBase/http/dev:80/VirtualHostRoot/getPendingAndFailedTransactionsXml/undefined/no
I 1165378476 2007-05-15T09:08:32 0
B 1181319436 2007-05-15T09:08:32 GET 
/VirtualHostBase/http/dev:80/VirtualHostRoot/forms.xml?e=17
I 1181319436 2007-05-15T09:08:32 0
B 1180192396 2007-05-15T09:08:32 POST 
/VirtualHostBase/http/dev:80/VirtualHostRoot/getUserInformationXml
I 1180192396 2007-05-15T09:08:32 0
B 1180114988 2007-05-15T09:08:32 GET 
/VirtualHostBase/http/dev:80/VirtualHostRoot/getAllCountriesXml
I 1180114988 2007-05-15T09:08:32 0
A 1181319436 2007-05-15T09:08:32 200 49250
E 1181319436 2007-05-15T09:08:32

  
In Z2.log I see background_my_page.gif and forms.xml as the last two before 
restart of Zope.
   
  Nothing special in the event.log

  Regards
   
   
  Jostein Leira

 
-
8:00? 8:25? 8:40?  Find a flick in no time
 with theYahoo! Search movie showtime shortcut.___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: [Zope-DB] blobs and dtml-sqlvar

2007-06-02 Thread Maciej Wisniowski
>> I'm using MySQLDBA, and I've got a Z SQL Method like this:
>>
>> select * from myTable where someValue=
>>
>> The issue being that 'myValue' is actually a Hex value in a Blob
>> column. The only types possible for dtml-sqlvar seem to be string and
>> int (as far as I can tell).
>>
>> I noticed that when I use 'type=string' the value is always placed in
>> inverted commas (and so MySQL thinks it is a string and rejects
>> it) and when I put 'type=int' the Hex value is rejected by Zope.
>>
>> Is it possible that MySQLDBA can not handle blobs / Hex values at all?
>> I'm confused that dtml-sqlvar only sees 2 types of data.
I have no idea how this works with mysql but in postgres I've used:

ZSQL:
update company
   set logo=::bytea
 where companyid=

Python Script:
from psycopg2 import Binary
picture = container['logo.gif'].data  # Image object
container.set_logo(companyid=companyid, logo = Binary( obraz ))

Maybe there is something similiar in MySQLDB.

-- 
Maciej Wisniowski
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [Zope-DB] blobs and dtml-sqlvar

2007-06-01 Thread Jonathan


- Original Message - 
From: "e deleflie" <[EMAIL PROTECTED]>

To: <[EMAIL PROTECTED]>
Sent: Friday, June 01, 2007 7:58 PM
Subject: [Zope-DB] blobs and dtml-sqlvar



I'm using MySQLDBA, and I've got a Z SQL Method like this:

select * from myTable where someValue=

The issue being that 'myValue' is actually a Hex value in a Blob
column. The only types possible for dtml-sqlvar seem to be string and
int (as far as I can tell).

I noticed that when I use 'type=string' the value is always placed in
inverted commas (and so MySQL thinks it is a string and rejects
it) and when I put 'type=int' the Hex value is rejected by Zope.

Is it possible that MySQLDBA can not handle blobs / Hex values at all?
I'm confused that dtml-sqlvar only sees 2 types of data.


I use ZMySQLDA quite a bit, but I have never used a blob column.  According 
to the documentation the available types are: string, int, float and nb.  I 
had a quick look through the ZMySQLDA source code and saw blob types being 
defined, but didn't see (during my quick look) how they were being used. 
So... try the 'nb' type and if that does not work, have a look at the source 
code and see how the blob types are being used.


Not a whole lot of help, but maybe point you in a direction... Good Luck!

Jonathan 


___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [Zope-DB] Unicode charset problems dealing with the ZmySQLDA product

2007-04-30 Thread Dieter Maurer
Miguel Sánchez Beato wrote at 2007-4-30 12:33 +0200:
>I'm having problems when I retrieve data from the database because the 
>data is not rendered using the unicode charset when the zope instance is 
>in a vserver (with a Gentoo Linux distribution), so I get  weird 
>characters like 'á' instead of the usual ones: 'á' (as they are strored 
>inthe db).

Strictly speaking, there is no "Unicode charset".

Apparently something in your data flow uses the "utf-8" charset
but your pages do not tell this to the browser.

You may try to set an
"response.setHeader('Content-Type', 'text/html; charset=utf-8)".

> ...
>Which differences are between the _mysql python module and the MySQLdb 
>library for this purpose?
>Could it be the configuation of the vserver? How can it be relationed 
>with the unicode problems?

Often the database configuration or some environment variable
determine the so called client encoding. The client encoding
controls which encoding (aka "charset") the client expects for
unicode strings.

There may be differences between your two configurations.



-- 
Dieter
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zope problem

2007-04-04 Thread Josef Meile

Hi kashif


when we run zopectl the following error message occour



[EMAIL PROTECTED] zope]# zopectl
/usr/lib/python2.4/whrandom.py:38: DeprecationWarning:
the whrandom module is deprecated; please use the
random module
  DeprecationWarning)
program: /usr/bin/runzope
daemon manager not running
zopectl>   
Well, actually that's not an error. The message is right; you haven't 
started zope. To start it, you have to run "zopectl start" without 
quotation marks.


Do "zopectl help" without quotation maks to see what you can do with it.

Regards
Josef
___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] RE: Zope Digest, Vol 35, Issue 3

2007-04-03 Thread Mark, Jonathan (Integic)

>>I want zope to listen to two different ip-addrs on two different ports and
>> I'm unsure of how to configure zope to behave correctly.

>Is there a reason why you don't want to use something like a front-end 
>apache with url rewriting?

A simple way to do that is to set up Zope to listen on one of the two IP:ports. 
On the other one set up an Apache webserver. In the httpd.conf file for the 
Apache webserver say:

RewriteEngine on
RewriteRule (.*)(\/any_trailing_cruft_you_might_wish_to_remove) 
http://your_Zope_server:your_zope_port/$1
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope 2.8.9, Zope 2.9.7, Zope 2.10.3 released

2007-03-26 Thread Andreas Jung



--On 27. März 2007 07:41:06 +0200 Martijn Pieters <[EMAIL PROTECTED]> wrote:


On 3/27/07, Andreas Jung <[EMAIL PROTECTED]> wrote:

The 2.8.9 release does not contain this error since Python decorators
aren't available in Python 2.3 (the official blessed Python version).


The problem *does* exist as decorators are just a nice way of spelling:

  methodName = decoratorName(methodName)

That's how the postonly decorator is applied in 2.8 and in the Hotfix,
and the REQUEST parameter is still required. I fixed this in the 2.8
branch as well last night.


You're right. I did not notice that the decorator emulation moved
*of course* after the method...blame it on the summer time or the late 
night :-)


Andreas

pgpy9ZmWdMQXE.pgp
Description: PGP signature
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope 2.8.9, Zope 2.9.7, Zope 2.10.3 released

2007-03-26 Thread Martijn Pieters

On 3/27/07, Andreas Jung <[EMAIL PROTECTED]> wrote:

The 2.8.9 release does not contain this error since Python decorators
aren't available in Python 2.3 (the official blessed Python version).


The problem *does* exist as decorators are just a nice way of spelling:

 methodName = decoratorName(methodName)

That's how the postonly decorator is applied in 2.8 and in the Hotfix,
and the REQUEST parameter is still required. I fixed this in the 2.8
branch as well last night.

--
Martijn Pieters
___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope 2.8.9, Zope 2.9.7, Zope 2.10.3 released

2007-03-26 Thread Andreas Jung



--On 26. März 2007 20:29:21 + Maurits van Rees 
<[EMAIL PROTECTED]> wrote:



Andreas Jung, on 2007-03-26:

I uploaded corrected versions of the Zope 2.9.7 and 2.10.3 tar-balls.
The tar-balls released yesterday contained a bug that caused
a startup failure when using "zopectl start".


Great, thank you!  I tested the new tar balls and they work fine now.

Any chance of doing this for 2.8.9 as well, as this has the same bug?



The 2.8.9 release does not contain this error since Python decorators
aren't available in Python 2.3 (the official blessed Python version).

Andreas

pgpAd11tMGuoZ.pgp
Description: PGP signature
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: [Zope-Annce] Zope 2.8.9, Zope 2.9.7, Zope 2.10.3 released

2007-03-26 Thread Andreas Jung



--On 26. März 2007 16:49:30 -0400 Tres Seaver <[EMAIL PROTECTED]> 
wrote:



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Marc Balmer wrote:

Andreas Jung wrote:


I uploaded corrected versions of the Zope 2.9.7 and 2.10.3 tar-balls.
The tar-balls released yesterday contained a bug that caused
a startup failure when using "zopectl start".


don't do this again.


Don't do what?  I was about to agree, as I don't think re-releasing
under the same version number was correct:  the new releases should be
2.9.7.1, 2.10.3.1, or something similary (or bump to 2.9.8, 2.10.4).


Creating a new release takes me about 45 minutes for each release..time I 
don't have this week before my vacation. So my decision should be acceptable

for the Zope world - perhaps not for the packagers...anyway things happen...




this bug is so obvious to catch that I have some serious doubts about
your software testing process.  are you releasing totally untested code?
  can we trust your releases in the future, will you change sth in your
process?


The testing that gets done is not done from "released" tarballs, but
from subversion checkouts.  This was a bug in the process that created
the tarball from a checkout, and not in the underlying Zope software
itself.  I *think* it also affected only those who build and install
Zope as root, although I can't tell for sure, since the tarballs have
been replaced.  At any rate, I *never* build, install, or run Zope as
root, and hence would never have noticed the problem, even if I were
doing the releases myself.


I usually test the tar-balls but only using "zopectl fg" which did not show
any errors for the three releases.

Andreas





pgpehcWJS5w1f.pgp
Description: PGP signature
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [Zope-Annce] Zope 2.8.9, Zope 2.9.7, Zope 2.10.3 released

2007-03-26 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Marc Balmer wrote:
> Andreas Jung wrote:
> 
>> I uploaded corrected versions of the Zope 2.9.7 and 2.10.3 tar-balls.
>> The tar-balls released yesterday contained a bug that caused
>> a startup failure when using "zopectl start".
> 
> don't do this again.

Don't do what?  I was about to agree, as I don't think re-releasing
under the same version number was correct:  the new releases should be
2.9.7.1, 2.10.3.1, or something similary (or bump to 2.9.8, 2.10.4).

> this bug is so obvious to catch that I have some serious doubts about 
> your software testing process.  are you releasing totally untested code? 
>   can we trust your releases in the future, will you change sth in your 
> process?

The testing that gets done is not done from "released" tarballs, but
from subversion checkouts.  This was a bug in the process that created
the tarball from a checkout, and not in the underlying Zope software
itself.  I *think* it also affected only those who build and install
Zope as root, although I can't tell for sure, since the tarballs have
been replaced.  At any rate, I *never* build, install, or run Zope as
root, and hence would never have noticed the problem, even if I were
doing the releases myself.

> Releasing software as a security fix that does not even start makes you 
> look like a moron, I am sorry to say.

Too harsh.  Certainly nobody likes having released a "brown bagger", but
mistakes do happen.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGCDHa+gerLs4ltQ4RAqHbAJ9UvloqzCCj9NrCaGSeYZDfZduaJwCdFH5l
ydlyxzoHGP7aNnVjG1IJClU=
=6vHA
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [Zope-Annce] Zope 2.8.9, Zope 2.9.7, Zope 2.10.3 released

2007-03-26 Thread Martijn Pieters

On 3/26/07, Tres Seaver <[EMAIL PROTECTED]> wrote:

> Releasing software as a security fix that does not even start makes you
> look like a moron, I am sorry to say.


Calling people morons makes you look like one, I'm afraid.

The bug had only indirectly to do with the recent security fix. The
startup problem only occurred when running Zope in managed mode,
something most developers never do because you normally want to see
the Zope log output when developing, so you catch problems early. So
the problem was limited to a special-cased method declaration that
only gets run in a deployment setting.

This was one of those rare cases of bad luck, as the developer in
question was not aware of the fact that this one special-cased method
was not covered by a unit or functional test.

--
Martijn Pieters
___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope 2.8.9, Zope 2.9.7, Zope 2.10.3 released

2007-03-26 Thread Maurits van Rees
Andreas Jung, on 2007-03-26:
> I uploaded corrected versions of the Zope 2.9.7 and 2.10.3 tar-balls.
> The tar-balls released yesterday contained a bug that caused
> a startup failure when using "zopectl start".

Great, thank you!  I tested the new tar balls and they work fine now.

Any chance of doing this for 2.8.9 as well, as this has the same bug?

-- 
Maurits van Rees | http://maurits.vanrees.org/ [NL]
Work | http://zestsoftware.nl/
"Do not worry about your difficulties in computers,
 I can assure you mine are still greater."

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope 2.8.9, Zope 2.9.7, Zope 2.10.3 released

2007-03-26 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tres Seaver wrote:
> Marc Balmer wrote:
>>> Andreas Jung wrote:
>>>
 I uploaded corrected versions of the Zope 2.9.7 and 2.10.3 tar-balls.
 The tar-balls released yesterday contained a bug that caused
 a startup failure when using "zopectl start".
>>> don't do this again.
> 
> Don't do what?  I was about to agree, as I don't think re-releasing
> under the same version number was correct:  the new releases should be
> 2.9.7.1, 2.10.3.1, or something similary (or bump to 2.9.8, 2.10.4).
> 
>>> this bug is so obvious to catch that I have some serious doubts about 
>>> your software testing process.  are you releasing totally untested code? 
>>>   can we trust your releases in the future, will you change sth in your 
>>> process?
> 
> The testing that gets done is not done from "released" tarballs, but
> from subversion checkouts.  This was a bug in the process that created
> the tarball from a checkout, and not in the underlying Zope software
> itself.  I *think* it also affected only those who build and install
> Zope as root, although I can't tell for sure, since the tarballs have
> been replaced.  At any rate, I *never* build, install, or run Zope as
> root, and hence would never have noticed the problem, even if I were
> doing the releases myself.

Following up to myself, as I had wrongly assumed that this problem was
related to file permissions in the tarball (only an issue on the 2.8
branch, apparanetly).

*I* introduced the bug here, by failiing to add a REQUEST parameter to
one method.  I *did* test starting the server, but only using 'zopectl
fg', and not 'zopectl start', as well as running all the unit and
functional tests for each branch before checking in.

As a process fix:  we should be adding functional tests which exercise
the 'start', 'restart', 'fg', etc. verbs of 'zopectl'.

Mea culpa.  I owe the wine or equivalent comestibles to Andreas and Martijn.



Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGCDWr+gerLs4ltQ4RAsV7AJ42IAyzEHHfWbO3FZt1PO2bq2lfxwCgxTq6
T35Lkae75xAyvj5B651dNNI=
=vmcK
-END PGP SIGNATURE-
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [Zope-Annce] Zope 2.8.9, Zope 2.9.7, Zope 2.10.3 released

2007-03-26 Thread Andreas Jung

I uploaded corrected versions of the Zope 2.9.7 and 2.10.3 tar-balls.
The tar-balls released yesterday contained a bug that caused
a startup failure when using "zopectl start".

Andreas

--On 25. März 2007 12:45:58 +0100 Andreas Jung <[EMAIL PROTECTED]> wrote:


The Zope developer community I is pleased to announce the release
of three new Zope releases: 2.8.9, 2.9.7 and 2.10.3.

You can download the releases from:

  http://www.zope.org/Products/Zope/2.8.9/

  http://www.zope.org/Products/Zope/2.9.7/

  http://www.zope.org/Products/Zope/2.10.3/

The release notes and release information are available directly
from the links above.

All releases are bugfix releasse and include the hotfix published
some days ago:

  http://www.zope.org/Products/Zope/Hotfix-2007-03-20


- --
Andreas Jung

--
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting




--
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK

E-Publishing, Python, Zope & Plone development, Consulting


pgpoI7twbS2kd.pgp
Description: PGP signature
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope hangs in FreeBSD with plenty of memory and CPU resources

2007-03-07 Thread Maik Ihde

> I know that the kqread state has to do with the kqueue or kevent
> system call, and assume that Zope being in that waiting state for a
> long time is abnormal. Asking here in case someone has seen this
> behavior before and knows what might be the cause. As for the last and
> only other time this happened, Zope regained normal behavior by itself
> after a little while (in the order of half an hour). I don't see

Maybe your "hanging" server threads are related to that mysql problem you wrote
about. I remember that I had an issue with mysql running out of connections and
so a after a while all zope threads were waiting for mysql answers and Zope was
practically unresponsive and not using much cpu. You might want to check your
MySQL Logs...

Kind Regards
Maik


___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zope unresponsive

2007-02-27 Thread Paul Williams

No, we haven't done that yet.  That is something else we may try.



Marco Bizzarri wrote:
On 2/27/07, Paul Williams 
<[EMAIL PROTECTED]> wrote:



Tres Seaver wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Paul Williams wrote:
>> Ok, here is what we have.  I did a netstat on both machines, client 
and
>> server.  The client sees and established connection and the server 
does

>> not.  In the server log there is a disconnect.  As far as hardware
>> between them, there is a switch (dell powerconnect 6024).  Web Server
>> Directors might get hold of it but there are no hops on traceroute.
>> Traceroute only shows the client machine and the server machine.
>>
>> So the client is just continuously polling the connection but getting
>> nothing back.
>
> That sounds like some weird kernel / networking problem to me:  I don't
> see how Zope could be able to keep calling 'select' on a socket after
> the other side has closed it.

We agree.  This is a strange situation that none of us have seen before.

However, we have until tomorrow to do something and replacing hardware
is not feasable.


>
> Is there any possibility that some kind of failover / IP takeover has
> happened, such that the storage server now running is not the same host
> / instance as the one to shich the clients originally connected?  Are
> you using LVS + heartbeat, or some kind of hardware load balancer to
> manage such redundancy?

We do have Web Services Directors that do load balancing, but in this
particular case, the storage server is not setup for load balancing, I
am not aware of any features that make the zodb capable of clustering
except for replication services offered through zope.

We are not sure whether the traffic is going to the Web Services
Directores or not.  Even if it is, there are thousands of settings and
there is no-one available that knows what to change.


The storage server is a simple nas server with a static ip address.

>
>> What we are thinking about doing is changing the code in
>> zrpc/connection.py to close the connection in wait (line 638 zope
>> version 2.9.5) if the wait time gets too large or the poll has 
happened

>> too many times.
>>
>> We are great at plone development, but have very little backend zope
>> development.  Would someone please advise me as to whether this is 
going

>> to cause more problems?
>
> According to the log message you posted earlier in the thread, your
> appservers are spewing thousands of log messages from the connection's
> 'pending' method, although your deadlock debugger output shows the one
> thread blocked on 'select' inside of the connection's 'wait' method.
> There should be lots of log messages at TRACE level for the wait call,
> including a doubling / backoff of the delay value from 1 mx to 1 sec.
> Do you see those log messages, as well?

These messages are there.  You can see the time doubling.  This is where
we were thinking of breaking the connection once it gets to a certain
point and make zope reconnect.

This solves our hung connection problem, we think.  However, I am hoping
someone can let me know if I am breaking something else by doing this.




I don't remember if you already mentioned it. However: did you tried
to monitor the traffic outgoing and incoming? I mean, setting some
iptables rules and/or using something like tcpdump to monitor what is
going on here?

Regards
Marco




___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [Zope-DB] Exporting portal member data to csv

2007-02-27 Thread Andreas Jung



--On 26. Februar 2007 19:43:11 -0800 Win Myint Aung <[EMAIL PROTECTED]> 
wrote:



When i run the external method in plone site, it shows errors.

The error shows.

Site Error
An error was encountered while publishing this resource.
Error Type: AttributeError
Error Value: portal_memberdata



You must provide the *full* traceback when reporting an error.

-aj

pgppegAXhRSkk.pgp
Description: PGP signature
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zope unresponsive

2007-02-27 Thread Marco Bizzarri

On 2/27/07, Paul Williams <[EMAIL PROTECTED]> wrote:



Tres Seaver wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Paul Williams wrote:
>> Ok, here is what we have.  I did a netstat on both machines, client and
>> server.  The client sees and established connection and the server does
>> not.  In the server log there is a disconnect.  As far as hardware
>> between them, there is a switch (dell powerconnect 6024).  Web Server
>> Directors might get hold of it but there are no hops on traceroute.
>> Traceroute only shows the client machine and the server machine.
>>
>> So the client is just continuously polling the connection but getting
>> nothing back.
>
> That sounds like some weird kernel / networking problem to me:  I don't
> see how Zope could be able to keep calling 'select' on a socket after
> the other side has closed it.

We agree.  This is a strange situation that none of us have seen before.

However, we have until tomorrow to do something and replacing hardware
is not feasable.


>
> Is there any possibility that some kind of failover / IP takeover has
> happened, such that the storage server now running is not the same host
> / instance as the one to shich the clients originally connected?  Are
> you using LVS + heartbeat, or some kind of hardware load balancer to
> manage such redundancy?

We do have Web Services Directors that do load balancing, but in this
particular case, the storage server is not setup for load balancing, I
am not aware of any features that make the zodb capable of clustering
except for replication services offered through zope.

We are not sure whether the traffic is going to the Web Services
Directores or not.  Even if it is, there are thousands of settings and
there is no-one available that knows what to change.


The storage server is a simple nas server with a static ip address.

>
>> What we are thinking about doing is changing the code in
>> zrpc/connection.py to close the connection in wait (line 638 zope
>> version 2.9.5) if the wait time gets too large or the poll has happened
>> too many times.
>>
>> We are great at plone development, but have very little backend zope
>> development.  Would someone please advise me as to whether this is going
>> to cause more problems?
>
> According to the log message you posted earlier in the thread, your
> appservers are spewing thousands of log messages from the connection's
> 'pending' method, although your deadlock debugger output shows the one
> thread blocked on 'select' inside of the connection's 'wait' method.
> There should be lots of log messages at TRACE level for the wait call,
> including a doubling / backoff of the delay value from 1 mx to 1 sec.
> Do you see those log messages, as well?

These messages are there.  You can see the time doubling.  This is where
we were thinking of breaking the connection once it gets to a certain
point and make zope reconnect.

This solves our hung connection problem, we think.  However, I am hoping
someone can let me know if I am breaking something else by doing this.




I don't remember if you already mentioned it. However: did you tried
to monitor the traffic outgoing and incoming? I mean, setting some
iptables rules and/or using something like tcpdump to monitor what is
going on here?

Regards
Marco


--
Marco Bizzarri
http://iliveinpisa.blogspot.com/
___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zope unresponsive

2007-02-27 Thread Paul Williams



Tres Seaver wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paul Williams wrote:
Ok, here is what we have.  I did a netstat on both machines, client and 
server.  The client sees and established connection and the server does 
not.  In the server log there is a disconnect.  As far as hardware 
between them, there is a switch (dell powerconnect 6024).  Web Server 
Directors might get hold of it but there are no hops on traceroute. 
Traceroute only shows the client machine and the server machine.


So the client is just continuously polling the connection but getting 
nothing back.


That sounds like some weird kernel / networking problem to me:  I don't
see how Zope could be able to keep calling 'select' on a socket after
the other side has closed it.


We agree.  This is a strange situation that none of us have seen before.

However, we have until tomorrow to do something and replacing hardware 
is not feasable.





Is there any possibility that some kind of failover / IP takeover has
happened, such that the storage server now running is not the same host
/ instance as the one to shich the clients originally connected?  Are
you using LVS + heartbeat, or some kind of hardware load balancer to
manage such redundancy?


We do have Web Services Directors that do load balancing, but in this 
particular case, the storage server is not setup for load balancing, I 
am not aware of any features that make the zodb capable of clustering 
except for replication services offered through zope.


We are not sure whether the traffic is going to the Web Services 
Directores or not.  Even if it is, there are thousands of settings and 
there is no-one available that knows what to change.



The storage server is a simple nas server with a static ip address.



What we are thinking about doing is changing the code in 
zrpc/connection.py to close the connection in wait (line 638 zope 
version 2.9.5) if the wait time gets too large or the poll has happened 
too many times.


We are great at plone development, but have very little backend zope 
development.  Would someone please advise me as to whether this is going 
to cause more problems?


According to the log message you posted earlier in the thread, your
appservers are spewing thousands of log messages from the connection's
'pending' method, although your deadlock debugger output shows the one
thread blocked on 'select' inside of the connection's 'wait' method.
There should be lots of log messages at TRACE level for the wait call,
including a doubling / backoff of the delay value from 1 mx to 1 sec.
Do you see those log messages, as well?


These messages are there.  You can see the time doubling.  This is where 
we were thinking of breaking the connection once it gets to a certain 
point and make zope reconnect.


This solves our hung connection problem, we think.  However, I am hoping 
someone can let me know if I am breaking something else by doing this.






Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF5Dvr+gerLs4ltQ4RAm/HAKCUN5WboOxVGeB11GhEfgYQ3wos3QCdH0TW
DbcpXiMPlcQYyx0gewPFMLI=
=9A/a
-END PGP SIGNATURE-

___
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

 http://mail.zope.org/mailman/listinfo/zope-dev )



___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zope unresponsive

2007-02-27 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paul Williams wrote:
> Ok, here is what we have.  I did a netstat on both machines, client and 
> server.  The client sees and established connection and the server does 
> not.  In the server log there is a disconnect.  As far as hardware 
> between them, there is a switch (dell powerconnect 6024).  Web Server 
> Directors might get hold of it but there are no hops on traceroute. 
> Traceroute only shows the client machine and the server machine.
> 
> So the client is just continuously polling the connection but getting 
> nothing back.

That sounds like some weird kernel / networking problem to me:  I don't
see how Zope could be able to keep calling 'select' on a socket after
the other side has closed it.

Is there any possibility that some kind of failover / IP takeover has
happened, such that the storage server now running is not the same host
/ instance as the one to shich the clients originally connected?  Are
you using LVS + heartbeat, or some kind of hardware load balancer to
manage such redundancy?

> What we are thinking about doing is changing the code in 
> zrpc/connection.py to close the connection in wait (line 638 zope 
> version 2.9.5) if the wait time gets too large or the poll has happened 
> too many times.
> 
> We are great at plone development, but have very little backend zope 
> development.  Would someone please advise me as to whether this is going 
> to cause more problems?

According to the log message you posted earlier in the thread, your
appservers are spewing thousands of log messages from the connection's
'pending' method, although your deadlock debugger output shows the one
thread blocked on 'select' inside of the connection's 'wait' method.
There should be lots of log messages at TRACE level for the wait call,
including a doubling / backoff of the delay value from 1 mx to 1 sec.
Do you see those log messages, as well?


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF5Dvr+gerLs4ltQ4RAm/HAKCUN5WboOxVGeB11GhEfgYQ3wos3QCdH0TW
DbcpXiMPlcQYyx0gewPFMLI=
=9A/a
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zope unresponsive

2007-02-27 Thread Paul Williams
Ok, here is what we have.  I did a netstat on both machines, client and 
server.  The client sees and established connection and the server does 
not.  In the server log there is a disconnect.  As far as hardware 
between them, there is a switch (dell powerconnect 6024).  Web Server 
Directors might get hold of it but there are no hops on traceroute. 
Traceroute only shows the client machine and the server machine.


So the client is just continuously polling the connection but getting 
nothing back.


What we are thinking about doing is changing the code in 
zrpc/connection.py to close the connection in wait (line 638 zope 
version 2.9.5) if the wait time gets too large or the poll has happened 
too many times.


We are great at plone development, but have very little backend zope 
development.  Would someone please advise me as to whether this is going 
to cause more problems?


Thanks,
Paul Williams

Paul Williams wrote:
I have posted this several times, but have not until now been able to 
get DeadlockDebugger installed.  I see several people have had this 
problem, but no-one has posted a solution.


 


zope 2.9.5 + zeo

pythonm2.4.3

Red Hat RHEL 4

Plone 2.5.1

 

Our zeo clients hang intermittently.  We have no way of reproducing the 

problem, but it occurs daily.  The client hangs and a restart seems to fix the 


problem.

 


In the event log with tracing on we get

 


Trace zeo.zrpc.Connection(C) wait(16697) {server:8100} pending, async=0

 


There are hundreds to thousands of these until the server is restarted.

 


In the zeo log we get

 


Error caught in asyncor asyncore.py

 


error:(110,'Connection timed out')

 

We have been trying to track this down and have had no luck.  Does anyone have 


any suggestions?  Below is our deadlock debugger output

 

 


Threads traceback dump at 2007-02-23 15:26:50

 

Thread -1269564496 (GET 
/VirtualHostBase/https/soawds:443/VirtualHostRoot/Content///training):


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZServer/PubCore/ZServerPublisher.py", 
line 23, in __init__


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", 
line 395, in publish_module


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", 
line 196, in publish_module_standard


  File 
"/apps1/zope2.9.5/navo_instance/Products/PlacelessTranslationService/PatchStringIO.py", 
line 34, in new_publish


x = Publish.old_publish(request, module_name, after_list, debug)

  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", 
line 115, in publish


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/mapply.py", 
line 88, in mapply


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", 
line 41, in call_object


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/Shared/DC/Scripts/Bindings.py", 
line 311, in __call__


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/Shared/DC/Scripts/Bindings.py", 
line 348, in _bindAndExec


  File 
"/apps1/zope2.9.5/navo_instance/Products/CMFCore/FSPageTemplate.py", 
line 195, in _exec


result = self.pt_render(extra_context=bound_names)

  File 
"/apps1/zope2.9.5/navo_instance/Products/CacheSetup/patch_cmf.py", line 
38, in FSPT_pt_render


result = FSPageTemplate.inheritedAttribute('pt_render')(

  File 
"/apps1/zope2.9.5/navo_instance/Products/CacheSetup/patch_cmf.py", line 
92, in PT_pt_render


tal=not source, strictinsert=0)()

  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", 
line 238, in __call__


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", 
line 281, in interpret


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", 
line 749, in do_useMacro


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", 
line 281, in interpret


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", 
line 457, in do_optTag_tal


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", 
line 442, in do_optTag


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", 
line 437, in no_tag


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", 
line 281, in interpret


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", 
line 749, in do_useMacro


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", 
line 281, in interpret


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", 
line 507, in do_setLocal_tal


  File 
"/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/Products/PageTempl

[Zope] Re: zope unresponsive

2007-02-26 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paul Williams wrote:
> I know that there is a switch between zeo and zope and probably a
> firewall too, but how do I prove this is the problem.  This is on
> production server in a military installation.  I have major problems
> getting any kind of trouble shooting support.  First we don't get
> access, and second no kind of debugging is allowed.  You couldn't
> imagine the paperwork and the three months it took for me to get
> deadlockdebugger installed.

Create a parallel testing environment (in fact, any place that locked
down should already have one), and try tweaking the firewall settings in
that environment;  another possibility is to have the appserver serve
only from its cache for a "long" time (e.g., while repeatedly serving
the same page), and then request a page (e.g., search, or something)
which needs objects not already in cache.

Once you can provoke the problem at will in the test environment, *then*
you can begin tweaking the firewall to keep it from closing the socket
between the appserver and the storage server (if that is your problem).
Once you can prevent that in test, *then* you can push to have that
change rolled to production.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF4vf0+gerLs4ltQ4RAtkfAKC/26t0L1Vy5QUFAIq0AnLmW20VoACfctL7
tFdYS/fLPBQMaw6/OA+j6zY=
=qLaq
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope 2 and Zope 3

2007-02-15 Thread Paul Winkler
On Thu, Feb 15, 2007 at 11:50:38AM +0100, Philipp von Weitershausen wrote:
> What's already possible is to have a minimal ZODB with only one 
> persistent object: a SQLObject or SQLAlchemy container. That's a 
> container (e.g. like a folder) whose items aren't persisted in the ZODB 
> but come from a relational database.

This works fine in a Zope 2 / Five world too.  We have apps that have
nothing in the ZODB but a Z*DA instance.  Then we have zope 3 views
and adapters that acquire that instance and use it to talk to the
database, using ZSQL to build the queries. We haven't drunk the ORM
cool-aid yet. :)

In other words: The ZODB may be there but you can pretty much ignore
it if you don't need it :)

> You seem to already have come to the conclusion that having code live in 
> both the filesystem and the ZODB can be painful. I think a good first 
> step for you would be to migrate your remaining ZODB-based code to the 
> filesystem. That not only makes deployment easier, you're also free to 
> refactor it then (e.g. using Zope 3 idioms). In the long run, this also 
> means saying good-bye to things like External Methods because they 
> require code on the filesystem and configuration in the ZODB.

+1

Here's my off-the-cuff attempt at "How To Safely Move A Big Legacy App
Out of the ZODB".

First, get and install FSDump (google for it).

Add a Dumper to a folder containing DTML (it works recursively on
child folders too), configure the Dumper, click the "Save and dump"
button, and voila, there's your code on the filesystem.  It'll store
properties too, in files named like *.metadata.

Then you need a way to use the stuff from the filesystem.
FileSystemSite would be ideal, because it understands those .metadata
files: http://www.infrae.com/download/FileSystemSite

Using it is a bit non-obvious if you're not familiar with CMF, from
which it was extracted.  You'll need to create a minimal Product on
the filesystem that consists of:

- a directory in Products, let's call it Products/mystuff
- an __init__.py at Products/mystuff/__init__.py that looks like this:

   from Products.FileSystemSite.DirectoryView import registerDirectory
   registerDirectory('mysubdir, globals())

- a subdirectory at Products/mystuff/mysubdir.  Put the files and
  directories you dumped in here.

That's it. Restart Zope, add an instance of Filesystem Directory View,
and you'll be prompted for the directory to choose; the only choice
will be the "mysubdir" you registered above. Click OK and you're done.

Check this new Product into source control and rejoice.

One gotcha - files ending in .dtml will be treated as DTML Methods,
not DTML Documents. So if you relied on the semantic difference
between those, you will have some issues to sort out.

Another gotcha - you'll need another plan to deal with those External
Methods, since AFAIK neither Dumper nor FileSystemSite will handle
them.

One expedient if slightly tedious technique would be to just move the
External Method files out of Extensions/ and into
$INSTANCE_HOME/lib/python/.  Then use calls to allow_module() so they
can be imported by through-the-web code (google will tell you more
about that).  Then, delete each external method from the ZMI and in
its place add a Script (Python) with the same id.  Such a script would
have a body something like:

   from my_ext_method_module import myExternalMethodFunction
   return myExternalMethodFunction(arguments)

Once that's done, those scripts can be Dumped into your filesystem
code, and all the DTML that includes calls to them should work.

A final gotcha - if you have ZClasses, I can't help you :)


At this point, you have the same application you started with, it's
just on the filesystem.  Not as clean as a rewrite, but a hell of a
lot more expedient - faster and less risky.

Next you'll want to start adding regression tests to your product
(ZopeTestCase and Zelenium might be useful tools). Then you have a
safety net so you can confidently start refactoring as needed.  *This*
is when you can start thinking about rewriting stuff :-)

I'd put this email somewhere on zopewiki.org, but it seems to be down
at the moment (Bad Gateway).

> It is certainly possible to execute filesystem-based DTML (using
> Globals.DTMLFile).

Right.  But that's a bit of a pain when you have dozens or hundreds of
DTML methods and your first priority is just to get stuff out of the
ZODB and into source control without breaking anything.

-- 

Paul Winkler
http://www.slinkp.com
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope 2 and Zope 3

2007-02-15 Thread Philipp von Weitershausen

Geoff Gerrietts wrote:
[some paragraphs about scaling which I can't really comment on]


As for source control, I figure all of your code (DTML, yuck) is in the
ZODB. This went out of fashion a long time ago, most serious development
happens on the filesystem (in Python packages) which can obviously be
source-controlled very well.


A good deal of the code is in the ZODB, because it's (yuck) DTML
documents, yes. We have another sizable chunk that lives on the
filesystem. The challenge in managing the build/deploy process has
been trying to find a way to keep those two conjoined. I suspect that
any dependency on the ZODB at all is likely to be considered an
impediment, and my quick eyeballing says it's not gone or even really
optional under Zope 3 (but I'm sure we could work something out.)


The ZODB is still there in Zope 3, but Zope 3 is much less dependent on 
it. In fact, there are people who are using Zope 3 without any ZODB 
instance at all, but directly talk to a relational database. Currently 
this requires a bit of hacking, but our good man Chris Withers has 
expressed interest in making the next release of Zope 3 more flexible in 
this regard.


What's already possible is to have a minimal ZODB with only one 
persistent object: a SQLObject or SQLAlchemy container. That's a 
container (e.g. like a folder) whose items aren't persisted in the ZODB 
but come from a relational database.


You seem to already have come to the conclusion that having code live in 
both the filesystem and the ZODB can be painful. I think a good first 
step for you would be to migrate your remaining ZODB-based code to the 
filesystem. That not only makes deployment easier, you're also free to 
refactor it then (e.g. using Zope 3 idioms). In the long run, this also 
means saying good-bye to things like External Methods because they 
require code on the filesystem and configuration in the ZODB.



Regarding "oh you'll hafta start over", it's pretty much true, if you
want to switch to Zope 3. But nobody says you have to. You can do it
incrementally by porting some of your app's functionality to Zope 3
components step by step (as mentioned already, most work in Zope 2). Big
projects like Plone aren't rewriting their whole codebase either, but
new development is completely Zope3-based. Their target platform still
is Zope 2, though.


"You'll hafta start over" is only ever true in degrees, though, and
I'm still trying to figure out what the degrees are. The business
logic will still be the same. Can we hack together a DTML processor
that allows us to export the DTML documents to the filesystem and
publish them from there? Maybe, I don't know. Did someone else already
do that? Don't know that either. How dramatically will our products
need to change? Probably 75% of our Python code is written in a
bastardized form of ExternalMethod; we might be able to leverage that
unfortunate architectural choice to significant advantage during our
porting phase. These are the kinds of questions I have, and I think
the answers probably aren't easy or someone would have offered them
up.


It is certainly possible to execute filesystem-based DTML (using 
Globals.DTMLFile). It's hard to say how much your products will have to 
change without knowing the codebase. If you have external methods, it 
shouldn't be too hard to refactor this code into components in "proper" 
Python modules. To make things easy, the external methods could stay at 
first, for backwards compatibility. I would take this one step at a time 
(that's at least what everybody else seems to do and it looks like it's 
working out for everybody).



Someone's going to need to learn enough Zope 3 to answer the
questions. I'm not sure it will be me, but maybe. :)


Well, whoever it'll be, there are books (e.g. http://worldcookery.com) 
and trainings (e.g. http://trizpug.org/boot-camp/camp5) that should help 
with the learning :).



--
http://worldcookery.com -- Professional Zope documentation and training
Next Zope 3 training at Camp5: http://trizpug.org/boot-camp/camp5

___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope 2 and Zope 3

2007-02-14 Thread Geoff Gerrietts

On 2/14/07, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote:


There will definitely be a Zope 2.11 and at this point I see no reason
why there shouldn't be a Zope 2.12. We (the Zope Community, not
necessarily Zope Corporation) will maintain Zope 2 as long as it's
necessary. "Maintaining" in this case also means integrating more Zope 3
technologies with each release. Nowadays (Zope 2.10) you can already
write applications, or at least base libraries, that work on both Zope 3
and Zope 2.


This is very helpful for setting a planning horizon, thank you.


I'm surprised you're experiencing poor scaling. I think Zope can scale
pretty well, or at least it can be *made* to scale pretty well. It all
depends on your setup and, of course, on your application.


I can't swear to the accuracy of what I'm about to say but it is an
operating hypothesis that describes accurately behavior that we are
seeing.

Our application is highly dynamic, by which I mean that satisfying any
given request may require a great deal of database activity. The
database in question is almost always Oracle; I'm not counting the
ZODB accesses, here.

Oracle will handle a great many concurrent requests fairly gracefully,
but its average transaction time is not always excellent, especially
for moderately complicated queries. While most queries are sub-second,
populating a page that requires multiple queries to fill in all its
data fields, or even populating a page with only one or two
complicated queries, can require greater than a single second of
database I/O. This cost is offset by the ability to have other threads
processing while your first thread waits for the database to come
back.

Zope likes to have 4 threads processing requests. This preference is
documented in several places, and experiments have historically borne
out the "4 thread hypothesis". We have been unable to realize
significant performance improvements by increasing the number of
available worker threads, but we are able to realize performance
improvements by pointing two Zope servers against the same database.

Zope isn't using much CPU, and it's not using much memory, but it
peaks out at 4 concurrent requests; everything else goes in a queue
behind them. If those 4 concurrent requests happen to take 4 or 5
seconds each, the queue builds deep behind them, possibly with very
simple one-offs.

Historically, we've addressed this by sticking another Zope out there.
We have plans to run multiple Zope instances on a single machine, like
they do (did?) at plone.org; this still requires configuration
management work and testing. But the feeling is that we have a lot
more hardware than we really should need, to handle the volumes we're
dealing with, and we have that hardware because we need more
"channels" to handle our concurrent traffic load.


As for source control, I figure all of your code (DTML, yuck) is in the
ZODB. This went out of fashion a long time ago, most serious development
happens on the filesystem (in Python packages) which can obviously be
source-controlled very well.


A good deal of the code is in the ZODB, because it's (yuck) DTML
documents, yes. We have another sizable chunk that lives on the
filesystem. The challenge in managing the build/deploy process has
been trying to find a way to keep those two conjoined. I suspect that
any dependency on the ZODB at all is likely to be considered an
impediment, and my quick eyeballing says it's not gone or even really
optional under Zope 3 (but I'm sure we could work something out.)



Regarding "oh you'll hafta start over", it's pretty much true, if you
want to switch to Zope 3. But nobody says you have to. You can do it
incrementally by porting some of your app's functionality to Zope 3
components step by step (as mentioned already, most work in Zope 2). Big
projects like Plone aren't rewriting their whole codebase either, but
new development is completely Zope3-based. Their target platform still
is Zope 2, though.


"You'll hafta start over" is only ever true in degrees, though, and
I'm still trying to figure out what the degrees are. The business
logic will still be the same. Can we hack together a DTML processor
that allows us to export the DTML documents to the filesystem and
publish them from there? Maybe, I don't know. Did someone else already
do that? Don't know that either. How dramatically will our products
need to change? Probably 75% of our Python code is written in a
bastardized form of ExternalMethod; we might be able to leverage that
unfortunate architectural choice to significant advantage during our
porting phase. These are the kinds of questions I have, and I think
the answers probably aren't easy or someone would have offered them
up.

Someone's going to need to learn enough Zope 3 to answer the
questions. I'm not sure it will be me, but maybe. :)

Thanks for all the insight, I'm making plans and pleas and I have a
direction for my research now. :)

Thanks,
--G.

[Zope] Re: Zope 2 and Zope 3

2007-02-14 Thread Philipp von Weitershausen

Geoff Gerrietts wrote:
I have a couple questions about the current game plan for Zope 
development that I was unable to answer for myself by searching through 
mailing list archives and the zope.org  website. I hope 
my inability to answer them is not merely a symptom of poor search term 
choices, and I hope someone can answer them for me.


You're right, it is a bit tricky to google for this.

Zope 3 release notes usually contain the following notice (from 
http://mail.zope.org/pipermail/zope-announce/2006-September/002016.html):


  Zope 3 is the next major Zope release and has been written from
  scratch based on the latest software design patterns and the
  experiences of Zope 2.

  Cleanup of the Zope 3 packages has continued to ensure a flexible and
  scalable platform. We continued the work on making the transition from
  Zope 2 to Zope 3 by making Zope 2.10 use even more of the Zope 3
  packages. But the transition is far from complete yet. **You can't run
  Zope 2 applications in Zope 3.**

I've posted a couple times before (a long time ago) about the large web 
application I work on; it's many hundreds of KLOC and an unfortunately 
large percentage of it is DTML. It's still more or less in that state; 
the realities of being a for-profit business in a rapidly evolving 
marketplace permit very little time for maintenance or aggressive 
refactoring of the application. That's the background for my questions; 
I'm trying to figure out how loudly I can shout "Impending doom!" to 
upper management without endangering my credibility.


1. Last time I talked to anyone from Zope Corp, the plan was to quiesce 
Zope 2 in favor of Zope 3. At that time, I think I remember people 
saying 2.9 would be the last in the Zope 2 series. Now there's a 2.10, 
so clearly it wasn't. How long does a business like mine have before 
there is no clear upgrade path in the Zope 2 series? Is 2.10 now the 
final Zope 2 release, or will there be a 2.11 and 2.12?


There will definitely be a Zope 2.11 and at this point I see no reason 
why there shouldn't be a Zope 2.12. We (the Zope Community, not 
necessarily Zope Corporation) will maintain Zope 2 as long as it's 
necessary. "Maintaining" in this case also means integrating more Zope 3 
technologies with each release. Nowadays (Zope 2.10) you can already 
write applications, or at least base libraries, that work on both Zope 3 
and Zope 2.


2. Whenever someone asks about moving an existing application from Zope 
2 to Zope 3, there's a round of flip "oh you'll hafta start over" 
responses. I understand that the two architectures are fundamentally 
different, and that I'll need to rebuild my object database, etcetera. 
Am I also correct in believing that all products must be completely 
rewritten, and that DTML is no longer a supported templating language? 
Has the users/roles/permissions security structure disappeared or been 
supplanted? I am trying to ascertain at a glance how much we will need 
to rebuild for ourselves; if it's enough then the problems we have had 
with Zope (poor scaling, poor integration with source control) may 
outweigh the advantages of remaining on the platform.


I'm surprised you're experiencing poor scaling. I think Zope can scale 
pretty well, or at least it can be *made* to scale pretty well. It all 
depends on your setup and, of course, on your application.


As for source control, I figure all of your code (DTML, yuck) is in the 
ZODB. This went out of fashion a long time ago, most serious development 
happens on the filesystem (in Python packages) which can obviously be 
source-controlled very well.


Regarding "oh you'll hafta start over", it's pretty much true, if you 
want to switch to Zope 3. But nobody says you have to. You can do it 
incrementally by porting some of your app's functionality to Zope 3 
components step by step (as mentioned already, most work in Zope 2). Big 
projects like Plone aren't rewriting their whole codebase either, but 
new development is completely Zope3-based. Their target platform still 
is Zope 2, though.



--
http://worldcookery.com -- Professional Zope documentation and training
Next Zope 3 training at Camp5: http://trizpug.org/boot-camp/camp5

___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [Zope-dev] Extrenal method unable to run the os.popen() or os.system() commands

2007-02-09 Thread Ridzwan Aminuddin
> -Original Message-
> From: [EMAIL PROTECTED]
> Sent: Fri, 09 Feb 2007 09:51:37 +0100
> To: [EMAIL PROTECTED], zope-dev@zope.org
> Subject: Re: [Zope-dev] Extrenal method unable to run the os.popen() or
> os.system() commands
> 
> 
> 
> --On 9. Februar 2007 00:47:09 -0800 Ridzwan Aminuddin <[EMAIL PROTECTED]>
> wrote:
> 
>> Hi guys...
>> 
>> I wrote an external python script which would grab some HTML and so some
>> text and file preprocessing.
>> 
>> The script then is supposed to run come command line methods... using
>> os.system() .. however when i run the script triggered by my DTML code
>> it
>> manages to do the grabbing of the html and saving it into a file ans
>> stuff... but once it hits the portion where its supposed to run the
>> command lines.. it just skips everything and goes right to the end
>> after which this error message is shown :
>> 
>>  Error Type
>> IOError
>> Error Value
>> [Errno 2] No such file or directory:
>> '/var/lib/zope2.8/instance/plone-site/Extensions/output.txt' Request
>> made
>> at
>> 
> 
> You can resolve this issue on your own by checking why the file is
> generated in the wrong place or by it is looked up at the wrong
> place..adding some debug code or using pdb should be sufficient to track
> this down.
> 
> -aj



Hi AJ!

Sorry about that, i will revert to the users list.

The problem with the script is that it does not execute the os.system() 
commands at all,
not that it generates the file at the wrong place or anything.

Do you know why this happens and how i can remedy it?

I seem to have found an old thread of someone facing the same problem but the 
suggestion
solution is not appropriate for my case. I have even made sure that the 
CLASSPATHS have
been set to the directory holding my .jar file

http://mail.zope.org/pipermail/zope-dev/2003-June/019918.html


Thanks again!

wan




Here is my code :




def removeIllegalChars( tgtString ):

import os
import sys
from yahoo.search.news import NewsSearch
import re

tgtString = re.sub('<([^!>]([^>]|\n)*)>', '', tgtString)
tgtString = re.sub('<([^>]([^>]|\n)*)>', '', tgtString)
tgtString = re.sub('\n', '', tgtString)
tgtString = re.sub('\t', '', tgtString)
tgtString = re.sub('\r', '', tgtString)
tgtString = re.sub('  ', '', tgtString)

if tgtString:
try:
tgtString = str(tgtString)
except UnicodeEncodeError:
tgtString = str(tgtString.encode('U8'))

return tgtString


def getYahooAPI():

import os
import sys
from yahoo.search.news import NewsSearch
import re

queryWord = "Singapore"

print ("Fetching data from YahooAPI with query : " + queryWord  )
srch = NewsSearch('YahooDemo',query = "Singapore asean cup", language = 
'en', results = 50)
info = srch.parse_results()
info.total_results_available

homedir = os.getcwd()
tgtFile = homedir + "/Extensions/InputString.txt"

writeFile = open(tgtFile, 'w')

for result in info.results:

writeFile.write("\n")
writeFile.write("\n")
writeFile.write(removeIllegalChars(result['Title'])+ "\n")
writeFile.write("\n")
writeFile.write(removeIllegalChars(result['ClickUrl']) + "\n")
writeFile.write("\n")
writeFile.write(removeIllegalChars(result['Summary']) + "\n")
writeFile.write("\n")
writeFile.write(removeIllegalChars(result['PublishDate']) + 
"\n")
writeFile.write("\n")
writeFile.write(removeIllegalChars(result['NewsSource']) + "\n")
writeFile.write("\n")

writeFile.write(removeIllegalChars(result['Summary']) + "\n")

writeFile.write("")
writeFile.close

def runYahooSearch2(self):

import os
import sys
from yahoo.search.news import NewsSearch
import re


#---

# still trying to figure out how to get the absolute path to this script
# commands below work for windows... but not for linux. Need to find a 
platform
# independant one

# print 'sys.argv[0] =', sys.argv[0]
# homedir = os.path.dirname(sys.argv[0])   # for windows
# print 'path =', pathname

getYahooAPI()

homedir = os.getcwd()
homedir = homedir + "/Extensions"


command = "cd "+homedir
os.popen(command)

command = "java -jar "+ '"' + homedir + "/" + "ActiveLearningTools.jar" 
+ '" ' + "prepArticles >> test.txt"
os.popen(command)

print "Completed step 1 : preparing the articles"

command = homedir + "/" + "vcluster " + "-zscores " + "ClutoMatrix" + " 

Re: [Zope] Re: Zope + Oracle + Cron

2007-02-04 Thread Bryan Simmons

I always add my LD_LIBRARY_PATH variable to the zopectl and runzope
scripts so that this kind of thing never happens.

I have also found that I needed to add ORACLE_HOME to either the
zope.conf or zope start scripts when using DCOracle or some other
add-on that uses loadable libs.

In fact, you should put all important env vars in zope.conf under the
environment variables section.  This is the cleanest way to ensure
zope can see everything it needs to.

On 6/9/06, Tres Seaver <[EMAIL PROTECTED]> wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David VanKirk wrote:
> We have zope installation that uses an Oracle backend to store data
> on.  We also have the system setup to do a backup of the database and
> Zope Installation everyday.  Everything runs smoothly until it comes
> time to start Zope back up.
>
> For some reason whenever the script tries to start Zope back up, it
> comes up but with a broken ZOracleDA product.  It complains about not
> being able to find the library file called libclntsh.so.9.0.
>
> If I try to start Zope myself from command line right after the script
> is done running (actually stop it then start it again) it works and
> connects to Oracle fine.
>
> I've tried using "nice" to up the priority level but it doesn't seem
> to work.  I also thought that maybe I wasn't giving oracle enough time
> to start up so I've tried adding sleep commands to the script, again,
> with no luck.
>
> If anyone has any experience in this field or has any suggestions,
> please let me know.  This is a quite annoying situation, as this
> server is quite important to the company and downtime is a bad thing.

Most likely 'libclntsh.so' is on an LD_LIBRARY_PATH for your user, which
the cron user does not have.

Why are you stopping Zope, BTW?  The standard backup script for the ZODB
filestorage is 'repozo.py', which does not need to have exclusive access
in order to create a backup.


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEidhW+gerLs4ltQ4RAhTsAKCLIlvVdjPhOJ2axPmMl9T2Ao54aACgwi2z
5baWO7v3IILAmDo/bmp55gQ=
=YDdz
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )




--
Regards,

Bryan Simmons

 "All parts should go together without forcing. You must remember
that the parts you are reassembling were disassembled by you.
Therefore, if you can't get them together again, there must be a
reason. By all means, do not use a hammer."
 -- IBM maintenance manual, 1925
___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope 2.9.5 -> 2.9.6 DateTime Change timezone

2007-02-01 Thread dschultz
> 
> 
> > Brian Brinegar wrote:
> > Today I started testing Zope 2.9.6. After the upgrade I noticed that
>
> Tres Seaver <[EMAIL PROTECTED]> writes: 
> That backwards incompatibility has been reverted on the 2.9 branch.  You
> might try updating the 'DateTime.py' file from SVN:
> 
> 
http://svn.zope.org/*checkout*/Zope/branches/2.9/lib/python/DateTime/DateTime.p
y?content-type=text%2Fplain&rev=71544
> 
> Eventually the feature will be re-added with a configuration option to
> enable it.

Thanks!
Replacing the 'DateTime.py' file in the 2.9.6 release with the one in the link 
provided above solved my problem too.   It is very frustrating to have 
these problems in a *mature* product and waste a full 2 days searching for 
this resolution.  My users of the site don't like seeing everything they 
update with a modified time of "localtime + " (for me 
Canada/Eastern that's localtime-5 hours).  What struck be rather strange is 
the Calendar porlet could display the event date and times correctly but the 
Event portlet and the rest of the site pages were incorrect. 
Thanks again!


___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [Zope-Annce] [ANN] Zope 2.10.2 released

2007-01-25 Thread Andreas Jung



--On 25. Januar 2007 18:37:03 +0100 Andreas Jung <[EMAIL PROTECTED]> wrote:


The Zope developer community I is pleased to announce the release
of Zope 2.10.2.

You can download Zope 2.10.2 from:

  http://www.zope.org/Products/Zope/2.10.2/

This release uses unicode as internal representation for ZPT. For this
reason you are strongly encouraged to read

http://www.zope.org/Products/Zope/2.10.2b1/Zope-2.10.2_released

carefully.


Sorry for posting a broken link. The correct one is:

  http://www.zope.org/Products/Zope/2.10.2/Zope-2.10.2-released

Andreas

pgp3Mnr1H1RKr.pgp
Description: PGP signature
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zope/zeo on multiprocessor machines?

2007-01-24 Thread Maurits van Rees
cristopher pierson ewing, on 2007-01-23:
> I've been told that zope is not set up to utilize the extra processing 
> power of multiproc machines.  I have a new intel x-serve with the 
> dual-core dual-proc setup, and want to get the most I can out of zope. 
> I've read a few articles that mention running more than one zope process 
> as zeo clients sharing a single ZODB.  What isn't mentioned is any 
> additional seetup needed to ensure that each zeo client uses a separate 
> processor.  Is there any?  Or is this automagically handled?

A site we (Zest Software) made for a big customer runs on a dual-core
server, with some multithreading so it seems like there are 4
processors.  With one zeo client, only at most 25 percent of the
processing power was used.  We added a few zeo clients and saw the
processor a lot more active, probably approaching 100 % when all
clients are fully active.  A big improvement, with no additional setup
that I am aware of.  So it is automagically handled, yes.

-- 
Maurits van Rees | http://maurits.vanrees.org/ [NL]
Work | http://zestsoftware.nl/
"Do not worry about your difficulties in computers,
 I can assure you mine are still greater."

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope hangs and Python eats all memory

2007-01-18 Thread Nico Grubert



Have you tried to enable the trace logger in the zope.conf file?
Look for the stanza beginning with .

You need to have your server in debug-mode. This will produce a
trace.log file that can be analyzed with requestprofiler.py.

This will give you the offending requests that caused Zope to hang.


Now, I run the Zope server in debug now and I have enabled the trace 
logger. Hope to see more details. I let you know as soon as the Zope 
server hangs again and I get some more information.

Thank you!

Nico
___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope hangs and Python eats all memory

2007-01-17 Thread Dieter Maurer
Nico Grubert wrote at 2007-1-17 10:08 +0100:
> ...
>(gdb) thread 1
>[Switching to thread 1 (Thread 47050976353024 (LWP 6613))]#0 
>0x2acae8a3e202 in ?? () from /lib64/libc.so.6
>
>(gdb)  call PyRun_SimpleString("import sys, traceback; 
>sys.stderr=open('/tmp/tb','w',0); traceback.print_stack()")
>
>Program received signal SIGSEGV, Segmentation fault.
>0x0048fb9d in PyImport_AddModule (name=0x4d5ae9 "__main__") at 
>Python/import.c:320
> ...
>After I attached the pid "6613", Zope does not answers anymore until I 
>quit "GDB". Is this the normal behavior?
>
>Any idea, why no '/tmp/tb' logfile is created?

Because, the program get a SIGSEGV before it could create the file.


I found that this is often the case when you call Python functions
from GDB.

My hypothesis is that this happens because in the thread where the
Python function is called some important invariant is not met.
E.g. almost all Python functions expect to be called only when the
global interpreter lock (GIL) is held. But, this is the case
at most in a single thread of Zope's multiple threads.

For Zope debugging at C level, I therefore avoid calling
Python functions directly but use emulations on the C level.

Following are GDB commands to display the value of a Python string
object ("ps") and to display the Python stack frame information
in an "eval_frame" (C level) call frame ("pfr").

def ps
x/s ({PyStringObject}$arg0)->ob_sval
end

def pfr
ps f->f_code->co_filename
ps f->f_code->co_name
#p f->f_lineno
lineno
end

define lineno
set $__co = f->f_code
set $__lasti = f->f_lasti
set $__sz = ((PyStringObject *)$__co->co_lnotab)->ob_size/2
set $__p = (unsigned char *)((PyStringObject *)$__co->co_lnotab)->ob_sval
set $__li = $__co->co_firstlineno
set $__ad = 0
while ($__sz-1 >= 0)
  set $__sz = $__sz - 1
  set $__ad = $__ad + *$__p
  set $__p = $__p + 1
  if ($__ad > $__lasti)
# break -- interpreted as "breakpoint"
set $__sz = -1
  end
  if ($__sz >= 0)
set $__li = $__li + *$__p
set $__p = $__p + 1
  end
end
printf "%d\n", $__li
end



-- 
Dieter
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope hangs and Python eats all memory

2007-01-17 Thread Suresh V

Nico Grubert wrote:

Dear list members,

I am running Zope 2.9.6. on a 64-Bit Suse Linux 10.1 machine (9 Gbyte of 
RAM) with Python 2.4.3. installed.
 From time to time, Zope hangs and I cannot access it anymore. I tried 
to use the "Zope DeadlockDebugger" but if my Zope hangs I cannot call 
the URL "http://myzopesite:8080/manage_debug_threads?secret_password"; to 
let Zope DeadlockDebugger show any useful information. Zope does not 
response.
If Zope hangs, the python process eats all the memory and the machine 
starts to swap.


The "top" command in the shell tells me: 
-

Tasks:  91 total,   2 running,  89 sleeping,   0 stopped,   0 zombie
Cpu(s): 10.4%us,  0.4%sy,  0.0%ni, 89.0%id,  0.2%wa,  0.0%hi,  0.0%si
Mem:   9041256k total,  9025124k used,16132k free,10604k buffers
Swap:  4208988k total,  4208988k used,0k free, 9472k cached

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
29992 wwwrun16   0 12.0g 8.3g 2860 S   19 95.9   3:52.66 python
-

There are several add-ons for Zope installed, like:
 - "Psycopg" Postgres Database Adapter
 - "mxODBCDA" ODBC Database Adapter
 - LDAPUserfolder
 - "Silva" Content Management System
 - PIL

Furthermore, I see a lot of Conflict Errors in the "event.log" like e.g.:
-
ZPublisher.Conflict ConflictError at 
/VirtualHostBase/http/193.134.202.20:80/mysite/VirtualHostRoot/: 
database conflict error (oid 0x0435, class BTrees._OOBTree.OOBTree, 
serial this txn started with 0x036aeb14ab1c4b88 2007-01-15 
12:04:40.104030, serial currently committed 0x036aeb1d0cc5d099 
2007-01-15 12:13:02.993605) (80 conflicts (0 unresolved) since startup 
at Mon Jan 15 11:44:55 2007)

-

These kind of Conflict errors occur almost every minute.
It might be that these errors have something to do with it but I am not 
sure.


How can I figure out what exactly causes Zope to hang?
If you need more information, please let me know.


Have you tried to enable the trace logger in the zope.conf file?
Look for the stanza beginning with .

You need to have your server in debug-mode. This will produce a
trace.log file that can be analyzed with requestprofiler.py.

This will give you the offending requests that caused Zope to hang.

Suresh


___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope hangs and Python eats all memory

2007-01-17 Thread Nico Grubert



Then, this is a case where you need debugging on C level, e.g. with "GDB".

You need a Python version with debug symbols (those installations
that come with the OS distribution usually lack them, you need
to build your Python yourself -- and with it your Zope).

Then you attach the Zope process (the top level process, in case
that threads show as processes as well) when the problem occurs
and analyse its threads -- especially the one that is running
when you attached.

If the problem occurs in Python (which is unlikely), then I can
provide you with GDB command definitions to analyse the Python
call chain (the Python traceback) from the C-level backtrace.


Dear Paul,
Dear Dieter,

thank you for your help.
I followed the instructions from 
http://www.zopelabs.com/cookbook/1073504990.


I've built my Python myself.
After I installed "GDB", I ran the following commans:
-
gdb python2.4
(gdb) info threads
(gdb) attach 6613
(gdb) thread 1
(gdb)  call PyRun_SimpleString("import sys, traceback; 
sys.stderr=open('/tmp/tb','w',0); traceback.print_stack()")

-
Unfortunately, there is no '/tmp/tb' file written.


Below, you'll see the results after each command:
-
gdb python2.4

GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.

Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...
Using host libthread_db library "/lib64/libthread_db.so.1".
(gdb) attach 6613
Attaching to program: /usr/local/bin/python2.4, process 6613
Reading symbols from /lib64/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread 47050976353024 (LWP 6613)]
[New Thread 1107310912 (LWP 6617)]
[New Thread 1098918208 (LWP 6616)]
[New Thread 1090525504 (LWP 6615)]
[New Thread 1082132800 (LWP 6614)]
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/libdl.so.2...done.
# ...a lot of Loaded / Reading here...

(gdb) info threads
  5 Thread 1082132800 (LWP 6614)  0x2acae820e3fd in sem_wait () 
from /lib64/libpthread.so.0
  4 Thread 1090525504 (LWP 6615)  0x2acae820e3fd in sem_wait () 
from /lib64/libpthread.so.0
  3 Thread 1098918208 (LWP 6616)  0x2acae820e3fd in sem_wait () 
from /lib64/libpthread.so.0
  2 Thread 1107310912 (LWP 6617)  0x2acae820e3fd in sem_wait () 
from /lib64/libpthread.so.0
  1 Thread 47050976353024 (LWP 6613)  0x2acae8a3e202 in ?? () from 
/lib64/libc.so.6


# (The thread "6613" is the process Id listed if I check "top".
(gdb) thread 1
[Switching to thread 1 (Thread 47050976353024 (LWP 6613))]#0 
0x2acae8a3e202 in ?? () from /lib64/libc.so.6


(gdb)  call PyRun_SimpleString("import sys, traceback; 
sys.stderr=open('/tmp/tb','w',0); traceback.print_stack()")


Program received signal SIGSEGV, Segmentation fault.
0x0048fb9d in PyImport_AddModule (name=0x4d5ae9 "__main__") at 
Python/import.c:320

320 PyInterpreterState *interp = PyThreadState_GET()->interp;
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on"
-

After I attached the pid "6613", Zope does not answers anymore until I 
quit "GDB". Is this the normal behavior?


Any idea, why no '/tmp/tb' logfile is created?

Thank you very much in advance,
Nico

___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Zope hangs and Python eats all memory

2007-01-15 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 16 Jan 2007, at 06:06, Suresh V wrote:


Tasks:  91 total,   2 running,  89 sleeping,   0 stopped,   0 zombie
Cpu(s): 10.4%us,  0.4%sy,  0.0%ni, 89.0%id,  0.2%wa,  0.0%hi,  0.0%si
Mem:   9041256k total,  9025124k used,16132k free,10604k  
buffers
Swap:  4208988k total,  4208988k used,0k free, 9472k  
cached


Your swap appears low. Try increasing it to 20GB.


How is increasing swap memory supposed to help it when one process  
hogs all RAM? When you start using swap heavily you are screwed  
already. There is no point in providing more.


jens


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFrIA9RAx5nvEhZLIRAhm3AKCCSm4m6Jon/C2/P0OmTTm3mcT9aACfTikC
MlBCDml2iRTSkbo6v8wWH8Q=
=WwPa
-END PGP SIGNATURE-
___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope hangs and Python eats all memory

2007-01-15 Thread Suresh V

Nico Grubert wrote:

Dear list members,

I am running Zope 2.9.6. on a 64-Bit Suse Linux 10.1 machine (9 Gbyte of 
RAM) with Python 2.4.3. installed.
 From time to time, Zope hangs and I cannot access it anymore. I tried 
to use the "Zope DeadlockDebugger" but if my Zope hangs I cannot call 
the URL "http://myzopesite:8080/manage_debug_threads?secret_password"; to 
let Zope DeadlockDebugger show any useful information. Zope does not 
response.
If Zope hangs, the python process eats all the memory and the machine 
starts to swap.


The "top" command in the shell tells me: 
-

Tasks:  91 total,   2 running,  89 sleeping,   0 stopped,   0 zombie
Cpu(s): 10.4%us,  0.4%sy,  0.0%ni, 89.0%id,  0.2%wa,  0.0%hi,  0.0%si
Mem:   9041256k total,  9025124k used,16132k free,10604k buffers
Swap:  4208988k total,  4208988k used,0k free, 9472k cached


Your swap appears low. Try increasing it to 20GB.

Suresh


___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: [Zope-dev] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-12 Thread Stephan Richter
On Thursday 11 January 2007 16:03, Dieter Maurer wrote:
> Stephan Richter wrote at 2007-1-11 03:12 -0500:
> > ...
> >If you are populating the CA before ZCML is fully parsed, then:
> >
> >DO NOT POPULATE THE CA WHILE IMPORTING!!!
> >
> >This is so bad on so many levels. Dieter, your problem is just one
> > example. Another is that unit tests have no chance to work reliably
> > either.
>
> How do you solve the unit test issues when the CA is initialized
> and populated by ZCML only? Do you fully parse the ZCML configuration
> file before any unit test?

For unit tests we do not use ZCML, we use the zope.component API. In those 
cases, however, we still do not have side-effects from importing. The unit 
test case is much easier, since you only test a unit and within this units 
conflicts of declarations are highly unlikely.

> In my specific case, tests would make no problems (as we have
> only a single thread) -- but of course, you had the general
> case in view.

Yes, I tried to make a general statement to the generall developer. My intent 
was not going to make a detailed discussions of all the pros and cons. After 
all, this was the zope@zope.org mailing list and not zope3-users or 
zope3-dev. ;-)

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: [Zope-dev] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-11 Thread Dieter Maurer
Stephan Richter wrote at 2007-1-11 03:12 -0500:
> ...
>If you are populating the CA before ZCML is fully parsed, then:
>
>DO NOT POPULATE THE CA WHILE IMPORTING!!!
>
>This is so bad on so many levels. Dieter, your problem is just one example. 
>Another is that unit tests have no chance to work reliably either.

How do you solve the unit test issues when the CA is initialized
and populated by ZCML only? Do you fully parse the ZCML configuration
file before any unit test?

In my specific case, tests would make no problems (as we have
only a single thread) -- but of course, you had the general
case in view.


-- 
Dieter
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [Zope-dev] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-11 Thread Stephan Richter
On Thursday 11 January 2007 05:59, Chris Withers wrote:
> Stephan Richter wrote:
> > If you are populating the CA before ZCML is fully parsed, then:
>
> Why is the CA predicated on ZCML?!

Because that's how it works by default. Another way of saying this is:

Collect all registrations before executing them!

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [Zope-dev] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-11 Thread Chris Withers

Stephan Richter wrote:

If you are populating the CA before ZCML is fully parsed, then:


Why is the CA predicated on ZCML?!

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk

___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [Zope-dev] Re: [Warning] Zope 3 component architecture (CA) not reliably usable for registrations from Python

2007-01-11 Thread Stephan Richter
On Wednesday 10 January 2007 05:45, Martijn Faassen wrote:
> I'm a bit surprised why the huge [warning] is necessary. What I
> understand you're saying is that you cannot use the component
> architecture before it's done initializing. You also assert that you
> need a registration to happen at Python import time. I'm curious to hear
> more about why you need to do this - after all, you're talking about
> listening to request start and end, and this happens after import time.

If you are populating the CA before ZCML is fully parsed, then:

DO NOT POPULATE THE CA WHILE IMPORTING!!!

This is so bad on so many levels. Dieter, your problem is just one example. 
Another is that unit tests have no chance to work reliably either.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zope document management

2007-01-07 Thread Dieter Maurer
pol wrote at 2007-1-3 23:31 +0100:
>Dieter Maurer wrote:
>> Maybe, you have a look at "LocalFS".
>
>
>It seems to be not compatible with zope 2.9.6 
>I have copied the LocalFS-1.3-andreas.tar.gz into the products, but 
>it's not even shown in Control Panel -> Product Management list.
>
>Have i missed anything?

Looking in the logfile to find hints about what is causing the
"LocalFS" installation problems.



-- 
Dieter
___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zope document management

2007-01-03 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



- --On 3. Januar 2007 23:31:27 +0100 pol <[EMAIL PROTECTED]> wrote:

> Dieter Maurer wrote:
>> Maybe, you have a look at "LocalFS".
>
>
> It seems to be not compatible with zope 2.9.6
> I have copied the LocalFS-1.3-andreas.tar.gz into the products, but
> it's not even shown in Control Panel -> Product Management list.
>

Check the mailing list archives for the last weeks..there has been a 
similar
complaint with LocalFS.

- -aj
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (Darwin)

iD8DBQFFnInfCJIWIbr9KYwRArEnAJwNgwlQs54nTmKwxgaHEYeaO2jHOQCgiuIy
49Id7ehCvQsdf4S6qEzZHsI=
=5bC2
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: zope document management

2007-01-03 Thread Chris McDonough
I don't know much about the status of LocalFS but another product you  
might want to look at is here:


http://www.plope.com/software/blob/

On Jan 3, 2007, at 5:31 PM, pol wrote:


Dieter Maurer wrote:

Maybe, you have a look at "LocalFS".



It seems to be not compatible with zope 2.9.6
I have copied the LocalFS-1.3-andreas.tar.gz into the products, but
it's not even shown in Control Panel -> Product Management list.

Have i missed anything?

Thank you
--
Pol


___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )



___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zope document management

2007-01-03 Thread pol
Dieter Maurer wrote:
> Maybe, you have a look at "LocalFS".


It seems to be not compatible with zope 2.9.6 
I have copied the LocalFS-1.3-andreas.tar.gz into the products, but 
it's not even shown in Control Panel -> Product Management list.

Have i missed anything?

Thank you 
--
Pol


___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [zope 2.7-2.8] Howt to alow import module in Python script

2007-01-02 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mihamina Rakotomandimby wrote:
> Hi,
> As far as I know, if I want to use/import a module (let's say urllib*)
> in a Python Script (the restricted ones), I have to use external methods
> and then use it in the Python script.
> I remember I saw in a zope related Mailing List (CPS, Plone, Zope...) I
> cant list somewhere the modules I want to be loadable from restricted
> Python script.
> Would you remind me the place I could do it please?
> 
> Thank you.
> I mostly need urllib, ftplib, re, HTMLParser,...

See Products/PythonScripts/module_access_examples.py


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFmnuX+gerLs4ltQ4RAnSGAJ9yB8A4cRBL4BnDRIeOn3Ydqp9KogCgw4td
71JTMOYxAam8oz46BobLVI4=
=bTDc
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zope spins when try to update workflow

2006-12-28 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Edmund Moseley wrote:
> Hi all,
> 
> Not sure if this is the right list or not, please let me know if I 
> should redirect my question.
> When I try to run "Update security settings" in the portal_workflow 
> tool, my zope process gradually swallows up all the cpu, seems to still 
> be running fine, but then after a couple of hours, swallows up all the 
> memory, the load on the server exceeds 4 and makes it pretty well 
> unresponsive.
> I have about 35,000 objects in the ZODB.
> 
> Has anybody had any similar experience or know of any hints as to how I 
> should debug this?
> 
> I tried following the guidelines on this website:
> http://www.zope.org/Members/4am/debugspinningzope
> but couldn't see anything that was actually stuck.

The correct list for this question is either the Zope CMF list
(zope-cmf@lists.zope.org) or one of the Plone lists (if the tool is not
a stock CMF tool).

I would look at adding some logging to the workflow tool's
'_recursiveUpdateRoleMappings' method, in order to get a handle on what
is happening in your case.  You might need to write an ExternalMethod
which emulated the "re-apply security" button for separate parts of your
site.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFlAWg+gerLs4ltQ4RAreYAJ9oX8X6U4uktC6Es09h24aMflN7owCgp2Ay
P+fDS/vV9Sbf8xTXqAi5hnM=
=3AW0
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope 2.9.5 -> 2.9.6 DateTime Change

2006-12-14 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Brian Brinegar wrote:
> Today I started testing Zope 2.9.6. After the upgrade I noticed that
> some calendar data generated from Oracle was wrong. After some
> investigation I found that Zope 2.9.6 seems to assign a timezone of
> GMT+0 when none is specified rather than using the server's timezone.
> 
> For example, the following SQL query to an oracle database:
> 
> select TO_DATE('12-13-2006 01:00','MM-DD- HH:MI') from dual
> 
> Under 2.9.5 returns:
> 
>  2006/12/13 01:00:00 US/Eastern
> 
> Under 2.9.6 returns:
> 
>  2006/12/13 01:00:00 GMT+0
> 
> There was clearly no time zone defined in the query, and it's the same
> Oracle server.
> 
> Is this an intended change? We have hundreds of developers working
> independently within our system so it's not possible to adapt each
> application to account for this change.
> 
> Any advice on moving to Zope 2.9.6? In the mean time I my try to back
> port specific bug fixes into 2.9.5.

That backwards incompatibility has been reverted on the 2.9 branch.  You
might try updating the 'DateTime.py' file from SVN:


http://svn.zope.org/*checkout*/Zope/branches/2.9/lib/python/DateTime/DateTime.py?content-type=text%2Fplain&rev=71544

Eventually the feature will be re-added with a configuration option to
enable it.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFgb3P+gerLs4ltQ4RAp2DAKDWmqql37CWa5VDYRIJoTLJ3wWtAACg2Kok
MjwihrnRUhXthDj5LCLFliY=
=CQvY
-END PGP SIGNATURE-

___
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
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope newbie.... unicode problem

2006-11-30 Thread Josef Meile

Hi Tyler

When serving a web page, we get an error that involves the 
fetching and display of a document to the browser. Evidently, 
it's choking on some unicode bytes when it's expecting plain 
ascii.  


I'm assuming it's
/usr/lib/zope2.7/lib/python/Products/PageTemplates/PageTemplate.py
that's causing the problem as the data isn't somehow massaged correctly
before processing arrives at /usr/lib/python2.3/StringIO.py line 203.

So, you are using zope 2.7 and for the location I guess it is a binary.



I don't know if the bad byte is in a zope template, document, or
a database record that it's fetching.  I do believe this installation
of Zope uses Plone... but I've no idea whether Plone is somewhere
used in the error stream of all the different calls.

Do I need to post more information?  Tell me .. and I'll get it.
Yes, perhaps you could post the template generating that error. If it is 
really long, try to localize the problem by removing parts of the 
template and test it continuously till you find the offending code.


Recently I got some similar problem. I'm using zope 2.8.8 and I taught I 
was affected by this issue:

http://www.zope.org/Collectors/Zope/2180

However, after adjusting that patch for 2.8.8 (it is for 2.10), I was 
still getting the problem. Then I figured out that somewhere in my code 
I was getting the title from an object and comparing it with an unicode 
string. The title turned to be a normal string with unicode parameters. ie:


a = u'This is unicode \xc3\xa4\xc3\xb6\xc3\xbc'

#this has unicode characters äöü, but it isn't a Unicode string
#Note that the u' is missing
b = '\xc3\xa4\xc3\xb6\xc3\xbc'

#This will fail
print a == b

#This is what you need to do

a = u'This is unicode äöü'
b = 'This is ascii'
print a == b.decode('utf-8')

I was doing that in a python product, so I could do this:
from types import StringType
if type(b) == StringType:
  b = b.decode('utf-8')

I don't know if you can do that in zpt. You also have to know which 
encoding you are using. In my case it is always utf-8


You may also trying to see if your plone version supports your zope 
version, which is old (Open the README or INSTALL file).


Try also to upgrage your zope. Perhaps this will solve your problem.

Regards
Josef
___
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

http://mail.zope.org/mailman/listinfo/zope-dev )


  1   2   3   4   5   6   7   >