Hi, I need to store persistent principals in a folder in the ZODB. I do not need any UI for the principal nor the principal folder. I'd like to use zope.pluggableauth to authenticate them. zope.app.authentication.principalfolder does nearly exactly what I need. But I do not like to use it as it has many bad dependencies only needed for ZMI. Even z3c.authenticator seems to do too much as it contains UI code, too. Is there something else like zope.app.authentication.principalfolder.PrincipalFolder? Or what is the way nowadays to store persistent principals? Could it be a solution to extract zope.app.authentication.principalfolder into a new package like `zope.principalfolder` or even zope.pluggableauth? Yours sincerely, -- Michael Howitz · mh@gocept.com · software developer gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1 Zope and Plone consulting and development
On Fri, Aug 20, 2010 at 1:44 PM, Michael Howitz <mh@gocept.com> wrote:
Hi,
I need to store persistent principals in a folder in the ZODB. I do not need any UI for the principal nor the principal folder. I'd like to use zope.pluggableauth to authenticate them.
zope.app.authentication.principalfolder does nearly exactly what I need. But I do not like to use it as it has many bad dependencies only needed for ZMI. Even z3c.authenticator seems to do too much as it contains UI code, too.
Is there something else like zope.app.authentication.principalfolder.PrincipalFolder? Or what is the way nowadays to store persistent principals?
Could it be a solution to extract zope.app.authentication.principalfolder into a new package like `zope.principalfolder` or even zope.pluggableauth?
Hi, Souheil Chelfouh initially extracted the pluggable auth utility from zope.app.authentication to zope.pluggableauth to not have all the browser views and this principalfolder implementation. In Dolmen http://www.dolmen-project.org/ (set of libraries you can use with Grok to build a small CMS), we have our own principal folder plugin implementation http://pypi.python.org/pypi/dolmen.app.authentication which is based on dolmen.authentication and zope.pluggableauth. And you have an example of a User content type in: http://gitweb.dolmen-project.org/menhir.contenttype.user.git Vincent Fretin
Am 21.08.2010 um 00:11 schrieb Vincent Fretin: [...]
Hi,
Souheil Chelfouh initially extracted the pluggable auth utility from zope.app.authentication to zope.pluggableauth to not have all the browser views and this principalfolder implementation. In Dolmen http://www.dolmen-project.org/ (set of libraries you can use with Grok to build a small CMS), we have our own principal folder plugin implementation http://pypi.python.org/pypi/dolmen.app.authentication which is based on dolmen.authentication and zope.pluggableauth.
Hi, I looked at dolmen.app.authentication, but it contains UI code, too and it has many grok resp. dolmen dependencies, so it is not really better than zope.app.authentication for my use case.
And you have an example of a User content type in: http://gitweb.dolmen-project.org/menhir.contenttype.user.git
Same here. Yours sincerely, -- Michael Howitz · mh@gocept.com · software developer gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1 Zope and Plone consulting and development
The code you're interested in is in dolmen.authentication, dolmen.app.x are UI packages 2010/8/23 Michael Howitz <mh@gocept.com>:
Am 21.08.2010 um 00:11 schrieb Vincent Fretin: [...]
Hi,
Souheil Chelfouh initially extracted the pluggable auth utility from zope.app.authentication to zope.pluggableauth to not have all the browser views and this principalfolder implementation. In Dolmen http://www.dolmen-project.org/ (set of libraries you can use with Grok to build a small CMS), we have our own principal folder plugin implementation http://pypi.python.org/pypi/dolmen.app.authentication which is based on dolmen.authentication and zope.pluggableauth.
Hi,
I looked at dolmen.app.authentication, but it contains UI code, too and it has many grok resp. dolmen dependencies, so it is not really better than zope.app.authentication for my use case.
And you have an example of a User content type in: http://gitweb.dolmen-project.org/menhir.contenttype.user.git
Same here.
Yours sincerely, -- Michael Howitz · mh@gocept.com · software developer gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1 Zope and Plone consulting and development
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Am 23.08.2010 um 13:50 schrieb Souheil CHELFOUH:
The code you're interested in is in dolmen.authentication, dolmen.app.x are UI packages
This package only contains some interfaces and an adapter but no principal folder implementation. Yours sincerely, -- Michael Howitz · mh@gocept.com · software developer gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1 Zope and Plone consulting and development
On Tue, Aug 24, 2010 at 8:25 AM, Michael Howitz <mh@gocept.com> wrote:
Am 23.08.2010 um 13:50 schrieb Souheil CHELFOUH:
The code you're interested in is in dolmen.authentication, dolmen.app.x are UI packages
This package only contains some interfaces and an adapter but no principal folder implementation.
dolmen.app.authentication contains non UI code as well. Maybe the principalfolder should be moved to dolmen.authentication at some point. What's your looking for is dolmen.app.authentication/src/dolmen/app/authentication/plugins/principalfolder.py it's a btree (dolmen.content.Container) implementation. Vincent
Am 24.08.2010 um 10:01 schrieb Vincent Fretin:
On Tue, Aug 24, 2010 at 8:25 AM, Michael Howitz <mh@gocept.com> wrote:
Am 23.08.2010 um 13:50 schrieb Souheil CHELFOUH:
The code you're interested in is in dolmen.authentication, dolmen.app.x are UI packages
This package only contains some interfaces and an adapter but no principal folder implementation.
dolmen.app.authentication contains non UI code as well. Maybe the principalfolder should be moved to dolmen.authentication at some point. What's your looking for is dolmen.app.authentication/src/dolmen/app/authentication/plugins/principalfolder.py it's a btree (dolmen.content.Container) implementation.
So it might be a better idea to extract zope.app.authentication.principalfolder into a new package as it only depends on Zope core packages and does not bring any further dependencies in. Yours sincerely, -- Michael Howitz · mh@gocept.com · software developer gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany http://gocept.com · tel +49 345 1229889 8 · fax +49 345 1229889 1 Zope and Plone consulting and development
participants (3)
-
Michael Howitz -
Souheil CHELFOUH -
Vincent Fretin