IMasterObject adaptation doesn't work for native storm model objects
Bug #591841 reported by
Julian Edwards
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Stuart Bishop |
Bug Description
I have this code:
{{{
IMasterObje
}}}
where 'subscriber' is an instance of ArchiveSubscriber, a native Storm class. This code falls over with an error:
*** TypeError: ('could not adapt', <lp.soyuz.
Looking in the zcml it appears that IDBObject is only implemented by SQLBase:
<class class="
<implements interface=
</class>
so I can't adapt native Storm objects in this way.
Related branches
Changed in launchpad-foundations: | |
status: | Fix Committed → Fix Released |
tags: |
added: qa-untestable removed: qa-needstesting |
To post a comment you must log in.
=== modified file 'lib/canonical/launchpad/webapp/configure.zcml'launchpad/webapp/configure.zcml 2010-06-08 15:57:09 +0000launchpad/webapp/configure.zcml 2010-06-10 11:33:24 +0000
provides="canonical.launchpad.interfaces.IMasterObject"launchpad.interfaces.IDBObject"interface.Interface"
trusted="yes"
factory="canonical.launchpad.webapp.adapter.get_object_from_master_store"
--- lib/canonical/
+++ lib/canonical/
@@ -633,7 +633,7 @@
/>
<adapter
- for="canonical.
+ for="zope.
/>