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:<br><br>
<a href="http://127.0.0.1">127.0.0.1</a> - - [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:<a href="http://1.8.1.4">
1.8.1.4</a>) Gecko/20070515 Firefox/2.0.0.4"<br>zope.component.interfaces.ComponentLookupError:<br>((<z3c.pagelet.zcml.NextActionDisplayForm object at 0x2aaaaaffb6d0>, <zope.publisher.browser.BrowserRequest instance URL=
<a href="http://localhost:9080/++skin++MovingTargetBrowser/viewguy/index.html">http://localhost:9080/++skin++MovingTargetBrowser/viewguy/index.html</a>>, <movingtarget.nextaction.NextAction object at 0x2adbcf6cd2a8>), <InterfaceClass
z3c.form.interfaces.IWidgets>, u'')<br>> /opt/zope/zope-3.4.0a1/lib/python/zope/component/_api.py(103)getMultiAdapter()<br>-> raise ComponentLookupError(objects, interface, name)<br><br>And for edit, I get this:
<br><br><a href="http://127.0.0.1">127.0.0.1</a> - - [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:
<a href="http://1.8.1.4">1.8.1.4</a>) Gecko/20070515 Firefox/2.0.0.4"<br>zope.security.interfaces.Unauthorized:<br>(<z3c.pagelet.zcml.NextActionEditForm object at 0x2aaaaaf9dfd0>, 'browserDefault', '
zope.ManageContent')<br>> /opt/zope/zope-3.4.0a1/lib/python/zope/app/publication/browser.py(66)getDefaultTraversal()<br>-> return ob.browserDefault(request)<br><br><br>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!
<br><br>Best,<br>Matt<br><br><div><span class="gmail_quote">On 7/3/07, <b class="gmail_sendername">Hermann Himmelbauer</b> <<a href="mailto:dusty@qwer.tk">dusty@qwer.tk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Am Dienstag, 3. Juli 2007 14:57 schrieb Matt Bowen:<br>> Hi Stephen<br>><br>> I'm in the same place as Hermann -- I've followed formdemo's message<br>> package as closely as I can and made an object in debug mode, but when I
<br>> try to view or edit it, zope says it can't find index.html or edit.html. At<br>> some point I realized that I was retyping code I had previously deleted and<br>> was thus going in circles, so any help would be deeply appreciated. I'll
<br>> admit now that I'm pretty new to zope 3 and am trying to work both from<br>> your examples and doctests and Philipp's book, so I may be muddled in more<br>> than one place.<br>><br>> On 6/19/07, Stephan Richter <
<a href="mailto:srichter@cosmos.phy.tufts.edu">srichter@cosmos.phy.tufts.edu</a>> wrote:<br>> > Are you sure your skin has the correct layer in it? Have you looked at<br>> > the Hello World example in z3c.formdemo
?<br>><br>> Could you explain this a little more? I have declared a layer as follows:<br><br>> class IMovingTargetBrowserLayer(IFormLayer, IPageletBrowserLayer):<br>> """The moving target browser skin layer"""
<br>><br>> and registered it:<br>> <!-- Moving Target Skin Layer --><br>> <interface<br>> interface="movingtarget.layer.IMovingTargetBrowserLayer"<br>> type="zope.publisher.interfaces.browser.IBrowserSkinType
"<br>> name="MovingTargetLayer"<br>> /><br>><br>> Then I have a browser skin:<br>><br>> from z3c.formui import interfaces<br>> from movingtarget.layer import IMovingTargetBrowserLayer
<br>><br>> class IMovingTargetBrowserSkin(interfaces.IDivFormLayer,<br>> IMovingTargetBrowserLayer):<br>> """The Moving Target Browser skin"""<br>><br>> which I register:
<br>><br>> <zope:interface<br>> interface="movingtarget.skin.browserskin.IMovingTargetBrowserSkin"<br>> type="zope.publisher.interfaces.browser.IBrowserSkinType"<br>> name="MovingTargetBrowser"
<br>> /><br><br>Hmmm, silly question: Are you including the ++skin++ attribute in the URL? So<br>in your case it should be something like:<br><br><a href="http://localhost:8080/++skin++MovingTargetBrowser/MyNextActionObject/edit.html">
http://localhost:8080/++skin++MovingTargetBrowser/MyNextActionObject/edit.html</a><br><br>Regards,<br>Hermann<br><br>--<br><a href="mailto:x1@aon.at">x1@aon.at</a><br>GPG key ID: 299893C7 (on keyservers)<br>FP: 0124 2584 8809 EF2A DBF9 4902 64B4 D16B 2998 93C7
<br></blockquote></div><br>