@classmethod<EOL><INDENT>def list(cls, spec=None):<DEDENT>
if spec is None:<EOL><INDENT>spec = {}<EOL><DEDENT>xmlrpc = XMLRPCConnection()<EOL>try:<EOL><INDENT>pref_list = xmlrpc.connection.list_prefix(<EOL>{<EOL>'<STR_LIT>': spec,<EOL>'<STR_LIT>': AuthOptions().options<EOL>})<EOL><DEDENT>except xmlrpclib.Fault as xml_fault:<EOL><INDENT>raise _fault_to_exception(xml_fault)<EOL><DEDENT>res = list()<EOL>for pref in pref_list:<EOL><INDENT>p = Prefix.from_dict(pref)<EOL>res.append(p)<EOL><DEDENT>return res<EOL>
List prefixes.

            Maps to the function :py:func:`nipap.backend.Nipap.list_prefix` in
            the backend. Please see the documentation for the backend function
            for information regarding input arguments and return values.