From: David B. <Dav...@as...> - 2012-07-31 22:20:40
|
I would like some pointers on z3c.jbot as well. Under plone 4.1 2 just putting making the entry in my buildout.cfg eggs section allowed me to create a 'templates' directory and globably override all plone templates. However this fails on plone - in fact it is as if jbot is not even installed. I'm running plone in fg and don't see any exceptions or other messages. On Tue, Jul 31, 2012 at 3:05 AM, Kees Hink <kee...@gm...> wrote: > A follow-up: > > To rule out that the problem is in our testing setup, i created a > package called 'example.jbot' which overrides the portal logo (the file > 'example/jbot/jbot/plone.app.layout.viewlets.logo.pt' contains just > "JBOT OVERRIDE LOGO VIEWLET") > > Now the test http://pastie.org/4364374 (example/jbot/browser.txt) > fails for the test setup in http://pastie.org/4364350 > (example/jbot/testing.py), but when i add > xmlconfig.file('configure.zcml', z3c.jbot, > context=configurationContext) > to setupZope, it works. > > Our problem seems to be somewhere in our own stack, as the same trick > (explicitly adding zcml registration for z3c.jbot) does not seem to work > there. > > Kees > > > On 07/25/2012 08:14 AM, Dieter Maurer wrote: > > Kees Hink <kee...@gm...> writes: > > > >> Other stuff i tried and found out: > >> > >> A test in another package is also failing for the same reason - z3c.jbot > >> customizations not being applied, so it's likely not an issue of this > >> one package, but probably something to do with our testing setup. > >> > >> These tests fail on a branch which uses Plone 4.2-latest. The tests do > >> pass on the master branch, which uses 4.2b2. I tried using the older > >> (4.2b2) versions of plone.app.testing and other testing-related > >> packages, to no avail. > > > > This suggests some changes affecting "z3c.jbot" between these two > > Plone branches. Strange indeed. > > > >> I checked for the availability of browser layer marker interfaces (pdb > >> in view class) to make sure test requests have the needed interfaces. > >> Seems to be okay. > >> > >> Welcoming any further comments, > > > > I have not looked at the details of "z3c.jbot". Its documentation > > suggests that it is doing something strange with the traversal > > machinery. In Zope, there are two kinds of traversals, URL traversal > > (performed by "ZPublisher") and "[un]restrictedTraverse" (used > > by tales path expressions, among others). Both kinds of > > traversals share parts of their implementation but there are subtle > > differences. For example, "[un]restrictedTraverse" does not honor > > the "before_publishing_traverse" hook. Maybe, "z3c.jbot" relies > > (partly) on those hooks. > > > > At your place, I would have a look at the "z3c.jbot" implementation > > to find out how it works and get some hints what might go wrong > > in your specific test szenario. > > > > > > > ------------------------------------------------------------------------------ > > Live Security Virtual Conference > > Exclusive live event will cover all the ways today's security and > > threat landscape has changed and how IT managers can respond. Discussions > > will include endpoint security, mobile security and the latest in malware > > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Plone-Users mailing list > Plo...@li... > https://lists.sourceforge.net/lists/listinfo/plone-users > -- David Bear College of Public Programs at ASU 602-496-0424 |