Phillip J. Eby wrote :
Get rid of the "id_user" DTML method and add the following
to a SkinScript method inside your UserSource:
WITH QUERY SQL_id_user(username=self.id) COMPUTE id_user
You should then be able to do "AUTHENTICATED_USER.id_user" to retrieve the
attribute.
I had to update
Hi,
I am currently using LoginManager to authenticate users from a MySQL
database. I followed the tutorials and it works quite well; but there are
other data associated with users in the database that I would like to use in
Zope. I have found a solution but I think it is quite complicated:
At 12:19 PM 3/27/01 +0200, Bertrand Croq wrote:
Hi,
I am currently using LoginManager to authenticate users from a MySQL
database. I followed the tutorials and it works quite well; but there are
other data associated with users in the database that I would like to use in
Zope. I have found a
Hi,
I want to know howto use multiple usersSource in Login Manager, if it's
possible.
I have added 2 usersSoucers and created diferent methods for each
usersSource, but it authenticates only within the first userSource Listed.
--
Srinath Mantripragada
[EMAIL PROTECTED]
Hi,
I am using Zope 2.3.0 with ZPatterns 0.4.3b2 and LoginManager 0.8.8b1. When
I try to use LoginManager (following the tutorial about LoginManager and
SQL), here is the error I get in the browser:
Type: TypeError
Value: not enough arguments; expected 3, got 2
Traceback (innermost last):
Hi,
Bertrand CROQ schrieb:
Hi,
I am using Zope 2.3.0 with ZPatterns 0.4.3b2 and LoginManager 0.8.8b1. When
I try to use LoginManager (following the tutorial about LoginManager and
SQL), here is the error I get in the browser:
...
The error seams to be in LoginMethods.py:149 as it
Hi fellow zopers,
I don't know if it's a bug or feature, but whenever I try
to access parental objects from a user object in python
code, I can't seem to find anything.
That is, whenever I call acl_users.getItem('user123').getParentNode()
(the acl_users is a LoginManager instance) it returns
Hi,
I posted several questions about this problem, but got no replies. I
thought I'd try again with a bit more information.
The problem is accessing Control_Panel from a folder that contains a
LoginManager. I tested the same setup using a plain acl_users and
found one difference.
Zope/
Hi guys,
I previously posted a couple of functions that enables users to
login at a lower level in the tree-structre than where the actual
user folder is.
I.e.,
a user could enter username and password at
/a
and get redirected to
/a/a/a/a/b
(the acl_users folder would be
"Morten W. Petersen" wrote:
[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:
[snip solution]
Sorry I didn't see your question earlier. Here was what I
posted to the list
[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:
"""
paramsself/params
user_ids = self.UserSource.getPersistentItemIDs()
user_ids2 = []
for id in user_ids:
Hi.
I'd like to authenticate users using LDAP and Active Directory. Zope is
running on a RH7.0 box.
Has anyone done this, is it possible?
/Magnus
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No
Greetings Fellow ZoPeople,
I'm having some difficulty with Acquisition of security settings within
LoginManager protected folders. I'm using the latest CVS of Zope and
LM 0.8.8b1 with the included ZPatterns and Plugins. It was necessary
to apply a patch (from Luca Mearelli on this list) on
I've been fiddling a bit with the LoginManager; but can't seem to make
it work.
The product versions are ZPatterns 0.3.0 and LoginManager 0.8.6.
(Downgraded the ZPatterns product because the LoginManager couldn't
find a class named .. SheetProviderContainer, I think).
When adding a
At 05:11 PM 10/15/00 +0200, Morten W. Petersen wrote:
I've been fiddling a bit with the LoginManager; but can't seem to make
it work.
The product versions are ZPatterns 0.3.0 and LoginManager 0.8.6.
(Downgraded the ZPatterns product because the LoginManager couldn't
find a class named ..
[Phillip J. Eby]
| 0.8.6 won't work with 0.3.0 ZPatterns, IIRC. I'm pretty positive it
| requires one of the 0.4.x releases, but I'm not positive which one. You
| might be better off with the latest (current) releases of both.
Okay, I tried different ZPattern versions against the most recent
Cheers!
I actually tried to implement support for local roles in almost exactly the
same way as you did, but for some reason I didn't get it to work.
Perhaps I should look into the matter again... I just threw in the
user_names(), and getUserNames() into the LoginManager, added some dtml to
At 04:01 PM 10/6/00 +, Ty Sarna wrote:
I think this is due to Shane's fix for allowing LM's as non-top-level
acl_users. I had it originally so that _owner was a class attribute,
which works fine. With the change, it was added as an instance
attribute. Now, UnownableOwner is just an empty
Hola,
There seems to be a problem with the ownership model in Zope (or ZPatterns).
The problem is the following: I have implemented a nice login system based on
the LoginManager and SQL methods. I would like to make this acl_users the
top level user folder, but... then hell brakes lose...
Jonas Juselius wrote:
Another thing which I have tried to do, is to add support for local roles to
the LoginManager. At first it looked rather simple, but then I realized that
it wasn't really _that_ simple, and dropped it because I don't have time... It
would however be nice to have local
anyone doing user authentification with NT + Loginmanager?
--
Robin Becker
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
[Phillip J Eby]
def retreiveItem(self, name):
self.f.write('Creating object for %s\n' % name)
return USER(name)
Your retrieveItem isn't checking to see if the user exists. Also, you
spelled it "retreive" when the correct spelling is "retrieve".
Yep, as soon as I noticed the
At 11:53 PM 8/20/00 +0200, Terje Malmedal wrote:
I've written this, but it just does not work, all that happens is that
it writes opened to /tmp/source.log
class USER:
"Just a little test"
name= None
roles = [ 'Anonymous' , 'member' ]
domains = []
def __init__(self,
Terje Malmedal wrote:
[Bill Anderson]
Terje Malmedal wrote:
Can anybody please provide a simple example of a working usersource
written in python?
Look at the UserSource source for LoginManager and Membership.
I did that. I feel I am missing something obvious.
What I do is:
Terje Malmedal wrote:
Can anybody please provide a simple example of a working usersource
written in python?
Look at the UserSource source for LoginManager and Membership.
--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.
Can anybody please provide a simple example of a working usersource
written in python?
I've written this, but it just does not work, all that happens is that
it writes opened to /tmp/source.log
class USER:
"Just a little test"
name= None
roles = [ 'Anonymous' , 'member' ]
"Phillip J. Eby" wrote:
At 09:22 AM 7/10/00 -0400, Shane Hathaway wrote:
The new security machinery actually provides a different way to solve
this problem. Since we now have an execution stack, we can limit that
stack, causing an exception to be thrown rather than letting it
overflow
At 09:21 PM 6/28/00 +, Ty Sarna wrote:
In article [EMAIL PROTECTED],
Shane Hathaway [EMAIL PROTECTED] wrote:
Ok folks,
I thought I had made it clear that this problem has been solved. I have
sent a patch to Ty (about two weeks ago) as well as made the change in
Sorry for the delay.
Using:
Zope2 (cvs)
ZPatterns 0.3.0
LoginManger 0.8.6
When I try to add a LoginManager, I get the following error and traceback.
Any ideas?
sRp
-
Error Type: KeyError
Error Value: _owner
Traceback (innermost last):
File /a4/srp/Zope2/lib/python/ZPublisher/Publish.py, line 222, in
29 matches
Mail list logo