2.2.0, LoginManager and ZPatterns
Hmm..., so I've decided to upgrade to Zope 2.2.0. Most of my site works fine :) I used GUF lately, now I want to use LoginManager, but I can't get it working. Even on fresh install of Zope 2.2.0 (Linux x86, binary release of Zope), when I want to create an instance of Login Manager with default settings in folder 'test1', I get following error: Error Type: TypeError Error Value: keyword parameter redefined Traceback (innermost last): File /usr/local/digicool/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/ Publish.py, line 222, in publish_module File /usr/local/digicool/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/ Publish.py, line 187, in publish File /usr/local/digicool/Zope-2.2.0-linux2-x86/lib/python/Zope/ __init__.py, line 221, in zpublisher_exception_hook File /usr/local/digicool/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/ Publish.py, line 171, in publish File /usr/local/digicool/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/ mapply.py, line 160, in mapply (Object: manage_addLoginManager) File /usr/local/digicool/Zope-2.2.0-linux2-x86/lib/python/ZPublisher/ Publish.py, line 112, in call_object (Object: manage_addLoginManager) File /usr/local/digicool/Zope-2.2.0-linux2-x86/lib/python/Products/ LoginManager/LoginManager.py, line 237, in manage_addLoginManager File /usr/local/digicool/Zope-2.2.0-linux2-x86/lib/python/Products/ ZPatterns/PlugIns.py, line 313, in _constructPlugIn TypeError: (see above) I've tried installing ZPatterns from sources and from binary release (both 0.3.0) - same results. LoginManager - 0.8.6. Of course I've created user with manager role in root folder's acl_users folder. What's wrong, Zopistas ? ololo
On Sat, 29 Jul 2000, Aleksander Salwa wrote:
I used GUF lately, now I want to use LoginManager, but I can't get it working.
Even on fresh install of Zope 2.2.0 (Linux x86, binary release of Zope), when I want to create an instance of Login Manager with default settings in folder 'test1', I get following error:
[...] Answering my own question: I installed newer versions of both products (ZPatterns 0-4-0a5 and LoginManager 0-8-7a1) and now it seems to be alright. Of course, I need to customize and test my LoginManager instance, so new troubles may arise soon :) ololo
Of course, I need to customize and test my LoginManager instance, so new troubles may arise soon :)
So I'm back ;) On Mon, 24 Jul 2000, Bill Anderson wrote:
for doing so. You can search the archives, and it would be a decent idea to look at the Membership *alpha* product, as it is an example.
Where I can find this 'Membership' product ? (I've tried www.zope-treasures.com and 'Search' on www.zope.org). Anybody knows about any other examples of simple, but useful UserSources ? I want to convert quickly my site to work with LoginManager (I used GUF before). I have folder with users data (login, password, and some properties needed in my site) in Zope. Every user is an instance of my ZClass. How to simply get it work with LoginManager ? What requirements (if any) are about class representing user ? Will be enough to customize (how ?) class GenericUserSource, or should I write my own ? Things seems easy, when reading help/API.txt (but there is nothing about user class). But when looking into source of GenericUserSource... :( Shed some light on it, please :) ololo
Aleksander Salwa wrote:
Of course, I need to customize and test my LoginManager instance, so new troubles may arise soon :)
So I'm back ;)
On Mon, 24 Jul 2000, Bill Anderson wrote:
for doing so. You can search the archives, and it would be a decent idea to look at the Membership *alpha* product, as it is an example.
Where I can find this 'Membership' product ? (I've tried www.zope-treasures.com and 'Search' on www.zope.org).
http://www.zope.org/Members/Bill/Products/Membership Has the most current version.
Anybody knows about any other examples of simple, but useful UserSources ?
I want to convert quickly my site to work with LoginManager (I used GUF before). I have folder with users data (login, password, and some properties needed in my site) in Zope. Every user is an instance of my ZClass. How to simply get it work with LoginManager ? What requirements (if any) are about class representing user ? Will be enough to customize (how ?) class GenericUserSource, or should I write my own ?
Things seems easy, when reading help/API.txt (but there is nothing about user class). But when looking into source of GenericUserSource... :(
Shed some light on it, please :)
Never used GUF, so I wouldn't be that much help :/ Went from straight UserFolder to Membership :) Login manager is fairly new, and ZPatterns, which it sits upon, is also in a state of evolution. As a result, not many are experienced with it, and little documentation exists. There are reasons these aren't released > version 1.0 ;) As for learning how to use them the source and the zope-dev list would be good sources. IMO, discussions on them, especially at that level, belong on zope0dev fo rnow. Others may not share that opinion. Bill -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password.
On Sat, 29 Jul 2000, Bill Anderson wrote:
Where I can find this 'Membership' product ? (I've tried www.zope-treasures.com and 'Search' on www.zope.org).
http://www.zope.org/Members/Bill/Products/Membership
Has the most current version.
Thanks ! Finally, I got it working by my own. It's rather simple, but it took few hours to state it ;) ololo
Bill Anderson wrote:
Where I can find this 'Membership' product ? (I've tried www.zope-treasures.com and 'Search' on www.zope.org).
well, it may be alpha, but I catalogued it anyway (so that people can find it) -- ethan mindlace fremen Zopatista Community Liason Abnegate I!
ethan mindlace fremen wrote:
Bill Anderson wrote:
Where I can find this 'Membership' product ? (I've tried www.zope-treasures.com and 'Search' on www.zope.org).
well, it may be alpha, but I catalogued it anyway (so that people can find it)
OK. I marked in RED letters that it is alpha. :) Thinking aluod.... Perhaps the Product Release page can put 'development' in red, so that devel products are easier to spot? -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password.
Bill Anderson wrote:
ethan mindlace fremen wrote:
Bill Anderson wrote:
well, it may be alpha, but I catalogued it anyway (so that people can find it)
OK. I marked in RED letters that it is alpha. :)
Thinking aluod.... Perhaps the Product Release page can put 'development' in red, so that devel products are easier to spot?
You could go to your product, and for topics use "Example" and "Developer". That should do the trick :) -- ethan mindlace fremen Zopatista Community Liason Abnegate I!
participants (4)
-
Aleksander Salwa -
Bill Anderson -
Chris Withers -
ethan mindlace fremen