[IronPython] Accessing classes defined in hosting c# application

2008-09-10 Thread Hannes Rahm
Hello people! I am developing a small multiplayer game in c# (using xna for graphics). On the server side I am doing a lot of the logic programming in IronPython. I have gotten to the point where I want to inherit from my Entity class defined in the hosting application source (c#) so I can

Re: [IronPython] Accessing classes defined in hosting c# application

2008-09-10 Thread Michael Foord
Hannes Rahm wrote: Hello people! I am developing a small multiplayer game in c# (using xna for graphics). On the server side I am doing a lot of the logic programming in IronPython. I have gotten to the point where I want to inherit from my Entity class defined in the hosting application

Re: [IronPython] Accessing classes defined in hosting c# application

2008-09-10 Thread Curt Hagenlocher
Are you exposing your hosting assembly to Python by calling ScriptRuntime.LoadAssembly? If so, you ought to be able to import your Entity class directly into Python and derive from it. On Wed, Sep 10, 2008 at 4:32 AM, Hannes Rahm [EMAIL PROTECTED]wrote: Hello people! I am developing a small

[IronPython] In silverlight beta 2 is there any way to seperate the iron python assemblies from the app?

2008-09-10 Thread Vineet Jain (gmail)
This is from Michael's web site: - Including the IronPython assemblies in every application makes even the simplest Dynamic Silverlight application painfully large. In answer to this point in a comment on his blog, John Lam replied: Depending on how you configure your app, you can download

[IronPython] Usage of IronPython 2 Parser

2008-09-10 Thread Christian Schmidt
Dear community, please could anyone provide an example of how to create a parser in IronPython 2.0 Beta 4. The examples I found are outdated (based on IP 2.0a3) and my own try ended in NullReferenceException (see my post on 2008-09-08). Thanks Christian

[IronPython] SOAPAction header

2008-09-10 Thread O'Leary, Jim
I am trying to access a web service on a SharePoint site using IronPython. The web service can be accessed via a vb.NET app, but not from IronPython. Sniffing the packets from both IronPython and vb.NET transactions shows that the SOAP envelope and all headers are exactly the same in both

Re: [IronPython] Regression with importing in pre b5

2008-09-10 Thread Dino Viehland
Ok, I've confirmed the repro works in B3 but is broken in B4. Indeed it looks like we're just more compatible w/ CPython than we were before. I'm going to go ahead and close the bug. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dino Viehland Sent:

Re: [IronPython] Usage of IronPython 2 Parser

2008-09-10 Thread Dino Viehland
Here's how to do it for both beta 4 beta 5 in Python: import clr clr.AddReference('IronPython') clr.AddReference('Microsoft.Scripting') clr.AddReference('Microsoft.Scripting.Core') from IronPython.Compiler import Parser # beta 4 from Microsoft.Scripting.Hosting import HostingHelpers from

Re: [IronPython] SOAPAction header

2008-09-10 Thread Dino Viehland
Can you post the equivalent VB.NET code? My first guess would be there's an attribute somewhere which is carrying the action - but it is just a guess. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of O'Leary, Jim Sent: Wednesday, September 10, 2008 9:47 AM To:

Re: [IronPython] In silverlight beta 2 is there any way to seperate the iron python assemblies from the app?

2008-09-10 Thread Jimmy Schementi
My blog has up-to-date information about the Silverlight support for IPy. We don't have a well-known server to host the DLLs on, but you can definitely put the DLLs outside of the XAP. Checkout sdksdk-0.3.0-bin.zip/bin/Chiron.exe.config ... there's documentation in there that tells you how to

Re: [IronPython] Reopening closed issues

2008-09-10 Thread Jimmy Schementi
To clarify, imports today only look in the XAP file, they do not make a HTTP request. The HTTP request was made back in the SL1.1 days when we didn't have a XAP. In the future, this may also be able to look in IsolatedStorage, but we won't be making HTTP requests, since the request can only be

Re: [IronPython] DLR all languages release for Fullclient

2008-09-10 Thread Jimmy Schementi
The jury is still churning on releasing the source for JScript. When I know what's going on with this, you'll know. When DLR 1.0 is out on its own codeplex site, then we'll have both Desktop and Silverlight builds of all the languages that work with the same DLR. ~Jimmy From: [EMAIL

Re: [IronPython] sdlsdk-0.3.0 - cannot import struct?

2008-09-10 Thread Jimmy Schementi
FYI Dan, our source tree only builds against Silverlight 2 Beta 2; we haven't moved to an internal build since we want every build to work with the public Silverlight bits. I have built our code against an internal build, and this is minimal patching necessary to get it working, so we'll keep

Re: [IronPython] Regression with importing in pre b5

2008-09-10 Thread Dan Eloff
Turns out this one was my bad :) Sorry for wasting your time. -Dan On Wed, Sep 10, 2008 at 3:15 PM, Dino Viehland [EMAIL PROTECTED] wrote: Ok, I've confirmed the repro works in B3 but is broken in B4. Indeed it looks like we're just more compatible w/ CPython than we were before. I'm

Re: [IronPython] In silverlight beta 2 is there any way to seperate the iron python assemblies from the app?

2008-09-10 Thread Vineet Jain (gmail)
Thanks for the link. Your article was detailed and very helpful, my xap files are going to be nice and small now. Vineet From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jimmy Schementi Sent: Wednesday, September 10, 2008 5:57 PM To: Discussion of IronPython Subject:

Re: [IronPython] SOAPAction header

2008-09-10 Thread Miha Valencic
Jim, first of all, why aren't you using .NET infrastructrue to invoke WebService? I suspect this is the reason, because you forgot to set he HTTP header attribute, and infrastracture (are you using generated proxy stub in VB.NET?) does this for you. You should create you proxy by deriving from