Skip to content

Commit

Permalink
remove hostname and hostalias properties
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjuhrich committed Sep 28, 2023
1 parent 96379d0 commit 92b4bd4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 36 deletions.
7 changes: 0 additions & 7 deletions sipa/model/pycroft/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,6 @@ def status(self) -> ActiveProperty[str, str]:
def id(self) -> ActiveProperty[str, str]:
return ActiveProperty[str, str](name="id", value=self.user_data.user_id)

@property
def hostname(self) -> UnsupportedProperty:
return UnsupportedProperty(name="hostname")

@property
def hostalias(self) -> UnsupportedProperty:
return UnsupportedProperty(name="hostalias")

@property
def userdb_status(self) -> ActiveProperty[str, str]:
Expand Down
10 changes: 0 additions & 10 deletions sipa/model/sample/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,16 +228,6 @@ def status(self):
def id(self):
return ActiveProperty[str, str](name="id", value=self.config["id"])

@property
def hostname(self):
return ActiveProperty[str, str](name="hostname", value=self.config["hostname"])

@property
def hostalias(self):
return ActiveProperty[str, str](
name="hostalias", value=self.config["hostalias"]
)

@property
def userdb_status(self):
return UnsupportedProperty("userdb_status")
Expand Down
19 changes: 0 additions & 19 deletions sipa/model/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,25 +229,6 @@ def id(self) -> PropertyBase[str, str]:
"""
pass

@property
@abstractmethod
def hostname(self) -> PropertyBase[str, str]:
"""The hostname.
This usually is an alias consisting of the last digits of the
mac/ip.
"""
pass

@property
@abstractmethod
def hostalias(self) -> PropertyBase[str, str]:
"""The hostalias.
An optionally configurable alias for the device.
"""
pass

@property
@abstractmethod
def userdb_status(self) -> PropertyBase[str, str]:
Expand Down

0 comments on commit 92b4bd4

Please sign in to comment.