Whoops, guess I did not.<br><br><a href="http://github.com/mlaite/pony-build/commit/dbc6e54b65689ca27d71e7c9290ca897e789259a">http://github.com/mlaite/pony-build/commit/dbc6e54b65689ca27d71e7c9290ca897e789259a</a><br><br>Still passes all the context tests. Yay :) <br>
<br>Though, I think we may have to change up the tests for the c.run() try/except block a bit to make sure it works as intended. What those changes are? --I am not sure yet, have to formulate my thoughts I guess.<br><br>Ummmm, yup, that is about it for now. <br>
<br>Max<br><br><div class="gmail_quote">On Fri, Apr 23, 2010 at 11:18 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 Fri, Apr 23, 2010 at 01:12:24PM -0400, Max Laite wrote:<br>
&gt; Added some log_error stuff....<br>
&gt;<br>
&gt; Also added  reslist.append(c.get_results()) to the c.run() try/except. This<br>
&gt; should grab the results for passing to the server properly if exception is<br>
&gt; raised.<br>
&gt;<br>
&gt; Added the state of initialized to the client_info dict, so we can see status<br>
&gt; of that on web interface also.<br>
<br>
</div>sounds great - errm, did you push this to github?<br>
<div class="im"><br>
&gt; Then just an extra thought to throw out there....<br>
&gt;<br>
&gt; Do we want to provide a higher level of feedback somehow on the web side? Do<br>
&gt; we want to store the log data for reporting if they choose to use -v or<br>
&gt; --debug? To a file to upload?<br>
<br>
</div>Yes, that would be awesome.  And I think a good default.<br>
<font color="#888888"><br>
--titus<br>
</font><div><div></div><div class="h5"><br>
&gt; On Thu, Apr 22, 2010 at 4:06 PM, C. Titus Brown &lt;<a href="mailto:ctb@msu.edu">ctb@msu.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; On Thu, Apr 22, 2010 at 03:49:07PM -0400, Max Laite wrote:<br>
&gt; &gt; &gt; env<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Tests:<br>
&gt; &gt; &gt;<br>
&gt; &gt; <a href="http://github.com/mlaite/pony-build/commit/3b3e53d15f0f8a83b927310507c8fb3095d813e9" target="_blank">http://github.com/mlaite/pony-build/commit/3b3e53d15f0f8a83b927310507c8fb3095d813e9</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; pony_client:<br>
&gt; &gt; &gt;<br>
&gt; &gt; <a href="http://github.com/mlaite/pony-build/commit/150e3e1acab9cc78d13e85d181e3c705520b16a4" target="_blank">http://github.com/mlaite/pony-build/commit/150e3e1acab9cc78d13e85d181e3c705520b16a4</a><br>
&gt; &gt;<br>
&gt; &gt; Hey Max,<br>
&gt; &gt;<br>
&gt; &gt; a couple of comments :)<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt;<br>
&gt; &gt; &#39;init_status&#39; is not very clear as a flag name goes.  Maybe &#39;initialized&#39;?<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt;<br>
&gt; &gt; How about creating a new context object of type &#39;Context&#39; if context is<br>
&gt; &gt; None<br>
&gt; &gt; in the &#39;do&#39; function?  &#39;Context&#39; does a bunch of useful stuff, and it would<br>
&gt; &gt; simplify all of your &#39;if&#39; statements down to one &#39;if&#39; at the beginning:<br>
&gt; &gt;<br>
&gt; &gt;        if context is None:<br>
&gt; &gt;                context = Context()<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt;<br>
&gt; &gt; try/except with blanket &#39;except&#39; and no reporting, e.g.<br>
&gt; &gt;<br>
&gt; &gt;        try:<br>
&gt; &gt;                # foo bar baz<br>
&gt; &gt;        except:<br>
&gt; &gt;                # cleanup with no reporting<br>
&gt; &gt;<br>
&gt; &gt; is a Bad Idea.  I see a few problems with your code:<br>
&gt; &gt;<br>
&gt; &gt;  - &#39;success&#39; may still be set to True even if a c.run() call raises an<br>
&gt; &gt;   exception.<br>
&gt; &gt;<br>
&gt; &gt;  - there&#39;s no logging whatsoever; at the very least every &#39;except&#39; branch<br>
&gt; &gt;   should have some sort of log_error call.  Right now the excepts will<br>
&gt; &gt;   catch everything, including genuine programming errors, silently!<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt;<br>
&gt; &gt; Hmm, that&#39;s enough for now...<br>
&gt; &gt;<br>
&gt; &gt; thanks,<br>
&gt; &gt; --titus<br>
&gt; &gt;<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">C. Titus Brown, <a href="mailto:ctb@msu.edu">ctb@msu.edu</a><br>
</div></div></blockquote></div><br>