Hi, here are short instruction for ZEO quick start :)<br><br>Setup ZEO server:<br><br>$ mkdir zeoserver<br>$ cd zeoserver<br><br>Take buildout.cfg template here: <a href="http://gist.github.com/366185">http://gist.github.com/366185</a><br>
<br>(or $ wget <a href="http://gist.github.com/raw/366185/1e8011c63b3ba2d617edf0b98be5ac3f7eec8392/zeoserver-buildout.cfg">http://gist.github.com/raw/366185/1e8011c63b3ba2d617edf0b98be5ac3f7eec8392/zeoserver-buildout.cfg</a> -O buildout.cfg)<br>
<br>Take bootstrap.py:<br><br>$ wget <a href="http://python-distribute.org/bootstrap.py">http://python-distribute.org/bootstrap.py</a><br><br>Edit buildout.cfg. Notice the name of filestorage (in the template - `foo`) - ZEO client will seek at ZEO server by this name (ZEO server can serve number of databases.) See more info in documention of zeo package and zc.zodbrecipes package.<br>
<br>Build and run the ZEO server:<br><br>$ python bootstrap.py<br>$ bin/buildout<br>$ bin/server start<br><br>Other options:<br><br>$ bin/server stop<br>$ bin/server status<br><br>See other scripts in bin/ directory.<br><br>
Next, make you BlueBream project be a ZEO client:. For this, change zope.conf like this: <a href="http://github.com/astoon/bbru/blob/master/etc/zeo.conf">http://github.com/astoon/bbru/blob/master/etc/zeo.conf</a> (edit, notice the name of the storage).<br>
<br>That&#39;s it, basically.<br><br><div class="gmail_quote">2010/6/6 Tamer Higazi <span dir="ltr">&lt;<a href="mailto:th982a@googlemail.com">th982a@googlemail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
dear Justin,<br>
Thanks for your quick answer. The next project I&#39;d love to pull out of<br>
the ground will be done entirely with bluebream.<br>
Therefor I&#39;d love to donate to your community sharing my business<br>
success with you. Is there a way to donate to your community?!<br>
<br>
Or will I have to pass through the Zope e.V. (Zope society in germany) ?!<br>
Another question guys, where may I find infos about ZEO (Zope<br>
Clustering) for bluebream? And what are GoF books ?!<br>
<br>
<br>
Tamer<br>
<br>
Am 05.06.2010 20:38, schrieb Justin Ryan:<br>
<div class="im">&gt;<br>
&gt;<br>
&gt; On Sat, Jun 5, 2010 at 8:11 AM, Tamer Higazi &lt;<a href="mailto:th982a@googlemail.com">th982a@googlemail.com</a><br>
</div><div><div></div><div class="h5">&gt; &lt;mailto:<a href="mailto:th982a@googlemail.com">th982a@googlemail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hi people!<br>
&gt;     sorry to ask you this last question.<br>
&gt;<br>
&gt;<br>
&gt; We hope it won&#39;t be the last. :)<br>
&gt;<br>
&gt;<br>
&gt;     After working out several books in python I can say, that I like this<br>
&gt;     language very much (perhaps I will deal so or so with the core api<br>
&gt;     more<br>
&gt;     or less).<br>
&gt;<br>
&gt;<br>
&gt; Python is a fine tool..<br>
&gt;<br>
&gt;<br>
&gt;     Django seems to be simple, but the DB interface is very limitized<br>
&gt;     and I<br>
&gt;     need ODBC connections, as well I have to define everything myself<br>
&gt;     specially according abject creation and re-usability. When I say<br>
&gt;     reusability, I am thinking in the level of design patterns like:<br>
&gt;<br>
&gt;     Singleton<br>
&gt;     Factory<br>
&gt;     Prototype<br>
&gt;     Builder<br>
&gt;<br>
&gt;     ...<br>
&gt;<br>
&gt;<br>
&gt; BlueBream / ZTK is influenced heavily by Design Patterns.  I often<br>
&gt; recommend the GoF book to folks not familiar with them as helpful in<br>
&gt; understanding the approach we take.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     There comes my question:<br>
&gt;<br>
&gt;     Does bluebream (i will never say zope again, I promise you, please<br>
&gt;     don&#39;t<br>
&gt;     hit me!) take care about objects which had been created at runtime<br>
&gt;     through a user request before?!<br>
&gt;<br>
&gt;<br>
&gt; No violence in BlueBream, we promise. ;)<br>
&gt;<br>
&gt;<br>
&gt;     Scenario web app built on bluebream:<br>
&gt;<br>
&gt;     1 a). User open site<br>
&gt;     1 b). bluebream creates object<br>
&gt;<br>
&gt;     2 a) 2nd user open site<br>
&gt;     2 b) bluebream determines that the object was previously created<br>
&gt;     before<br>
&gt;     and uses the object allocated in memory<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Short answer: Yes.<br>
&gt;<br>
&gt; Long answer: as the site grows to lots of objects, an in-memory cache<br>
&gt; of instantiated objects will have the most used.  In zope.conf you can<br>
&gt; set the cache-size in both number of objects, and size in MB.<br>
&gt;<br>
&gt; Best of luck!<br>
&gt;<br>
&gt; Justin<br>
<br>
</div></div><div><div></div><div class="h5">_______________________________________________<br>
bluebream mailing list<br>
<a href="mailto:bluebream@zope.org">bluebream@zope.org</a><br>
<a href="https://mail.zope.org/mailman/listinfo/bluebream" target="_blank">https://mail.zope.org/mailman/listinfo/bluebream</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Ilshad R. Khabibullin<br><a href="http://astoon.zwiki.org">http://astoon.zwiki.org</a><br>+7 922 600 56 06<br>