LoginManager 0.8.8b1 examples/suggestions?
Does anyone have any LoginManager 0.8.8b1 example code? It almost looks like you can extend the system using plugins, but I don't know how that's done. Anyone else have luck doing this? If so then do you have any examples/suggestions? All I want is a simple ZODB/cookie based system, but I can't get the Generic User Source to work. Thanks in advance. __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/
[Jason Byron] | Does anyone have any LoginManager 0.8.8b1 example | code? It almost looks like you can extend the system | using plugins, but I don't know how that's done. | Anyone else have luck doing this? If so then do you | have any examples/suggestions? Yes. After adding your LoginManager instance, you should add four methods of some sort within the UserSource object. The four methods are: userAuthenticate userExists userRoles userDomains Here's the External methods I used just to make the logins work; you'll have to implement them to fit your system: def userAuthenticate(self, REQUEST, username, password): if username == 'morten' and password == 'morten': return 1 else: return 0 def userExists(self, REQUEST, username): return 1 def userRoles(self, REQUEST, username): return 'Manager', 'Owner' def userDomains(self, REQUEST, username): return [] | All I want is a simple ZODB/cookie based system, but I | can't get the Generic User Source to work. HTH then. =) -Morten
Hi all, This is a newbie question. I'm trying to get the 'title' property of a SQLConnectionIDs. I can do this work using python but in zope I can't do it. I want to create an html SELECT object to display a list of all SQL Connections and I want to display the id and the title, like this: id title --------- --------------------------------------------- gadfly Gadfly_database_connection mysql MySQL_database_connection postgres PyGres_database_connection dbmaker DBMaker_database_connection I tryed the following: <SELECT name="myList"> <dtml-in SQLConnectionIDs> <OPTION value="<dtml-var sequence-item html_quote>"> <dtml-var sequence-key></option> </dtml-in> </SELECT> but sequence-key and sequence-item are equals. Thank for any help Jose'
participants (3)
-
Jason Byron -
Jose Soares -
morten@esol.no