diff options
| author | Michael Merickel <michael@merickel.org> | 2020-04-23 17:59:37 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-23 17:59:37 -0500 |
| commit | 4f5708909879cfb399e6d586df68acadc9990ed8 (patch) | |
| tree | 50cc251eb0588bc6d6eb8e1940581022920a7d9c /docs/quick_tutorial/databases | |
| parent | 48cf45b0a1ac04e701101fa18778164825edd429 (diff) | |
| parent | 6a249329b2e4528bd64b46b9a62c53505dec67a9 (diff) | |
| download | pyramid-4f5708909879cfb399e6d586df68acadc9990ed8.tar.gz pyramid-4f5708909879cfb399e6d586df68acadc9990ed8.tar.bz2 pyramid-4f5708909879cfb399e6d586df68acadc9990ed8.zip | |
Merge pull request #3571 from slav0nic/py3features
py3 features
Diffstat (limited to 'docs/quick_tutorial/databases')
| -rw-r--r-- | docs/quick_tutorial/databases/tutorial/models.py | 2 | ||||
| -rw-r--r-- | docs/quick_tutorial/databases/tutorial/views.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/quick_tutorial/databases/tutorial/models.py b/docs/quick_tutorial/databases/tutorial/models.py index bbfd480bb..8ac29b505 100644 --- a/docs/quick_tutorial/databases/tutorial/models.py +++ b/docs/quick_tutorial/databases/tutorial/models.py @@ -27,7 +27,7 @@ class Page(Base): body = Column(Text) -class Root(object): +class Root: __acl__ = [(Allow, Everyone, 'view'), (Allow, 'group:editors', 'edit')] diff --git a/docs/quick_tutorial/databases/tutorial/views.py b/docs/quick_tutorial/databases/tutorial/views.py index 4608c6d43..167f61715 100644 --- a/docs/quick_tutorial/databases/tutorial/views.py +++ b/docs/quick_tutorial/databases/tutorial/views.py @@ -15,7 +15,7 @@ class WikiPage(colander.MappingSchema): ) -class WikiViews(object): +class WikiViews: def __init__(self, request): self.request = request |
