Package gluon :: Module dal :: Class Set
[hide private]
[frames] | no frames]

Class Set

source code

object --+

a Set represents a set of records in the database,
the records are identified by the query=Query(...) object.
normally the Set is generated by DAL.__call__(Query(...))

given a set, for example
   set = db('Max')
you can:
   set.delete() # all elements in the set,, limitby=(0,10))
and take subsets:
   subset = set(<5)

Instance Methods [hide private]
__init__(self, db, query, ignore_common_filters=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
source code
__call__(self, query, ignore_common_filters=False) source code
_count(self, distinct=None) source code
_select(self, *fields, **attributes) source code
_delete(self) source code
_update(self, **update_fields) source code
as_dict(self, flat=False, sanitize=True) source code
as_xml(self, sanitize=True) source code
as_json(self, sanitize=True) source code
parse(self, dquery)
Experimental: Turn a dictionary into a Query object
source code
build(self, d)
Experimental: see .parse()
source code
isempty(self) source code
count(self, distinct=None, cache=None) source code
select(self, *fields, **attributes) source code
nested_select(self, *fields, **attributes) source code
delete(self) source code
update(self, **update_fields) source code
update_naive(self, **update_fields)
same as update but does not call table._before_update and _after_update
source code
validate_and_update(self, **update_fields) source code
delete_uploaded_files(self, upload_fields=None) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, db, query, ignore_common_filters=None)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

(Representation operator)

source code 


Overrides: object.__repr__
(inherited documentation)