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

All Samples(29)  |  Call(0)  |  Derive(21)  |  Import(8)

src/v/o/vosae-app-HEAD/www/notification/api/resources/invoicing_notifications/invoicebase_changed_state.py   vosae-app(Download)
# -*- coding:Utf-8 -*-
 
from tastypie_mongoengine import fields
 
from notification.api.resources.base import NotificationBaseResource
class QuotationChangedStateResource(NotificationBaseResource):
    quotation = fields.ReferenceField(
        to='invoicing.api.resources.QuotationResource',
        attribute='quotation',
        help_text=HELP_TEXT['invoicebase_changed_state']['quotation']
class PurchaseOrderChangedStateResource(NotificationBaseResource):
    purchase_order = fields.ReferenceField(
        to='invoicing.api.resources.PurchaseOrderResource',
        attribute='purchase_order',
        help_text=HELP_TEXT['invoicebase_changed_state']['purchase_order']
class InvoiceChangedStateResource(NotificationBaseResource):
    invoice = fields.ReferenceField(
        to='invoicing.api.resources.InvoiceResource',
        attribute='invoice',
        help_text=HELP_TEXT['invoicebase_changed_state']['invoice']
class DownPaymentInvoiceChangedStateResource(NotificationBaseResource):
    down_payment_invoice = fields.ReferenceField(
        to='invoicing.api.resources.DownPaymentInvoiceResource',
        attribute='down_payment_invoice',
        help_text=HELP_TEXT['invoicebase_changed_state']['down_payment_invoice']

src/v/o/vosae-app-HEAD/www/notification/api/resources/invoicing_notifications/make_invoice.py   vosae-app(Download)
# -*- coding:Utf-8 -*-
 
from tastypie_mongoengine import fields
 
from notification.api.resources.base import NotificationBaseResource
class QuotationMakeInvoiceResource(NotificationBaseResource):
    quotation = fields.ReferenceField(
        to='invoicing.api.resources.DownPaymentInvoiceResource',
        attribute='quotation',
        help_text=HELP_TEXT['quotation_make_invoice']['quotation']
class QuotationMakeDownPaymentInvoiceResource(NotificationBaseResource):
    quotation = fields.ReferenceField(
        to='invoicing.api.resources.DownPaymentInvoiceResource',
        attribute='quotation',
        help_text=HELP_TEXT['quotation_make_invoice']['quotation']
class PurchaseOrderMakeInvoiceResource(NotificationBaseResource):
    purchase_order = fields.ReferenceField(
        to='invoicing.api.resources.DownPaymentInvoiceResource',
        attribute='purchase_order',
        help_text=HELP_TEXT['purchase_order_make_invoice']['purchase_order']
class PurchaseOrderMakeDownPaymentInvoiceResource(NotificationBaseResource):
    purchase_order = fields.ReferenceField(
        to='invoicing.api.resources.DownPaymentInvoiceResource',
        attribute='purchase_order',
        help_text=HELP_TEXT['purchase_order_make_invoice']['purchase_order']

src/v/o/vosae-app-HEAD/www/notification/api/resources/invoicing_notifications/invoice_cancelled.py   vosae-app(Download)
# -*- coding:Utf-8 -*-
 
from tastypie_mongoengine import fields
 
from notification.api.resources.base import NotificationBaseResource
class InvoiceCancelledResource(NotificationBaseResource):
    invoice = fields.ReferenceField(
        to='invoicing.api.resources.InvoiceResource',
        attribute='invoice',
        help_text=HELP_TEXT['invoice_cancelled']['invoice']
class DownPaymentInvoiceCancelledResource(NotificationBaseResource):
    down_payment_invoice = fields.ReferenceField(
        to='invoicing.api.resources.DownPaymentInvoiceResource',
        attribute='down_payment_invoice',
        help_text=HELP_TEXT['invoice_cancelled']['down_payment_invoice']

src/v/o/vosae-app-HEAD/www/notification/api/resources/contacts_notifications/entity_saved.py   vosae-app(Download)
from tastypie_mongoengine import fields
 
from notification.api.resources.base import NotificationBaseResource
from notification.api.doc import HELP_TEXT
from notification.models import contacts_notifications
class ContactSavedResource(NotificationBaseResource):
    contact_name = base_fields.CharField(
        attribute='contact__get_full_name',
        help_text=HELP_TEXT['entity_saved']['contact'],
    )
class OrganizationSavedResource(NotificationBaseResource):
    organization_name = base_fields.CharField(
        attribute='organization__corporate_name',
        help_text=HELP_TEXT['entity_saved']['organization'],
    )

src/v/o/vosae-app-HEAD/www/notification/api/resources/invoicing_notifications/invoicebase_saved.py   vosae-app(Download)
from tastypie_mongoengine import fields
 
from notification.api.resources.base import NotificationBaseResource
from notification.api.doc import HELP_TEXT
from notification.models import invoicing_notifications
class QuotationSavedResource(NotificationBaseResource):
    quotation_reference = base_fields.CharField(
        attribute='quotation__reference',
        help_text=HELP_TEXT['invoicebase_saved']['quotation'],
    )
class PurchaseOrderSavedResource(NotificationBaseResource):
    purchase_order_reference = base_fields.CharField(
        attribute='purchase_order__reference',
        help_text=HELP_TEXT['invoicebase_saved']['purchase_order'],
    )
class InvoiceSavedResource(NotificationBaseResource):
    invoice_reference = base_fields.CharField(
        attribute='invoice__reference',
        help_text=HELP_TEXT['invoicebase_saved']['invoice'],
    )
class DownPaymentInvoiceSavedResource(NotificationBaseResource):
    down_payment_invoice_reference = base_fields.CharField(
        attribute='down_payment_invoice__reference',
        help_text=HELP_TEXT['invoicebase_saved']['down_payment_invoice'],
    )

src/v/o/vosae-app-HEAD/www/notification/api/resources/organizer_notifications/event_reminder.py   vosae-app(Download)
from tastypie_mongoengine import fields
 
from notification.api.resources.base import NotificationBaseResource
from notification.api.doc import HELP_TEXT
from notification.models import organizer_notifications
class EventReminderResource(NotificationBaseResource):
    occurs_at = base_fields.DateTimeField(
        attribute='occurs_at',
        help_text=HELP_TEXT['event_reminder']['occurs_at'],
    )

src/v/o/vosae-app-HEAD/www/notification/api/resources/invoicing_notifications/make_purchase_order.py   vosae-app(Download)
# -*- coding:Utf-8 -*-
 
from tastypie_mongoengine import fields
 
from notification.api.resources.base import NotificationBaseResource
class QuotationMakePurchaseOrderResource(NotificationBaseResource):
    quotation = fields.ReferenceField(
        to='invoicing.api.resources.DownPaymentInvoiceResource',
        attribute='quotation',
        help_text=HELP_TEXT['quotation_make_purchase_order']['quotation']

src/v/o/vosae-app-HEAD/www/notification/api/resources/notification_resource.py   vosae-app(Download)
from django.conf.urls import url
 
from notification.api.resources.base import NotificationBaseResource
from notification.api.resources import contacts_notifications, invoicing_notifications, organizer_notifications
from notification.models import Notification
class NotificationResource(NotificationBaseResource):
    class Meta(NotificationBaseResource.Meta):
        resource_name = 'notification'
        queryset = Notification.objects.all()