Re: [Ironpython-users] Sandbox support for IronPython console

2012-03-19 Thread Slide
Yes, a pull request would be preferred. It makes it very easy to review the code and then incorporate it into the master. As for the command line argument, -X:Sandbox or something like that. I think the name of the parameter is less of a concern until its all up and working. slide On Mon, Mar 19

Re: [Ironpython-users] Sandbox support for IronPython console

2012-03-19 Thread Jeff Hardy
On Mon, Mar 19, 2012 at 2:26 PM, Cesar Mello wrote: > Actually if you find interesting for me to pull this through a command line > argument, do you have any suggestions on what argument should I create for > it? Something like -X:Sandbox (It has to be under -X: so that we don't conflict with CPy

Re: [Ironpython-users] Sandbox support for IronPython console

2012-03-19 Thread Cesar Mello
Actually if you find interesting for me to pull this through a command line argument, do you have any suggestions on what argument should I create for it? Thanks Best regards Mello On Mon, Mar 19, 2012 at 6:21 PM, Cesar Mello wrote: > Hi Slide, > > You mean I should do a pull request when I'm

Re: [Ironpython-users] Sandbox support for IronPython console

2012-03-19 Thread Cesar Mello
Hi Slide, You mean I should do a pull request when I'm finished? But I'm still just playing around. I've hard-coded a sandboxed appdomain here just for testing the idea: https://github.com/cmello/IronLanguages-main/commit/3241688e4917c70a6db4c1b671f42c4144e8bf96 But I get remoting exceptions a

Re: [Ironpython-users] Sandbox support for IronPython console

2012-03-19 Thread Slide
Cesar, I think this sounds like a pretty good idea for debugging stuff. Are you familiar with how we work with patches should you get something going? Thanks, slide On Mon, Mar 19, 2012 at 1:35 PM, Cesar Mello wrote: > Hi, > > I would like to know if someone other than me would find useful to

[Ironpython-users] Sandbox support for IronPython console

2012-03-19 Thread Cesar Mello
Hi, I would like to know if someone other than me would find useful to have a command line argument for sandboxing the ipy console. I'm trying to implement this but I'm not sure if it is worth. For me it would make easier to debug and reproduce stuff. Also I'm curious to know how many people are

Re: [Ironpython-users] Run a WPF application written in IronPython on the client computer without the install IronPython

2012-03-19 Thread Slide
Hmmm, do you have Visual Studio installed so that you could possibly debug the application when it fails at the end and pinpoint the spot of failure? Thanks, slide 2012/3/19 > Hello). > With the advice Matt Ward, thanks to him, the problem was solved as > follows: > 1) had to change avalon.py

Re: [Ironpython-users] Run a WPF application written in IronPython on the client computer without the install IronPython

2012-03-19 Thread sepatan
Hello). With the advice Matt Ward, thanks to him, the problem was solved as follows: 1) had to change avalon.py as follows: commented out 2 lines . t = Thread(ThreadStart(start)) t.IsBackground = True t.ApartmentState = ApartmentState.STA #t.Start() #are.WaitOne() .. 2) cha

Re: [Ironpython-users] Considering IronPython for a new project

2012-03-19 Thread Markus Schaber
Hi, Jeff, Von: Jeff Hardy On Tue, Mar 13, 2012 at 2:29 AM, wrote: >> I wasn't aware that MS bailed on the Irons (back at 2010) until a few >> days ago, this will probably hurt my arguments, let alone other >> chatter on the web saying that nobody uses these languages aside from >> the former

Re: [Ironpython-users] Run a WPF application written in IronPython on the client computer without the install IronPython

2012-03-19 Thread Slide
Setting /target:winexe should not show any console window. Are you sure its a console window that is being shown? Thanks, slide 2012/3/19 > Thank you, Matt Ward :). > It worked :)). You're a real expert. > Just one more thing, a window appears and then disappears. I guess, > because the cons

[Ironpython-users] Passing Python exceptions in a sandboxed domain

2012-03-19 Thread Cesar Mello
Hi, When I try to run something like 'None + 2' inside a sandboxed domain, I'm getting the following exception: System.Security.SecurityException Message: Request failed Stack trace: at IronPython.Runtime.Exceptions.TypeErrorException.GetObjectData(SerializationInfo info, StreamingContext cont

Re: [Ironpython-users] Run a WPF application written in IronPython on the client computer without the install IronPython

2012-03-19 Thread sepatan
Thank you, Matt Ward :). It worked :)). You're a real expert. Just one more thing, a window appears and then disappears. I guess, because the console is closed. Maybe after the text of the program in primer.py something else should be? from avalon import * import calculator w = Window() w.Title

Re: [Ironpython-users] Run a WPF application written in IronPython on the client computer without the install IronPython

2012-03-19 Thread Matt Ward
If you use the /target:winexe with pyc.py it will add the STAThread attribute to your main method. That should fix the exception. In the C# console app you can add the STAThread attribute to the main method: class Program { [STAThread] static void Main(string[] args)

[Ironpython-users] Run a WPF application written in IronPython on the client computer without the install IronPython

2012-03-19 Thread sepatan
I have a need to run a WPF application written in IronPython on the client without installing IronPython. Technology to try to debug a standard example of WPF .\IronPython-2.7.2.1\Tutorial. Baseline data: 1) The computer is not installed IronPython. From IronPython-2.7.2.1.zip (download program)

[Ironpython-users] IronPython, Daily Digest 3/18/2012

2012-03-19 Thread no_reply
Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] 2.7.2.1: ast.py fails on Lib/subprocess.py 2. [New comment] 2.7.2.1: ast.py fails on Lib/subprocess.py 3. [New issue] 2.7.2.1 "load language" problem 4. [New comment] 2.7.2.1