[Sugar-devel] [PATCH sugar] Limit the nick name to be only 8 characters maximum #10737

Simon Schampijer simon at schampijer.de
Wed Mar 16 14:40:11 EDT 2011


Just in case people are wondering: this patch does only affect internal 
handling. The nick name that is visible in the UI (neighborhood view) is 
not affected by the limiting. It will be displayed in full length.

On 03/16/2011 01:34 PM, Simon Schampijer wrote:
> The avahi service name has a 64 character limit. It consists of
> the room name the published-name and the host name.
> ---
>   src/jarabe/model/neighborhood.py |   11 ++++++++++-
>   1 files changed, 10 insertions(+), 1 deletions(-)
>
> diff --git a/src/jarabe/model/neighborhood.py b/src/jarabe/model/neighborhood.py
> index ca4c5bf..aef03b8 100644
> --- a/src/jarabe/model/neighborhood.py
> +++ b/src/jarabe/model/neighborhood.py
> @@ -695,6 +695,15 @@ class Neighborhood(gobject.GObject):
>           if account == self._server_account:
>               self._link_local_account.enable()
>
> +    def _limit_published_name(nick):

A self is missing here. Gets introduced in "Fully update the salut 
account information when the nick name changes #10749" (which depends on 
this patch).

Regards,
    Simon


More information about the Sugar-devel mailing list