Commit 0265b4c8 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

User: cleanup remnant of adoption

Instead of `User` we better use `cls` in the classmethods,
to avoid puzzling behaviour if subclasses arise in the future.
parent c58dc5d814f9
......@@ -80,10 +80,10 @@ class User(object):
user = heptapod.users.get(name)
if user is None:
user = User.search(heptapod, name)
user = cls.search(heptapod, name)
if user is None:
user = User.create(heptapod, name,
password=password, fullname=fullname)
user = cls.create(heptapod, name,
password=password, fullname=fullname)
user.store_in_heptapod()
user.password = password
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment