Re: [IronPython] IronPython 1.1.2 eta?

2008-06-30 Thread Keith J. Farmer
You can just not compile a hard dependency on System.Core, and instead import it manually. Basically, create a plug-in style architecture for dealing with it: Start: DLR Import: DLR + LINQ-for-DLR plugin (+ System.Core, required by plugin) So such a plugin would be importable,

Re: [IronPython] IronPython 1.1.2 eta?

2008-06-30 Thread Dino Viehland
The good news is this is basically inevitable but will take some time to achieve :). In the latest source code, I guess currently available only through the IronRuby SVN, you'll see that the namespaces of the DLR expression trees have moved to System.Linq.Expressions. This is the completion of

Re: [IronPython] IronPython 1.1.2 eta?

2008-06-30 Thread Keith J. Farmer
(Python lambdas to CLR Expression Trees.. my one wish aside from C#3-style extension method resolution) (but y'all knew that, anyway) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dino Viehland Sent: Monday, June 30, 2008 1:00 PM To: Discussion of Iron

Re: [IronPython] Python Generation

2008-06-30 Thread Michael Stephens
Thanks.. I've got a basic example up. Michael Stephens Electrical Engineering Graduate Student University of Wyoming [EMAIL PROTECTED] or [EMAIL PROTECTED] On Mon, Jun 30, 2008 at 7:33 PM, Dino Viehland <[EMAIL PROTECTED]> wrote: > You could take a look at IronPython 1.x's CodeDom support in >

Re: [IronPython] Python Generation

2008-06-30 Thread Dino Viehland
You could take a look at IronPython 1.x's CodeDom support in IronPython.CodeDom.Provider. From there you can get the generator and throw CodeDom trees at it. It can generate a bunch of ugliness to support WinForms but by default it doesn't do that. Unfortunately it hasn't been updated to 2.0

[IronPython] Python Generation

2008-06-30 Thread Michael Stephens
I am writing a macro->python translation utility for our system. I thought I struck it rich when i found IronPython.Compiler.Ast . But there doesn't seem to be a good way to take these things and generate python code (strings). If anyone knows any spiffy libraries out there to do this that would

[IronPython] LeeBeLLuL speak now with IronRuby

2008-06-30 Thread Gerard Mulot
A simple demo is available to download at http://www.leebellul.com showing How to use infopath forms in the hosting browser How to use xsl and xml to generate dynamic menus How to interact between Javascript and IronRuby How to interact between IronRuby and Javascript Ho

Re: [IronPython] Another deployment question...

2008-06-30 Thread Michael Foord
Bob Rosembob wrote: Hi there, I have a couple of questions. 1. If I'm using IronPython to call Python function from my C# app. What do I need to deploy my project? I added references to my project to the following dlls: /IronPython.dlll IronMath.dll/ / / In the code I'm using the following

[IronPython] Another deployment question...

2008-06-30 Thread Bob Rosembob
Hi there, I have a couple of questions.   1. If I'm using IronPython to call Python function from my C# app. What do I need to deploy my project?   I added references to my project to the following dlls: IronPython.dlll IronMath.dll   In the code I'm using the following: using IronPython.Runtime;

Re: [IronPython] IronPython 1.1.2 eta?

2008-06-30 Thread Michael Foord
Dino Viehland wrote: Yeah, it's not going to happen today :) The changes are done (any bugs assigned to me and the 1.1.2 release on CodePlex will be fixed), they just need to run through a full test pass. I got started on the changes late and the test infrastructure needed to be brought back

Re: [IronPython] IronPython 1.1.2 eta?

2008-06-30 Thread Dino Viehland
Yeah, it's not going to happen today :) The changes are done (any bugs assigned to me and the 1.1.2 release on CodePlex will be fixed), they just need to run through a full test pass. I got started on the changes late and the test infrastructure needed to be brought back to life so it's taking

[IronPython] IronPython 1.1.2 eta?

2008-06-30 Thread Michael Foord
Hello guys, A while back you suggested that IronPython 1.1.2 would arrive 'some time in June'. Whilst that is still possible it seems unlikely, any news on an eta? Whilst we're at it, any idea on when IP 2 Beta 4 might be released? We'd like to test Resolver One with an updated IronPython 2

Re: [IronPython] restrict scripting access

2008-06-30 Thread Dino Viehland
You aren't entirely wrong - .NET 2.0 RTM was missing functionality we needed (partial trust reflection emit) but we got that in SP1. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord Sent: Monday, June 30, 2008 9:17 AM To: Discussion of IronPy

Re: [IronPython] restrict scripting access

2008-06-30 Thread Michael Foord
Cool. I *thought* that the reason IronPython required full trust was due to bugs in the CLR, and am delighted to hear that I'm wrong! Michael Dino Viehland wrote: Yep, it sure is - that's the reason why we leave this work to the .NET framework and avoid taking the burden upon ourselves :). T

Re: [IronPython] restrict scripting access

2008-06-30 Thread Dino Viehland
Yep, it sure is - that's the reason why we leave this work to the .NET framework and avoid taking the burden upon ourselves :). There's nothing, other than bugs, in IronPython that prevents it from running in partial trust - look at Silverlight where IronPython runs with no permissions. There

Re: [IronPython] restrict scripting access

2008-06-30 Thread Sanghyeon Seo
2008/6/30 Rainer Worbis <[EMAIL PROTECTED]>: > is there a way to restrict access to objects or namespaces within a script? > We use IronPython for providing scripting functionality within our .NET > Application but would like to restrict access to certain functions. Has > anybody information or a s

Re: [IronPython] restrict scripting access

2008-06-30 Thread Dody Gunawinata
Ah, true. If there's an effort to create a sandbox mode, please also consider time out scenarios so we don't have infite loops causing much damage. On Mon, Jun 30, 2008 at 3:35 PM, Michael Foord <[EMAIL PROTECTED]> wrote: > Dody Gunawinata wrote: > >> That you can filter our from the python sourc

Re: [IronPython] restrict scripting access

2008-06-30 Thread Michael Foord
Dody Gunawinata wrote: That you can filter our from the python source code or replace such call with exception ("bzz, can't load AddReference") - Yeah, it's a pretty nasty workaround, but it works. Unfortunately not - one of the disadvantages of a highly dynamic language. There are lots of al

Re: [IronPython] restrict scripting access

2008-06-30 Thread Dody Gunawinata
That you can filter our from the python source code or replace such call with exception ("bzz, can't load AddReference") - Yeah, it's a pretty nasty workaround, but it works. Dody G. On Mon, Jun 30, 2008 at 3:26 PM, Michael Foord <[EMAIL PROTECTED]> wrote: > Dody Gunawinata wrote: > >> In the Ir

Re: [IronPython] restrict scripting access

2008-06-30 Thread Rainer Worbis
But i can't restrict the user from adding any assemblies he want (since the assemblies are in the project or gac) Rainer Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Dody Gunawinata Gesendet: Montag, 30. Juni 2008 14:25 An: Discussion of IronPython Betreff: Re: [IronPyt

Re: [IronPython] restrict scripting access

2008-06-30 Thread Michael Foord
Dody Gunawinata wrote: In the IronPython hosting API, unless you specifically load the assembly, it will not be accessible through the script. So right now restricting access means configuring the assemblies you want to expose to the script. But what is to stop the user code doing: import

Re: [IronPython] restrict scripting access

2008-06-30 Thread Dody Gunawinata
In the IronPython hosting API, unless you specifically load the assembly, it will not be accessible through the script. So right now restricting access means configuring the assemblies you want to expose to the script. On Mon, Jun 30, 2008 at 3:09 PM, Ben Hall <[EMAIL PROTECTED]> wrote: > I thoug

Re: [IronPython] restrict scripting access

2008-06-30 Thread Ben Hall
I thought this last night, it would be really useful if we could 'sandbox' the IP engine and limit it's access to certain areas of the framework. On Mon, Jun 30, 2008 at 12:57 PM, Rainer Worbis <[EMAIL PROTECTED]> wrote: > No - for example i would like to prevent that the user loads assemblies a

Re: [IronPython] restrict scripting access

2008-06-30 Thread Rainer Worbis
No - for example i would like to prevent that the user loads assemblies and does own data access via System.Data.SqlClient. Or uses specific parts of the applications. (which should be visible to other scripts). So access control per script would be optimal. Rainer -Ursprüngliche Nachricht-

Re: [IronPython] restrict scripting access

2008-06-30 Thread Korbinian Abenthum
Rainer Worbis wrote: is there a way to restrict access to objects or namespaces within a script? We use IronPython for providing scripting functionality within our .NET Application but would like to restrict access to certain functions. Has anybody information or a sample how to do that? Can y

[IronPython] restrict scripting access

2008-06-30 Thread Rainer Worbis
Hallo, is there a way to restrict access to objects or namespaces within a script? We use IronPython for providing scripting functionality within our .NET Application but would like to restrict access to certain functions. Has anybody information or a sample how to do that? Thanks, Rainer