projects
/
pgwui_common
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eadb735
)
Use new attrs style
author
Karl O. Pinc
<kop@karlpinc.com>
Sun, 14 Jul 2024 03:18:33 +0000
(22:18 -0500)
committer
Karl O. Pinc
<kop@karlpinc.com>
Sun, 14 Jul 2024 03:18:33 +0000
(22:18 -0500)
src/pgwui_common/views/page_views.py
patch
|
blob
|
history
diff --git
a/src/pgwui_common/views/page_views.py
b/src/pgwui_common/views/page_views.py
index 956c17cb7a08c4bf66d85a3c0b11191414924660..3f4c3101ab51406b08b6d83752f959e80fcf1f92 100644
(file)
--- a/
src/pgwui_common/views/page_views.py
+++ b/
src/pgwui_common/views/page_views.py
@@
-22,17
+22,17
@@
'''Return a page that's a file in the file system
'''
-import attr
+import attr
s
from pyramid.response import FileResponse
from pgwui_common import exceptions as ex
-@attr
.s
+@attr
s.define(slots=False)
class PageViewer():
'''A class of views that return file content
'''
- request = attr
.ib
()
+ request = attr
s.field
()
def page(self, page_name):
try: