You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/tutorials/writing-a-plugin-for-hermes.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -252,14 +252,14 @@ class YourPostprocessPlugin(HermesPostprocessPlugin):
252
252
The metadata from a deposit plugin can be loaded via
253
253
254
254
```python
255
-
ctx =HermesContext()
255
+
ctx =HermesCacheManager()
256
256
ctx.prepare_step("deposit")
257
257
with ctx[deposit_plugin_name] as manager:
258
258
deposition = manager["result"]
259
259
ctx.finalize_step("deposit")
260
260
```
261
261
262
-
where `deposit_plugin_name` is the name of the deposit plugin the data is loaded from and {py:class}`~hermes.model.context_manager.HermesContext` is imported from {py:mod}`hermes.model.context_manager`.
262
+
where `deposit_plugin_name` is the name of the deposit plugin the data is loaded from and {py:class}`~hermes.model.hermes_cache.HermesCacheManager` is imported from {py:mod}`hermes.model.hermes_cache`.
263
263
The loaded data is some valid JSON data and has no fixed format.
0 commit comments