from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.AddressTypes import AddressType, AddressTypes
-from PLC.Auth import PasswordAuth
+from PLC.Auth import Auth
can_update = lambda (field, value): field in ['name', 'description']
address_type_fields = dict(filter(can_update, AddressType.fields.items()))
accepts = [
- PasswordAuth(),
+ Auth(),
Mixed(AddressType.fields['address_type_id'],
AddressType.fields['name']),
address_type_fields