Re: [Zope-dev] Fault tolerance and thread-loss

2000-12-19 Thread Gilles Lavaux

Hello


I had thread blocking in my installation du to using the sendmail tag with
invalid recipient(empty).
I solved this and now my 3 'production' zope installations works well since
months.

Gilles Lavaux
-Original Message-
From: Jay, Dylan <[EMAIL PROTECTED]>
To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]>
Date: Tuesday, December 19, 2000 12:51 AM
Subject: [Zope-dev] Fault tolerance and thread-loss


>I'm finding that my installation is blocking all requests after awhile. By
>best guess would be that threads are being used and somehow becoming
>permanently blocked. When all 4 are gone then the server is useless and has
>to be restarted.
>
>Seems to me this is a real problem for fault tolerance. Perhaps a monitor
>should be run on a separate thread that starts aborting transactions when
>they have been running too long and there are few remaining threads.
>
>Does this exist already?
>
>
>Dylan Jay   mailto:[EMAIL PROTECTED]
>Avaya Communication Tel:   +61 2 9886-8961
>Level 5, 15 Talavera Road   FAX:   +61 2 9352 9224
>Nth Ryde NSW 2113   Mobile:0409 606 171
>AUSTRALIA
>
>___
>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] objectIds -- accesible for everyone -- why?

2000-12-19 Thread Martijn Pieters

On Mon, Dec 18, 2000 at 09:01:28PM -0800, Michael Bernstein wrote:
> [EMAIL PROTECTED] wrote:
> > 
> > If you type in http://www.zope.org/Members/objectIds you get a list of
> > all Members.  Although it is a useful feature.. ;) .. I can't really
> > see why objectIds should be available for everyone, at any given time.
> 
> Hmm, if these objects are listed in their order of creation,
> and I'm the 39th object listed (other than index_html), that
> makes me the 39th user to sign up for a login!
> 
> Low user ID #s are cool.
> 
> - Michael Bernstein (webmaven).

Yeah, I'll mine to my signature... :P

-- 
Martijn Pieters (#6 @ zope.org)
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

___
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] External method

2000-12-19 Thread Roch'e Compaan

This is not a strictly zope related question but it is zopeish :)

In an external method I need to call an executable and capture the output it
generates.  This executable however needs to connect to a running X Server.
I used the popen2 command but it returns with the obvious error :
"theprogram : cannot connect to X Server".  So how does one tell a program
to attach to a X server?

Any help would truly delight me

Roché


___
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] 'Subclassing' another product

2000-12-19 Thread Morten W. Petersen

I think I read somewhere that it was, from version 2.2
of Zope, possible to 'subclass' products.  Is this
just somebody janking my chain, or is it actually possible?

If it is possible, would someone care to explain?

Thanks.

-Morten

___
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] Loginmanager and local roles

2000-12-19 Thread Morten W. Petersen

Using LoginManager, I can't seem to map local roles to
users that are stored in LoginManager instances.

I.e.:

if this acl_users is a LoginManager

/a/b/c/acl_users

then any object in

/a/b/c/d

will not show any of the users stored in the nearest
acl_users object in the local roles management menu..

Any suggestions?

-Morten

___
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] Loginmanager and local roles

2000-12-19 Thread Morten W. Petersen

[Morten W. Petersen]

| Any suggestions?

Found the problem.  There needs to be a method called user_names
in the acl_users folder, which returns all the user ids:

"""
self
user_ids = self.UserSource.getPersistentItemIDs()

user_ids2 = []

for id in user_ids:
user_ids2.append(id)

return user_ids2
"""

(Can't understand why I had to use an additional list though).

Cheers.

-Morten

___
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] SQLAlias Memory Leak?

2000-12-19 Thread Brian Lloyd

Hi guys - I've attached a patched RDB.py that you should
be able to drop into lib/python/Shared/DC/ZRDB/ that (for 
now) reverts to an older (non-SQLAlias) implementation 
that should solve the immediate problem.

If you folks can try this out and let me know if the 
problem goes away, I'll check this in for 2.2.5 until 
we can debug the root of the problem with SQLAlias.

Thanks!


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



##
# 
# Zope Public License (ZPL) Version 1.0
# -
# 
# Copyright (c) Digital Creations.  All rights reserved.
# 
# This license has been certified as Open Source(tm).
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# 
# 1. Redistributions in source code must retain the above copyright
#notice, this list of conditions, and the following disclaimer.
# 
# 2. Redistributions in binary form must reproduce the above copyright
#notice, this list of conditions, and the following disclaimer in
#the documentation and/or other materials provided with the
#distribution.
# 
# 3. Digital Creations requests that attribution be given to Zope
#in any manner possible. Zope includes a "Powered by Zope"
#button that is installed by default. While it is not a license
#violation to remove this button, it is requested that the
#attribution remain. A significant investment has been put
#into Zope, and this effort will continue if the Zope community
#continues to grow. This is one way to assure that growth.
# 
# 4. All advertising materials and documentation mentioning
#features derived from or use of this software must display
#the following acknowledgement:
# 
#  "This product includes software developed by Digital Creations
#  for use in the Z Object Publishing Environment
#  (http://www.zope.org/)."
# 
#In the event that the product being advertised includes an
#intact Zope distribution (with copyright and license included)
#then this clause is waived.
# 
# 5. Names associated with Zope or Digital Creations must not be used to
#endorse or promote products derived from this software without
#prior written permission from Digital Creations.
# 
# 6. Modified redistributions of any form whatsoever must retain
#the following acknowledgment:
# 
#  "This product includes software developed by Digital Creations
#  for use in the Z Object Publishing Environment
#  (http://www.zope.org/)."
# 
#Intact (re-)distributions of any official Zope release do not
#require an external acknowledgement.
# 
# 7. Modifications are encouraged but must be packaged separately as
#patches to official Zope releases.  Distributions that do not
#clearly separate the patches from the original work must be clearly
#labeled as unofficial distributions.  Modifications which do not
#carry the name Zope may be packaged in any form, as long as they
#conform to all of the clauses above.
# 
# 
# Disclaimer
# 
#   THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
#   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
#   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
#   PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
#   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
#   USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
#   ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
#   OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
#   OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
#   SUCH DAMAGE.
# 
# 
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations.  Specific
# attributions are listed in the accompanying credits file.
# 
##
__doc__='''Class for reading RDB files


$Id: RDB.py,v 1.24.32.2 2000/07/17 15:03:55 brian Exp $'''
__version__='$Revision: 1.24.32.2 $'[11:-2]

import regex, regsub
from string import split, strip, lower, upper, atof, atoi, atol, find, join
import DateTime
from Missing import MV
from array import array
from Record import Record
from Acquisition import Implicit
import ExtensionClass

def parse_text(s):
if find(s,'\\') < 0 and (find(s,'\\t') < 0 and find(s,'\\n') < 0): return s
r=[]
for x in split(s,''):
x=join(split(x,'\\n'),'\n')
r.append(join(split(x,'\\t'),'\t'))
return join(r,'\\')


Parsers={'n': atof,
 'i': atoi,
 

RE: [Zope-dev] SQLAlias Memory Leak?

2000-12-19 Thread Brian Lloyd


oops - I sent that before I had my coffee. I should 
have attached the checkin version, not the broken 
one :)

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 




##
# 
# Zope Public License (ZPL) Version 1.0
# -
# 
# Copyright (c) Digital Creations.  All rights reserved.
# 
# This license has been certified as Open Source(tm).
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# 
# 1. Redistributions in source code must retain the above copyright
#notice, this list of conditions, and the following disclaimer.
# 
# 2. Redistributions in binary form must reproduce the above copyright
#notice, this list of conditions, and the following disclaimer in
#the documentation and/or other materials provided with the
#distribution.
# 
# 3. Digital Creations requests that attribution be given to Zope
#in any manner possible. Zope includes a "Powered by Zope"
#button that is installed by default. While it is not a license
#violation to remove this button, it is requested that the
#attribution remain. A significant investment has been put
#into Zope, and this effort will continue if the Zope community
#continues to grow. This is one way to assure that growth.
# 
# 4. All advertising materials and documentation mentioning
#features derived from or use of this software must display
#the following acknowledgement:
# 
#  "This product includes software developed by Digital Creations
#  for use in the Z Object Publishing Environment
#  (http://www.zope.org/)."
# 
#In the event that the product being advertised includes an
#intact Zope distribution (with copyright and license included)
#then this clause is waived.
# 
# 5. Names associated with Zope or Digital Creations must not be used to
#endorse or promote products derived from this software without
#prior written permission from Digital Creations.
# 
# 6. Modified redistributions of any form whatsoever must retain
#the following acknowledgment:
# 
#  "This product includes software developed by Digital Creations
#  for use in the Z Object Publishing Environment
#  (http://www.zope.org/)."
# 
#Intact (re-)distributions of any official Zope release do not
#require an external acknowledgement.
# 
# 7. Modifications are encouraged but must be packaged separately as
#patches to official Zope releases.  Distributions that do not
#clearly separate the patches from the original work must be clearly
#labeled as unofficial distributions.  Modifications which do not
#carry the name Zope may be packaged in any form, as long as they
#conform to all of the clauses above.
# 
# 
# Disclaimer
# 
#   THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
#   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
#   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
#   PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
#   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
#   USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
#   ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
#   OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
#   OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
#   SUCH DAMAGE.
# 
# 
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations.  Specific
# attributions are listed in the accompanying credits file.
# 
##
__doc__='''Class for reading RDB files


$Id: RDB.py,v 1.24.32.4 2000/12/19 15:31:53 brian Exp $'''
__version__='$Revision: 1.24.32.4 $'[11:-2]

import regex, regsub
from string import split, strip, lower, upper, atof, atoi, atol, find, join
import DateTime
from Missing import MV
from array import array
from Record import Record
from Acquisition import Implicit
import ExtensionClass

def parse_text(s):
if find(s,'\\') < 0 and (find(s,'\\t') < 0 and find(s,'\\n') < 0): return s
r=[]
for x in split(s,''):
x=join(split(x,'\\n'),'\n')
r.append(join(split(x,'\\t'),'\t'))
return join(r,'\\')


Parsers={'n': atof,
 'i': atoi,
 'l': atol,
 'd': DateTime.DateTime,
 't': parse_text,
 }

class SQLAlias(ExtensionClass.Base):
def __init__(self, name): self._n=name
def __of__(self, parent): return getattr(parent, self._n)
 
class NoBrains: pass

class DatabaseResults:
 

RE: [Zope-dev] A groupware package for zope

2000-12-19 Thread Magnus Heino (Rivermen)


> For the last couple of months I've been working on a groupware
> package for Zope, named ZopeGUM.  It has reached version
> 0.1.63 now, and it's in steady progress.
> 
> All the planned components, like messenger, address book,
> calendar, todos, etc. are there and working now; though
> it's definently not ready for a production enviroment yet.
> 
> Anyways, just wanted to let you all know. (And yes, I
> do appreciate feedback.  =)

I'd appreciate to be able to download some code from zope.org :-)

/Magnus

___
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] SQLAlias Memory Leak?

2000-12-19 Thread Jon Prettyman

The leaking SQLAlias I see is coming from:
  Shared.DC.ZRDB.Results

I'm going to try the same type of fix in there and see what happens.

-jon

"Brian Lloyd" <[EMAIL PROTECTED]> writes:

> oops - I sent that before I had my coffee. I should 
> have attached the checkin version, not the broken 
> one :)
> 
> Brian Lloyd[EMAIL PROTECTED]
> Software Engineer  540.371.6909  
> Digital Creations  http://www.digicool.com 

___
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] A groupware package for zope

2000-12-19 Thread Morten W. Petersen

[Magnus Heino]

| I'd appreciate to be able to download some code from zope.org :-)

Uhmm. Yeah.  http://www.zope.org/Members/morphex/ZopeGUM -- guess
you don't know about the /Product and search facilities.. ;)

Cheers,

Morten

___
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] Loginmanager and local roles

2000-12-19 Thread Steve Spicklemire


Hi Morten,

> "Morten" == Morten W Petersen <[EMAIL PROTECTED]> writes:

Morten> (Can't understand why I had to use an additional list
Morten> though).

You probably found that Zope doesn't allow you to access the 
elements of a BTree object (which is what you get from 
"persistentItemIDs()" from dtml. You need to copy them
to a 'plain' list first (a 'plain' list is in the set of
object types that Zope allows you to use in DTML without
further security checking.. ). 

-steve




___
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] regex (or re) modules

2000-12-19 Thread Tim McLaughlin

Does anybody know why these modules aren't available for DTML and Python
Methods?
(I already hacked my server, just wanna know what I'm riskin)

Thanks,
Tim

___
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] regex (or re) modules

2000-12-19 Thread Christopher Petrilli

Because both are quite capable of crashing a thread (maybe the whole thing),
with poorly written regex expressions.  Creating infinate loops is easier
than you think, esp if your regex requires backtracking to "solve".  Perhaps
there should be a simplified regex engine available, that I don't know.

Chris
--
| Christopher Petrilli
| [EMAIL PROTECTED]
- Original Message -
From: "Tim McLaughlin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 19, 2000 2:35 PM
Subject: [Zope-dev] regex (or re) modules


> Does anybody know why these modules aren't available for DTML and Python
> Methods?
> (I already hacked my server, just wanna know what I'm riskin)



___
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] ZCatalog very unhappy

2000-12-19 Thread Jason Spisak

Help!

Using the Catalog in 2.2.4 

2000-12-20T00:59:58 ERROR(200) UnIndex unindex_object tried to retrieve set
None from index 51346800 but couldn't.  This should not happen.
--
2000-12-20T01:00:00 ERROR(200) UnIndex unindex_object tried to retrieve set
None from index  but couldn't.  This should not happen.
--
2000-12-20T01:00:10 ERROR(200) UnIndex unindex_object tried to retrieve set
None from index 942134400 but couldn't.  This should not happen.
--
2000-12-20T01:01:48 ERROR(200) UnIndex unindex_object tried to retrieve set
None from index 51346800 but couldn't.  This should not happen.
--
2000-12-20T01:01:50 ERROR(200) UnIndex unindex_object tried to retrieve set
None from index  but couldn't.  This should not happen.
--
2000-12-20T01:02:21 ERROR(200) UnIndex unindex_object tried to retrieve set
None from index 93807 but couldn't.  This should not happen.
--
2000-12-20T01:02:37 ERROR(200) UnIndex unindex_object tried to retrieve set
None from index 938761200 but couldn't.  This should not happen.
--
2000-12-20T01:03:08 ERROR(200) UnIndex unindex_object tried to retrieve set
None from index 938588400 but couldn't.  This should not happen.
--
2000-12-20T01:04:57 ERROR(200) UnIndex unindex_object tried to retrieve set
None from index 937551600 but couldn't.  This should not happen.
--
2000-12-20T01:04:57 ERROR(200) UnIndex unindex_object tried to retrieve set
None from index 937897200 but couldn't.  This should not happen.
--
2000-12-20T01:06:03 ERROR(200) UnIndex unindex_object tried to retrieve set
None from index 938415600 but couldn't.  This should not happen.
--
2000-12-20T01:06:33 ERROR(200) UnIndex unindex_object tried to retrieve set
None from index 938502000 but couldn't.  This should not happen.
--
2000-12-20T01:09:19 ERROR(200) UnIndex unindex_object tried to retrieve set
None from index 93375 but couldn't.  This should not happen.
--
2000-12-20T01:09:22 ERROR(200) UnIndex unindex_object tried to retrieve set
None from index 938674800 but couldn't.  This should not happen.
--
2000-12-20T01:12:44 ERROR(200) UnIndex unindex_object tried to retrieve set
None from index 937465200 but couldn't.  This should not happen.
   

Jason Spisak
CIO
__ ___   ____
   / // (_)_/_  __/__ / /  ___  ___  __ _
  / _  / / __/ -_) / / -_) __/ _ \(_-<_/ __/ _ \/  ' \
 /_//_/_/_/  \__/_/  \__/\__/_//_/___(_)__/\___/_/_/_/

6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

___
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] Performance enhancements, ZCatalog

2000-12-19 Thread Jason Spisak

ZCatalog enthusiasts,

I just upgraded our zope installation from 2.1.6 to 2.2.4, and the ZCatalog
performance is aweful.  Can someone remind me what the command for speeding
up python on a dual processor machine is?  python -T?  I'm looking for any
way to speed this up.  I have a text index with 47,000 objects and a search
takes about 15-18 seconds, hardly what we were used to.  It used to be 2
second tops.

My company is being shopped around and if we get bought I want to convince
the new company that Zope and python and Linux are the way to go.  I need
all the help I can get.

All my best,

Jason Spisak
CIO
__ ___   ____
   / // (_)_/_  __/__ / /  ___  ___  __ _
  / _  / / __/ -_) / / -_) __/ _ \(_-<_/ __/ _ \/  ' \
 /_//_/_/_/  \__/_/  \__/\__/_//_/___(_)__/\___/_/_/_/

6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

___
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] Preliminary test of Membership on CVS

2000-12-19 Thread Bill Anderson

Michael Bernstein wrote:
> 
> Bill Anderson wrote:
> >
> > On a related note, I am considering changing the python methods to
> > Python Scripts, this way when 2.3 comes out, it drops the number of
> > additional installs required by one, leaving Loginmanager and ZPatterns
> > the only (current) requirements. Python Scripts eem much better to use
> > than Python Methods anyway ;)
> >
> > Any thoughts on that from the community?
> 
> Bill,
> 
> The move to Python Scripts sounds like a good one.

Thanks, I think it is  agood one. I wonder if Python Scripts will be
officially 'supported', or at least an install documented for 2.2.x?
Relying on Python Scripts makes it 2.3 dependant, otherwise.

> BTW, Can you fold in my local roles changes, and create an

Could you resend that to me?

> additional Type of User Source for use with SMB? I'll
> contribute the code that I've got.

Probably won't do another Usersource for the nearing-release 1.0
version, but if you have one, I may put it in 1.x, and can provide it as
a file to DL from the site.

I'm working right now on policy objects, zopehelp Documantation, and
code cleanup. I was going to do PTK Integration, but don't have the time
to recreate the work others didn't share. ;)


___
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] ZCatalog very unhappy

2000-12-19 Thread Christopher Petrilli

Jason,

This was accidentally uncommented in the 2.2.4 release, you can ignore it,
or comment out the message line in UnIndex.py.  It's innocuous.

Chris
--
| Christopher Petrilli
| [EMAIL PROTECTED]
- Original Message -
From: "Jason Spisak" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 19, 2000 7:39 PM
Subject: [Zope-dev] ZCatalog very unhappy


> Help!
>
> Using the Catalog in 2.2.4
>
> 2000-12-20T00:59:58 ERROR(200) UnIndex unindex_object tried to retrieve
set
> None from index 51346800 but couldn't.  This should not happen.
> --
> 2000-12-20T01:00:00 ERROR(200) UnIndex unindex_object tried to retrieve
set
> None from index  but couldn't.  This should not happen.
> --
> 2000-12-20T01:00:10 ERROR(200) UnIndex unindex_object tried to retrieve
set
> None from index 942134400 but couldn't.  This should not happen.
> --
> 2000-12-20T01:01:48 ERROR(200) UnIndex unindex_object tried to retrieve
set
> None from index 51346800 but couldn't.  This should not happen.
> --
> 2000-12-20T01:01:50 ERROR(200) UnIndex unindex_object tried to retrieve
set
> None from index  but couldn't.  This should not happen.
> --
> 2000-12-20T01:02:21 ERROR(200) UnIndex unindex_object tried to retrieve
set
> None from index 93807 but couldn't.  This should not happen.
> --
> 2000-12-20T01:02:37 ERROR(200) UnIndex unindex_object tried to retrieve
set
> None from index 938761200 but couldn't.  This should not happen.
> --
> 2000-12-20T01:03:08 ERROR(200) UnIndex unindex_object tried to retrieve
set
> None from index 938588400 but couldn't.  This should not happen.
> --
> 2000-12-20T01:04:57 ERROR(200) UnIndex unindex_object tried to retrieve
set
> None from index 937551600 but couldn't.  This should not happen.
> --
> 2000-12-20T01:04:57 ERROR(200) UnIndex unindex_object tried to retrieve
set
> None from index 937897200 but couldn't.  This should not happen.
> --
> 2000-12-20T01:06:03 ERROR(200) UnIndex unindex_object tried to retrieve
set
> None from index 938415600 but couldn't.  This should not happen.
> --
> 2000-12-20T01:06:33 ERROR(200) UnIndex unindex_object tried to retrieve
set
> None from index 938502000 but couldn't.  This should not happen.
> --
> 2000-12-20T01:09:19 ERROR(200) UnIndex unindex_object tried to retrieve
set
> None from index 93375 but couldn't.  This should not happen.
> --
> 2000-12-20T01:09:22 ERROR(200) UnIndex unindex_object tried to retrieve
set
> None from index 938674800 but couldn't.  This should not happen.
> --
> 2000-12-20T01:12:44 ERROR(200) UnIndex unindex_object tried to retrieve
set
> None from index 937465200 but couldn't.  This should not happen.
>
>
> Jason Spisak
> CIO
> __ ___   ____
>/ // (_)_/_  __/__ / /  ___  ___  __ _
>   / _  / / __/ -_) / / -_) __/ _ \(_-<_/ __/ _ \/  ' \
>  /_//_/_/_/  \__/_/  \__/\__/_//_/___(_)__/\___/_/_/_/
>
> 6151 West Century Boulevard
> Suite 900
> Los Angeles, CA 90045
> P. 310.665.3444
> F. 310.665.3544
>
> Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
> address may not be added to any commercial mail list with out my
> permission.  Violation of my privacy with advertising or SPAM will
> result in a suit for a MINIMUM of $500 damages/incident, $1500 for
> repeats.
>
> ___
> 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] Re: [Zope] [BUG] Background processes interfere with Zope's HTTP responses

2000-12-19 Thread Steve Spicklemire


Hi Deiter,

   Hmm.. I just tried this with my highly experimental product
(LocalProc 0.0.1) and I didn't observe the same effect that you did
behind my Proxy Server. (I normally run with Rewrite... but when I got
your note I tried ProxyPass and it worked on the first try.)

(Good howto Anser! http://www.zope.org/Members/anser/apache_zserver/)

Anyway... I ran 'sleep 20' as my local process (I checked the
'background' button on my product) and the web page returned
immediately, but the process ran on in the background as I wished. The
main difference I see between what you are doing and what I do.. is
that I redirect stdout and stderr so that my subprocess has no open
files shared with the parent process.. anyway.. you might try this to
see if it suits your needs. Lightly tested on FreeBSD only.. but any
unix should work the same...

http://www.zope.org/Members/sspickle/LocalProc

-steve

> "Dieter" == Dieter Maurer <[EMAIL PROTECTED]> writes:

Dieter> Today was again a hard Zope day.

Dieter> Did you ever hear, that usually (i.e. if you do not do
Dieter> special things) Zope renders a complete page before it
Dieter> starts sending the result back to the client.  This
Dieter> implies that you should never see only half of a page.

Dieter> I heard it and I saw the code that does it.  Therefore, I
Dieter> was convinced that this were really the case.

Dieter> Then our client phoned:

Dieter>   He visits a page that allows him to generate a
Dieter> newsletter. When he presses the "generate newsletter
Dieter> button", a result page is build that tells him that the
Dieter> newsletter is being generated and send is a few minutes.

Dieter>   He reported, that this response page is build only
Dieter> half, then stops, to be completed only half a minute
Dieter> later, at the same time when the newsletter arrives.  The
Dieter> effect is reproducible. If newsletter generation takes
Dieter> longer, he must wait longer for the page to complete.

Dieter>   He is convinced that we generate the newsletter
Dieter> synchronously and let him wait until the generation is
Dieter> complete.  And he is angry.

Dieter>   I know, that the newsletter is generated in a
Dieter> background process, started in an external method with:

Dieter>os.system("gen_newsletter &")

Dieter>   I try to reproduce the behaviour in our test
Dieter> environment and fail. I do not have to wait, until the
Dieter> newsletter generation finished. Then, I use the official
Dieter> service URL and see, I observe the same behaviour.  The
Dieter> difference: in the test environment, the browser connects
Dieter> directly to ZServer; with the official URL, it connects
Dieter> via a proxy.

Dieter>   Puzzling!


Dieter> What happened?

Dieter>  The background process inherits Zope's open file
Dieter> descriptors.  Among them are all currently open HTTP
Dieter> request sockets.  The process keeps these sockets open
Dieter> until it finishes.

Dieter>  There are two HTTP modes:

Dieter>1. single request mode a new TCP connection is
Dieter> created for each HTTP request, the request is completed,
Dieter> when the TCP connection is closed.

Dieter>2. multi request mode several requests share a
Dieter> single TCP connection.  The "Content-Length" HTTP header
Dieter> allows client and server to determine the request
Dieter> boundaries.

Dieter>  That means: when a client uses the multi request
Dieter> mode, everything is fine. Clients, however, that use the
Dieter> single request mode wait until their connection is closed
Dieter> and can observe serious delays.

Dieter>  These delays may be very difficult to explain, as the
Dieter> background process not only delays its own request but may
Dieter> delay arbitrary other requests that happen to be served at
Dieter> the same time.



Dieter> How to fix the problem:

Dieter>   There should be a (file) control "CloseOnExec", that
Dieter> tells Unix to automatically close the file like object
Dieter> upon an exec.  ZServer should probably use it on each of
Dieter> its sockets.  I can not see a serious application that
Dieter> should have direct access to ZServer's HTTP request
Dieter> socket.


Dieter> I will soon file a bug report into the Collector.


Dieter> Dieter

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


___
Zope-Dev ma

[Zope] [Zope-dev] [BUG] Background processes interfere with Zope's HTTP responses

2000-12-19 Thread Dieter Maurer

Today was again a hard Zope day.

Did you ever hear, that usually (i.e. if you do not do special
things) Zope renders a complete page before it starts
sending the result back to the client.
This implies that you should never see only half of a page.

I heard it and I saw the code that does it.
Therefore, I was convinced that this were really the case.

Then our client phoned:

  He visits a page that allows him to generate a
  newsletter. When he presses the "generate newsletter button",
  a result page is build that tells him that the newsletter
  is being generated and send is a few minutes.

  He reported, that this response page is build only
  half, then stops, to be completed only half a minute later,
  at the same time when the newsletter arrives.
  The effect is reproducible. If newsletter generation
  takes longer, he must wait longer for the page to complete.

  He is convinced that we generate the newsletter synchronously
  and let him wait until the generation is complete.
  And he is angry.

  I know, that the newsletter is generated in a background
  process, started in an external method with:

   os.system("gen_newsletter &")

  I try to reproduce the behaviour in our test environment
  and fail. I do not have to wait, until the newsletter
  generation finished. Then, I use the official service
  URL and see, I observe the same behaviour.
  The difference: in the test environment, the browser
  connects directly to ZServer; with the official
  URL, it connects via a proxy.

  Puzzling!


What happened?

 The background process inherits Zope's open file descriptors.
 Among them are all currently open HTTP request sockets.
 The process keeps these sockets open until it finishes.

 There are two HTTP modes:

   1. single request mode
  a new TCP connection is created for each HTTP request,
  the request is completed, when the TCP connection
  is closed.

   2. multi request mode
  several requests share a single TCP connection.
  The "Content-Length" HTTP header allows
  client and server to determine the request boundaries.

 That means: when a client uses the multi request mode,
 everything is fine. Clients, however, that use
 the single request mode wait until their connection
 is closed and can observe serious delays.

 These delays may be very difficult to explain, as
 the background process not only delays its own
 request but may delay arbitrary other requests
 that happen to be served at the same time.



How to fix the problem:

  There should be a (file) control "CloseOnExec", that tells
  Unix to automatically close the file like object upon
  an exec.
  ZServer should probably use it on each of its sockets.
  I can not see a serious application that should have
  direct access to ZServer's HTTP request socket.


I will soon file a bug report into the Collector.


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 )

>From [EMAIL PROTECTED] Tue Dec 19 20:13:04 2000
Return-Path: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 19892 invoked from network); 19 Dec 2000 20:13:04 -
Received: from unknown (HELO dark.darkweb.com) (unknown)
  by unknown with SMTP; 19 Dec 2000 20:13:04 -
Received: (from garthh@localhost)
by dark.darkweb.com (8.9.3/8.9.3) id MAA21887
for [EMAIL PROTECTED]; Tue, 19 Dec 2000 12:09:49 -0800
Date: Tue, 19 Dec 2000 12:09:49 -0800
From: Garth Hitchens <[EMAIL PROTECTED]>
Message-Id: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: testing

>From [EMAIL PROTECTED] Tue Dec 19 20:15:10 2000
Return-Path: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 19940 invoked from network); 19 Dec 2000 20:15:04 -
Received: from unknown (HELO contesting.com) (unknown)
  by unknown with SMTP; 19 Dec 2000 20:15:04 -
Received: from notebook ([216.1.129.5])
by contesting.com (8.11.0/8.11.0) with SMTP id eBJJOl911660;
Tue, 19 Dec 2000 14:24:52 -0500 (EST)
From: "Bill Fisher" <[EMAIL PROTECTED]>
To: "Garth Hitchens" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>, "Randy Thompson" <[EMAIL PROTECTED]>
Subject: PR Progress as of today
Date: Tue, 19 Dec 2000 14:23:05 -0500
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_NextPart_000_00FB_01C069C7.33BDF7B0"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
Importance: Normal

This is a multi-pa

[Zope-dev] POST METHOD

2000-12-19 Thread Anderson Ami

Is there a data limit if I am using the POST method ?I have been doing a
form that has some input fields, when I do the post I receive a Zope Error
 The Zope don´t get one form field, but this one exists).

Thanks so much !!!
anderson


___
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] Re: [Zope] [BUG] Background processes interfere with Zope's HTTP responses

2000-12-19 Thread jimbo

>  He reported, that this response page is build only
>  half, then stops, to be completed only half a minute later,

Depending on how long the page is I never  see the bottom. When I use the products 
page I have to refresh 2-3 times to see the bottom part.
  This is thru a proxy only.

>
>  I try to reproduce the behaviour in our test environment
>  and fail. I do not have to wait, until the newsletter
>  generation finished. Then, I use the official service
>  URL and see, I observe the same behaviour.
>  The difference: in the test environment, the browser
>  connects directly to ZServer; with the official
>  URL, it connects via a proxy.
>
>  Puzzling!

I'm having this same sort of problem w/Zope 2.3a1.
I just started trying to use Zope through a proxy.

  If I work directly on the machine I have no problems.


>How to fix the problem:
>
>  There should be a (file) control "CloseOnExec", that tells
>  Unix to automatically close the file like object upon
>  an exec.
>  ZServer should probably use it on each of its sockets.
>  I can not see a serious application that should have
>  direct access to ZServer's HTTP request socket.
>I will soon file a bug report into the Collector.
>Dieter
I'm on the win32 platform and thought that the problem was with my
proxy software.  Now I'm not so sure.
-Jimbo

___
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] RE: [Zope] [BUG] Background processes interfere with Zope's HTTP responses

2000-12-19 Thread Brian Lloyd

> >How to fix the problem:
> >
> >  There should be a (file) control "CloseOnExec", that tells
> >  Unix to automatically close the file like object upon
> >  an exec.
> >  ZServer should probably use it on each of its sockets.
> >  I can not see a serious application that should have
> >  direct access to ZServer's HTTP request socket.
> >I will soon file a bug report into the Collector.
> >Dieter
>
> I'm on the win32 platform and thought that the problem was with my
> proxy software.  Now I'm not so sure.

Note that what Dieter is talking about would only affect 
you if you were spawning an external process that inherited 
the filehandles of the zope process. 

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 




___
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] A groupware package for zope

2000-12-19 Thread Morten W. Petersen

For the last couple of months I've been working on a groupware
package for Zope, named ZopeGUM.  It has reached version
0.1.63 now, and it's in steady progress.

All the planned components, like messenger, address book,
calendar, todos, etc. are there and working now; though
it's definently not ready for a production enviroment yet.

Anyways, just wanted to let you all know. (And yes, I
do appreciate feedback.  =)

-Morten

___
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] Re: [Zope] POST METHOD

2000-12-19 Thread Martijn Pieters

On Tue, Dec 19, 2000 at 06:44:35PM -0200, Anderson Ami wrote:
> Is there a data limit if I am using the POST method ?I have been doing a
> form that has some input fields, when I do the post I receive a Zope Error
>  The Zope don´t get one form field, but this one exists).

Some older browsers have a limit to the amount of data they send in a
request, usually around 64k.

On the other hand, you may want to examine what is actually in the REQUEST
object. You can view the contents by including the REQUEST object in your
page:

  

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

___
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] 'Subclassing' another product

2000-12-19 Thread Steve Spicklemire


Hi Morten,


   There are two ways to subclass products. You can use straightforward
Python subclassing:

e.g.,In your custom Product.. here is an example from Zwiff:

> import Products.PythonMethod.Guarded
> 
> from Globals import HTMLFile, MessageDialog
> from App import Common
> 
> manage_addZwiffForm = HTMLFile('addForm',globals())
> 
> def manage_addZwiff(self, id, title, params, body, REQUEST=None):
> """Add A Zwiff to a folder  just like PythonMethod.. 
> """
> it = Zwiff(id, title, params, body)
> self._setObject(id, it)
> return self.manage_main(self, REQUEST)
> 
> def handleMovieOutput(movie, RESPONSE):
> 
> fname = tempfile.mktemp()
> 
> movie.save(fname)
> 
> f = open(fname)
> s = f.read()
> f.close()
> 
> RESPONSE.setHeader('Content-type', 'application/x-shockwave-flash')
> 
> os.remove(fname)
> 
> return s
> 
> class Zwiff (Products.PythonMethod.PythonMethod.PythonMethod ):
> 
> meta_type = 'Zwiff'
> 
> def makeFunction(self, compile=0):
> from Products.PythonMethod.Guarded import GuardedBlock, safefuncs, theGuard
> if compile:
> self._checkCBlock(GuardedBlock)
> if self.errors:
> raise "Python Method Error", string.join(self.errors, '\n')
> return self._newfun(compile, {'$guard': theGuard},
>   __builtins__=mysafebin, _=safefuncs)
> 
> 

So the class Zwiff is a subclass of PythonMethod. Look at Zwiff for the full
source: http://www.zope.org/Members/sspickle/Zwiff

Or you can create a ZClass that subclasses from a 'base class'. To do
this you've got to register the base class with the ZClass machinery
(e.g., here is the code for ZCVSMixin that does this  ZCVSMixin
is a base class... CVSFolder is a full blown product that happens
to be a subclass of ZCVSMixin... )

> 
> 
> import ZCVSMixin
> import CVSFolder
> 
> __doc__ = ZCVSMixin.__doc__
> __version__ = ZCVSMixin.__version__
> 
> def initialize(context):
> context.registerClass(
> CVSFolder.CVSFolder,
> constructors=(CVSFolder.manage_addCVSFolderForm,
>   CVSFolder.manage_addCVSFolder),
> icon='fish.gif',
> )
> context.registerBaseClass(ZCVSMixin.ZCVSMixin)
> 

does that help?

take care,
-steve

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