Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve documentation #13

Open
ergo opened this issue Jun 13, 2015 · 5 comments
Open

Improve documentation #13

ergo opened this issue Jun 13, 2015 · 5 comments

Comments

@ergo
Copy link
Owner

ergo commented Jun 13, 2015

Documentation is lacking, contributions are welcome

@crooksey
Copy link
Contributor

I think a tutorial, including an example app would be good. I am happy to write both the app and the tutorial, areas I think need covering.... (anyone else please add what you think we should cover).

Setting up the project
Extending the mixins
Elaborating on the RootFactory
Adding in request.user to the pyramid app
Adding and deleting users
Assigning users to groups
Adding permissions
Assigning groups to permissions
The login/logout routines, as well as how to customize
Adding permission based access to views
Providing an example view for approving a user account with the use of security code

EDIT: Add in example of adding an example get_session_callable in the models, so it can be returned as a function as required by the ini file:

ziggurat_foundations.session_provider_callable = yourapp.models.meta:get_session_callable

Also looking at the above assumes the user has a meta file and a folder for models, all other examples assume one model file, shall we provide this as well for the example?

@crooksey
Copy link
Contributor

Now fixed?

@ergo
Copy link
Owner Author

ergo commented Nov 13, 2015

A lot better.

@peletiah
Copy link
Contributor

Might as well post my minor corrections in here, right? :-)

In "Cofiguring groupfinder and session factorys" (Typos in the header - "Configuring" and "factories") you have root_factory='intranet.models.RootFactory', but I guess that should be root_factory='<my_project>.models.RootFactory' instead.

@peletiah
Copy link
Contributor

On "adding a resource that the user will own":
It would be useful to have a note that one must add __possible_permissions__ to the Resource-class in model containing a list of permission-names (e.g. "read")

permission.user_name = "foo" does not work. Should that be permission.user_id = user.id and permission.resource_id = resource.id?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants