[IronPython] how to convert this code in py 2.0

2008-07-30 Thread Huzaifa
Ops.ExtractException (ex, _pythonengine.Sys); TraceBack tb = _pythonengine.Sys.exc_traceback as TraceBack; if (tb != null) { ex.Data["LineNumber"] = tb.Line; //How to get Column? ex.Data["Offset"] = tb.Offset; //doesn't work? I am not able to convert

Re: [IronPython] Sandboxing using AppDomains

2008-07-30 Thread Han Kejing
Sorry, My English is so bad. I cannot write more details about this topic. I had a sample to test the security of .NET FW. If you want it, you can send mail to me (colin DOT han AT grapecity DOT com). I will send it to you. Fo

Re: [IronPython] Sandboxing using AppDomains

2008-07-30 Thread Han Kejing
Hi, Leo, Maybe follows document is helpful for you. http://blogs.msdn.com/shawnfa/archive/2005/08/08/449050.aspx PermissionSet.Deny is not safe. User code may use PermissionSet.Assert to get the power easily. Follow

[IronPython] pyEngine.Execute

2008-07-30 Thread Huzaifa
pyEngine.Execute(script); What is the equivalent of this code in ironpython 2 . -- View this message in context: http://www.nabble.com/pyEngine.Execute-tp18748152p18748152.html Sent from the IronPython mailing list archive at Nabble.com. ___ Users ma

[IronPython] Sandboxing using AppDomains

2008-07-30 Thread Leo Carbajal
Howdy all, I know this is a topic that comes up again and again but I was hoping I could get a bit of understanding from someone. So, like many others, I'm looking to get IPy to work in a relatively safe environment. My application is a game-server and exposes many entry points for user created s