Did I find the right examples for you? yes no

All Samples(242)  |  Call(48)  |  Derive(1)  |  Import(193)
The Message Model

src/l/e/leetveld-HEAD/src/leetveld/codereview/views.py   leetveld(Download)
  text = ((message.strip() + '\n\n' + details.strip())).strip()
  if draft is None:
    msg = models.Message(issue=issue,
                         subject=subject,
                         sender=my_email,
  """
  if draft is None:
    draft = models.Message(issue=request.issue, parent=request.issue,
                           sender=request.user.email(), draft=True)
  draft.text = request.POST.get('reviewmsg')
  # If the subject is long, this might come wrapped into more than one line.
  subject = ' '.join([x.strip() for x in subject.splitlines()])
  msg = models.Message(issue=issue, parent=issue,
                       subject=subject,
                       sender=db.Email(sender),

src/f/o/foursquare-codereview-HEAD/codereview/views.py   foursquare-codereview(Download)
  text = ((message.strip() + '\n\n' + details.strip())).strip()
  if draft is None:
    msg = models.Message(issue=issue,
                         subject=subject,
                         sender=my_email,
  """
  if draft is None:
    draft = models.Message(issue=request.issue, parent=request.issue,
                           sender=request.user.email(), draft=True)
  draft.text = request.POST.get('reviewmsg')
  # If the subject is long, this might come wrapped into more than one line.
  subject = ' '.join([x.strip() for x in subject.splitlines()])
  msg = models.Message(issue=issue, parent=issue,
                       subject=subject,
                       sender=db.Email(sender),

src/m/o/movide-HEAD/api/serializers.py   movide(Download)
from __future__ import unicode_literals
from django.forms import widgets
from rest_framework import serializers
from models import (Tag, Message, UserProfile, EmailSubscription, Classgroup,
                    Rating, ClassSettings, Resource, StudentClassSettings,
                try:
                    message = Message(
                        user=user,
                        classgroup=instance,
                        source="welcome",
                    message.save()
                    message = Message(
                        user=user,
                        classgroup=instance,
                        source="welcome",
 
        if instance is None:
            instance = Message(user=user, classgroup=classgroup)
        else:
            if instance.user != user:

src/e/d/edx-ora-HEAD/controller/message_util.py   edx-ora(Download)
from models import Message, Grader, Submission
import logging
 
from statsd import statsd
 
 
    msg=Message(
        grader=grade,
        message=message_dict['message'],
        originator=message_dict['originator'],

src/k/i/kimpine-HEAD/codereview/views.py   kimpine(Download)
  text = ((message.strip() + '\n\n' + details.strip())).strip()
  if draft is None:
    msg = models.Message(issue=issue,
                         subject=subject,
                         sender=my_email,
  """
  if draft is None:
    draft = models.Message(issue=request.issue, sender=request.user.email, draft=True)
  draft.text = request.POST.get('reviewmsg')
  draft.save()

src/m/a/Mail-Engine-HEAD/workers.py   Mail-Engine(Download)
from google.appengine.ext import webapp
 
from models import Message, Settings
import config
 
			recipients = []
 
		m = Message(recipients=recipients,
					sender=sender,
					subject=subject,

src/a/p/appengine-imified-HEAD/main.py   appengine-imified(Download)
from google.appengine.api import mail
 
from models import Message
import settings
 
            # we try and create the message
            message = Message(
                userkey = userkey,
                network = network,
                msg = msg,

src/c/o/coffeeshop-HEAD/coffeeshop.py   coffeeshop(Download)
#import urllib2
 
from models import Channel, Subscriber, Message, Delivery
from bucket import agoify
 
    # Save message
    message = Message(
      contenttype = contenttype,
      body = self.request.body,
      channel = channel,

src/w/e/webnodes-HEAD/views.py   webnodes(Download)
        if parent_author and parent_author != comment.author:
            message = models.Message(
                to=parent_author,
                type='comment_reply',
                comment=comment)
            if self.current_user != topic.author:
                message = models.Message(
                    to=topic.author,
                    type='topic_edit',
                    topic_edit=edit)
            if comment.author:
                comment.author.karma += 1
                message = models.Message(to=comment.author, sender=user)
                if isinstance(comment, models.Comment):
                    message.type = 'comment_upvote'
            password=password)
        if user:
            message = models.Message(to=user, type='welcome')
            message.put()
            self.set_secure_cookie('user', user.key_name)

src/f/l/flask-peewee-0.6.5/example/admin.py   flask-peewee(Download)
from app import app, db
from auth import auth
from models import User, Message, Note, Relationship
 
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next