diff options
| author | Barry Warsaw | 2016-04-02 23:54:57 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-04-02 23:54:57 -0400 |
| commit | bbf49fb32d55efae759cd1c86287d80358346782 (patch) | |
| tree | 2a03795c9e5a901065b37f0a4bab5283e1b60676 /src/mailman/rest/users.py | |
| parent | 8b2457f93da45778edc371d46eed40f7c8ecda7e (diff) | |
| download | mailman-bbf49fb32d55efae759cd1c86287d80358346782.tar.gz mailman-bbf49fb32d55efae759cd1c86287d80358346782.tar.zst mailman-bbf49fb32d55efae759cd1c86287d80358346782.zip | |
Diffstat (limited to 'src/mailman/rest/users.py')
| -rw-r--r-- | src/mailman/rest/users.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mailman/rest/users.py b/src/mailman/rest/users.py index fe5641ddc..dfef466ca 100644 --- a/src/mailman/rest/users.py +++ b/src/mailman/rest/users.py @@ -301,7 +301,6 @@ class AddressUser(_UserBase): def on_post(self, request, response): """Link a user to the address, and create it if needed.""" - import pdb; pdb.set_trace() if self._user: conflict(response) return @@ -344,12 +343,11 @@ class AddressUser(_UserBase): def on_put(self, request, response): """Set or replace the addresses's user.""" - api = request.context['api'] if self._user: self._user.unlink(self._address) # Process post data and check for an existing user. fields = CREATION_FIELDS.copy() - fields['user_id'] = api.to_uuid + fields['user_id'] = self.api.to_uuid fields['_optional'] = fields['_optional'] + ( 'user_id', 'email', 'is_server_owner') try: |
