<html>
That script searches the release docn for .Net (1.x). IP relies on
.Net 2, so I think the .Start line should be<br>
Process.Start("<a href="http://lab.msdn.microsoft.com/searchbeta/Default.aspx?" eudora="autourl">http://lab.msdn.microsoft.com/searchbeta/Default.aspx?</a>"
+ query)<br>
<br>
Otherwise, some results will be missing or perhaps incomplete (or,
rarely, incorrect).<br>
<br>
At 04:27 PM 10/31/2005, Shawn Farkas wrote<br>
<br>
<blockquote type=cite cite><font face="arial" size=2 color="#000080">Pretty
easily done with a quick script:<br>
</font><br>
<font face="arial" size=2 color="#000080"> <br>
</font><br>
<font face="arial" size=2 color="#000080">import sys<br>
</font><br>
<font face="arial" size=2 color="#000080">sys.LoadAssemblyByName("System")<br>
</font><br>
<font face="arial" size=2 color="#000080">from System import String<br>
</font><br>
<font face="arial" size=2 color="#000080">from System.Diagnostics import
Process<br>
</font><br>
<font face="arial" size=2 color="#000080"> <br>
</font><br>
<font face="arial" size=2 color="#000080">def msdn(query):<br>
</font><br>
<font face="arial" size=2 color="#000080">
if query.GetType() == String.Empty.GetType():<br>
</font><br>
<font face="arial" size=2 color="#000080">
Process.Start("<a href="http://search.microsoft.com/search/results.aspx?View=msdn&st=b&c=4&s=1&swc=4&qu=" eudora="autourl">http://search.microsoft.com/search/results.aspx?View=msdn&st=b&c=4&s=1&swc=4&qu=</a>"
+ query)<br>
</font><br>
<font face="arial" size=2 color="#000080">
else:<br>
</font><br>
<font face="arial" size=2 color="#000080">
msdn(query.GetType().FullName)<br>
</font><br>
<font face="arial" size=2 color="#000080"> <br>
</font><br>
<font face="arial" size=2 color="#000080">Will launch the MSDN help page
in the user s default browser. I m not sure if there s a nicer way
to determine if the parameter is a string or not, and this also relies on
the fact that the browser will normalize the query string (if it contains
a space for instance) & but will break if you query contains the
& character. However, for debugging purposes, if you throw that
in your site.py you re all set
</font><font face="wingdings" size=2 color="#000080">J<br>
</font><br>
<font face="arial" size=2 color="#000080"> <br>
</font><br>
<font face="arial" size=2 color="#000080">-Shawn<br>
</font><br>
<font face="arial" size=2 color="#000080"> <br>
<hr>
<div align="center">
</font></div>
<font face="tahoma" size=2><b>From:</b>
users-bounces@lists.ironpython.com [<a href="mailto:users-bounces@lists.ironpython.com" eudora="autourl">mailto:users-bounces@lists.ironpython.com</a>] <b>On Behalf Of </b>Peli de Halleux (PELI)<br>
<b>Sent:</b> Monday, October 31, 2005 11:48 AM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] Need help in learning.<br>
</font><br>
<font face="Times New Roman, Times"> <br>
</font><br>
<font face="arial" size=2>Following up the improving the experience for new .Net users, IronPython could provide specialized commands to search msdn and pop up a internet window. For example something like<br>
</font><br>
<font face="arial" size=2> msdn "System.Security.Cryptography.SignedXml.ComputeSignature" // search based on literal<br>
</font><br>
<font face="arial" size=2> msdn foo // search based on the object type<br>
</font><br>
<font face="arial" size=2>[snip]</font></blockquote><br>
<br>
J. Merrill / Analytical Software Corp
</html>