nsarchive 1.2.4__py3-none-any.whl → 1.2.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nsarchive/cls/entities.py +7 -1
- {nsarchive-1.2.4.dist-info → nsarchive-1.2.5.dist-info}/METADATA +1 -1
- {nsarchive-1.2.4.dist-info → nsarchive-1.2.5.dist-info}/RECORD +5 -5
- {nsarchive-1.2.4.dist-info → nsarchive-1.2.5.dist-info}/LICENSE +0 -0
- {nsarchive-1.2.4.dist-info → nsarchive-1.2.5.dist-info}/WHEEL +0 -0
nsarchive/cls/entities.py
CHANGED
@@ -140,7 +140,7 @@ class Organization(Entity):
|
|
140
140
|
def add_member(self, member: GroupMember) -> None:
|
141
141
|
if not isinstance(member, GroupMember):
|
142
142
|
raise TypeError("Le membre doit être de type GroupMember")
|
143
|
-
|
143
|
+
|
144
144
|
self.members.append(member)
|
145
145
|
|
146
146
|
def remove_member(self, member: GroupMember) -> None:
|
@@ -148,6 +148,12 @@ class Organization(Entity):
|
|
148
148
|
if _member.id == member.id:
|
149
149
|
self.members.remove(_member)
|
150
150
|
|
151
|
+
def append(self, member: GroupMember) -> None:
|
152
|
+
self.add_member(member)
|
153
|
+
|
154
|
+
def remove(self, member: GroupMember) -> None:
|
155
|
+
self.remove_member(member)
|
156
|
+
|
151
157
|
def set_owner(self, member: User) -> None:
|
152
158
|
self.owner = member
|
153
159
|
|
@@ -3,11 +3,11 @@ nsarchive/assets/default_avatar.png,sha256=n-4vG_WPke8LvbY3ZU6oA-H-OtRoIu7woKnRq
|
|
3
3
|
nsarchive/cls/archives.py,sha256=Nmt3C0Zq9oGQdCXSzm_wo70VbNq89SY3dx9KKqEpoCg,2182
|
4
4
|
nsarchive/cls/base.py,sha256=DGDm0uD96M00-qvdKsltU9kAfAOBr85Ov0b18gTnoIM,714
|
5
5
|
nsarchive/cls/economy.py,sha256=RjFu3VzNunazslbd4Ia5p1Jr-jJP5CvIcbVOzkDTwTU,549
|
6
|
-
nsarchive/cls/entities.py,sha256=
|
6
|
+
nsarchive/cls/entities.py,sha256=Rvu2Q1mTWqQ-z92j-OXhoXSWked7p4tOCJm0gIlnP9c,6179
|
7
7
|
nsarchive/cls/exceptions.py,sha256=QN6Qn7cxTkGoC4lO50hBAq4gZCgo7scQvCkb-xKl6Xs,692
|
8
8
|
nsarchive/cls/republic.py,sha256=6eut6OsFoOm9TVhA41fM3NlMEA3Uhg9TCuXgl46vFko,1985
|
9
9
|
nsarchive/utils/assets.py,sha256=hd0STSpa0yT-OJlUyI_wCYXJqcBiUMQds2pZTXNNg9c,382
|
10
|
-
nsarchive-1.2.
|
11
|
-
nsarchive-1.2.
|
12
|
-
nsarchive-1.2.
|
13
|
-
nsarchive-1.2.
|
10
|
+
nsarchive-1.2.5.dist-info/LICENSE,sha256=aFLFZg6LEJFpTlNQ8su3__jw4GfV-xWBmC1cePkKZVw,35802
|
11
|
+
nsarchive-1.2.5.dist-info/METADATA,sha256=usI1BWLbz6w23NjDDUj0ZXb1ThZmHPhPkxQ6NkduRQQ,5629
|
12
|
+
nsarchive-1.2.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
13
|
+
nsarchive-1.2.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|