Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(28)  |  Call(28)  |  Derive(0)  |  Import(0)

src/m/i/mirocommunity-HEAD/localtv/models.py   mirocommunity(Download)
 
        admin_new_comment = notification.NoticeType.objects.get(
            label="admin_new_comment")
 
        if video.user and video.user.email:
            video_comment = notification.NoticeType.objects.get(
                label="video_comment")
 
        comment_post_comment = notification.NoticeType.objects.get(
            label="comment_post_comment")
        previous_users = set()
        for previous_comment in comment.__class__.objects.filter(

src/p/i/pinax-tracker-HEAD/apps/dashboard/templatetags/dashboard_tags.py   pinax-tracker(Download)
def get_watched_tasks(context, user, asvar=None):
    val = Task.get_all().filter(assignee=user)
 
    notice_type = NoticeType.objects.get(label='task_observed_task_changed')
    content_type = ContentType.objects.get_for_model(Task)

src/m/i/mirocommunity-HEAD/localtv/user_profile/forms.py   mirocommunity(Download)
            initial = []
            for choice, label in field.choices:
                notice_type = notification.NoticeType.objects.get(label=choice)
                if notification.should_send(self.instance, notice_type, "1"):
                    initial.append(choice)
 
        for choice, label in self.fields['notifications'].choices:
            notice_type = notification.NoticeType.objects.get(label=choice)
            setting = notification.get_notification_setting(self.instance,
                                                            notice_type, "1")

src/m/i/mirocommunity-HEAD/localtv/migrations/0027_email_settings_to_notices.py   mirocommunity(Download)
def add_notice_for_admins(sitelocation, label):
    print 'adding notices for admins', label
    notice_type = notification.NoticeType.objects.get(
        label=label)
    for admin in sitelocation.admins.all():
def notice_has_admins(sitelocation, label):
    notice_type = notification.NoticeType.objects.get(
        label=label)
    for admin in sitelocation.admins.all():
        if should_send(admin, notice_type, "1"):

src/m/i/mirocommunity-HEAD/localtv/admin/approve_reject_views.py   mirocommunity(Download)
    if current_video.user and current_video.user.email:
        video_approved = notification.NoticeType.objects.get(
            label="video_approved")
        if notification.should_send(current_video.user, video_approved, "1"):
            subject = '[%s] "%s" was approved!' % (

src/m/i/mirocommunity-HEAD/localtv/utils.py   mirocommunity(Download)
def send_notice(notice_label, subject, message, fail_silently=True,
                site_settings=None, content_subtype=None):
    notice_type = notification.NoticeType.objects.get(label=notice_label)
    recipient_list = notification.NoticeSetting.objects.filter(
        notice_type=notice_type,

src/e/a/easy-transifex-HEAD/src/transifex/transifex/actionlog/models.py   easy-transifex(Download)
        message = _get_formatted_message(action_type, context)
 
    action_type_obj = NoticeType.objects.get(label=action_type)
 
    time = datetime.datetime.now()

src/t/r/transifex-HEAD/transifex/actionlog/models.py   transifex(Download)
        message = _get_formatted_message(action_type, context)
 
    action_type_obj = NoticeType.objects.get(label=action_type)
 
    time = datetime.datetime.now()

src/d/j/django-discussion-0.6/discussion/models.py   django-discussion(Download)
        """
        self.create_notice_type()
        return NoticeType.objects.get(label=self.notification_label)
 
    def create_notice_type(self):

src/d/j/django-frontend-notification-0.2.0/frontend_notification/views.py   django-frontend-notification(Download)
 
    if notification:
        note_label = notification.NoticeType.objects.get(default=status)
        notification.send(
            [recipient], note_label.label, {"from_user": request.user}, sender=sender)

  1 | 2  Next