Make ZStorm accessible as non-global object
Bug #887514 reported by
Free Ekanayaka
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Storm |
In Progress
|
Medium
|
Free Ekanayaka |
Bug Description
Currently the standard way to access a ZStorm instance from a Storm object is to call queryUtility(
This can be a problem for applications needing to have more than one ZStorm object, for example a wsgi application that composes two other wsgi applications that have different models.
It also helps with unit-testing in case one wants to run them in parallel in the same process.
Related branches
lp:~free.ekanayaka/storm/zstorm-access
Ready for review
for merging
into
lp:storm
- Gustavo Niemeyer: Needs Information
- Storm Developers: Pending requested
-
Diff: 216 lines (+94/-9)4 files modifiedstorm/zope/testing.py (+16/-7)
storm/zope/zstorm.py (+18/-0)
tests/zope/testing.py (+11/-1)
tests/zope/zstorm.py (+49/-1)
Changed in storm: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Free Ekanayaka (free.ekanayaka) |
milestone: | none → 0.20 |
Changed in storm: | |
milestone: | 0.20 → 0.21 |
Changed in storm: | |
milestone: | 0.21 → 0.22 |
Changed in storm: | |
milestone: | 0.22 → none |
To post a comment you must log in.