예제 #1
0
파일: test.py 프로젝트: JeffHeard/sondra
        )),
        ("open", S.boolean(default=False)),
        ("price", S.string()),
        ("currency", S.string(default='USD')),
        ("customer_billed", S.datetime()),
        ("customer_paid", S.datetime()),
        ("customer_paid_in_full", S.boolean(default=True)),
        ("contractor_paid", S.datetime()),
        ("work_requirements", S.array(items=S.ref('work_requirement'))),
        ("union", S.boolean(description="True if the asset requires a union contractor.")),
        ("prevailing_wage", S.boolean(description="True if the asset requires prevailing wage.")),
        ("worksheets", S.array(items=S.ref('worksheets_for_status'))),
        ("work_performed", S.array(items=S.ref('work'))),
        ('arbitration_required', S.boolean(default=False)),
        ('arbitration_complete', S.boolean()),
        ('result_of_arbitration', S.textarea()),
        ('linked', S.fk('core', 'tickets', description="This is set if this ticket is listed in another ticket's links")),
        ('linked_tickets', S.fk_array('core', 'tickets',
            description="Other tickets that must be complete for this one to be considered finished. These are "
                        "often tickets that are co-located on the same site."))
    ))


schema2 = S.object(
    title="Ticket",
    description='A work order for Pronto',
    required=['owner', 'creator', 'created', 'updated'],
    properties=S.props(
        ("created", S.datetime()),
        ("updated", S.datetime()),
        ("owner", S.fk('api','core','customers', description="Customer who can administer this ticket")),
예제 #2
0
파일: test.py 프로젝트: rpangasa/sondra
        ("open", S.boolean(default=False)), ("price", S.string()),
        ("currency", S.string(default='USD')),
        ("customer_billed", S.datetime()), ("customer_paid", S.datetime()),
        ("customer_paid_in_full", S.boolean(default=True)), ("contractor_paid",
                                                             S.datetime()),
        ("work_requirements", S.array(items=S.ref('work_requirement'))),
        ("union",
         S.boolean(
             description="True if the asset requires a union contractor.")),
        ("prevailing_wage",
         S.boolean(description="True if the asset requires prevailing wage.")),
        ("worksheets", S.array(items=S.ref('worksheets_for_status'))),
        ("work_performed", S.array(items=S.ref('work'))),
        ('arbitration_required', S.boolean(default=False)),
        ('arbitration_complete', S.boolean()), ('result_of_arbitration',
                                                S.textarea()),
        ('linked',
         S.fk('core',
              'tickets',
              description=
              "This is set if this ticket is listed in another ticket's links")
         ),
        ('linked_tickets',
         S.fk_array(
             'core',
             'tickets',
             description=
             "Other tickets that must be complete for this one to be considered finished. These are "
             "often tickets that are co-located on the same site."))))

schema2 = S.object(