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 'MAKE_SHELF' 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"><<a href="mailto:ctb@msu.edu">ctb@msu.edu</a>></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>
> Just finally sat down to take a look at this stuff, the way you want it<br>
> done, and I have a question....<br>
><br>
> <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>
><br>
> Default value for filename is already :memory: . Which I would assume is the<br>
> name of the sqlite db.<br>
> But you know what they say about assumptions.<br>
><br>
> I guess my question is how does this "shelf" file tie in with sqlite3 or is<br>
> it one in the same?<br>
<br>
</div>the shelve file uses sqlite.<br>
<div class="im"><br>
> My original thought was the "shelf" file was the DB, and sqlite3 was just<br>
> the means of putting data in to it.....<br>
<br>
</div>no, vice versa.<br>
<div class="im"><br>
> I see all the calls between coordinator, dbsqlite and __init__ and can<br>
> follow the logical progression between them, but I guess I can't make the<br>
> 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>