Re: [Ironpython-users] Importing modules in a restricted AppDomain

2012-03-07 Thread Dino Viehland
ailto:ironpython-users-bounces+dinov=microsoft@python.org] On Behalf Of Cesar Mello Sent: Wednesday, March 07, 2012 5:17 AM To: ironpython-users@python.org Subject: Re: [Ironpython-users] Importing modules in a restricted AppDomain Hi, Must I grant fulltrust permissions to the IronPyth

Re: [Ironpython-users] Importing modules in a restricted AppDomain

2012-03-07 Thread Jeff Hardy
On Wed, Mar 7, 2012 at 5:17 AM, Cesar Mello wrote: > Hi, > > Must I grant fulltrust permissions to the IronPython assemblies? Sorry for > the basic question, but will the scripts still be restricted in this case? > > Thank you a lot. This is a bit urgent for me, because it's the last step > before

Re: [Ironpython-users] Importing modules in a restricted AppDomain

2012-03-07 Thread Jeff Hardy
On Wed, Mar 7, 2012 at 9:41 AM, Dino Viehland wrote: > Jeff wrote: >> You shouldn't have to, but we don't do any testing in restricted AppDomains >> and >> so I'm afraid it may have inadvertantly been broken. >> I've cc'd Dino; he might be able to help you a little more as this is an >> area I'm

Re: [Ironpython-users] Importing modules in a restricted AppDomain

2012-03-07 Thread Dino Viehland
Jeff wrote: > You shouldn't have to, but we don't do any testing in restricted AppDomains > and > so I'm afraid it may have inadvertantly been broken. > I've cc'd Dino; he might be able to help you a little more as this is an area > I'm not > familiar with. We have a test :) It's in EngineTest.

Re: [Ironpython-users] Importing modules in a restricted AppDomain

2012-03-07 Thread Jeff Hardy
On Wed, Mar 7, 2012 at 5:17 AM, Cesar Mello wrote: > Hi, > > Must I grant fulltrust permissions to the IronPython assemblies? Sorry for > the basic question, but will the scripts still be restricted in this case? You shouldn't have to, but we don't do any testing in restricted AppDomains and so I

Re: [Ironpython-users] Importing modules in a restricted AppDomain

2012-03-07 Thread Cesar Mello
Hi, Must I grant fulltrust permissions to the IronPython assemblies? Sorry for the basic question, but will the scripts still be restricted in this case? Thank you a lot. This is a bit urgent for me, because it's the last step before I can finish the prototype with IronPython and let it be accept

Re: [Ironpython-users] Importing modules in a restricted AppDomain

2012-03-05 Thread Cesar Mello
Please ignore my previous question. Sucessfully added FileIOPermission with PathDiscovery and it worked: var pythonLibsPath = ExpressionEvaluator.GetPythonLibsPath(); permissionSet.AddPermission(new FileIOPermission(FileIOPermissionAccess.PathDiscovery | FileIOPermissionAccess.Read, py

[Ironpython-users] Importing modules in a restricted AppDomain

2012-03-05 Thread Cesar Mello
Hi! Is there a way to load modules without giving permission to the AppDomain to read .py files from disk? I need to run user code with limited permissions. They should be able to do some simple calculations. But when I try to import a module like 'decimal', filesystem access permission is requir