Re: [Zope-dev] Re: Problem importing Membership alpha

2000-06-14 Thread Ty Sarna

In article 001301bfd606$ad3a7320$7b5addc7@laptop,
Kevin Dangoor [EMAIL PROTECTED] wrote:
 I created it using the CVS version of Zope... I didn't *think* there was
 anything 2.2 specific going on, but apparently there is.
 
 I just took a look around. It appears that the current version of
 LoginManager uses the Owned module to import "UnownableOwner". I guess
 that's so it can create the default methods.
 
 It looks like the current LoginManager is 2.2 only then.

?? It does:

# Support Zope-2.2a1 onwership foo
try:
from AccessControl.Owned import UnownableOwner
except ImportError:
UnownableOwner=None

Specifically to be compatible with both, and we're using it on 2.1.6!

___
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] Re: Problem importing Membership alpha

2000-06-14 Thread Kevin Dangoor

- Original Message -
From: "Ty Sarna" [EMAIL PROTECTED]
Newsgroups: zope.dev
To: [EMAIL PROTECTED]
Sent: Wednesday, June 14, 2000 1:05 PM
Subject: Re: [Zope-dev] Re: Problem importing Membership alpha


 In article 001301bfd606$ad3a7320$7b5addc7@laptop,
 Kevin Dangoor [EMAIL PROTECTED] wrote:
  I created it using the CVS version of Zope... I didn't *think* there was
  anything 2.2 specific going on, but apparently there is.
 
  I just took a look around. It appears that the current version of
  LoginManager uses the Owned module to import "UnownableOwner". I guess
  that's so it can create the default methods.
 
  It looks like the current LoginManager is 2.2 only then.

 ?? It does:

 # Support Zope-2.2a1 onwership foo
 try:
 from AccessControl.Owned import UnownableOwner
 except ImportError:
 UnownableOwner=None

 Specifically to be compatible with both, and we're using it on 2.1.6!

D'oh! That's what I get for doing a grep and not looking at the context...

I had looked at the .zexp file using less, and didn't see "Owned"
anywhere... using vi I found a reference to AccessControl.Owned, however...

So, it looks like it's the MembershipZ Product that requires 2.2.
Unfortunately, I don't know that there is any way to change this, despite
the fact that I'm not really using 2.2 features...

I've updated the page for the Product to reflect this requirement.

Kevin


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