depends on ZODB3

Bug #435516 reported by Barry Warsaw on 2009-09-23
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

lazr.restful's dependency graph ends up pulling in ZODB3, which is insane. :)
The culprit appears to be the use of

              from import TrustedAppPT

in lazr.restful/src/lazr/restful/

Here's an excerpt from bin/buildout -vv

Getting required ''
  required by lazr.restful 0.9.6.
Getting required 'zope.dublincore'
  required by 3.7.1.
Getting required 'zope.annotation'
  required by zope.dublincore 3.5.0.
Getting required 'ZODB3'
  required by zope.annotation 3.5.0.

Gary Poster (gary) on 2009-09-23
Changed in lazr.restful:
importance: Undecided → High
status: New → Triaged
assignee: nobody → Leonard Richardson (leonardr)
Leonard Richardson (leonardr) wrote :

Hmm. We use that class to generate the WADL file from the WADL template, and (less importantly) the default HTML reprepresentation of an entry. But it looks like there's no way to get without triggering that dependency.

Since there's only one complicated template, we could rewrite it to use some other templating engine that has fewer dependencies. Or we could change to not need zope.dublincore all the time. Those are the only solutions I see.

Barry Warsaw (barry) wrote :

Maybe the question to ask is why zope.dublincore requires ZODB3. I don't know anything about the former, but that one seems to be the insane one. ;)

Stephen Waterbury (waterbug) wrote :

That's because zope.dublincore stores dublin core properties as annotations, which use ZODB3 -- see Chapter 14, p. 255 et seq. in "Web Component Development with Zope 3". At first glance, Zope's "Annotations" system has a bad smell, for me at least -- I prefer to handle metadata using the same backend as other data, whereas Annotations uses ZODB3 and various adapter-oriented optimizations. Shudder.

Robert Collins (lifeless) wrote :

I'm fairly sure Leonard isn't looking at this now.

Changed in lazr.restful:
assignee: Leonard Richardson (leonardr) → nobody
Changed in lazr.restful:
importance: High → Low
summary: - lazr.restful depends on ZODB3
+ depends on ZODB3
Jim Fulton (jim-zope) wrote :

FTR, ZTK's annotation system is pluggable. I can't think of a good reason why the Dublin Core machinery should depend on how annotations are stored.

Perhaps zope.annotations requires ZODB because it has an implementation that can use ZODB. If this case, then I think the fix is ro remove ZODB3 as a dependency of zope.annotation.

Marius Gedminas (mgedmin) wrote :

Bug 878265 is about removing the zope.annotation dependency on ZODB3.

Tres Seaver (tseaver) wrote :

Note that currently-released 'zope.annotations' depends on 'BTrees' and 'persistent' (but not 'ZODB3' or 'ZODB'). See bug #878265 for discussion.

Tres Seaver (tseaver) wrote :

'ZODB3' is no longer a dependency (only `persistent`).

Changed in zope.dublincore:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers