~simone-orsi/django-lfs-ws/trunk

« back to all changes in this revision

Viewing changes to ws.py

  • Committer: simone.orsi at domsense
  • Date: 2010-03-26 10:34:13 UTC
  • Revision ID: simone.orsi@domsense.com-20100326103413-0d9jjhoutqbjitqm
updated todo. started writing docstrings

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
 
12
12
def get_objects(klass, filters=[]):
 
13
    """ @param klass: the klass of the object we are looking for
 
14
        @param filters: columns/fields to filter search on
 
15
        @return: a list of objects 
 
16
    """
 
17
    ### TODO allow extra params such as sort_by and so on
13
18
    qset = klass.objects
14
19
    # manage filters
15
20
    if filters: