Commit Graph

342 Commits

Author SHA1 Message Date
Jan Dittberner b9dd34d527 add initial osusers unit tests 2014-06-01 01:36:50 +02:00
Jan Dittberner e8285518a3 fix small group handling bugs
- use create_grouptaskresult instead of create for creating
  GroupTaskResult
- use group.gid instead of non-existing group.id
2014-06-01 00:33:42 +02:00
Jan Dittberner d1abe10349 add release plugin and changelog 2014-06-01 00:17:57 +02:00
Jan Dittberner 59783e986d implement classes for tracking task status 2014-05-30 21:46:10 +02:00
Jan Dittberner 865f54ab67 use primitive fields instead of models for tasks
- modify osusers.tasks and osusers.models to avoid serialization of full
  models for celery tasks and use the required fields only
2014-05-30 18:39:51 +02:00
Jan Dittberner 0c5706d886 use YAML for celery serialization
- add CELERY_ACCEPT_CONTENT, CELERY_TASK_SERIALIZER and
  CELERY_RESULT_SERIALIZER in gnuviechadmin.settings.base
- add pyaml to requirements/base.txt
2014-05-30 18:36:26 +02:00
Jan Dittberner 6a40a5eded pass groupname only to delete_ldap_group_if_empty 2014-05-30 17:18:42 +02:00
Jan Dittberner 561b2d64db finish feature osusertoldap 2014-05-30 17:14:09 +02:00
Jan Dittberner 6eb74f5b79 add more ldap tasks
- add custom celery router osusers.tasks.LdapRouter
- add tasks add_ldap_user_to_group, delete_ldap_group_if_empty,
  delete_ldap_user and remove_ldap_user_from_group
- implement osusers.models.Group.save and osusers.models.Group.delete
- implement save, delete and set_password methods in osusers.models.User
- implement save and delete methods in osusers.models.AdditionalGroup
2014-05-30 17:10:22 +02:00
Jan Dittberner 1e717556ba refine ldap create commands
- define gnuviechadmin.settins.base.CELERY_ROUTES to properly route ldap tasks
- return dummy values from osusers.tasks
- add billiard, kombu and pytz to requirements/base.txt
2014-05-30 12:17:04 +02:00
Jan Dittberner caab322beb implement user creation in osusers.admin
- add osusers.admin.UserCreationForm
- add dummy osusers.tasks implementation with create_ldap_group and
  create_ldap_user
- fix UserManager.get_next_username
- add proper transaction handling in UserManager.create_user
- add calls to create_ldap_user and create_ldap_group to
  UserManager.create_user
2014-05-25 23:35:14 +02:00
Jan Dittberner 86b8f03704 add celery configuration to settings 2014-05-25 23:35:06 +02:00
Jan Dittberner 97634bb36a add celery app to project 2014-05-25 23:34:27 +02:00
Jan Dittberner 81f1faee6c add celery dependency 2014-05-25 23:33:37 +02:00
Jan Dittberner 23de57e138 move MailDomain admin to domains.admin 2014-05-25 15:21:04 +02:00
Jan Dittberner ecaff6a4af move existing MailDomains to domains table 2014-05-25 15:17:08 +02:00
Jan Dittberner 5db6223bc0 introduce new app domains
- generate domains app
- duplicate managemails.models.MailDomain as domains.models.MailDomain
- add domains app to gnuviechadmin.settings.base.LOCAL_APPS
- repair managemails.tests.test_models
- fix handling of empty results in osusers.models.GroupManager.get_next_gid and
  osusers.models.UserManager.get_next_uid
2014-05-25 14:53:58 +02:00
Jan Dittberner e132c9a56c add user creation manager code
- add OSUSER_* settings
- add UserManager, GroupManager and ShadowManager for user creation
2014-05-25 00:55:02 +02:00
Jan Dittberner a85ad4e420 improve osusers model classes
- add __str__ methods
- add verbose names and help texts
2014-05-24 23:40:54 +02:00
Jan Dittberner 9d447cac0b improve osusers admin interface
- set user uid to readonly
- set shadow password readonly
- set can_delete on shadow to False
2014-05-24 23:15:14 +02:00
Jan Dittberner da8ba6ed1d change Mailbox admin to work with osuser field 2014-05-24 22:56:33 +02:00
Jan Dittberner f085dab017 let mailboxes reference os users
- refer to osuser instead of own home, uid and gid entries in mailboxes
- add data and schema migrations
2014-05-24 22:50:43 +02:00
Jan Dittberner 3de357d394 add migration for timestamp fields 2014-05-24 22:02:14 +02:00
Jan Dittberner 3473b14e62 add timestamps to managemails models 2014-05-24 21:56:30 +02:00
Jan Dittberner 9edbe6c898 add support for additional groups 2014-05-24 21:53:49 +02:00
Jan Dittberner 01b05c5823 ignore tags files 2014-05-24 21:48:43 +02:00
Jan Dittberner 1082128f22 add osusers app 2014-05-24 21:28:33 +02:00
Jan Dittberner d5e1128ff6 allow only one mailbox for a mailaddress
- add migration to place a unique constraint on MailAddressMailbox.mailaddress
  and drop existing primary_key
- change managemails.models.MailAddressMailbox.mailaddress to OneToOneField
2014-05-24 20:57:17 +02:00
Jan Dittberner ee46a61e6d add inline editing for mail address targets
- move active flag into managemails.models.ActivateAbleMixin
- refactor Mailbox and Mailaddress to use ActivateAbleMixin
- implement managemails.models.Mailbox.__str__
- add managemails.admin.ActivationChangeMixin to provide activate and
  deactivate actions for model admin classes
- add activate and deactivate actions for managemails.admin.MailboxAdmin
- add managemails.admin.MailAddressAdmin and inlines for MailAddressMailbox and
  MailAddressForward management on the MailAddress management admin page
2014-05-24 14:58:54 +02:00
Jan Dittberner b044fe2dd9 add model tests 2014-05-24 13:56:45 +02:00
Jan Dittberner 7e49bd3039 add first tests, add .coveragerc, ignore coverage files 2014-05-24 13:38:08 +02:00
Jan Dittberner cadcc3fa68 remove domain field from Mailbox admin classes 2014-05-23 23:27:06 +02:00
Jan Dittberner cc7f5247ab decouple mailbox from domain 2014-05-22 22:57:21 +02:00
Jan Dittberner 618a9b8c11 add separate models for mail addresses, domains and mailboxes 2014-05-19 22:28:25 +02:00
Jan Dittberner 402c02203d remove .ropeproject 2014-05-18 22:12:02 +02:00
Jan Dittberner 540871865f add initial data model for managemails 2014-05-18 21:35:00 +02:00
Jan Dittberner 0e5486f049 add psycopg2 requirement 2014-05-18 20:46:55 +02:00
Jan Dittberner be195414c9 remove django-discover-runner from dependencies 2014-05-18 20:29:45 +02:00
Jan Dittberner 46a65b5624 streamline settings
- use get_env_variable and other two scoops best practice
- add managemails to INSTALLED_APPS
2014-05-18 20:26:31 +02:00
Jan Dittberner b0e5727b90 ignore .ropeproject/ 2014-05-18 20:26:24 +02:00
Jan Dittberner 123eedaeb1 add generated managemails app 2014-05-18 20:02:39 +02:00
Jan Dittberner 8e19d3630d auto generated project 2014-05-18 00:07:32 +02:00