A message queue is also needed potentially...if this is real time...also
this is python...a monkey can do this...
On Aug 4, 2013 9:29 PM, "Alex Glaros" <[email protected]> wrote:

> Can anyone help me think of a primitive form of internal messaging between
> users of an app?  No external email, nothing fancy because I have limited
> programming skill.
>
> The only requirement is that a user can leave a message for another user,
> and the other user can reply.
>
> Example:
>
>
>    1. User-A leaves a message for User-B, "Hi, can you please give me
>    your external email address?"
>    2. User-B says: "Sure, here it is, [email protected]"
>
>
> So I suppose there might be a db.Internal_Mail table.
>
>
>    - auth_user_message_sender
>    - auth_user_message_recipient
>    - subject_of_message
>    - body_of_message
>    - date_time_sent
>    - has_this_message_been_read_yet?
>
>
>
>    1. set up permissions so that users can read all records in
>    db.Internal_Mail table that have their name either in the
>    auth_user_messsage_sender or  auth_user_message_recipient fields
>    2. set up permissions so that users can edit/delete all records in
>    db.Internal_Mail table that have their name in the auth_user_sender field
>
>
> Based on above, seems that smartgrid or grid could handle all of the
> requirements except knowing how to reply and to who, which seems
> complicated to program. To reply, perhaps would have a controller named
> reply_to_an_email.  It would let user
>
>    1. search through the emails
>    2. somehow select only one
>    3. then create a record in db.Internal_Mail table that switches
>    contents of sender and recipient fields of selected record, copies subject
>    line from the received message, and let's recipient fill out the body of 
> the
>    reply message.
>
>
> Any ideas? Is this already written elsewhere?  If not, would this be
> useful to anyone else?
>
> Thanks,
>
> Alex Glaros
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to