Ejemplo n.º 1
0
Archivo: api.py Proyecto: GunnBumm/bisp
    def obj_get_list(self, request=None, **kwargs):
        filters = {}

        print Manager.get_available_buildings()
        b = Manager.lookup(1)

        if hasattr(request, 'GET'):
            # Grab a mutable copy.
            filters = request.GET.copy()

        print request
        print filters
        # Update with the provided kwargs.
        filters.update(kwargs)

        t = inspect.getmembers(BifBase, predicate=inspect.ismethod)

        return t