<div>If you want simple:</div>
<div>1. download this product and put it into your products directory. </div>
<div><a href="http://www.zope.org/Members/gtk/Boring">http://www.zope.org/Members/gtk/Boring</a></div>
<div>2. Start Zope and go to <a href="http://127.0.0.1:8080/manage">127.0.0.1:8080/manage</a> and add the Boring product. Click test, there is your url.</div>
<div>3. Modify the 'Boring' code and repeat.</div>
<div> </div>
<div>-Tim<br><br></div>
<div class="gmail_quote">On Tue, Mar 10, 2009 at 3:06 PM, David Zejda <span dir="ltr"><<a href="mailto:dvid@atlas.cz">dvid@atlas.cz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br></div>Thanks for a tips,<br><br>I have looked on the Guide you suggested.<br>I think I understand the concepts, but still missing something.<br>To make the simplest case,<br>
<br>1. I started with fresh instance prepared by the paster,<br>2. created this source:<br><br># src/my.py<br>class Contact(object):<br> "blah blah"<br><br> firstName = "aaaa"<br><br>c = Contact()<br>
<br>3. to the sys.path in bin/instance added the "/path/to/src" (which<br>contains my.py),<br>4. started instance and checked, that the /path/to/src is on loaded<br>sys.path,<br>5. pointed browser to localhost:8091/c/firstName .<br>
<br>Resource c not found, Zope says. Yes, it can't be SO simple, but<br>please, what should I do?<br><br>Thanks for your patience..<br><br>David<br><br>Lennart Regebro napsal(a):<br>
<div class="im">> On Sat, Mar 7, 2009 at 23:21, David Zejda <<a href="mailto:dvid@atlas.cz">dvid@atlas.cz</a>> wrote:<br>>> And now, please, what to do now, to have a few python lines somewhere in<br>>> the egg dir, which the zope would know how to deal with?<br>
><br>> The "egg dir" as you call it is a Python module, and you put Python<br>> code there. Zope knows how to deal with it, that is not the problem.<br>> What you need to do is get the Python code to deal with Zope. :)<br>
><br>>> And on what url will be the "hello world" available then?<br>><br>> That is completely up to you. :)<br>><br>><br>> The question now, is this Zope 3 or Zope 2?<br>><br>> For Zope 3, you should probably get a book. <a href="http://worldcookery.com/" target="_blank">http://worldcookery.com/</a><br>
> There was another book to in the beginning of Zope 3, but I don't know<br>> it has been updated.<br>> You could also, for Zope 3, opt to use Grok, which is a framework<br>> built on Zope 3 that makes Zope 3 easier: <a href="http://grok.zope.org/" target="_blank">http://grok.zope.org/</a><br>
><br>> For Zope 2, you can start here: <a href="http://docs.zope.org/zope2/zdgbook/source/" target="_blank">http://docs.zope.org/zope2/zdgbook/source/</a><br>> Then, you should probably buy the above book too. Zope 3 technologies<br>
> are getting very common in Zope 2.<br>><br></div>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.9 (GNU/Linux)<br>
<div class="im">Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org</a><br><br></div>iEYEARECAAYFAkm25GQACgkQ3oCkkciamVFQ0QCeOHfaWDV4dSvM+TaZKyIyNpKC<br>JpEAn0R65e8asVaogcfaCeQF5qDoj1vb<br>
=FtXB<br>-----END PGP SIGNATURE-----<br>
<div>
<div></div>
<div class="h5">_______________________________________________<br>Zope maillist - <a href="mailto:Zope@zope.org">Zope@zope.org</a><br><a href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">http://mail.zope.org/mailman/listinfo/zope</a><br>
** No cross posts or HTML encoding! **<br>(Related lists -<br> <a href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">http://mail.zope.org/mailman/listinfo/zope-announce</a><br> <a href="http://mail.zope.org/mailman/listinfo/zope-dev" target="_blank">http://mail.zope.org/mailman/listinfo/zope-dev</a> )<br>
</div></div></blockquote></div><br>