Skip to content

Commit

Permalink
Merge pull request #14 from plone/gforcada-patch-1
Browse files Browse the repository at this point in the history
Document how to remove a record
  • Loading branch information
jensens committed Feb 16, 2016
2 parents 1144af5 + da72606 commit 4b08988
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ New:

Fixes:

- *add item here*
- Document how to remove a registry record with Python.
[gforcada]


1.3.8 (2016-02-08)
Expand Down
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,13 @@ This is sometimes useful in cases where it is not certain that the registry
has been initialised. You can also omit checking for individual fields, by
passing an ``omit`` parameter giving a tuple of field names.

Delete records
~~~~~~~~~~~~~~

To delete a record is as simple as::

del registry.records['plone.app.theming.interfaces.IThemeSettings.enabled']

Registry events
~~~~~~~~~~~~~~~

Expand Down

0 comments on commit 4b08988

Please sign in to comment.