Changeset 1234

Show
Ignore:
Timestamp:
10/20/08 10:51:44 (3 months ago)
Author:
elemoine
Message:

If the pylons project runs under WSGI, calling the count action returns an error, #246

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/camptocamp/MapFishUnhcr/server/python/mapfish/lib/protocol.py

    r1222 r1234  
    174174        if filter: 
    175175            filter = filter.to_sql_expr() 
    176         return self.Session.query(self.mapped_class).filter(filter).count(
     176        return str(self.Session.query(self.mapped_class).filter(filter).count()
    177177 
    178178    def show(self, request, response, id, format='json'):