Re: [Zope] Re: upgrade 2.5.1 to 2.7.5 causes error in product code

2005-08-28 Thread Jens Vagelpohl


On 27 Aug 2005, at 20:15, John Schinnerer wrote:

python:here.sponsors[0] != ''

if the tuple is empty, whereas 2.5.1/2.1.3 must have been returning
some equivalent of boolean 'false' when the tuple was empty.


No. Python 2.1.3 would have blown up the same way.



Now I do this

python: (here.sponsors) and (here.sponsors[0] != '')

and it works again.
The second condition may be redundant now I suppose...?


No it is not redundant. A value ('',) would still be True as far as  
Python is concerned and would pass the first condition.


jens

___
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.5.4-beta released

2005-08-28 Thread Jens Vagelpohl

The CMF developer community and Zope Corporation are pleased to
announce the release of version 1.5.4-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.5.4 is expected to land within the next 10 days.

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.

Where do I get it?

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

Points of interest include:

- Windows ZIP file,
  http://zope.org/Products/CMF/CMF-1.5.4-beta/CMF-1.5.4-beta.zip

- Unix tar/gzip archive,
  http://zope.org/Products/CMF/CMF-1.5.4-beta/CMF-1.5.4- 
beta.tar.gz .


- Release notes,
  http://zope.org/Products/CMF/CMF-1.5.4-beta/README.txt

- Change history,
  http://zope.org/Products/CMF/CMF-1.5.4-beta/CHANGES.txt

- Installation instructions,
  http://zope.org/Products/CMF/CMF-1.5.4-beta/INSTALL.txt

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:http://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 )


[Zope] Re: StructuredDocument size reduced after 2.5.1 to 2.7.5 upgrade

2005-08-28 Thread Maik Jablonski

John Schinnerer wrote:

I am using StructuredDocument objects in the custom products I am
migrating to 2.7.5 from 2.5.1.

In 2.7.5 I am now getting an error

Value Error
Maximum content length exceeded

...

Anyone have any idea why I'm getting this size-related error with
StructuredDocument only after migrating to 2.7.5?
And how to fix it, of course... :-?


Sorry, but I cannot reproduce this problem with Zope 2.7.7 and large 
amounts of text in a StructuredDocument... can you send me a 
.zexp-Export of a StructeredDocument created with 2.5.1 which shows the 
behavior in 2.7.x? Maybe I'll can reproduce it and find the problem, but 
I don't think that it is related to StructuredDocument, because nearly 
all code is acquired from DTML-Document...


Cheers, 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 )


Re: [Zope] file size error

2005-08-28 Thread Dieter Maurer
michael wrote at 2005-8-27 16:14 +1000:
 ...
1. Where is the list of error messages and their meanings (error message 
reference)?

There is none but error messages are usually speaking: reading
them carefully, usually helps.

Beside this, you should always look at the traceback accompaning
the error message.
You find it in the error_log object (inside the ZMI).

When you report errors, always include the traceback.
It tells you (and people trying to help you) where the error
occured -- a valuable help for diagnosis.

-- 
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] dtml-if

2005-08-28 Thread michael

What am I doing wrong here?

dtml-var last -- this prints out the variable sent from last 
(referring) page fine

dtml-var id -- this prints out the id of the current item fine


dtml-if id == last  this one!  /dtml-if

i want this to output this one! when the current item is the one 
requested by the last page but they are never seen as == even when the 
two dtml-var are the same


they are never equal! 



thanks,
mike


___
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] dtml-if

2005-08-28 Thread Greg Fischer
I have never been able to do that either and always wondered how to do
it.  However I have a workaround that I use frequently.  I just use
the title instead, which works perfectly.

dtml-if title == 'My Page' This one!/dtml-if

Greg


On 8/28/05, michael [EMAIL PROTECTED] wrote:
 What am I doing wrong here?
 
 dtml-var last -- this prints out the variable sent from last
 (referring) page fine
 dtml-var id -- this prints out the id of the current item fine
 
 
 dtml-if id == last  this one!  /dtml-if
 
 i want this to output this one! when the current item is the one
 requested by the last page but they are never seen as == even when the
 two dtml-var are the same
 
 they are never equal!
 
 
 thanks,
 mike
 
 
 ___
 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 )
 


-- 
Greg Fischer
1st Byte Solutions
http://www.1stbyte.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] dtml-if

2005-08-28 Thread michael
Thanks for your reply, that is half way there, I want to compare two 
variables though. where as 'my page' is constant, and hard coded in.


someone's gotta know :-)

mike

Greg Fischer wrote:


I have never been able to do that either and always wondered how to do
it.  However I have a workaround that I use frequently.  I just use
the title instead, which works perfectly.

dtml-if title == 'My Page' This one!/dtml-if

Greg


On 8/28/05, michael [EMAIL PROTECTED] wrote:
 


What am I doing wrong here?

dtml-var last -- this prints out the variable sent from last
(referring) page fine
dtml-var id -- this prints out the id of the current item fine


dtml-if id == last  this one!  /dtml-if

i want this to output this one! when the current item is the one
requested by the last page but they are never seen as == even when the
two dtml-var are the same

they are never equal!


thanks,
mike


___
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] dtml-if

2005-08-28 Thread David Siedband

Try calling id then comparing it.

dtml-if id()==last this one! /dtml-if

--
David



On Aug 28, 2005, at 7:19 PM, michael wrote:

Thanks for your reply, that is half way there, I want to compare two 
variables though. where as 'my page' is constant, and hard coded in.


someone's gotta know :-)

mike

Greg Fischer wrote:


I have never been able to do that either and always wondered how to do
it.  However I have a workaround that I use frequently.  I just use
the title instead, which works perfectly.

dtml-if title == 'My Page' This one!/dtml-if

Greg


On 8/28/05, michael [EMAIL PROTECTED] wrote:


What am I doing wrong here?

dtml-var last -- this prints out the variable sent from last
(referring) page fine
dtml-var id -- this prints out the id of the current item fine


dtml-if id == last  this one!  /dtml-if

i want this to output this one! when the current item is the one
requested by the last page but they are never seen as == even when 
the

two dtml-var are the same

they are never equal!


thanks,
mike


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


Re: [Zope] dtml-if

2005-08-28 Thread michael

Thanks thats it!  Why is it like that?

m


David Siedband wrote:


Try calling id then comparing it.

dtml-if id()==last this one! /dtml-if

--
David



On Aug 28, 2005, at 7:19 PM, michael wrote:

Thanks for your reply, that is half way there, I want to compare two 
variables though. where as 'my page' is constant, and hard coded in.


someone's gotta know :-)

mike

Greg Fischer wrote:


I have never been able to do that either and always wondered how to do
it.  However I have a workaround that I use frequently.  I just use
the title instead, which works perfectly.

dtml-if title == 'My Page' This one!/dtml-if

Greg


On 8/28/05, michael [EMAIL PROTECTED] wrote:


What am I doing wrong here?

dtml-var last -- this prints out the variable sent from last
(referring) page fine
dtml-var id -- this prints out the id of the current item fine


dtml-if id == last  this one!  /dtml-if

i want this to output this one! when the current item is the one
requested by the last page but they are never seen as == even when the
two dtml-var are the same

they are never equal!


thanks,
mike




___
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: [ANN] iungo released to the wild...

2005-08-28 Thread Simon Michael

Oh no! Your logo-fu is the greatest.

I really like what I've seen of this, it seems an elegant zopish 
solution. Great food for thought. Thanks!


-Simon

___
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] Zope 3.1.0 RC 2 released!

2005-08-28 Thread Stephan Richter
The Zope 3 development team is proud to announce Zope 3.1.0 candidate 2.

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.

It is in our opinion that Zope 3.1 is more than ready for production use,
which is why we decided to drop the 'X' for experimental from the name. We
will also continue to work on making the transition between Zope 2 and Zope 3
as smooth as possible. As a first step, Zope 2.8 includes Zope 3 features in
the form of Five.

Now that we have a release that we would like to declare stable next week, we
are looking for translators, who translate Zope 3 into their favorite
language! We are utilizing the Rosetta system from Ubuntu for managing those
translations. If you are not familiar with Rosetta, please send us a mail to
zope3-dev@zope.org and we get you set up.


Downloads

  http://zope.org/Products/Zope3/

  Installation instructions for both Windows and Un*x/Linux are now available
  in the top level 'README.txt' file of the distribution. The binary installer
  is recommended for Windows.

  Zope 3.1 requires Python 2.3.5 or 2.4.1 to run. You must also have zlib
  installed on your system.

Changes Since 3.1.0c1

  - Removed an untested missfeature that can cause infinite loops in
principalfolder's Principal class.

  - Switch to METAL 1.1, which solved a serious bug.

  - Grant view cleaned up.

  - Add missing id attribute to select widget.

  - pytz has been updated.

  - Some code optimization in the HTTP factory of the publisher and
ftesting framework.

  - Multiple headers having the same name are correctly handled now.

  - Now SQL operation parameters will be properly encoded before executing.

  - More carefully handle case when SQL parameters is a tuple or a list of
a tuples.

  - All request factories can now be configured.

  - Script and Installation documentation improvements.

  - Fixed several bugs in API doc. Also provided some flexibility with the
UI.

  - Fix to source widget hasInput and associated changes

  - Updated Build System.

  - Fix I18n bugs. Updated Russian and German translations.

Most Important Changes Since 3.0

  - New Pluggable Authentication Utility (PAU), which is similar in
philosophy to the Zope 2 PAS. The following features are available in
the in the basic PAU facility:

+ Credentials Plugins: Basic HTTP Auth, Session

+ Authenticator Plugins: Principal Folder, Group Folder

For a detailed description of the pluggable authentication utility,
see 'zope/app/authentication/README.txt'.

  - Major simplifications to the component architecture:

+ Removal of the concept of a service. All outstanding services were
  converted to utilities: Error Reporting, FSSync, Authentication.

+ Site Managers are global and local now; adapters and utilties are
  directly registered with the site manager. Now global and local
  component registration and lookup behaves very similar.

+ Local registrations can now only have two states: active and
  inactive. This simplified the code so much, that 'zope.app.utility',
  'zope.app.registration' and 'zope.app.site' were all merged into
  'zope.app.component'.

+ Implemented menus as utilities. The API also supports sub-menus now.

+ Implemented views as adapters. Skins and layers are now simply
  interfaces that the request provides.

  - Added an integer-id facility for assigning integer identifiers
to objects.

  - Added basic catalog and index frameworks.

  - Added sources, which are like vocabularies except that they
support very large collections of values that must be
searched, rather than browsed.

  - Created a new granting UI that allows advanced searching of
principal sources.

  - Implemented a generic user preferences systsem that was designed to be
easily used in TALES expressions and via Python code. Preferences can be
edited via 'http://localhost:8080/++preferences++/'. A demo of the
preferences can be found at::

  http://svn.zope.org/Zope3/trunk/src/zope/app/demo/skinpref/

  - ZCML now supports conditional directives using the 'zcml:condition'
attribute. The condition is of the form verb argument. Two verbs, 'have
feature' and 'installed module' are currently implemented. Features can be
declared via the 'meta:provides' directive.

  - Improved API doctool: Code Browser now shows interfaces, text files and
ZCML files; the new Book Module compiles all available doctext files into
an organized book; the new Type Module lets you browser all interface
types and discover interfaces that provide types; views are shown in the
interface details screen; views and adapters are categorized into
specific, extended and generic; user preferences allow you to customize
certain views; 3rd party modules can now be added to the Code Browser.

  - Improved 

[Zope-Coders] Zope tests: 8 OK

2005-08-28 Thread Zope tests summarizer
Summary of messages to the zope-tests list.
Period Sat Aug 27 11:01:02 2005 UTC to Sun Aug 28 11:01:02 2005 UTC.
There were 8 messages: 8 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Sat Aug 27 22:22:07 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-August/002943.html

Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Sat Aug 27 22:23:37 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-August/002944.html

Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Sat Aug 27 22:25:07 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-August/002945.html

Subject: OK : Zope-2_7-branch Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Sat Aug 27 22:26:37 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-August/002946.html

Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Sat Aug 27 22:28:07 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-August/002947.html

Subject: OK : Zope-2_8-branch Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Sat Aug 27 22:29:37 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-August/002948.html

Subject: OK : Zope-trunk Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Sat Aug 27 22:31:07 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-August/002949.html

Subject: OK : Zope-trunk Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Sat Aug 27 22:32:37 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-August/002950.html

___
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders