예제 #1
0
파일: test.py 프로젝트: rpangasa/sondra
         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")),