Re: [Repoze-dev] "membership" for BFG and composing multiple apps

2010-04-28 Thread Thomas G. Willis
I'll offer up this, NOT because I think you should use it, but it has
lots of examples of varying quality to give you ideas on how you might
compose auth/registration/password recorvery into an existing bfg app.

http://bitbucket.org/twillis/identity.model/src


You could use it, but I think you'll find you would rather write your own. :)


On Wed, Apr 28, 2010 at 3:10 PM, Chris Withers  wrote:
> Final one of my trio for this evening...
>
> Is there anything like the ol' CMFMembership for BFG?
> (important bits for me:
>  - where to store/get user info from
>  - cookie authentication
>  - login and logout forms
>  - password reminder and reset forms and functionality)
>
> If there is such a beastie, how do I plug it in to my existing app setup?
>
> If I wanted to write such a similar lump of non-app-specific
> functionality, how would I do so in such a way that plugging in the
> views and other code would be as easy as possible?
> (and also easy for the consumer to override my choice of html, specific
> url, etc)
>
> cheers,
>
> Chris - fun feeling like a total n00b again :-)
>
> --
> Simplistix - Content Management, Batch Processing & Python Consulting
>            - http://www.simplistix.co.uk
> ___
> Repoze-dev mailing list
> Repoze-dev@lists.repoze.org
> http://lists.repoze.org/listinfo/repoze-dev
>



-- 
Thomas G. Willis
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] "membership" for BFG and composing multiple apps

2010-04-29 Thread Charlie Clark
Am 28.04.2010, 21:10 Uhr, schrieb Chris Withers :

> If I wanted to write such a similar lump of non-app-specific
> functionality, how would I do so in such a way that plugging in the
> views and other code would be as easy as possible?
> (and also easy for the consumer to override my choice of html, specific
> url, etc)

I would start with IMembership(Tool) and remove or improve on the legacy  
Zope bits.

BFG supports "interfaces used the way the were intended" and the sample  
Cookbook applications contains examples of different implementations of  
the same interface for just this purpose including the ability to decide  
at start time.

I'm a bit unsure on how you might want to handle view customisation beyond  
template override.

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev