Re: [Zope-dev] Re: current best of breed ZEO for Zope 2.6.2 in production?

2003-10-03 Thread Magnus Heino
On Thursday 02 October 2003 19.50, Jeremy Hylton wrote:
 On Thu, 2003-10-02 at 13:34, Leonardo Rochael Almeida wrote:
   I thought that was easy to miss, so I changed the heading from
  
   Zope Enterprise Objects
  
   to
  
   Zope Enterprise Objects (OBSOLETE)
 
  And I still missed it! Amazing! it must've been the pre-lunch hunger or
  something... Maybe you should use a blink tag and a red font tag inside a
  one cell table with a thick border (/me runs from the HTML-standards
  mob).

 Maybe we should just delete it.

Add a new release, version obsolete or something. People always get the 
latest release. Or add a meta refresh to redirect after 1s to the new page.

-- 

  /Magnus

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] catalogObject changes (Zope-2_6-branch)

2003-10-03 Thread Yuppie
Hi!

Yesterday I spent some hours tracking down why catalog Metadata and 
catalog Indexes are getting out of sync in my CMF Site.

I found that checkin
http://cvs.zope.org/Zope/lib/python/Products/ZCatalog/Catalog.py.diff?r1=1.98.6.10r2=1.98.6.11
including this new condition
code
if not idxs:
# if the caller specifies that we should update only a
# specific set of indexes, we don't do a metadata update.
self.updateMetadata(object, uid)
/code
Could anybody tell me what's the rationale behind that checkin?

- it breaks backwards compatibility
- it's only in Zope-2_6-branch, not in Zope-2_7-branch or HEAD
- I can't see what this 'if' is good for anyway
Cheers,
Yuppie


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Javascript variables Form element values and zope

2003-10-03 Thread [EMAIL PROTECTED]
Hallo All,

I have this little form and I would like to know how to persuade dtml or
python to access the javascript variables in the set_p function and the
element values in the form LOG.

I'll be thankful for any assistance.

htmlhead
script language=JAVASCRIPT
function set_p(a,b)
{
//
// call a zsql script mylookup which returns a single value
//
  document.p.value=dtml-call expr=mylookup(a,b)
//
//alternatively
//document.p.value=dtml-call
expr=mylookup(document.LOG.m.value,document.LOG.n.value)
//
}
/script
/headbody
form name=LOG
table
tr
tdinput type=text name=m value=/td
tdinput type=text name=n value=/td
tdinput type=text name=p value=/td
tdinput type=button  value=Update P
onclick=set_p(m.value,c.value)/td/tr/table
/form/body/html

Gavin


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Using 2.3.2 for Zope 2.7

2003-10-03 Thread Chris McDonough
Some people at ZC have made pretty compelling arguments to make Python
2.3.2 the recommended version of Python to use with Zope 2.7 final. 
I'm wondering if other people have a strong feeling about this either
way.

-- 
Chris McDonough [EMAIL PROTECTED]
Zope Corporation


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Using 2.3.2 for Zope 2.7

2003-10-03 Thread Andreas Jung
Weren't there some arguments that the security machinery must be checked 
against the changes in
Python 2.3? Are we sure that 2.7 is as secure with 2.3 as with 2.2? In any 
case a bit +1 for going to 2.3.2.

-aj

--On Freitag, 3. Oktober 2003 10:21 Uhr -0400 Chris McDonough 
[EMAIL PROTECTED] wrote:

Some people at ZC have made pretty compelling arguments to make Python
2.3.2 the recommended version of Python to use with Zope 2.7 final.
I'm wondering if other people have a strong feeling about this either
way.
--
Chris McDonough [EMAIL PROTECTED]
Zope Corporation
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: [Zope] Using 2.3.2 for Zope 2.7

2003-10-03 Thread george donnelly
[Chris McDonough wrote ([EMAIL PROTECTED]) on 10/3/03 9:21 AM]

 Some people at ZC have made pretty compelling arguments to make Python
 2.3.2 the recommended version of Python to use with Zope 2.7 final.
 I'm wondering if other people have a strong feeling about this either
 way.

yes please. :) python 2.3 seems a lot faster to me and even quite stable so
far.

or did you mean 2.2.3?

fwiw, i built zope 2.7.0b2 with python2.3 on freebsd 5.0 a couple days ago
without problem and its now serving several medium-traffic CMF sites stably
and with very little if any mem leakage.

--
george donnelly ~ http://www.zettai.net/ ~ Quality Zope Hosting
Shared and Dedicated Zope Hosting ~ Zope Servers ~ Zope Websites
Yahoo, AIM: zettainet ~ ICQ: 51907738 ~ Sales (USA): 1-866-967-3669


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Using 2.3.2 for Zope 2.7

2003-10-03 Thread Chris McDonough
Well, to be clear, there hasn't been any formal security audit of the
combination of Python 2.2 with Zope 2.7.  So we'd lose nothing by moving
directly to 2.3.  Jim is keen to get an audit going quickly before a 2.7
final release, and the audit would be performed against Python 2.3.2.

On Fri, 2003-10-03 at 10:28, Andreas Jung wrote:
 Weren't there some arguments that the security machinery must be checked 
 against the changes in
 Python 2.3? Are we sure that 2.7 is as secure with 2.3 as with 2.2? In any 
 case a bit +1 for going to 2.3.2.
 
 -aj
 
 --On Freitag, 3. Oktober 2003 10:21 Uhr -0400 Chris McDonough 
 [EMAIL PROTECTED] wrote:
 
  Some people at ZC have made pretty compelling arguments to make Python
  2.3.2 the recommended version of Python to use with Zope 2.7 final.
  I'm wondering if other people have a strong feeling about this either
  way.
 
  --
  Chris McDonough [EMAIL PROTECTED]
  Zope Corporation
 
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://mail.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://mail.zope.org/mailman/listinfo/zope-announce
   http://mail.zope.org/mailman/listinfo/zope )
 
 
-- 
Chris McDonough [EMAIL PROTECTED]
Zope Corporation


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope] Re: [Zope-dev] Using 2.3.2 for Zope 2.7

2003-10-03 Thread Toby Dickenson
On Friday 03 October 2003 15:33, Chris McDonough wrote:
 Jim is keen to get an audit going quickly before a 2.7
 final release, and the audit would be performed against Python 2.3.2.

Does anyone else have an interest in blessing Zope 2.6.x with Python 2.2/2.3 ?



-- 
Toby Dickenson


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: [Zope] Using 2.3.2 for Zope 2.7

2003-10-03 Thread BZ
No strong feeling other than I don't have it installed yet.

I spent awhile playing with 2.7b2 and python 2.3 with no issues.

BZ

 Some people at ZC have made pretty compelling arguments to make Python
 2.3.2 the recommended version of Python to use with Zope 2.7 final.
 I'm wondering if other people have a strong feeling about this either
 way.

 --
 Chris McDonough [EMAIL PROTECTED]
 Zope Corporation


 ___
 Zope maillist  -  [EMAIL PROTECTED]
 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-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope] Re: [Zope-dev] Using 2.3.2 for Zope 2.7

2003-10-03 Thread Andrew Sawyers
I don't know about 'blessing', but I'm using it on a project currently 
(Python 2.3 and Zope 2.6.2) without glitches.
Andrew

Toby Dickenson wrote:

On Friday 03 October 2003 15:33, Chris McDonough wrote:
 

Jim is keen to get an audit going quickly before a 2.7
final release, and the audit would be performed against Python 2.3.2.
   

Does anyone else have an interest in blessing Zope 2.6.x with Python 2.2/2.3 ?



 



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope] Re: [Zope-dev] Using 2.3.2 for Zope 2.7

2003-10-03 Thread Paul Winkler
On Fri, Oct 03, 2003 at 03:48:06PM +0100, Toby Dickenson wrote:
 On Friday 03 October 2003 15:33, Chris McDonough wrote:
  Jim is keen to get an audit going quickly before a 2.7
  final release, and the audit would be performed against Python 2.3.2.
 
 Does anyone else have an interest in blessing Zope 2.6.x with Python 2.2/2.3 ?

yes, but not much time to help out :-(

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's BROMO-LOVESICK !
(random hero from isometric.spaceninja.com)

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope] Re: [Zope-dev] Using 2.3.2 for Zope 2.7

2003-10-03 Thread Tres Seaver
On Fri, 2003-10-03 at 10:58, Andrew Sawyers wrote:

 I don't know about 'blessing', but I'm using it on a project currently 
 (Python 2.3 and Zope 2.6.2) without glitches.
 Andrew
 
 Toby Dickenson wrote:

 Does anyone else have an interest in blessing Zope 2.6.x with Python 2.2/2.3 ?

We have deployed Zope 2.6.2 with Python 2.2.3 in production for clients
already;  the garbage collection improvements in Python 2.2.3 were so
compelling that we couldn't reasonably roll them back to Python 2.1.3
after testing.

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Zope Corporation  Zope Dealers   http://www.zope.com



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope] Re: [Zope-dev] Using 2.3.2 for Zope 2.7

2003-10-03 Thread Paul Winkler
On Fri, Oct 03, 2003 at 10:33:01AM -0400, Chris McDonough wrote:
 Well, to be clear, there hasn't been any formal security audit of the
 combination of Python 2.2 with Zope 2.7.  So we'd lose nothing by moving
 directly to 2.3.  Jim is keen to get an audit going quickly before a 2.7
 final release, and the audit would be performed against Python 2.3.2.

then by all means, 2.3.2.  These audits seem to be hard to get going
on a regular basis (we've been on python 2.1.3 for how long now?)
so I see no point in blessing a version of python that's already not
latest-and-greatest.

The only counterargument i can think of is that 2.3 may not be
bundled with many linux distros yet. I've always compiled my own
python for use with zope, so I don't know how big a deal that is.

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's THE BRIGHT ZACH!
(random hero from isometric.spaceninja.com)

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope] Re: [Zope-dev] Using 2.3.2 for Zope 2.7

2003-10-03 Thread Christian Theune
Am Fr, 2003-10-03 um 17.16 schrieb Paul Winkler:

 The only counterargument i can think of is that 2.3 may not be
 bundled with many linux distros yet. I've always compiled my own
 python for use with zope, so I don't know how big a deal that is.

Debian stable requires it's own backports (self compiled, that is) for
python 2.2 and 2.3 anyway, so for those running Debian/stable on their
servers it won't be much of a difference.

Cheers,
Christian

-- 
Christian Theune, gocept gmbh  co. kg
http://www.gocept.com - [EMAIL PROTECTED]
fon: 03496 3099112 fax: 03496 3099118 mobile: 0179 7808366


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope] Re: [Zope-dev] Using 2.3.2 for Zope 2.7

2003-10-03 Thread Fred L. Drake, Jr.

Paul Winkler writes:
  then by all means, 2.3.2.  These audits seem to be hard to get going
  on a regular basis (we've been on python 2.1.3 for how long now?)
  so I see no point in blessing a version of python that's already not
  latest-and-greatest.

It's not just that Python 2.2.3 is no longer the latest and greatest,
but that it's no longer on a maintenance track; that's what 2.3.x is.

  The only counterargument i can think of is that 2.3 may not be
  bundled with many linux distros yet. I've always compiled my own
  python for use with zope, so I don't know how big a deal that is.

If someone can set up Zope, they can install Python in their sleep.  I
don't think this is an issue at all.


  -Fred

-- 
Fred L. Drake, Jr.  fred at zope.com
PythonLabs at Zope Corporation

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


RE: [Zope-dev] Re: [Zope] Using 2.3.2 for Zope 2.7

2003-10-03 Thread Tim Peters
[Chris McDonough]
 Some people at ZC have made pretty compelling arguments to make
 Python 2.3.2 the recommended version of Python to use with Zope 2.7
 final.  I'm wondering if other people have a strong feeling about
 this either way.

[george donnelly]
 yes please. :) python 2.3 seems a lot faster to me and even quite
 stable so far.

 or did you mean 2.2.3?

Chris did mean 2.3.2, which is still unfamiliar to most because it was just
released today:

http://www.python.org/2.3.2/

This came very soon after the 2.3.1 release, and just fixes a few gross but
obscure platform-specific packaging mistakes in 2.3.1.  In reality and with
benefit of hindsight, what was released as 2.3.1 should have been released
as 2.3.1c1 (release candidate 1), and then 2.3.2 should have been released
as 2.3.1 final.

Regardless, 2.3.2 is the best Python in existence (by any criterion other
than identical to 1.5.2 wink).


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


RE: [Zope-dev] Re: [Zope] Using 2.3.2 for Zope 2.7

2003-10-03 Thread Chris McDonough
OK, sounds like a slam dunk to me.

I have changed the Zope 2.7 windows builder to use Python 2.3.2 and I
have changed the source version configure script to look for 2.3.2 as
it's optimal version.  This all appears to work.

Once an RPM is released for Python 2.3.2, I'll change the spec file for
the Zope RPM release to depend on that instead of a 2.2.3 RPM.

Currently, Zope still claims it works with 2.2.X (via the configure
script's acceptable versions feature).  Should we continue to make
that claim true by not depending on any Python 2.3-specific features in
the Zope core?  I don't think there are a lot of super-compelling core
and/or library differences between Pythons 2.3.2 and 2.2.3 that would
make this a hardship on core Zope developers.

- C


On Fri, 2003-10-03 at 11:30, Tim Peters wrote:
 [Chris McDonough]
  Some people at ZC have made pretty compelling arguments to make
  Python 2.3.2 the recommended version of Python to use with Zope 2.7
  final.  I'm wondering if other people have a strong feeling about
  this either way.
 
 [george donnelly]
  yes please. :) python 2.3 seems a lot faster to me and even quite
  stable so far.
 
  or did you mean 2.2.3?
 
 Chris did mean 2.3.2, which is still unfamiliar to most because it was just
 released today:
 
 http://www.python.org/2.3.2/
 
 This came very soon after the 2.3.1 release, and just fixes a few gross but
 obscure platform-specific packaging mistakes in 2.3.1.  In reality and with
 benefit of hindsight, what was released as 2.3.1 should have been released
 as 2.3.1c1 (release candidate 1), and then 2.3.2 should have been released
 as 2.3.1 final.
 
 Regardless, 2.3.2 is the best Python in existence (by any criterion other
 than identical to 1.5.2 wink).
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 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 )
-- 
Chris McDonough [EMAIL PROTECTED]
Zope Corporation


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


RE: [Zope-dev] Re: [Zope] Using 2.3.2 for Zope 2.7

2003-10-03 Thread Fred L. Drake, Jr.

Chris McDonough writes:
  Currently, Zope still claims it works with 2.2.X (via the configure
  script's acceptable versions feature).  Should we continue to make
  that claim true by not depending on any Python 2.3-specific features in
  the Zope core?  I don't think there are a lot of super-compelling core
  and/or library differences between Pythons 2.3.2 and 2.2.3 that would
  make this a hardship on core Zope developers.

Requiring 2.3 (any flavor) would allow us to drop the copy of the
logging package from Zope 2.7 and newer.

There are greater benefits for Zope 3, where we have several modules
and packages laying around that would no longer be needed (logging,
csv, gettext).

I also don't know that we should consider 2.3.1 acceptable for any
version of Zope.


  -Fred

-- 
Fred L. Drake, Jr.  fred at zope.com
PythonLabs at Zope Corporation

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


RE: [Zope-dev] Re: [Zope] Using 2.3.2 for Zope 2.7

2003-10-03 Thread Tim Peters
[Chris McDonough]
 Currently, Zope still claims it works with 2.2.X (via the configure
 script's acceptable versions feature).

Actually, 2.2, 2.2.1, and 2.2.2 aren't acceptable for Zope even now, because
of Zope-critical Python bugs first fixed in 2.2.3.  There's no version of
2.2 with a fix for the rare RH9 Unicode-segfault bug Jeremy stumbled into a
few weeks ago (while running Zope tests), and there may never be.

 Should we continue to make that claim true by not depending on any
 Python 2.3-specific features in the Zope core?  I don't think
 there are a lot of super-compelling core and/or library differences
 between Pythons 2.3.2 and 2.2.3 that would make this a hardship on
 core Zope developers.

I don't know whether it's a hardship for anyone to install 2.3.2 but not to
install 2.2.3.  Seems unlikely wink.  In the spambayes project, we've
found that people just can't stop themselves from using the new-in-2.3
enumerate() builtin, and the new-in-2.3 Sets module.  They're generally
useful.  Since 2.2.3 is slower and buggier than 2.3.2, and may be the last
of the 2.2 line, I'm not sure we'd be doing anyone a real favor by
facilitating hanging on to 2.2.3.

[Fred L. Drake, Jr.]
 Requiring 2.3 (any flavor) would allow us to drop the copy of the
 logging package from Zope 2.7 and newer.

 There are greater benefits for Zope 3, where we have several modules
 and packages laying around that would no longer be needed (logging,
 csv, gettext).

Plus I copy 2.3's strptime.py module into Zope3 now (and have to edit it
each time I synch up to get rid of its enumerate() call), and Zope3 has a
different all-Python implementation of the new-in-2.3 all-C datetime module.
The C version of datetime is more desirable due to its comparative memory
frugality.

One more:  We're trying to move toward replacing ExtensionClass with
new-style classes.  This is straightforward under 2.3, but there's still a
relevant glitch in 2.2.3 that appears to make it much harder (that's why the
code on zodb3-devel-branch works fine under 2.3 but segfaults left and right
under 2.2.3; zodb3-devel-branch is quiet now, but will probably become
important again).

 I also don't know that we should consider 2.3.1 acceptable for any
 version of Zope.

2.3.1 is missing os.fsync() on POSIX systems (a gross mistake that snuck
into 2.3.1), and MvL's arguments notwithstanding, ZODB wants to use
os.fsync() on POSIX systems.  2.3.1 was a mistake, but a mistake that got
fixed quickly.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Javascript variables Form element values and zope

2003-10-03 Thread J. Cameron Cooper
This list is for development of Zope. You want the zope users list at 
[EMAIL PROTECTED]

I have this little form and I would like to know how to persuade dtml or
python to access the javascript variables in the set_p function and the
element values in the form LOG.
 

This is impossible as you put it. You realize that Javascript is totally 
client side, and that to Zope it is nothing more than extra bytes to 
shove out to your browser, right? Javascript can only manipulate the DOM 
within a browser, and Zope can only manipulate the contents of the page 
before it is sent to the browser.

I'll be thankful for any assistance.

htmlhead
script language=JAVASCRIPT
function set_p(a,b)
{
//
// call a zsql script mylookup which returns a single value
//
 document.p.value=dtml-call expr=mylookup(a,b)
//
//alternatively
//document.p.value=dtml-call
expr=mylookup(document.LOG.m.value,document.LOG.n.value)
//
}
/script
/headbody
form name=LOG
table
tr
tdinput type=text name=m value=/td
tdinput type=text name=n value=/td
tdinput type=text name=p value=/td
tdinput type=button  value=Update P
onclick=set_p(m.value,c.value)/td/tr/table
/form/body/html
 

However, Zope can see the values of request parameters (from the form) 
once the form is submitted. If you, say, give the form an action of 
'someZopeObject' then the form will be submitted to that object and you 
will be able to access the values of m, n, and p as they were just 
before the form was sent.

--jcc

--
My point and period will be throughly wrought,
Or well or ill, as this day's battle's fought.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: [Zope] Using 2.3.2 for Zope 2.7

2003-10-03 Thread Jamie Heilman
Chris McDonough wrote:
 OK, sounds like a slam dunk to me.

I think its a fine idea (finally secure temporary files!), but let me
present the first bug I've run into with 2.3 (I've been testing with
it).

In 2.3 you can no longer declare new classes in a Script object.  It
bitches about a lack of __name__ attribute.  I haven't really had the
time to look into it closely, but it does effect the examples shipped
with zope, and actually its just a very useful thing to be able to do.
Whatever this problem stems from, there will probably be more because
of it.

-- 
Jamie Heilman http://audible.transient.net/~jamie/
You came all this way, without saying squat, and now you're trying
 to tell me a '56 Chevy can beat a '47 Buick in a dead quarter mile?
 I liked you better when you weren't saying squat kid. -Buddy

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Javascript variables Form element values and zope

2003-10-03 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2003-10-3 13:34 +0100:
  I have this little form and I would like to know how to persuade dtml or
  python to access the javascript variables in the set_p function and the
  element values in the form LOG.

I cannot do that:

  DTML lives on the server, Javascript on the client.

  The server cannot reach out to the client.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] catalogObject changes (Zope-2_6-branch)

2003-10-03 Thread Dieter Maurer
Yuppie wrote at 2003-10-3 10:14 +0200:
  Yesterday I spent some hours tracking down why catalog Metadata and 
  catalog Indexes are getting out of sync in my CMF Site.
  
  I found that checkin
  http://cvs.zope.org/Zope/lib/python/Products/ZCatalog/Catalog.py.diff?r1=1.98.6.10r2=1.98.6.11
  
  including this new condition
  code
   if not idxs:
   # if the caller specifies that we should update only a
   # specific set of indexes, we don't do a metadata update.
   self.updateMetadata(object, uid)
  /code
  
  Could anybody tell me what's the rationale behind that checkin?
  
  - it breaks backwards compatibility
  - it's only in Zope-2_6-branch, not in Zope-2_7-branch or HEAD
  - I can't see what this 'if' is good for anyway

I can ;-)

The idxs argument is often provided to update only special indexes:
e.g. workflow indexes or AllowedRolesAndUsers and when you
update selected indexes from the Indexes tab.
In these cases, it is often not necessary to update the Metadata.

Metadata updates are often monstruous. In one of our applications,
Metadata updates are responsible for a 500 kB transaction
when a single workflow state changes.

I am now advocating not to use Metadata at all.
They are only relevant when you process large result sets
(e.g. for sorting or statistics).


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: current best of breed ZEO for Zope 2.6.2 in production?

2003-10-03 Thread Dieter Maurer
Jeremy Hylton wrote at 2003-10-2 13:50 -0400:
  ...
  On the other hand, Jim asked me today how someone would navigate from
  the zope.org home page to the current ZODB release.  I don't have any
  idea.  Anyone else know?  I just use Google.

The W3C has quite a good scheme: a fixed URL always points to the 
current release.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] ZConfig changes

2003-10-03 Thread Fred L. Drake, Jr.

Phillip Eby and I both checked new functionality into ZConfig today;
the documentation has been updated.  If these changes are still
looking good in a week or two, I'll plan on releasing it as ZConfig
2.0.

Both sets of changes revolve around schema extension, but they support
different things.  Phillip's changes allow one schema to be derived
from one or more other schema.  My changes allow configuration files
to load additional schema components.

Please try these changes and see how they work for you.


  -Fred

-- 
Fred L. Drake, Jr.  fred at zope.com
PythonLabs at Zope Corporation

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] testSetupServers() in Zope-2_7-branch?

2003-10-03 Thread Tim Peters
==
ERROR: testSetupServers (Zope.Startup.tests.testStarter.ZopeStarterTestCase)
--
Traceback (most recent call last):
  File
C:\Code\Zope-2_7-branch\lib/python\Zope\Startup\tests\testStarter.py, line
194, in testSetupServers
self.assertRaises(ZConfig.ConfigurationError, starter.setupServers)
  File C:\PYTHON23\lib\unittest.py, line 289, in failUnlessRaises
callableObj(*args, **kwargs)
  File C:\Code\Zope-2_7-branch\lib/python\Zope\Startup\__init__.py, line
187,in setupServers
servers.append(server.create())
  File C:\Code\Zope-2_7-branch\lib/python\ZServer\datatypes.py, line 93,
in cr
eate
logger_object=access_logger)
  File C:\Code\Zope-2_7-branch\lib/python\ZServer\FTPServer.py, line 600,
in __init__
ftp_server.__init__(self, None, *args, **kw)
  File C:\Code\Zope-2_7-branch\lib/python\ZServer\medusa\ftp_server.py,
line 727, in __init__
self.bind ((self.ip, self.port))
  File C:\PYTHON23\lib\asyncore.py, line 300, in bind
return self.socket.bind(addr)
  File string, line 1, in bind
TypeError: an integer is required



That was on Windows  Python 2.3.2, but I don't know whether it matters.

The second half of testSetupServers() appears to be setting up an error
case, but it's not dying in the way the test expects.  Instead

   self.ip == '18092 # conflict'

and

   self.port == None

and socket.bind has no idea what to make of that.  It raises TypeError.  The
test is expecting ZConfig.ConfigurationError.  I figure someone can figure
this out faster than I can -- don't be shy wink.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: [Zope] Using 2.3.2 for Zope 2.7

2003-10-03 Thread Anthony Baxter

 Fred L. Drake, Jr. wrote
 
 Requiring 2.3 (any flavor) would allow us to drop the copy of the
 logging package from Zope 2.7 and newer.
 
 There are greater benefits for Zope 3, where we have several modules
 and packages laying around that would no longer be needed (logging,
 csv, gettext).

Don't forget you also get the C version of datetime.

 I also don't know that we should consider 2.3.1 acceptable for any
 version of Zope.

Meh. 2.3.1 gets a bad rap. Aside from the fsync problem, there's nothing
fundamentally broken about it.

Anthony

-- 
Anthony Baxter [EMAIL PROTECTED]   
It's never too late to have a happy childhood.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )