Re: Re: [Telepathy] GossipProtocol problems

Xavier Claessens <[email protected]> Sun, 15 Oct 2006 13:47:28 +0200
Newsgroups gmane.comp.gnome.gossip.devel
Message-ID <1160912848.6100.29.camel@zdra-desktop>
Le dimanche 15 octobre 2006 à 12:27 +0200, Mikael Hallendal a écrit :
> >>> 4) _is_valid_username, _get_example_username, _get_default_server and
> >>> _get_default_port: doesn't seems to have an equivalent in telepathy...
> >>> maybe it should be added to the specification ?
> >> The default for anything that has a sensible default can be found in
> >> ConnectionManager.GetParameters(). Sample values are mentioned in your
> >> previous mail to the Telepathy list and the replies to it, but I'll repeat
> >> for the benefit of other Gossip people: we don't have that functionality,
> >> but perhaps we should.
> >>
> >> Validating parameters as best we can before actually attempting
> >> registration would perhaps be a nice thing to add too. (I assume you're
> >> looking for "live" validation as the user types in parameters?)
> > 
> > Yeah would be nice to add a method which gets in argument a dictionary
> > with all parameters/values and checks if values are correct, then return
> > a dictionary with incorrect parameters/default-value (or
> > corrected-value ?)
> 
> As for some of the validation, I don't see a huge problem of having it
> in Gossip. Gossip will know what backends it supports anyway and having
> implementing some of these (preferably not default server/port) would be
> okay to do within the Gossip code.

We can make it in gossip but I think it make more sense in telepathy.

Xavier.

_______________________________________________
Gossip-dev mailing list
[email protected]
http://lists.imendio.com/mailman/listinfo/gossip-dev
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQBFMh/Q6dEBUn2qPAMRAp0QAJ9q8nsBXz9TqB07CWgr4+B1prjkqgCggnse
tI6FfTlXO8jlqttLRQsycrA=
=0j5l
-----END PGP SIGNATURE-----