[web2py] Re: Social network plug-in

2017-03-30 Thread Anthony
db(query) returns a Set object. The Set class has a __call__ method . In Python, when a class has a __call__ method, instances of the class are *callable*, meaning they can be treated like

[web2py] Re: Social network plug-in

2017-03-29 Thread Nico de Groot
It's pythonic, an expression list see https://docs.python.org/2/reference/expressions.html for the basics. I didn't check but the web2py source code juste handles it like there is an & present. Nico de Groot -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Social network plug-in

2017-03-29 Thread subtilis
I know that the topic is very old but I am bumping my head for hours now. Why is the '&' missing? I am trying to implement something similar to one of my projects but cannot seem to find the logic behind this syntax (...I could use it like this but I need to understand how it works!) Can

[web2py] Re: Social network plug-in

2011-07-03 Thread Luther Goh Lu Feng
Looking through the source code, I deduce that db(db.connection.source==auth.user_id) (db.connection.target==request.args(1)).delete() is the same as db((db.connection.source==auth.user_id)) (db.connection.target==request.args(1))).delete() Is this new syntax? I did not recall reading it in

[web2py] Re: Social network plug-in

2011-06-21 Thread stefaan
'friendship' is an Ajax callback defined later on. [OFF TOPIC] Finally a concise definition of friendship that I can hope to understand at some point in the future ;)

[web2py] Re: Social network plug-in

2011-06-19 Thread niknok
Can someone post this somewhere where resume download is supported? I got a crappy connection right now... On Jun 12, 12:09 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Here is the source of the facebook clone  web2py.app.friends.w2p 1002KViewDownload

[web2py] Re: Social network plug-in

2011-06-19 Thread peter
I tried the facebook clone app, and when I logged in using my google id I got and internal error. friends/85.211.34.104.2011-06-19.21-09-18.b6e21f1b-1439-46c0-b2f9- a2d40bee1b20 On Jun 19, 7:41 am, niknok nikolai...@gmail.com wrote: Can someone post this somewhere where resume download is

[web2py] Re: Social network plug-in

2011-06-18 Thread François
Thank you Massimo ! François On 11 juin, 18:09, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Here is the source of the facebook clone  web2py.app.friends.w2p 1002KAfficherTélécharger

Re: [web2py] Re: Social network plug-in

2011-06-11 Thread Tito Garrido
+1 On Sat, Jun 11, 2011 at 12:47 AM, Luis Goncalves lgoncal...@gmail.comwrote: Ciao Massimo! Is it now available somewhere for download? It will be very useful!!! Thanks, Luis. -- Linux User #387870 . _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:___

Re: [web2py] Re: Social network plug-in

2011-06-11 Thread Stifan Kristi
thank you so much for your shared, massimo.

[web2py] Re: Social network plug-in

2011-06-10 Thread Luis Goncalves
Ciao Massimo! Is it now available somewhere for download? It will be very useful!!! Thanks, Luis.

[web2py] Re: Social network plug-in

2011-06-03 Thread François
I can answer 4). 'friendship' is an Ajax callback defined later on. The only problem with this otherwise excellent video is that sometimes we cannot see the ends of the lines. For example around 9:50 (at the end of the URL). François On 3 juin, 02:02, François gustave5...@gmail.com wrote: I

[web2py] Re: Social network plug-in

2011-06-02 Thread Massimo Di Pierro
Something like this? http://vimeo.com/21364178 On Jun 2, 10:09 am, François gustave5...@gmail.com wrote: Hello everybody, Is there a social network plug-in for Web2py, which for example allows users to send messages to each other ? Thank you very much, François

[web2py] Re: Social network plug-in

2011-06-02 Thread François
Thank you, this is nice and impressive ! Is there a place where I can download the code ? François On 2 juin, 17:57, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Something like this?http://vimeo.com/21364178 On Jun 2, 10:09 am, François gustave5...@gmail.com wrote: Hello

[web2py] Re: Social network plug-in

2011-06-02 Thread Massimo Di Pierro
I have it somewhere. I will post it on web2py appliances asap. On Jun 2, 3:06 pm, François gustave5...@gmail.com wrote: Thank you, this is nice and impressive ! Is there a place where I can download the code ? François On 2 juin, 17:57, Massimo Di Pierro massimo.dipie...@gmail.com wrote:

Re: [web2py] Re: Social network plug-in

2011-06-02 Thread Stifan Kristi
very cool, massimo, hope you can share it, so that we can learn from it, thank you so much. On Fri, Jun 3, 2011 at 4:03 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I have it somewhere. I will post it on web2py appliances asap. On Jun 2, 3:06 pm, François gustave5...@gmail.com

[web2py] Re: Social network plug-in

2011-06-02 Thread mart
LOL :) its been about 6 weeks and I'm still listening to the video and typing (then correcting my bad spelling :) ) - my daughter is keen on adding color and using it at school -because daddy (me) won't let her near the the official FaceBook ;) Although at the rate i seem to get things done

[web2py] Re: Social network plug-in

2011-06-02 Thread François
I have a few questions on the code. 1) The myfriends table is defined as : myfriends = db(Link.source==me)(Link.accepted==True) But if someone asks for my friendship and I accept, then he won't be in myfriends until I ask myself for his friendship (and he accepts). Am I right ? Maybe we could