Skip to content

Commit

Permalink
add some doc #214
Browse files Browse the repository at this point in the history
  • Loading branch information
cahytinne committed Jul 28, 2015
1 parent 6fc2bb3 commit e1848c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions atramhasis/audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ def audit(fn):
'''
use this decorator to audit an operation and to log the visit
* rdf routes with .rdf, .ttl extensions have html accept mimetypes,
* CSV routes with .csv extensions accept all mime types,
the response is not of the `pyramid.response.Response` type,
the origin is derived from the `pyramid.request.Request.url` extension.
* RDF routes with .rdf, .ttl extensions accept all mime types,
the origin is derived form the response content type.
* for REST and HTML the view results are not of the pyramid.response Response type,
* REST and HTML the view results are not of the `pyramid.response.Response` type,
the origin is derived from the accept header.
'''

Expand Down

0 comments on commit e1848c1

Please sign in to comment.