[Cubicweb] Foaf implementation

Stéphane Bugat stephane.bugat at free.fr
Wed Jul 18 14:46:19 CEST 2012

Yes, absolutely, although this network is dedicated to a certain population... I'll have a look at your talk to check if the gap between what you wanted and what I would like to do is important or not.

I've put as promised on bitbucket a first draft of the source code: https://bitbucket.org/sbugat/foaf/overview

I have a real problem although: the hook written to synchronise emails between CWUser and the associated Person does not work. I have written a small script (see script_test.py) that creates a CWUser, and associates an email with it. When launched with cubicweb-ctl shell, the script does not stop nor outputs any error...

I've tried to select on match_rtype('primary_email') or match_rtype('use_email') but none of these two works. I really can't figure out why... Removing the syncEmailsHook in hooks.py works fine and the script ends properly.


----- Mail original -----
De: "Nicolas Chauvat" <nicolas.chauvat at logilab.fr>
À: "Stéphane Bugat" <stephane.bugat at free.fr>
Cc: cubicweb at lists.cubicweb.org
Envoyé: Mercredi 18 Juillet 2012 14:10:06
Objet: Re: [Cubicweb] Foaf implementation

Hi Stephane,

On Wed, Jul 18, 2012 at 10:30:22AM +0200, Stéphane Bugat wrote:

> After a small chat yesterday with Nicolas, I've decided to separate
> [...]
> * Creation of a 'in_contact_with' symmetric relation between 2 Person instances;
> * Creation of a workflowable entity 'ContactDemand'.

Oh, so you want a social network, now, don't you?

> 1. Does anyone {want,have time,intend to} contribute with me?

http://www.logilab.org/100436 should be enough to prove I am
interested. It is the text I presented at pycon.fr in 2010 about using
CubicWeb to develop a (semantic) open social network. I coded a part
of it and demoed it at the conference, but that was two years ago.

I am not sure I can commit to actually write some code in the coming
months, though, considering all the other things I am supposed to be
doing. But trying to contribute ideas and (positively) comment your
work sounds doable :)

Nicolas Chauvat

logilab.fr - services en informatique scientifique et gestion de connaissances  

More information about the Cubicweb mailing list