File: models.py

package info (click to toggle)
pyamf 0.6.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,692 kB
  • sloc: python: 17,944; xml: 455; makefile: 116; sql: 38; java: 11; sh: 7
file content (30 lines) | stat: -rw-r--r-- 542 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.


"""
Model classes for the SQLAlchemy Addressbook example.

@since: 0.4.1
"""


class User(object):
    def __init__(self):
        self.first_name = None
        self.last_name = None
        self.emails = []
        self.phone_numbers = []
        self.created = None


class PhoneNumber(object):
    def __init__(self):
        self.label = None
        self.number = None


class Email(object):
    def __init__(self):
        self.label = None
        self.email = None