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.
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.
34 #: Password needed to log in.
35 self
.password
= password
43 #: User ID needed to log in, which can be for an individual person, an organisation, a location, etc.
46 #: Address on local area network.
49 #: World Wide Web address.
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": ''}
63 # Status of this electronic address.