Re: [web2py] Re: Implementing a messaging system

2012-08-08 Thread Bruno Rocha
In this page: http://dev.s-cubism.com/web2py_plugins you can find a set of
plugins, one of them are message plugin. (experimental, but I used and it
works well)

Also there is a video (in portuguese) about real time message:
https://vimeo.com/38972256

-- 





[web2py] Re: Implementing a messaging system

2012-08-08 Thread shartha
Thanks for the replies. What I need is not a realtime messaging system, 
also that is something I have in mind for future extensions -- so still 
helpful, thanks. 

My need is more like an emailing system where each user will have an inbox, 
sent and trash folder, and messages are shown in a thread form. So in the 
inbox page, you see the list of all the messages you've received, and if 
you click on one, all the corresponding to that particular message appears.

Thanks

-- 





[web2py] Re: Implementing a messaging system

2012-08-08 Thread Massimo Di Pierro
web2py comes with a realime messaging engine in 
gluon/contrib/comet_messaging.py. It requires tornado installed. read the 
docstrings in the file for more info. It is not well documented but there 
is a video about it http://vimeo.com/18399381.

On Tuesday, 7 August 2012 23:58:33 UTC-5, shartha wrote:
>
>
> Hi, I'd like to implement a messaging system (between the users of the 
> website), and I need help to implement it. The way I've done it is to 
> create a message table that has fields for the sender, receiver, subject, 
> body, two boolean fields that shows whether the sender or the receiver have 
> deleted the message (such that it's not shown to them). This is not quite 
> working. I am thinking there must be a better way to do it, or somebody 
> might have already implemented something. The table is defined as:
>
> db.define_table('messages',
> Field('recipient_id',db.auth_user, label='To'),
> Field('subject','string'),
> Field('body','string'),
> Field('date','datetime'),
> Field('sender_id',db.auth_user),
> Field('sender_deleted','boolean'),
> Field('recipient_deleted','boolean'),
> )
>
> and as it obvious, some of the fields are values from the user database. 
> Could somebody tell me if I am on the right track or if changes need to be 
> made to my structure?
>
> Thanks!
>

--