This class provides methods to manage list contents and
operations.
This class may be called itself, but all the useful methods it has
are also available on the Service object, which delegates to this
class, while other methods are more coneniently accessed through the
list objects themselves.
NB: The methods for creating lists can conflict in threaded
applications, if two threads are each allocated the same unused list
name. You are strongly advised to use locks to synchronise any list
creation requests (create_list, or intersect, union, subtract, diff)
unless you are choosing your own names each time and are confident that
these will not conflict.
|
__init__(self,
service)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
refresh_lists(self)
Update the list information with the latest details from the server |
source code
|
|
|
get_list(self,
name)
Return a list from the service by name, if it exists |
source code
|
|
|
|
|
get_all_lists(self)
Get all the lists on a webservice |
source code
|
|
|
get_all_list_names(self)
Get all the names of the lists in a particular webservice |
source code
|
|
|
|
|
|
|
|
|
_create_list_from_queryable(self,
queryable,
name,
description,
tags) |
source code
|
|
|
create_list(self,
content,
list_type='
' ,
name=None,
description=None,
tags=[ ] ,
add=[ ] )
Create a new list in the webservice
=================================== |
source code
|
|
|
parse_list_upload_response(self,
response)
Intepret the response from the webserver to a list request, and
return the List it describes |
source code
|
|
|
delete_lists(self,
lists)
Delete the given lists from the webserver |
source code
|
|
|
remove_tags(self,
to_remove_from,
tags)
Returns the current tags of this list. |
source code
|
|
|
add_tags(self,
to_tag,
tags)
Returns the current tags of this list. |
source code
|
|
|
get_tags(self,
im_list)
Returns the current tags of this list. |
source code
|
|
|
|
|
|
|
__exit__(self,
exc_type,
exc_val,
traceback) |
source code
|
|
|
delete_temporary_lists(self)
Delete all the lists considered temporary (those created without
names) |
source code
|
|
|
intersect(self,
lists,
name=None,
description=None,
tags=[ ] )
Calculate the intersection of a given set of lists, and return the
list representing the result |
source code
|
|
|
union(self,
lists,
name=None,
description=None,
tags=[ ] )
Calculate the union of a given set of lists, and return the list
representing the result |
source code
|
|
|
xor(self,
lists,
name=None,
description=None,
tags=[ ] )
Calculate the symmetric difference of a given set of lists, and
return the list representing the result |
source code
|
|
|
subtract(self,
lefts,
rights,
name=None,
description=None,
tags=[ ] )
Calculate the subtraction of rights from lefts, and return the list
representing the result |
source code
|
|
|
_do_operation(self,
path,
operation,
lists,
name,
description,
tags) |
source code
|
|
|
make_list_names(self,
lists)
Turn a list of things into a list of list names |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|