diff --git a/src/linkahead/common/models.py b/src/linkahead/common/models.py index 908a748cef91af7ace35d5054e558bc29bb7b1f0..28eb9842fac539358de4fbce3af9ffd573d3d356 100644 --- a/src/linkahead/common/models.py +++ b/src/linkahead/common/models.py @@ -1998,8 +1998,6 @@ class Property(Entity): Parameters ---------- - Parameters - ---------- parent : Entity or int or str or None The parent entity, either specified by the Entity object itself, or its id or its name. Default is None. @@ -3192,9 +3190,15 @@ class Container(list): """Get an xml tree representing this Container or append all entities to the given xml element. - @param add_to_element=None: optional element to which all entities of this container is to - be appended. - @return xml element + Parameters + ---------- + add_to_element : etree._Element, optional + optional element to which all entities of this container is to + be appended. Default is None + + Returns + ------- + xml_element : etree._Element """ tmpid = 0 @@ -4072,13 +4076,21 @@ class Container(list): warnings as errors. This prevents the server from inserting this entity if any warning occurs. - @param strict=False: Flag for strict mode. - @param sync=True: synchronize this container with the response from the server. Otherwise, - this method returns a new container with the inserted entities and leaves - this container untouched. - @param unique=True: Flag for unique mode. If set to True, the server will check if the name - of the entity is unique. If not, the server will return an error. - @param flags=None: Additional flags for the server. + Parameters + ---------- + strict : bool, optional + Flag for strict mode. Default is False. + sync : bool, optional + synchronize this container with the response from the + server. Otherwise, this method returns a new container with the + inserted entities and leaves this container untouched. Default is + True. + unique : bool, optional + Flag for unique mode. If set to True, the server will check if the + name of the entity is unique. If not, the server will return an + error. Default is True. + flags : dict, optional + Additional flags for the server. Default is None. """ @@ -5050,12 +5062,7 @@ class Info(): Information about the user that is connected to the server, such as name, realm or roles. time_zone : TimeZone - The timezone information returned by the server. - - Methods - ------- - sync - Retrieve server information from the server's ``Info`` response. + The timezone information returned by the server. """ @@ -5066,6 +5073,7 @@ class Info(): self.sync() def sync(self): + """Retrieve server information from the server's ``Info`` response.""" c = get_connection() try: http_response = c.retrieve(["Info"])