Alright, bare with me on the following...<br><br>So first dbsqlite.py is using the *.db arg you specify when going to run (opens it according to code... )....<br><br>Then it passes the shelve file to IntDictWrapper and we get the following....<br>
IntDictWrapper object at 0x101e0f350<br><br>IntDictWrapper.....I am only going by name but is it Initializing stuff for the sending of data in dictionaries? <br><br>So after IntDictWrapper call, dbsqlite.py shows the dbfile as catalog.sqlite<br>
<br>All I can tell from the catalog is it holds the &#39;MAKE_SHELF&#39; Line 34 in dbsqlite.<br><br>Then what the Coordinator is using finally for dbfile arg is IncDictWrapper object 0x101e0f350<br><br>Can you explain any of those step in server startup a bit more?<br>
<br>When ever i see 0xjibberish I always figure memory address......<br><br>Max<br><br><div class="gmail_quote">On Thu, Mar 25, 2010 at 10:32 PM, C. Titus Brown <span dir="ltr">&lt;<a href="mailto:ctb@msu.edu">ctb@msu.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Thu, Mar 25, 2010 at 02:58:04PM -0400, Max Laite wrote:<br>
&gt; Just finally sat down to take a look at this stuff, the way you want it<br>
&gt; done, and I have a question....<br>
&gt;<br>
&gt; <a href="http://github.com/ctb/pony-build/blob/master/pony_build/dbsqlite.py#L23" target="_blank">http://github.com/ctb/pony-build/blob/master/pony_build/dbsqlite.py#L23</a><br>
&gt;<br>
&gt; Default value for filename is already :memory: . Which I would assume is the<br>
&gt; name of the sqlite db.<br>
&gt; But you know what they say about assumptions.<br>
&gt;<br>
&gt; I guess my question is how does this &quot;shelf&quot; file tie in with sqlite3 or is<br>
&gt; it one in the same?<br>
<br>
</div>the shelve file uses sqlite.<br>
<div class="im"><br>
&gt; My original thought was the &quot;shelf&quot; file was the DB, and sqlite3 was just<br>
&gt; the means of putting data in to it.....<br>
<br>
</div>no, vice versa.<br>
<div class="im"><br>
&gt; I see all the calls between coordinator, dbsqlite and __init__ and can<br>
&gt; follow the logical progression between them, but I guess I can&#39;t make the<br>
&gt; connections in my brain on how it all works as one.<br>
<br>
</div>What happens if you run the pony-build server without a command line<br>
argument?  Does it use the :memory: database or not?  (print is your<br>
friend.)<br>
<br>
If not, make it so, number one!<br>
<br>
cheers,<br>
--titus<br>
<font color="#888888">--<br>
C. Titus Brown, <a href="mailto:ctb@msu.edu">ctb@msu.edu</a><br>
</font></blockquote></div><br>