Re: [Zope] Re: Accumulate vars with

2006-08-08 Thread Gabriel Genellina

At Tuesday 8/8/2006 15:53, mbr wrote:


I made this in my report:



   



return this:
VAL   ACCU
15   15
20   35
18   53

hope it can help you


- Please keep your postings on the list, don't write to me directly
- I'm not the interested person, I was one of the guys answering the question
- This does not answer the original question that was about 
accumulating the remaining values
- Using DTML as a procedural language to compute some values like 
this, is not the recommended practice.




Gabriel Genellina
Softlab SRL 






__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas


___
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] Where Is This Module?

2006-08-08 Thread Dieter Maurer
beno wrote at 2006-8-8 06:55 -0400:
>I've got an error in my error log, but I can't figure out where 
>"App.Management" lives:
>
>Traceback (innermost last):
>  Module ZPublisher.Publish, line 101, in publish
>  Module ZPublisher.mapply, line 88, in mapply
>  Module ZPublisher.Publish, line 39, in call_object
>  Module App.Management, line 85, in manage_workspace
>Redirect: http://202.71.106.119:7080/error_log/manage_main

There is no problem with this module. You just have you "error_log"
object configured in a bit silly way:

  Usually, you should configure it to ignore "Redirect" exceptions
  (they are not real exceptions but normal behaviour).



-- 
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] EMERGENCY!

2006-08-08 Thread Dieter Maurer
beno wrote at 2006-8-7 15:19 -0400:
>How do I undo the last change I made in Zope from the server itself?

You already know how to "open" a ZODB in an interactive Python interpreter?
If not, there is a HowTo around...

You find the remaining things in the class "App.Undo.UndoSupport",
especially the methods "undoable_transactions"
and "manage_undo_transactions".

The "transaction_info" parameter to "manage_undo_transactions" is
a sequence of "tid"s where the "tid" stands for "transaction id"
is is given by the "id" key in the result of "undoable_transactions".



-- 
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] ZEO Problem Clients Waiting

2006-08-08 Thread Dieter Maurer
Gerhard Schmidt wrote at 2006-8-8 08:06 +0200:
> ... long time commit locks ...
>To understand this can you tell me when a transaction is started and when 
>its closed. Does the Zeo server wait until all data is recieved bevor the 
>transaction is started or does the transaktion start when the datatransfer
>from the appserver starts. 

The storage lock is set when one of these function is called: "vote",
"abortVersion", "commitVersion" and "undo".



-- 
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 2.9 Product Refreshing

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

James Davies wrote:
> This isn't really a solution. Clients will still lose session data, which is 
> unacceptable.
> 
> -James.
> 
> On Monday 07 August 2006 22:15, Reinoud van Leeuwen wrote:
>> On Mon, Aug 07, 2006 at 10:12:42PM +1000, James Davies wrote:
>>> We have Zeo, but running a seperate instance of zope for each site is
>>> still too much (We probably host around 50 sites at the moment, and
>>> growing. The only economical way to do this is to put multiple sites in
>>> one zope instance).
>> Still you can shutdown 1 ZEO client; update products there and start it up
>> again... There will be some performance degradation but the sites stay
>> up... (and I hope you've got enough ZEO clients so that bringing 1 down
>> will not cause severe problems...)

You have that point-of-failure anyway if you are using the RAM-based
sessions provided by Zope's core sessioning.  If availability is
important to you, then you *need* to be using ZEO and a load balancer,
at which point you also have to look at a more scalable / available
sessioning solution.

There are a couple of alternatives out there:

  - SQL-based session implementaitons (including some which will drop
into your application "seamlessly"), e.g.:

http://www.zope.org/Members/anthony/software/SQLSession (really
old, might need some tweaking).

  - A memcached-based solutions, e.g.:

http://agendaless.com/Members/tseaver/software/mcdutils/

Refresh is dangerous because it mostly works, and because when it
breaks, the breakage surfaces as heisenbugs.  I therefore have a rule
about supporting folks who use refresh:  if they can't reproduce the
problem with refresh disabled, I can't help them.


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

iD8DBQFE2Lqw+gerLs4ltQ4RAv6bAKCr7ooZQq0ZEYoxw3J6uq9bKrgGOACgp5is
cmP3uyTUBCOMk8Mv0Xk24R8=
=a6Ui
-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] Question of ZPL etiquette

2006-08-08 Thread David Pratt
Hi Andreas. I had interpreted that the header information was satisfying 
the requirement to identify changes for


5. If any files are modified, you must cause the modified files to carry 
prominent notices stating that you changed the files and the date of any 
change.


Since I am under version control and date is in $Id$, I was just going 
to indicate a statement "Modified ZPL 2.1(5) code" under my $Id$ then 
use my own header with reference to the LICENSE.txt Would you say this 
is a reasonable way to go? Many thanks.


Regards,
David

Andreas Jung wrote:



--On 8. August 2006 00:53:09 -0300 David Pratt <[EMAIL PROTECTED]> 
wrote:



Hi. I am trying to get a better sense of how others are dealing with ZPL
headers in code from original authors once changes are made. For example
if a package is ZPL copyright somebody, I typically see a header at the
top of most files as well as the LICENSE.txt in the package itself. When
changes are made however, it is typical see headers replaced with the
header of the author(s) who have made changes and date. A second license
will now apply to the modified package with the ZPL license of the
original code left to acknowledge authors and copyright of the original
product/package. Is that a fair assessment? Is that generally acceptable?
Many thanks.



The ZPL does not  tell what to put into header of your files. My source 
basically contains a reference to some LICENSE file in the root directoy.
This file contains the main license (e.g. ZPL) but it also mentions all 
code parts that are published under a different license. So you have 
everything in one place and you don't have to modify all headers as soon 
as something changes with your licenses.


-aj

___
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] Where Is This Module?

2006-08-08 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 8 Aug 2006, at 08:32, Jonathan wrote:
I've got an error in my error log, but I can't figure out where  
"App.Management" lives:In my installation (Zope 2.9.2)  
Management.py lives in:


/usr/local/src/Zope-2.9.2/Dependencies/App-Zope-2.9.2/App


Actually, the location is /path/to/Zope/lib/python/App/Management.py,  
that's where it is loaded from. That Dependencies tree is not where  
it's loaded from.


jens


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

iD8DBQFE2Ia/RAx5nvEhZLIRAkICAJ4ufTOZjFliFT+0u01X5lZxrrXzkgCeKxT7
xATxCmwu0ohnFglSrHupDyI=
=kWSO
-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] Where Is This Module?

2006-08-08 Thread Jonathan


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

To: "[Zope] Mailing List" 
Sent: Tuesday, August 08, 2006 6:55 AM
Subject: [Zope] Where Is This Module?



Hi;
I've got an error in my error log, but I can't figure out where 
"App.Management" lives:


Traceback (innermost last):
 Module ZPublisher.Publish, line 101, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 39, in call_object
 Module App.Management, line 85, in manage_workspace
Redirect: http://202.71.106.119:7080/error_log/manage_main


In my installation (Zope 2.9.2) Management.py lives in:

/usr/local/src/Zope-2.9.2/Dependencies/App-Zope-2.9.2/App


hth

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] CMF 1.6.2-beta released

2006-08-08 Thread Jens Vagelpohl

The CMF developer community is pleased to announce the release of
version 1.6.2-beta of the Zope Content Management Framework (CMF).
This release is intended for testing purposes only;  we
do not recommend deploying it to production servers.  The final release
of version 1.6.2 is expected in the week of August 13.

What is the CMF?

  The Zope Content Management Framework provides a set of services and
  content objects useful for building highly dynamic, content-oriented
  portal sites.  As packaged, the CMF generates a site much like the
  zope.org site.  The CMF is intended to be easily customizable, in  
terms

  of both the types of content used and the policies and services it
  provides.

What's new in this release?

  The 1.6.2-beta release represents a pure bug fix/maintenance release
  without feature additions.

Where do I get it?

  Download it from http://www.zope.org/Products/CMF/CMF-1.6.2-beta

  Points of interest include:

  - Windows ZIP file:
http://www.zope.org/Products/CMF/CMF-1.6.2-beta/CMF-1.6.2-beta.zip

  - Unix tar/gzip archive:
http://www.zope.org/Products/CMF/CMF-1.6.2-beta/CMF-1.6.2- 
beta.tar.gz


  - Release notes:
http://www.zope.org/Products/CMF/CMF-1.6.2-beta/README.txt

  - Change history:
http://www.zope.org/Products/CMF/CMF-1.6.2-beta/CHANGES.txt

  - Installation instructions:
http://www.zope.org/Products/CMF/CMF-1.6.2-beta/INSTALL.txt

  - CMF Release Roadmap:
http://www.zope.org/Products/CMF/docs/roadmap

Where do I go to learn more?

  The CMF mailing list ([EMAIL PROTECTED]) has many participants who  
are

  active in supporting the CMF.

...to report bugs?

  The CMF Collector at http://www.zope.org/Collectors/CMF is the  
place to

  report bugs (please search for existing reports of your issue first!)


-
Jens Vagelpohl
[EMAIL PROTECTED]



___
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] Zope 2.9 Product Refreshing

2006-08-08 Thread James Davies
On 8/7/06, Andreas Jung <[EMAIL PROTECTED]> wrote:
You might blame Plone for shipping for three tons of frameworks?Incidently, I've just added some print statements to trace the Zope startup, and "Five" is by far the slowest product to load, taking about 3 seconds. Running up is PlacelessTranslationService at around 
1.5 seconds (And much less if I kill all .po files). -James.
___
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] Where Is This Module?

2006-08-08 Thread beno

Hi;
I've got an error in my error log, but I can't figure out where 
"App.Management" lives:


Traceback (innermost last):
 Module ZPublisher.Publish, line 101, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 39, in call_object
 Module App.Management, line 85, in manage_workspace
Redirect: http://202.71.106.119:7080/error_log/manage_main

Please advise.
TIA,
beno


___
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] Zope 2.9 Product Refreshing

2006-08-08 Thread Chris McDonough
FWIW, the session data problem can be solved with the use of a ZODB
session data container that is not stored in RAM  (e.g. an SDC that is
not /temp_folder/session_data), or a reimplentation of a session manager
that uses a relational database or the filesystem.

The proxy error issue should be solved by using multiple Zope servers
and a load balancer which allows you to remove each from the service
pool before restarting it.

- C

On Tue, 2006-08-08 at 12:24 +0200, Lennart Regebro wrote:
> On 8/8/06, James Davies <[EMAIL PROTECTED]> wrote:
> > People pay large sums of money for us to host there critical business
> > infrastructure. If we have to restart zope for any reason, people get apache
> > proxy errors and lose session data.
> 
> Well, right the session data would be annoying.
> But still, most companies do accept that you schedule upgrades, and I
> still would like to know what kind of business can't accept a
> one-minute scheduled outage from time to time. I sure never have met
> one.
> 

___
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] Zope 2.9 Product Refreshing

2006-08-08 Thread Lennart Regebro

On 8/8/06, James Davies <[EMAIL PROTECTED]> wrote:

People pay large sums of money for us to host there critical business
infrastructure. If we have to restart zope for any reason, people get apache
proxy errors and lose session data.


Well, right the session data would be annoying.
But still, most companies do accept that you schedule upgrades, and I
still would like to know what kind of business can't accept a
one-minute scheduled outage from time to time. I sure never have met
one.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.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 )


Re: [Zope] Zope 2.9 Product Refreshing

2006-08-08 Thread Lennart Regebro

On 8/7/06, Dieter Maurer <[EMAIL PROTECTED]> wrote:

For this to work, we almost sure need to tell Five that the product
was refreshed such that Five can reprocess the "*.zcml" files for the
product.


Yeah, and we don't, and ZCML isn't designed for reprocessing, so I'm
not at all sure it's easy (but it may be).

I haven't looked deeply into this, I try to be testdriven, and then
refresh is not a problem. :)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.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 )


Re: [Zope] EMERGENCY!

2006-08-08 Thread Lennart Regebro

On 8/7/06, beno <[EMAIL PROTECTED]> wrote:

How do I undo the last change I made in Zope from the server itself? I
send Zope into an infinite loop when I call Web sites!


What is "the server itself"? The ZMI or a shell?

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.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 )


Re: [Zope] Re: FastCGI server crashing

2006-08-08 Thread Chris McDonough
On Tue, 2006-08-08 at 12:03 +0200, Tonico Strasser wrote:
> Jens Vagelpohl schrieb:
> > ... FastCGI is no longer a supported configuration.
> 
> Just out of curiosity, why isn't it supported anymore?

Mostly because nobody stepped up to support it.

- C


___
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: FastCGI server crashing

2006-08-08 Thread Tonico Strasser

Jens Vagelpohl schrieb:

... FastCGI is no longer a supported configuration.


Just out of curiosity, why isn't it supported anymore?

Thx,
Tonico

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