Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
persistent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
persistent
Commits
95bee1ef
Commit
95bee1ef
authored
Jun 28, 2012
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename 'test_overriding_attrs.py' -> 'attrhooks.py'.
It is now examples for the doctests, and no longer a test module.
parent
590ae47e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
docs/api/attributes.rst
docs/api/attributes.rst
+4
-4
persistent/tests/attrhooks.py
persistent/tests/attrhooks.py
+0
-0
No files found.
docs/api/attributes.rst
View file @
95bee1ef
...
...
@@ -14,7 +14,7 @@ attribute that isn't handled by the default machinery.
.. doctest::
>>> from persistent.tests.
test_overriding_attr
s import OverridesGetattr
>>> from persistent.tests.
attrhook
s import OverridesGetattr
>>> o = OverridesGetattr()
>>> o._p_changed
False
...
...
@@ -30,7 +30,7 @@ We'll save the object, so it can be deactivated:
.. doctest::
>>> from persistent.tests.
test_overriding_attr
s import _resettingJar
>>> from persistent.tests.
attrhook
s import _resettingJar
>>> jar = _resettingJar()
>>> jar.add(o)
>>> o._p_deactivate()
...
...
@@ -61,7 +61,7 @@ Our sample class takes initial values as keyword arguments to the constructor:
.. doctest::
>>> from persistent.tests.
test_overriding_attr
s import VeryPrivate
>>> from persistent.tests.
attrhook
s import VeryPrivate
>>> o = VeryPrivate(x=1)
...
...
@@ -89,7 +89,7 @@ Next, we'll save the object in a database so that we can deactivate it:
.. doctest::
>>> from persistent.tests.
test_overriding_attr
s import _rememberingJar
>>> from persistent.tests.
attrhook
s import _rememberingJar
>>> jar = _rememberingJar()
>>> jar.add(o)
>>> o._p_deactivate()
...
...
persistent/tests/
test_overriding_attr
s.py
→
persistent/tests/
attrhook
s.py
View file @
95bee1ef
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment