@view_config(route_name='admin:operations:object_log', renderer='/admin/operations-object_log.mako')
@view_config(route_name='admin:operations:object_log_paginated', renderer='/admin/operations-object_log.mako')
def object_log(self):
    _items_per_page = 25
    items_count = lib_db.get.get__OperationsObjectEvent__count(self.request.api_context)
    url_template = ('%s/operations/object-log/{0}' % self.request.registry.settings['app_settings']['admin_prefix'])
    (pager, offset) = self._paginate(items_count, url_template=url_template, items_per_page=_items_per_page)
    items_paged = lib_db.get.get__OperationsObjectEvent__paginated(self.request.api_context, limit=_items_per_page, offset=offset)
    return {'project': 'peter_sslers', 'OperationsObjectEvent__count': items_count, 'OperationsObjectEvents': items_paged, 'pager': pager, 'enable_redis': self.request.registry.settings['app_settings']['enable_redis'], 'enable_nginx': self.request.registry.settings['app_settings']['enable_nginx']}
@view_config(route_name='admin:operations:object_log', renderer='/admin/operations-object_log.mako')
@view_config(route_name='admin:operations:object_log_paginated', renderer='/admin/operations-object_log.mako')
def object_log(self):
    _items_per_page = 25
    items_count = lib_db.get.get__OperationsObjectEvent__count(self.request.api_context)
    url_template = ('%s/operations/object-log/{0}' % self.request.registry.settings['app_settings']['admin_prefix'])
    (pager, offset) = self._paginate(items_count, url_template=url_template, items_per_page=_items_per_page)
    items_paged = lib_db.get.get__OperationsObjectEvent__paginated(self.request.api_context, limit=_items_per_page, offset=offset)
    return {'project': 'peter_sslers', 'OperationsObjectEvent__count': items_count, 'OperationsObjectEvents': items_paged, 'pager': pager, 'enable_redis': self.request.registry.settings['app_settings']['enable_redis'], 'enable_nginx': self.request.registry.settings['app_settings']['enable_nginx']}