File tree 2 files changed +30
-3
lines changed
2 files changed +30
-3
lines changed Original file line number Diff line number Diff line change 13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
15
#
16
+
16
17
from __future__ import annotations
17
18
18
19
import json
19
20
20
21
import humps
21
- from hsfs import util
22
+ from hopsworks_common import util
22
23
23
24
24
25
class User :
@@ -40,12 +41,14 @@ def __init__(
40
41
user_account_type = None ,
41
42
num_active_projects = None ,
42
43
num_remaining_projects = None ,
44
+ firstname = None ,
45
+ lastname = None ,
43
46
** kwargs ,
44
47
):
45
48
self ._username = username
46
49
self ._email = email
47
- self ._first_name = first_name
48
- self ._last_name = last_name
50
+ self ._first_name = first_name or firstname
51
+ self ._last_name = last_name or last_name
49
52
self ._status = status
50
53
self ._secret = secret
51
54
self ._chosen_password = chosen_password
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright 2022 Logical Clocks AB
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ from hopsworks_common .user import (
18
+ User ,
19
+ )
20
+
21
+
22
+ __all__ = [
23
+ User ,
24
+ ]
You can’t perform that action at this time.
0 commit comments