- fix add missing folders in setuptools build
- fix PyPI readme images (requires a new version)
- fix issue with untracked folder
.eggs/
since version 2.0.1 - make the login process patchable. With his it is possible to implement a custom authentication handling
- Include all versioned package files in wheel (not only python files)
- Change MARA_XXX variables to functions to delay importing of imports
required changes
- Update
mara-app
to>=2.0.0
- add config option
require_email_http_header
that enforces the presence of the email http header - Implement previously unimplemented function
currently_user_has_permissions
. - Implement new function
user_has_permissions
- Remove functions
user_has_permission
andcurrent_user_has_permission
(they are now implemented inmara_page.acl
) - Remove deprecated dependency_links
- Bump minimum
mara-page
version to 1.4.0 - In
current_user_has_permissions
: When requested for a parent resource, returnTrue
when permissions for one of the child resources exist
required changes
- In dev environments, add this to
local_setup.py
:
import mara_acl.config
# Disable http header based authentication
patch(mara_acl.config.require_email_http_header)(lambda: False)
- Overwrite the default
mara_page.acl
functions like this:
# activate ACL
monkey_patch.patch(mara_page.acl.current_user_email)(mara_acl.users.current_user_email)
monkey_patch.patch(mara_page.acl.current_user_has_permissions)(mara_acl.permissions.current_user_has_permissions)
monkey_patch.patch(mara_page.acl.user_has_permissions)(mara_acl.permissions.user_has_permissions)
- If not already the case, add these two dependencies to your project requirements.txt:
-e [email protected]:mara/[email protected]#egg=mara-db
-e [email protected]:mara/[email protected]#egg=mara-page
- Adapt to changes in mara-db
- Replace sqlalchemy orm query logic with plain sql queries in order to avoid idling zombie connections
- Adapt to changes in the mara-db package
- Adapt to changes in mara ui
- bug fix in invite new user feature
- Initial version
- Refactored login
- Added function
user_has_permission
- Login bug fix
- Emails are always converted to lowercase before processing
- Adapted to mara ui changes