Re: [Ironpython-users] Restrict referencing of assemblies in hosted environment

2012-10-18 Thread Jeff Hardy
On Thu, Oct 18, 2012 at 12:53 AM, Markus Schaber wrote: > Hi, Keith, > > Von: Keith Rome [mailto:r...@wintellect.com] >> Take a look at the PlatformAdaptationLayer class. You can create your own >> and plug it in to the runtime. This might provide the hooks you are looking >> for. > >> In partic

Re: [Ironpython-users] Restrict referencing of assemblies in hosted environment

2012-10-18 Thread Markus Schaber
ome=wintellect@python.org] On Behalf Of Markus Schaber Sent: Wednesday, October 17, 2012 6:09 AM To: Discussion of IronPython Subject: [Ironpython-users] Restrict referencing of assemblies in hosted environment Hello, We're using IronPython as a hosted script engine in our applicatio

Re: [Ironpython-users] Restrict referencing of assemblies in hosted environment

2012-10-18 Thread Markus Schaber
Hi, Jeff, > Von: Jeff Hardy [mailto:jdha...@gmail.com] > On Wed, Oct 17, 2012 at 3:08 AM, Markus Schaber software.com> wrote: > > We're using IronPython as a hosted script engine in our application. > > > Now, we want to restrict the assemblies a user can reference from its > > python script, >

Re: [Ironpython-users] Restrict referencing of assemblies in hosted environment

2012-10-17 Thread Jeff Hardy
On Wed, Oct 17, 2012 at 3:08 AM, Markus Schaber wrote: > Hello, > We’re using IronPython as a hosted script engine in our application. > Now, we want to restrict the assemblies a user can reference from its python > script, > > Currently, we just forbid “import clr”, by wrapping the import() meth

Re: [Ironpython-users] Restrict referencing of assemblies in hosted environment

2012-10-17 Thread Keith Rome
:ironpython-users-bounces+rome=wintellect@python.org] On Behalf Of Markus Schaber Sent: Wednesday, October 17, 2012 6:09 AM To: Discussion of IronPython Subject: [Ironpython-users] Restrict referencing of assemblies in hosted environment Hello, We're using IronPython as a hoste

[Ironpython-users] Restrict referencing of assemblies in hosted environment

2012-10-17 Thread Markus Schaber
Hello, We're using IronPython as a hosted script engine in our application. Now, we want to restrict the assemblies a user can reference from its python script, Currently, we just forbid "import clr", by wrapping the import() method, but this is a bit harsh, and the side-effects are a little b