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:

127.0.0.1 - - [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:1.8.1.4) Gecko/20070515
Firefox/2.0.0.4"
zope.component.interfaces.ComponentLookupError:
((<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'')
/opt/zope/zope-3.4.0a1
/lib/python/zope/component/_api.py(103)getMultiAdapter()
-> raise ComponentLookupError(objects, interface, name)

And for edit, I get this:

127.0.0.1 - - [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:1.8.1.4) Gecko/20070515
Firefox/2.0.0.4"
zope.security.interfaces.Unauthorized:
(<z3c.pagelet.zcml.NextActionEditForm object at 0x2aaaaaf9dfd0>,
'browserDefault', 'zope.ManageContent')
/opt/zope/zope-3.4.0a1
/lib/python/zope/app/publication/browser.py(66)getDefaultTraversal()
-> 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!

Best,
Matt

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.
At
> some point I realized that I was retyping code I had previously deleted
and
> 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
more
> 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
follows:

> 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="movingtarget.skin.browserskin.IMovingTargetBrowserSkin"
>       type="zope.publisher.interfaces.browser.IBrowserSkinType"
>       name="MovingTargetBrowser"
>       />

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


http://localhost:8080/++skin++MovingTargetBrowser/MyNextActionObject/edit.html

Regards,
Hermann

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

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to