Removing package directories.
[PyCIM.git] / CIM14 / IEC61968 / Common / ElectronicAddress.py
blobfca3c6b83444ff9f9bdd48f85b4a920cf029fe6f
1 # Copyright (C) 2010 Richard Lincoln
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA, USA
17 from CIM14.Element import Element
19 class ElectronicAddress(Element):
20 """Electronic address information.
21 """
23 def __init__(self, password='', email='', radio='', userID='', lan='', web='', status=None, *args, **kw_args):
24 """Initialises a new 'ElectronicAddress' instance.
26 @param password: Password needed to log in.
27 @param email: Email address.
28 @param radio: Radio address.
29 @param userID: User ID needed to log in, which can be for an individual person, an organisation, a location, etc.
30 @param lan: Address on local area network.
31 @param web: World Wide Web address.
32 @param status: Status of this electronic address.
33 """
34 #: Password needed to log in.
35 self.password = password
37 #: Email address.
38 self.email = email
40 #: Radio address.
41 self.radio = radio
43 #: User ID needed to log in, which can be for an individual person, an organisation, a location, etc.
44 self.userID = userID
46 #: Address on local area network.
47 self.lan = lan
49 #: World Wide Web address.
50 self.web = web
52 self.status = status
54 super(ElectronicAddress, self).__init__(*args, **kw_args)
56 _attrs = ["password", "email", "radio", "userID", "lan", "web"]
57 _attr_types = {"password": str, "email": str, "radio": str, "userID": str, "lan": str, "web": str}
58 _defaults = {"password": '', "email": '', "radio": '', "userID": '', "lan": '', "web": ''}
59 _enums = {}
60 _refs = ["status"]
61 _many_refs = []
63 # Status of this electronic address.
64 status = None