From goffi at goffi.org Tue Feb 4 19:56:34 2014 From: goffi at goffi.org (Goffi) Date: Tue, 04 Feb 2014 19:56:34 +0100 Subject: [dev] [en] important updates Message-ID: english below Salut à tous, Il y a eu d'importantes modifications dans le c?ur de SàT, quelques remarques à leur sujet: - grâce à Link Mauve, Libervia se lance désormais comme un plugin d'application Twisted, ce qui permet notamment d'utiliser des arguments au lancement (pour le moment on peut uniquement changer de port avec l'argument --port). Pour lancer Libervia, assurez vous que votre PYTHONPATH est correct, mettez vous à la racine de Libervia et tapez $ twistd libervia tout simplement. Twistd -n libervia le lancera en premier plan, twistd -b libervia en mode de débogage. - XMLUI a été retravaillé en profondeur, ce qui devrait faciliter son implémentation dans les nouvelles interfaces - les paramètres de Wix sont désormais implémentés uniquement avec XMLUI - de même les transports (gateways) sont entièrement géré côté backend, le code côté interfaces a été supprimé - un conteneur AdvancedListContainer permet d'afficher des rangées de widgets. Il a été utilisé pour réimplémenter les transports côté backend, et pour la recherche dans un annuaire. - /!\ Urwid SàText doit être mis à jour pour pouvoir gérer ce conteneur - il est désormais possible de configurer un salon MUC. Pour le moment le menu n'a été implémenté que dans Primitivus, mais c'est très facile d'implémenter ailleurs. - les menus additionnels sont implémentés dans Libervia, et s'affiche selon le paramètre « security_limit » indiqué (il fonctionne comme pour les paramètres). La valeur de Libervia a été montée à 5. ++ Goffi --- G'day everybody, There have been major changes in SàT, some note about them: - thanks to Link Mauve, Libervia is now a Twisted application plugin, that allow the use of command line arguments (only --port command so far). To launch Libervia, be sure to have PYTHONPATH correctly setted, go to Libervia's root directory, and enter: $ twistd Libervia Twistd -n libervia will launch it in foreground, twistd -b will launch debug mode. - XMLUI has been refactored, that will make a lot easier its implementation in new frontends - Wix parameters are now only done with XMLUI - in the same spirit, gateways are full implemented in backend, frontend code has been removed - an AdvancedListContainer allow to show ranges of widgets. It has been used to reimplements transports in backend, and for directory search. - /!\ Urwid SàText must be updated to managed this container - it's now possible to configure a MUC room. So far, only Primitivus show the menu, but it's really easy to add it elsewhere. - additional menus are implemented in Libervia, and there are shown according to "security_limit" argument (same way as for parameters). Default value in Libervia is now 5. ++ Goffi From souliane at mailoo.org Mon Feb 10 14:52:17 2014 From: souliane at mailoo.org (Adrien) Date: Mon, 10 Feb 2014 14:52:17 +0100 Subject: [dev] [PATCH][EN] radiocol, atom feed... Message-ID: <52F8D991.4050403@mailoo.org> Hi, please find attached some patches. There are 2 files for sat and 3 for libervia. sat_1_room_games: better synchronization for radiocol (with a "jump to time" information when you leave and re-enter the room). Added some tests. sat_2_atom: new bridge method "getLastGroupBlogsAtom" to get the Atom feed of blog posts. Manage raw/rich/xhtml data for content/title in plugins groupblog, XEP-0071 and XEP-0277 (see details in the changeset comment). 2 bugfixes including one that you may want to forget, it's a strange issue at connection time and there may be a better solution. lib_1_muc: changes for radiocol + misc small things. lib_2_atom: Atom feed for blogposts is accessible from /blog//atom.xml + display titles in the static blog page. lib_3_contenteditable_status: use the HTML 5 "contenteditable" property to modify the user status message. Some patches to follow will focus on text editor refactorization, more use of "contenteditable" and a wysiwyg editor prototype. Regards, Adrien -------------- section suivante -------------- Une pièce jointe autre que texte a été nettoyée... Nom: 20140210_lib_1_muc.diff Type: text/x-diff Taille: 6204 octets Desc: non disponible URL: -------------- section suivante -------------- Une pièce jointe autre que texte a été nettoyée... Nom: 20140210_lib_2_atom.diff Type: text/x-diff Taille: 3816 octets Desc: non disponible URL: -------------- section suivante -------------- Une pièce jointe autre que texte a été nettoyée... Nom: 20140210_lib_3_contenteditable_status.diff Type: text/x-diff Taille: 10906 octets Desc: non disponible URL: -------------- section suivante -------------- Une pièce jointe autre que texte a été nettoyée... Nom: 20140210_sat_1_room_games.diff Type: text/x-diff Taille: 66479 octets Desc: non disponible URL: -------------- section suivante -------------- Une pièce jointe autre que texte a été nettoyée... Nom: 20140210_sat_2_atom.diff Type: text/x-diff Taille: 27484 octets Desc: non disponible URL: From robotux at debian.org Wed Feb 12 16:02:33 2014 From: robotux at debian.org (Thomas Preud'homme) Date: Wed, 12 Feb 2014 23:02:33 +0800 Subject: [dev] [EN] script distribute_setup.py outdated Message-ID: <8758866.Th6Jo0aWzo@brano> Hi everybody, we, the SàT maintainers [0] recently run into a problem in Debian due to the combination of an old distribute_setup.py script with a recent setuptools. setuptools has changed and so the old distribute_setup.py found in SàT and urwid_satext doesn't detect that setuptools is already installed. An updated distribute_setup.py script can be found at [1]. It should be a drop in replacement of the actual one. Not much seems to have changed except that it checks the version of setuptools and acts accordingly. [0] Matteo (in CC) and I in this case [1] http://python-distribute.org/distribute_setup.py We solved this in Debian by doing a backup of the old file and then copying the new one before doing anything. When the action being done is over, we copy back the old file in place so that none of the tool we use complain about the upstream code having changed. We would be very happy without this extra logic. :) Best regards, Thomas From souliane at mailoo.org Thu Feb 13 16:20:17 2014 From: souliane at mailoo.org (Adrien) Date: Thu, 13 Feb 2014 16:20:17 +0100 Subject: [dev] [PATCH][EN] more patches for microblogs Message-ID: <52FCE2B1.5010508@mailoo.org> Hi, this should be the last changes regarding microblogs to prepare the version 0.4 (beside bug fixes). I will point out in this message the things that could have a side effect for you to double check. Like on Monday, I separated the patches in several files, again 3 for libervia and 2 for sat... there are not updated versions of the previous files! You need to apply first the files from monday and then those ones, date and numerotation in the filenames should make it easy to not be confused in the order. -------------------------------------------------------------------- 20140213_sat_1_syntax These are small fixes regarding the syntax conversion. Please double check this changeset: plugin XEP_0277: check for XHTML namespace and decapsulate the content from the main div container And especially that other one: memory (sqlite): the result of pickle.dumps in addToHistory must be converted to unicode for the special characters to be stored. Things are working but it modifies how the extra field is written in the history table. Without this change I was receiving an error saying explicitely that 8bits encoding was not enough and that we should use unicode. This was happening when you send a one2one message from the rich text editor, because the rich content is stored in the extra field and pickle.dumps returns a str, not a unicode. -------------------------------------------------------------------- 20140213_sat_2_wysiwyg_img Small fix for html2text to not break the url and a method addURLToImage to makes the image clickable. I also added the "image" button definition for the rich content editor. -------------------------------------------------------------------- 20140213_lib_1_mblogs_refactorization A lot of refactorization affecting the microblogs, rich text editor and status panel. URLs are displayed in the status. I replaced the overwriting of __getattr__ in MicroblogEntry by some properties. Blog titles are handled. Most of the changes comes from the fact that MicroblogEntry is now delegating the display/edit related stuff to the LightTextEditor and RichTextEditor (both inherit from BaseTextEditor). RichTextEditor does also contain a LightTextEditor which is used for displaying the entry, and in the following patches I also use it for the wysiwyg edition. -------------------------------------------------------------------- 20140213_lib_2_wysiwyg A checkbox has been added in the rich text toolbar, so you can toggle between editing by hand with your chosen syntax or wysiwyg/preview. When you click the button, the command are applied on the selection. If no text is selected, most (all?) of the buttons will have no effect. -------------------------------------------------------------------- 20140213_lib_3_image_width Small fixes and set a fixed max-width property for the image within the microblog bubble. These images are clickable (when in display mode). That's it :) Regards, Adrien -------------- section suivante -------------- Une pièce jointe autre que texte a été nettoyée... Nom: 20140213_lib_1_mblogs_refactorization.diff Type: text/x-diff Taille: 62921 octets Desc: non disponible URL: -------------- section suivante -------------- Une pièce jointe autre que texte a été nettoyée... Nom: 20140213_lib_2_wysiwyg.diff Type: text/x-diff Taille: 16486 octets Desc: non disponible URL: -------------- section suivante -------------- Une pièce jointe autre que texte a été nettoyée... Nom: 20140213_lib_3_image_width.diff Type: text/x-diff Taille: 6573 octets Desc: non disponible URL: -------------- section suivante -------------- Une pièce jointe autre que texte a été nettoyée... Nom: 20140213_sat_1_syntax.diff Type: text/x-diff Taille: 7195 octets Desc: non disponible URL: -------------- section suivante -------------- Une pièce jointe autre que texte a été nettoyée... Nom: 20140213_sat_2_wysiwyg_img.diff Type: text/x-diff Taille: 9556 octets Desc: non disponible URL: From souliane at mailoo.org Fri Feb 14 21:32:57 2014 From: souliane at mailoo.org (Adrien) Date: Fri, 14 Feb 2014 21:32:57 +0100 Subject: [dev] [PATCH][EN] fix groupblog main entries Message-ID: <52FE7D79.9000202@mailoo.org> Hi, I noticed some errors on libervia.org, because of invalid entries in the sat pubsub database. These are some main items that are missing their comments node information (the "link" element). This patch checks for the items when they are received and if the info is missing, it will fix it by updating the entry with the link element that was missing. Regards, Adrien -------------- section suivante -------------- Une pièce jointe autre que texte a été nettoyée... Nom: 20140214_sat_blog_fix.diff Type: text/x-diff Taille: 8337 octets Desc: non disponible URL: From souliane at mailoo.org Mon Feb 17 12:31:46 2014 From: souliane at mailoo.org (Adrien) Date: Mon, 17 Feb 2014 12:31:46 +0100 Subject: [dev] [PATCH] Re: [EN] script distribute_setup.py outdated In-Reply-To: <8758866.Th6Jo0aWzo@brano> References: <8758866.Th6Jo0aWzo@brano> Message-ID: <5301F322.9000005@mailoo.org> Hi Thomas, thanks for the information and the suggested solution. The concerned file will be updated on the repository, you will appear as the changeset author (if that's ok for you). Regards, Adrien On 02/12/2014 04:02 PM, Thomas Preud'homme wrote: > Hi everybody, > > we, the SàT maintainers [0] recently run into a problem in Debian due to the > combination of an old distribute_setup.py script with a recent setuptools. > setuptools has changed and so the old distribute_setup.py found in SàT and > urwid_satext doesn't detect that setuptools is already installed. An updated > distribute_setup.py script can be found at [1]. It should be a drop in > replacement of the actual one. Not much seems to have changed except that it > checks the version of setuptools and acts accordingly. > > [0] Matteo (in CC) and I in this case > [1] http://python-distribute.org/distribute_setup.py > > We solved this in Debian by doing a backup of the old file and then copying the > new one before doing anything. When the action being done is over, we copy > back the old file in place so that none of the tool we use complain about the > upstream code having changed. We would be very happy without this extra logic. > :) > > Best regards, > > Thomas > > _______________________________________________ > dev mailing list > dev at goffi.org > http://lists.goffi.org/listinfo/dev > -------------- section suivante -------------- Une pièce jointe autre que texte a été nettoyée... Nom: sat_distribute_setup.diff Type: text/x-diff Taille: 9111 octets Desc: non disponible URL: From souliane at mailoo.org Mon Feb 17 12:35:39 2014 From: souliane at mailoo.org (Adrien) Date: Mon, 17 Feb 2014 12:35:39 +0100 Subject: [dev] [PATCH - fixed] Re: [EN] script distribute_setup.py outdated In-Reply-To: <5301F322.9000005@mailoo.org> References: <8758866.Th6Jo0aWzo@brano> <5301F322.9000005@mailoo.org> Message-ID: <5301F40B.60906@mailoo.org> Sorry, forget the file attached in my previous message. That's the good one with the changed author. Regards, Adrien On 02/17/2014 12:31 PM, Adrien wrote: > Hi Thomas, > > thanks for the information and the suggested solution. The concerned > file will be updated on the repository, you will appear as the changeset > author (if that's ok for you). > > Regards, > Adrien > > On 02/12/2014 04:02 PM, Thomas Preud'homme wrote: >> Hi everybody, >> >> we, the SàT maintainers [0] recently run into a problem in Debian due >> to the >> combination of an old distribute_setup.py script with a recent >> setuptools. >> setuptools has changed and so the old distribute_setup.py found in SàT >> and >> urwid_satext doesn't detect that setuptools is already installed. An >> updated >> distribute_setup.py script can be found at [1]. It should be a drop in >> replacement of the actual one. Not much seems to have changed except >> that it >> checks the version of setuptools and acts accordingly. >> >> [0] Matteo (in CC) and I in this case >> [1] http://python-distribute.org/distribute_setup.py >> >> We solved this in Debian by doing a backup of the old file and then >> copying the >> new one before doing anything. When the action being done is over, we >> copy >> back the old file in place so that none of the tool we use complain >> about the >> upstream code having changed. We would be very happy without this >> extra logic. >> :) >> >> Best regards, >> >> Thomas >> >> _______________________________________________ >> dev mailing list >> dev at goffi.org >> http://lists.goffi.org/listinfo/dev >> > > > > _______________________________________________ > dev mailing list > dev at goffi.org > http://lists.goffi.org/listinfo/dev > -------------- section suivante -------------- Une pièce jointe autre que texte a été nettoyée... Nom: sat_distribute_setup.diff Type: text/x-diff Taille: 9120 octets Desc: non disponible URL: From robotux at celest.fr Mon Feb 17 16:21:15 2014 From: robotux at celest.fr (Thomas Preud'homme) Date: Mon, 17 Feb 2014 23:21:15 +0800 Subject: [dev] [PATCH - fixed] Re: [EN] script distribute_setup.py outdated In-Reply-To: <5301F40B.60906@mailoo.org> References: <8758866.Th6Jo0aWzo@brano> <5301F322.9000005@mailoo.org> <5301F40B.60906@mailoo.org> Message-ID: <1396837.yjJ3laYUh4@brano> Le lundi 17 février 2014, 12:35:39 Adrien a écrit : > > forget the file attached in my previous message. That's the good one > with the changed author. Ok > On 02/17/2014 12:31 PM, Adrien wrote: > > Hi Thomas, > > > > thanks for the information and the suggested solution. The concerned > > file will be updated on the repository, you will appear as the changeset > > author (if that's ok for you). I don't mind either way. Do as it pleases you. :) Best regards, Thomas From goffi at goffi.org Fri Feb 28 22:43:58 2014 From: goffi at goffi.org (Goffi) Date: Fri, 28 Feb 2014 22:43:58 +0100 Subject: [dev] v 0.4.x + ce qui va venir / v 0.4.x + what come next Message-ID: <058fd9340e13a23c206f166d76403c56@mail.goffi.org> english below Salut, on a été tellement pris par la sortie de la 0.4 qu'on n'a même pas pensé à l'annonce ici. Salut à Toi v0.4.0 (0.4.1 même avec quelques petites corrections pour l'installation) est donc sortie, et marque une grosse avancée dans le projet (cf annonce). Nous espérons la version grand public pour l'été. Maintenant que la version est sortie, nous allons nous concentrer principalement sur l'aspect sécurité. annonce: http://www.goffi.org/post/2014/02/26/Salut-a-Toi-0.4.0 site officiel (nouvelle adresse): http://www.salut-a-toi.org Goffi -- G'day, we were so busy that we didn't think about announcing the release here. Salut à Toi v0.4.0 (0.4.1 actually, with some fixes for the installation) is indeed out, and show a big step in the project (see the announce). We hope to have a public proof release for this summer. Now that this version is out, we will concentrate for the next release on the security. announce: http://www.goffi.org/post/2014/02/26/Salut-%C3%A0-Toi-0.4.0 official website (new address): http://www.salut-a-toi.org Goffi From goffi at goffi.org Fri Feb 28 23:01:31 2014 From: goffi at goffi.org (Goffi) Date: Fri, 28 Feb 2014 23:01:31 +0100 Subject: [dev] =?utf-8?q?=5Bfr=5D_quelques_reflexions_=C3=A0_propos_de_la_?= =?utf-8?b?c8OpY3U=?= Message-ID: <40efbaae51fb18b437cea669b91f36d4@mail.goffi.org> Salut, premières réflexions en vrac à propos de la sécu: - il y a deux choses à gérer: la sécurité normalement pour un utilisateur, où la saisie de mot de passe en cas de chiffrement de la base ne doit pas être trop gênante, et la sécurité pour Libervia qui gère plusieurs utilisateurs, et où nous allons devoir faire une entorse à notre politique du « tout le métier côté backend » car les messages doivent être chiffrés avant que les administrateurs du backend puissent les lire. - dans Debian il y a le paquet python-potr pour gérer OTR, et la bonne surprise c'est que c'est du Python pur, autrement dit on peut espérer l'utiliser directement dans libervia. Pour GPG ça risque d'être plus compliqué, mais on peut peut-être le laisser de côté dans un premier temps - On va devoir laisser la possibilité d'utiliser un mot de passe du profil indépendant du mot de passe XMPP. Nous pouvons utiliser le mot de passe du profil comme clef à rentrer à chaque fois dans libervia, servant à chiffrer les messages en base de donnée, de manière à ce que les admins ne les connaissent pas (mais on ne peut garantir que la version du backend gérée par les admins n'a pas été modifiée). - pour le certificat de libervia.org, CAcert.org semble être la meilleure solution: connu, compatible avec notre philosophie, gratuit, et reconnu par les tests de sécurité de la XSF: https://xmpp.net/ - une implementation de Jingle serait probablement une bonne idée aussi pour le chiffrement (sans oublier la copie de fichier) - le statut de la conversation chiffré/pas chiffré doit apparaître très clairement à l'utilisateur. - quid du chiffrement des microblogs ? Si vous avez des choses à ajouter, allez-y :) ++ Goffi From matthieu.rakotojaona at gmail.com Fri Feb 28 23:14:23 2014 From: matthieu.rakotojaona at gmail.com (Matthieu Rakotojaona) Date: Fri, 28 Feb 2014 23:14:23 +0100 Subject: [dev] =?utf-8?q?=5Bfr=5D_quelques_reflexions_=C3=A0_propos_de_la_?= =?utf-8?b?c8OpY3U=?= In-Reply-To: <40efbaae51fb18b437cea669b91f36d4@mail.goffi.org> References: <40efbaae51fb18b437cea669b91f36d4@mail.goffi.org> Message-ID: <1393625469-sup-2885@kpad> Salut tout le monde, > - une implementation de Jingle serait probablement une bonne idée aussi > pour le chiffrement (sans oublier la copie de fichier) Pour ce point, Gajim [0] est tout-python et a implémenté Jingle [1], ca pourrait aider. En plus, ils sont GPLv3 et utilisent eux aussi hg. Que demande le peuple ? :) [0] https://gajim.org/ [1] https://trac.gajim.org/wiki/JingleFileTransfer -- Matthieu Rakotojaona -------------- section suivante -------------- Une pièce jointe autre que texte a été nettoyée... Nom: signature.asc Type: application/pgp-signature Taille: 966 octets Desc: non disponible URL: