That was not at all a silly question! That got me a little closer -- I am
new enough not to have understood that i needed the ++skin++. Now, instead
of a 404 page, I get the following when I try to display my object: - - [03/Jul/2007:18:26:54 -0400] "GET
/++skin++MovingTargetBrowser/viewguy/ HTTP/1.1" 500 131 "-" "Mozilla/5.0
(X11; U; Linux i686 (x86_64); en-US; rv: Gecko/20070515
((<z3c.pagelet.zcml.NextActionDisplayForm object at 0x2aaaaaffb6d0>, <
zope.publisher.browser.BrowserRequest instance URL=
http://localhost:9080/++skin++MovingTargetBrowser/viewguy/index.html>, <
movingtarget.nextaction.NextAction object at 0x2adbcf6cd2a8>),
<InterfaceClass z3c.form.interfaces.IWidgets>, u'')
-> raise ComponentLookupError(objects, interface, name)

And for edit, I get this: - - [03/Jul/2007:18:30:30 -0400] "GET
/++skin++MovingTargetBrowser/viewguy/ HTTP/1.1" 500 201 "-" "Mozilla/5.0
(X11; U; Linux i686 (x86_64); en-US; rv: Gecko/20070515
(<z3c.pagelet.zcml.NextActionEditForm object at 0x2aaaaaf9dfd0>,
'browserDefault', 'zope.ManageContent')
-> return ob.browserDefault(request)

viewguy is what I called MyNextActionObject. I'm not exactly sure what the
error first error means, but at least it's something. The second one has to
do with permissions, which I may be able to figure out yet. Thank you!


On 7/3/07, Hermann Himmelbauer <[EMAIL PROTECTED]> wrote:

Am Dienstag, 3. Juli 2007 14:57 schrieb Matt Bowen:
> Hi Stephen
> I'm in the same place as Hermann -- I've followed formdemo's message
> package as closely as I can and made an object in debug mode, but when I
> try to view or edit it, zope says it can't find index.html or edit.html.
> some point I realized that I was retyping code I had previously deleted
> was thus going in circles, so any help would be deeply appreciated. I'll
> admit now that I'm pretty new to zope 3 and am trying to work both from
> your examples and doctests and Philipp's book, so I may be muddled in
> than one place.
> On 6/19/07, Stephan Richter <[EMAIL PROTECTED]> wrote:
> > Are you sure your skin has the correct layer in it? Have you looked at
> > the Hello World example in z3c.formdemo?
> Could you explain this a little more? I have declared a layer as

> class IMovingTargetBrowserLayer(IFormLayer, IPageletBrowserLayer):
>     """The moving target browser skin layer"""
> and registered it:
>     <!-- Moving Target Skin Layer -->
>   <interface
>       interface="movingtarget.layer.IMovingTargetBrowserLayer"
>       type="zope.publisher.interfaces.browser.IBrowserSkinType"
>       name="MovingTargetLayer"
>     />
> Then I have a browser skin:
> from z3c.formui import interfaces
> from movingtarget.layer import IMovingTargetBrowserLayer
> class IMovingTargetBrowserSkin(interfaces.IDivFormLayer,
> IMovingTargetBrowserLayer):
>     """The Moving Target Browser skin"""
> which I register:
>   <zope:interface
>       interface=""
>       type="zope.publisher.interfaces.browser.IBrowserSkinType"
>       name="MovingTargetBrowser"
>       />

Hmmm, silly question: Are you including the ++skin++ attribute in the URL?
in your case it should be something like:



GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7

Zope3-users mailing list

Reply via email to