Re: [Zope-PAS] PlonePAS using SQL get AttributeError

2007-04-18 Thread James J Myers
I found the SQLPASPlugin on the Plone site or the collective - not sure 
which.


I pretty much rewrote it to get it to do what I wanted.  I got no help 
from this list or anywhere else.
PlonePAS provides a PropertyProvider set of interfaces for 
setting/getting properties from an external source.


There is something strange in the install process. When I install my 
product and create an acl_users in my Plone site, it seems to also add 
it to the root acl_users which I don't like at all.


Since I had trouble getting acquisition to work, I created a zsql method 
in source_users and directly addressed it.


Hope all this helps...

Jim Myers

Chris Withers wrote:

i James,

James J Myers wrote:
I've written a PlonePAS plugin loosely based on SQLPASPlugin for 
authentication.


I'm going to be needing this functionality myself sometime soon.

Where did you find the SQL plugin? What's the official way of getting 
users with extra properties from a relational back end? What 
bastardisations has Plone added that need to be supported?


The code creates a zsql method in source_users which I can verify via 
the ZMI that it is there.


Why do you need to create the zsql method using code?

When the authenticate credentials plugin is called it appears to 
always be in the source_users folder,


What do you mean by that?

Why would be it fail sometimes and not others? How do I make it work 
reliably?


2007-04-07T18:02:10 INFO RACPASPlugin Traceback (most recent call last):
authenticateCredentials: getUserInfo:   File 
/usr/local/zope/instance1/Products/RACPASPlugin/plugins/usermanager.py, 
line 104, in authenticateCredentials

   res = self.getUserInfo(login)
authenticateCredentials: getUserInfo:   File 
/usr/local/zope/instance1/Products/RACPASPlugin/plugins/usermanager.py, 
line 253, in getUserInfo

   query = getattr(self, _UserQueryId)
authenticateCredentials: getUserInfo: AttributeError: RACPAS_getUserInfo


I wonder if a differing set of acquisiton contexts are involved 
somewhere along the line?


cheers,

Chris

begin:vcard
fn:James Myers
n:Myers;James
adr;dom:;;;Paradise;CA;95969
email;internet:[EMAIL PROTECTED]
tel;fax:1.510.217.3948
tel;home:1.530.872.8444
tel;cell:1.530.570.9144
x-mozilla-html:TRUE
url:http://www.myersware.com
version:2.1
end:vcard

___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


Re: [Zope-PAS] PlonePAS using SQL get AttributeError

2007-04-18 Thread Ben Mason

I agree, I think the way PlonePAS replaces the root acl_users is very bad. I
hope this gets addressed. Surely there is no need for it to do that.

Ben


On 19/4/07 02:01, James J Myers [EMAIL PROTECTED] wrote:

 I found the SQLPASPlugin on the Plone site or the collective - not sure
 which.
 
 I pretty much rewrote it to get it to do what I wanted.  I got no help
 from this list or anywhere else.
 PlonePAS provides a PropertyProvider set of interfaces for
 setting/getting properties from an external source.
 
 There is something strange in the install process. When I install my
 product and create an acl_users in my Plone site, it seems to also add
 it to the root acl_users which I don't like at all.
 
 Since I had trouble getting acquisition to work, I created a zsql method
 in source_users and directly addressed it.
 
 Hope all this helps...
 
 Jim Myers
 
 Chris Withers wrote:
 i James,
 
 James J Myers wrote:
 I've written a PlonePAS plugin loosely based on SQLPASPlugin for
 authentication.
 
 I'm going to be needing this functionality myself sometime soon.
 
 Where did you find the SQL plugin? What's the official way of getting
 users with extra properties from a relational back end? What
 bastardisations has Plone added that need to be supported?
 
 The code creates a zsql method in source_users which I can verify via
 the ZMI that it is there.
 
 Why do you need to create the zsql method using code?
 
 When the authenticate credentials plugin is called it appears to
 always be in the source_users folder,
 
 What do you mean by that?
 
 Why would be it fail sometimes and not others? How do I make it work
 reliably?
 
 2007-04-07T18:02:10 INFO RACPASPlugin Traceback (most recent call last):
 authenticateCredentials: getUserInfo:   File
 /usr/local/zope/instance1/Products/RACPASPlugin/plugins/usermanager.py,
 line 104, in authenticateCredentials
res = self.getUserInfo(login)
 authenticateCredentials: getUserInfo:   File
 /usr/local/zope/instance1/Products/RACPASPlugin/plugins/usermanager.py,
 line 253, in getUserInfo
query = getattr(self, _UserQueryId)
 authenticateCredentials: getUserInfo: AttributeError: RACPAS_getUserInfo
 
 I wonder if a differing set of acquisiton contexts are involved
 somewhere along the line?
 
 cheers,
 
 Chris
 
 


___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


Re: [Zope-PAS] PlonePAS using SQL get AttributeError

2007-04-18 Thread Kapil Thangavelu


my understanding is that part of the reason this was done, was laziness,  
on the part of the integrators, who didn't want to deal with the issues of  
having non pas users from the root acl browsing a plone site, and  
conditionally dealing with those the users within the plone code. i agree  
that its lame.


-kapil

On Wed, 18 Apr 2007 21:36:24 -0400, Ben Mason [EMAIL PROTECTED] wrote:



I agree, I think the way PlonePAS replaces the root acl_users is very  
bad. I

hope this gets addressed. Surely there is no need for it to do that.

Ben


On 19/4/07 02:01, James J Myers [EMAIL PROTECTED] wrote:


I found the SQLPASPlugin on the Plone site or the collective - not sure
which.

I pretty much rewrote it to get it to do what I wanted.  I got no help
from this list or anywhere else.
PlonePAS provides a PropertyProvider set of interfaces for
setting/getting properties from an external source.

There is something strange in the install process. When I install my
product and create an acl_users in my Plone site, it seems to also add
it to the root acl_users which I don't like at all.

Since I had trouble getting acquisition to work, I created a zsql method
in source_users and directly addressed it.

Hope all this helps...

Jim Myers

Chris Withers wrote:

i James,

James J Myers wrote:

I've written a PlonePAS plugin loosely based on SQLPASPlugin for
authentication.


I'm going to be needing this functionality myself sometime soon.

Where did you find the SQL plugin? What's the official way of getting
users with extra properties from a relational back end? What
bastardisations has Plone added that need to be supported?


The code creates a zsql method in source_users which I can verify via
the ZMI that it is there.


Why do you need to create the zsql method using code?


When the authenticate credentials plugin is called it appears to
always be in the source_users folder,


What do you mean by that?


Why would be it fail sometimes and not others? How do I make it work
reliably?

2007-04-07T18:02:10 INFO RACPASPlugin Traceback (most recent call  
last):

authenticateCredentials: getUserInfo:   File
/usr/local/zope/instance1/Products/RACPASPlugin/plugins/usermanager.py,
line 104, in authenticateCredentials
   res = self.getUserInfo(login)
authenticateCredentials: getUserInfo:   File
/usr/local/zope/instance1/Products/RACPASPlugin/plugins/usermanager.py,
line 253, in getUserInfo
   query = getattr(self, _UserQueryId)
authenticateCredentials: getUserInfo: AttributeError:  
RACPAS_getUserInfo


I wonder if a differing set of acquisiton contexts are involved
somewhere along the line?

cheers,

Chris






___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas



___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


Re: [Zope-PAS] PlonePAS using SQL get AttributeError

2007-04-18 Thread Sidnei da Silva

On 4/18/07, Kapil Thangavelu [EMAIL PROTECTED] wrote:


my understanding is that part of the reason this was done, was laziness,
on the part of the integrators, who didn't want to deal with the issues of
having non pas users from the root acl browsing a plone site, and
conditionally dealing with those the users within the plone code. i agree
that its lame.


Lame or not lame, it's been there for almost two years, and everyone
complains but no-one came up with a better solution so far. Patches
accepted, as usual.

--
Sidnei da Silva
Enfold Systemshttp://enfoldsystems.com
Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214
___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


Re: [Zope-PAS] PlonePAS using SQL get AttributeError

2007-04-17 Thread Chris Withers

i James,

James J Myers wrote:
I've written a PlonePAS plugin loosely based on SQLPASPlugin for 
authentication.


I'm going to be needing this functionality myself sometime soon.

Where did you find the SQL plugin? What's the official way of getting 
users with extra properties from a relational back end? What 
bastardisations has Plone added that need to be supported?


The code creates a zsql method in source_users which I can verify via 
the ZMI that it is there.


Why do you need to create the zsql method using code?

When the authenticate credentials plugin is 
called it appears to always be in the source_users folder,


What do you mean by that?

Why would be it fail sometimes and not others? How do I make it work 
reliably?


2007-04-07T18:02:10 INFO RACPASPlugin Traceback (most recent call last):
authenticateCredentials: getUserInfo:   File 
/usr/local/zope/instance1/Products/RACPASPlugin/plugins/usermanager.py, 
line 104, in authenticateCredentials

   res = self.getUserInfo(login)
authenticateCredentials: getUserInfo:   File 
/usr/local/zope/instance1/Products/RACPASPlugin/plugins/usermanager.py, 
line 253, in getUserInfo

   query = getattr(self, _UserQueryId)
authenticateCredentials: getUserInfo: AttributeError: RACPAS_getUserInfo


I wonder if a differing set of acquisiton contexts are involved 
somewhere along the line?


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


[Zope-PAS] PlonePAS using SQL get AttributeError

2007-04-13 Thread James J Myers
I've written a PlonePAS plugin loosely based on SQLPASPlugin for 
authentication.


Sometimes it works and sometimes it doesn't.

The code creates a zsql method in source_users which I can verify via 
the ZMI that it is there. When the authenticate credentials plugin is 
called it appears to always be in the source_users folder, yet sometimes 
it works and sometimes it fails as shown below - not able to find the 
zsql method.


Why would be it fail sometimes and not others? How do I make it work 
reliably?


2007-04-07T18:02:10 INFO RACPASPlugin Traceback (most recent call last):
authenticateCredentials: getUserInfo:   File 
/usr/local/zope/instance1/Products/RACPASPlugin/plugins/usermanager.py, 
line 104, in authenticateCredentials

   res = self.getUserInfo(login)
authenticateCredentials: getUserInfo:   File 
/usr/local/zope/instance1/Products/RACPASPlugin/plugins/usermanager.py, 
line 253, in getUserInfo

   query = getattr(self, _UserQueryId)
authenticateCredentials: getUserInfo: AttributeError: RACPAS_getUserInfo
begin:vcard
fn:James Myers
n:Myers;James
adr;dom:;;;Paradise;CA;95969
email;internet:[EMAIL PROTECTED]
tel;fax:1.510.217.3948
tel;home:1.530.872.8444
tel;cell:1.530.570.9144
x-mozilla-html:TRUE
url:http://www.myersware.com
version:2.1
end:vcard

___
Zope-PAS mailing list
[EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-pas