Did I find the right examples for you? yes no

All Samples(15)  |  Call(3)  |  Derive(0)  |  Import(12)

src/c/h/Chess-HEAD/src/main.py   Chess(Download)
      prefs = models.Prefs.gql('where userEmail = :1', toEmail).get()
      if prefs:
        invite = models.Invite(toUser = prefs.user, toEmail = toEmail)
        invite.put()
        notify.sendInvite(user, invite)
      else:
        invite = models.Invite(toEmail = toEmail)

src/p/r/ProjectNarwhal-HEAD/narwhal/plugins/user/invite/views.py   ProjectNarwhal(Download)
from django.contrib.auth.decorators import login_required
 
from .models import Invite
from .forms import InviteForm
from django.contrib.auth.models import User
    def form_valid(self, form):
        invite = Invite(inviter = self.request.user, email_address = form.cleaned_data['email_address'])
        message = EmailMessage(subject=_('You have been invited to join %(site_name)s by %(user).') %\
                                            {'site_name': settings.SITE_NAME, 'user': invite.invitee.username },
                               body = loader.get_template("invite_email.html").render(RequestContext({'invite':invite})),

src/d/j/django-bouncer-0.3/bouncer/functions.py   django-bouncer(Download)
from django.utils.http import base36_to_int
from django.shortcuts import get_object_or_404
 
from .models import Invite, WaitList
 

src/d/j/django-bouncer-HEAD/bouncer/functions.py   django-bouncer(Download)
from django.utils.http import base36_to_int
from django.shortcuts import get_object_or_404
 
from .models import Invite, WaitList
 

src/m/o/mozillians-HEAD/mozillians/phonebook/cron.py   mozillians(Download)
import cronjobs
 
from models import Invite
 
log = commonware.log.getLogger('m.cron')

src/a/r/arkestrator-HEAD/mdc3/invites/admin.py   arkestrator(Download)
from django.contrib import admin
from models import Invite
 
class InviteAdmin(admin.ModelAdmin):
    list_display = ('invitee', 'inviter', 'created_on',

src/p/r/ProjectNarwhal-HEAD/narwhal/plugins/user/reputation/__init__.py   ProjectNarwhal(Download)
 
import conf # plugin specific settings
from models import Invite
 
class Inviter(Profile):

src/p/r/ProjectNarwhal-HEAD/narwhal/plugins/user/invite/__init__.py   ProjectNarwhal(Download)
 
import conf # plugin specific settings
from models import Invite
 
class Inviter(Profile):

src/p/r/ProjectNarwhal-HEAD/narwhal/plugins/user/invite/forms.py   ProjectNarwhal(Download)
 
from django.forms import *
from bootstrap.forms import *
 
from models import Invite

src/r/a/rain-HEAD/invite_registration/views.py   rain(Download)
from django.conf import settings
from rain.decorators import login_required
from models import Invite
from forms import RegistrationForm
import datetime

  1 | 2  Next