[Zope-dev] Confused: Does PersistentList exist?

2002-01-27 Thread Lennart Regebro

I found seceral seemingly up to date docuemnts claiming that both
PersistentMapping and PersistentList exists and is included with Zope.
However, I couldn't find PersistentList, so I thought that it had been added
after 2.3.3, which I am using.
So I checked the CVS. Nope, nothing there.

So whats the deal here, really?


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



Re: [Zope-dev] Confused: Does PersistentList exist?

2002-01-27 Thread Chris McDonough

PersistentList doesn't come with Zope.  What docs?

On Sun, 27 Jan 2002 11:12:11 +0100
 "Lennart Regebro" <[EMAIL PROTECTED]> wrote:
> I found seceral seemingly up to date docuemnts claiming
> that both
> PersistentMapping and PersistentList exists and is
> included with Zope.
> However, I couldn't find PersistentList, so I thought
> that it had been added
> after 2.3.3, which I am using.
> So I checked the CVS. Nope, nothing there.
> 
> So whats the deal here, really?
> 
> 
> ___
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )


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



[Zope-dev] [BUG] Python 2.1.2 & Zope 2.4.1

2002-01-27 Thread Olivier Deckmyn

Hi,

I decided to upgrade my Python 2.1.1 to Python 2.1.2 (in order to gently
move to 2.5 later).

My Zope instances were working quite finebut...randomly I got a core
dump (!) and the following message in logs :

assertion "STACK_LEVEL() <= f->f_stacksize" failed: file "Python/ceval.c",
line 687


Bug seems to appear when playing with ZCatalog (CMF sites could'nt even
render a page) and Python scripts ?

After some hours of researches, I have a (dirty, really) fix :

I had to modify Python sources and hack line 687 in ceval.c  : I removed
it...
Then recompile and it seems to work. I know this is dirty, and my Zope my
crash later.

PLEASE CHECK and HELP !

This looks like a major serious bug to me.

Cheers,

Olivier.


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



Re: [Zope-dev] Confused: Does PersistentList exist?

2002-01-27 Thread Jeremy Hylton

> "LR" == Lennart Regebro <[EMAIL PROTECTED]> writes:

  LR> I found seceral seemingly up to date docuemnts claiming that
  LR> both PersistentMapping and PersistentList exists and is included
  LR> with Zope.  However, I couldn't find PersistentList, so I
  LR> thought that it had been added after 2.3.3, which I am using.
  LR> So I checked the CVS. Nope, nothing there.

  LR> So whats the deal here, really?

Andrew Kuchling wrote a PersistentList for his StandaloneZODB.  I
think it would be a good idea to include in ZODB eventually, but
haven't gotten around to integrating it.  IIRC, Jim wasn't sure he
wanted it in ZODB.

Jeremy



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



Re: [Zope-dev] Confused: Does PersistentList exist?

2002-01-27 Thread Barry A. Warsaw


> "LR" == Lennart Regebro <[EMAIL PROTECTED]> writes:

LR> I found seceral seemingly up to date docuemnts claiming that
LR> both PersistentMapping and PersistentList exists and is
LR> included with Zope.  However, I couldn't find PersistentList,
LR> so I thought that it had been added after 2.3.3, which I am
LR> using.  So I checked the CVS. Nope, nothing there.

LR> So whats the deal here, really?

PersistentList is part of Andrew Kuchling's StandaloneZODB offering.
It hasn't yet been integrated into ZC's offering, and won't for our
StandaloneZODB 1.0 release.  We have plans to continue to merge
Andrew's version and ours, so it's likely that PersistentList will
show up in a future version as released from ZC.

-Barry

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



Re: [Zope-dev] Confused: Does PersistentList exist?

2002-01-27 Thread Lennart Regebro

From: "Jeremy Hylton" <[EMAIL PROTECTED]>
> Andrew Kuchling wrote a PersistentList for his StandaloneZODB.  I
> think it would be a good idea to include in ZODB eventually, but
> haven't gotten around to integrating it.  IIRC, Jim wasn't sure he
> wanted it in ZODB.

Well, *I* want it. :-)
I'm using the separate product now, but the less third-party thingies I have
to use the happier I am. :-)


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



Re: [Zope-dev] [BUG] Python 2.1.2 & Zope 2.4.1

2002-01-27 Thread Chris McDonough

Olivier,

Have you been reading anything about the random Zope crashes on the list for
the last six months?  Have you searched the maillist archives for the text
of your crash?

- C

- Original Message -
From: "Olivier Deckmyn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, January 27, 2002 11:45 AM
Subject: [Zope-dev] [BUG] Python 2.1.2 & Zope 2.4.1


> Hi,
>
> I decided to upgrade my Python 2.1.1 to Python 2.1.2 (in order to gently
> move to 2.5 later).
>
> My Zope instances were working quite finebut...randomly I got a core
> dump (!) and the following message in logs :
>
> assertion "STACK_LEVEL() <= f->f_stacksize" failed: file "Python/ceval.c",
> line 687
>
>
> Bug seems to appear when playing with ZCatalog (CMF sites could'nt even
> render a page) and Python scripts ?
>
> After some hours of researches, I have a (dirty, really) fix :
>
> I had to modify Python sources and hack line 687 in ceval.c  : I removed
> it...
> Then recompile and it seems to work. I know this is dirty, and my Zope my
> crash later.
>
> PLEASE CHECK and HELP !
>
> This looks like a major serious bug to me.
>
> Cheers,
>
> Olivier.
>
>
> ___
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
>


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



[Zope-dev] Defining Interfaces

2002-01-27 Thread Steve Alexander

Hi folks,

When I define an Interface, are the methods of the interface supposed to 
have "self" as the first argument?

It certainly seems that way from 
./lib/python/AccessControl/IUserFolder.py in Zope2.  It also seems that 
way from the Interface Interface.

However, many of the interfaces in Zope3 omit the "self" argument.


--
Steve Alexander




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



Re: [Zope-dev] [BUG] Python 2.1.2 & Zope 2.4.1

2002-01-27 Thread Leonardo Rochael Almeida

What you just 'fixed' is an assertion against a memory corruption bug in
all Zope versions between 2.4.0 and 2.4.3, inclusive. Zope version 2.4.4
(which hasn't been released, Hey ZC! wake up! stabilizing 2.4 is more
important than releasing 2.5 in my book! Now that you've done the latter
can you care to do the former, please? :-), should fix your problem, as
would migrate to Zope 2.5.

Legend has it that the current 2.4 branch is exactly what 2.4.4 will be.
Check the archives for this mailing list (link below) for instructions
on how to take the current 2.4 branch from CVS.

BTW, Chris, what Olivier saw couldn't automatically lead him to
correlate with the other Zope crashes, since the other reports don't
mention the 'assertion' error message he saw, which he concluded was the
cause of his problems.

I'm really disappointed with ZC for putting out a new release of Zope
instead of a fixed version of the release most everyone is currently
using.

Regards, Leo

On Sun, 2002-01-27 at 14:45, Olivier Deckmyn wrote:
> Hi,
> 
> I decided to upgrade my Python 2.1.1 to Python 2.1.2 (in order to gently
> move to 2.5 later).
> 
> My Zope instances were working quite finebut...randomly I got a core
> dump (!) and the following message in logs :
> 
> assertion "STACK_LEVEL() <= f->f_stacksize" failed: file "Python/ceval.c",
> line 687
> 
> 
> Bug seems to appear when playing with ZCatalog (CMF sites could'nt even
> render a page) and Python scripts ?
> 
> After some hours of researches, I have a (dirty, really) fix :
> 
> I had to modify Python sources and hack line 687 in ceval.c  : I removed
> it...
> Then recompile and it seems to work. I know this is dirty, and my Zope my
> crash later.
> 
> PLEASE CHECK and HELP !
> 
> This looks like a major serious bug to me.
> 
> Cheers,
> 
> Olivier.
> 
> 
> ___
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
> 
> 


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



Re: [Zope-dev] [BUG] Python 2.1.2 & Zope 2.4.1

2002-01-27 Thread Olivier Deckmyn

> This has been explained recently (--> mailing list archives, probably
> through Google search for "f_stacksize").

I did, without a great success.

>
> Summary, you need to upgrade Zope, too!

If only I could...

You can't make your customer migrate their Zope version in 2hours. Our
servers are hosting dozens of website for dozens of customer.
Moving to a newer Zope is not just a matter of installing a new version...

For example, we have a CMF site that will only work with Zope 2.4.1. We
tried to migrate to CMF 1.2 or Zope 2.4.3, without success (crashes,
security machinery misteries, etc.).
CMF is still too dark to manipulate it as we would wish.

>
> Viele Grüße
> Dieter


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



Re: [Zope-dev] [BUG] Python 2.1.2 & Zope 2.4.1

2002-01-27 Thread Chris McDonough

> BTW, Chris, what Olivier saw couldn't automatically lead him to
> correlate with the other Zope crashes, since the other reports don't
> mention the 'assertion' error message he saw, which he concluded was the
> cause of his problems.

http://zope.nipltd.com/public/lists/zope-archive.nsf/47ba74c812dbc5dd8025687
f0024bb5f/2cd3e5f0b7deba7880256b48007583a8?OpenDocument&Highlight=0,ceval.c

http://zope.nipltd.com/public/lists/zope-archive.nsf/47ba74c812dbc5dd8025687
f0024bb5f/16dea7ad623f53e080256b4c00742ba5?OpenDocument&Highlight=0,ceval.c

> I'm really disappointed with ZC for putting out a new release of Zope
> instead of a fixed version of the release most everyone is currently
> using.

I'm really disappointed that you're disappointed.

Folks, please get off of our backs for a second.  We know it's important to
release 2.4.4, it will be out soon.  *Please* don't send us "wake up!"
messages.  We're fully awake and as soon as humanly possible, 2.4.4 will be
out.  Until then, hang tight.  Folks here are working very hard.

I think that Zope 2.5 was supposed to be released at the same time as Zope
2.4.4, but folks saw that the downloadable version of 2.5 up on Zope.org and
assumed it was OK to put a news report out about it.  It wasn't actually
"released" as much as "escaped". ;-)

- C



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



[Zope-dev] getURL and url_quoting

2002-01-27 Thread lambert muhr

I am cataloging mysql-data with zcatalog following the how-to provided by
zope-member rbicker. this works fine. since I use batch-processing to build
web pages containing e.g. 3 mysql data records per page, the uid's, hence
the url's of the zcatalog's objects are e.g.:

/base/select_mm_url/2/show_intro?start=4

this url, I build dynamically from a python script, which catalogs the mysql
data:

for chapter in container.search_mms():
container.catalog_object(chapter,'/base/select_mm_url/' + chapter.mm_id
+ '/show_intro?start=' + chapter.mms_id)
[works fine ...]

in the search results' page I use the following code to link to the results:

link

unfortunately, the link on the web page turns out like this:

/base/select_mm_url/2/show_intro%3fstart%3d4

what is my mistake? I was believing I would have to turn off the automatic
url-quoting using the entity reference '&dtml ;' by putting the '.'
after '&dtml'. but it seems, this doesn't work with 'getURL'. if so, what
other possibilities do I have to "get" the results' "url"?

thanks for any hint.
lambert



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



Re: [Zope-dev] Defining Interfaces

2002-01-27 Thread Jeffrey P Shell

On 1/27/02 11:25 AM, "Steve Alexander" <[EMAIL PROTECTED]> wrote:

> Hi folks,
> 
> When I define an Interface, are the methods of the interface supposed to
> have "self" as the first argument?

No.

> It certainly seems that way from
> ./lib/python/AccessControl/IUserFolder.py in Zope2.  It also seems that
> way from the Interface Interface.
> 
> However, many of the interfaces in Zope3 omit the "self" argument.

-- 
Jeffrey P Shell 
www.cuemedia.com



Sent using the Entourage X Test Drive.


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



Re: [Zope-dev] Defining Interfaces

2002-01-27 Thread Steve Alexander

Jeffrey P Shell wrote:
> On 1/27/02 11:25 AM, "Steve Alexander" <[EMAIL PROTECTED]> wrote:
> 
> 
>>Hi folks,
>>
>>When I define an Interface, are the methods of the interface supposed to
>>have "self" as the first argument?
>>
> 
> No.

In which case, perhaps we should change InterfaceInterface and 
InterfaceBaseInterface from Interface/iclass.py to reflect this.

The ZDG should also be updated to reflect this, as the example is wrong.

   http://www.zope.org/Documentation/ZDG/ComponentsAndInterfaces.stx

  from Interface import Base

   class Hello(Base):
   """ The Hello interface provides greetings. """

   def hello(self, name):
   """ Say hello to the name """

   class HelloComponent:

   __implements__ = Hello

   def hello(self, name):
   return "hello %s!" % name


Shall I throw this into the Collector?

--
Steve Alexander



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



Re: [Zope-dev] Defining Interfaces

2002-01-27 Thread Jeffrey P Shell

On 1/27/02 3:09 PM, "Steve Alexander" <[EMAIL PROTECTED]> wrote:

> In which case, perhaps we should change InterfaceInterface and
> InterfaceBaseInterface from Interface/iclass.py to reflect this.
> 
> The ZDG should also be updated to reflect this, as the example is wrong.
> 
>  http://www.zope.org/Documentation/ZDG/ComponentsAndInterfaces.stx
> 
> from Interface import Base
> 
>  class Hello(Base):
>  """ The Hello interface provides greetings. """
> 
>  def hello(self, name):
>  """ Say hello to the name """
> 
>  class HelloComponent:
> 
>  __implements__ = Hello
> 
>  def hello(self, name):
>  return "hello %s!" % name
> 
> 
> Shall I throw this into the Collector?

Probably.  I made a comment on the page itself, just a couple of days ago,
but it's unknown how often those comments are reviewed:


>> jshell - Jan. 24, 2002 12:56 pm - This should all be updated to reflect where
>> interfaces are going for Zope 3. First, the interface should be named
>> "IHello", and there should be no 'self' in the signature for the 'hello()'
>> method. 


-- 
Jeffrey P Shell 
www.cuemedia.com



Sent using the Entourage X Test Drive.


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



Re: [Zope-dev] Defining Interfaces

2002-01-27 Thread Chris McDonough

> > Shall I throw this into the Collector?
>
> Probably.  I made a comment on the page itself, just a couple of days ago,
> but it's unknown how often those comments are reviewed:

They're not reviewed often by the editors, but they sure help folks who read
them in the meantime, so I encourage folks to add comments to the Dev Guide
when possible.

- C



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