Allura/allura/ext/user_profile/user_main.py
def send_user_message(self, subject='', message='', cc=None):
        """Handle POST for sending a message to another user.

        """
        self._check_can_message(c.user, c.project.user_project_of)

        if cc:
            cc = c.user.get_pref('email_address')
        if c.user.can_send_user_message():
            c.user.send_user_message(
                c.project.user_project_of, subject, message, cc)
            flash("Message sent.")
        else:
            flash("You can't send more than %i messages per %i seconds" % (
                c.user.user_message_max_messages,
                c.user.user_message_time_interval), 'error')
        return redirect(c.project.user_project_of.url())
Handle POST for sending a message to another user.

        
Handle POST for sending a message to another user.
Handle POST for sending a message to another user .
def send_user_message(self, subject='', message='', cc=None):
        self._check_can_message(c.user, c.project.user_project_of)
        if cc:
            cc = c.user.get_pref('email_address')
        if c.user.can_send_user_message():
            c.user.send_user_message(
                c.project.user_project_of, subject, message, cc)
            flash("Message sent.")
        else:
            flash("You can't send more than %i messages per %i seconds" % (
                c.user.user_message_max_messages,
                c.user.user_message_time_interval), 'error')
        return redirect(c.project.user_project_of.url())
def send_user_message ( self , subject = '' , message = '' , cc = None ) : self . _check_can_message ( c . user , c . project . user_project_of ) if cc : cc = c . user . get_pref ( 'email_address' ) if c . user . can_send_user_message ( ) : c . user . send_user_message ( c . project . user_project_of , subject , message , cc ) flash ( "Message sent." ) else : flash ( "You can't send more than %i messages per %i seconds" % ( c . user . user_message_max_messages , c . user . user_message_time_interval ) , 'error' ) return redirect ( c . project . user_project_of . url ( ) )
Handle POST for sending a message to another user.
Handle POST for sending a message to another user .
"""Handle POST for sending a message to another user.

        """
self
subject
message
cc