Re: [Ironpython-users] Guidelines for embedding Python libraries in installers

2012-05-08 Thread Cesar Mello
lot! Best regards! Mello On Tue, May 8, 2012 at 12:47 PM, Jeff Hardy wrote: > On Tue, May 8, 2012 at 6:11 AM, Cesar Mello wrote: > > Hi! > > > > Please I would like to know if there is any recommendation for embedding > > Python libraries together with IronPython in

Re: [Ironpython-users] Guidelines for embedding Python libraries in installers

2012-05-08 Thread Cesar Mello
Tue, May 8, 2012 at 9:11 AM, Cesar Mello wrote: > > Hi! > > > > Please I would like to know if there is any recommendation for embedding > > Python libraries together with IronPython in applications. I'm asking > this > > just to know if there is a path to fo

Re: [Ironpython-users] Guidelines for embedding Python libraries in installers

2012-05-08 Thread Cesar Mello
Hi Doug, I forgot to mention that' On Tue, May 8, 2012 at 10:34 AM, Doug Blank wrote: > On Tue, May 8, 2012 at 9:11 AM, Cesar Mello wrote: > > Hi! > > > > Please I would like to know if there is any recommendation for embedding > > Python libraries together

[Ironpython-users] Guidelines for embedding Python libraries in installers

2012-05-08 Thread Cesar Mello
Hi! Please I would like to know if there is any recommendation for embedding Python libraries together with IronPython in applications. I'm asking this just to know if there is a path to follow towards some "ecosystem" regarding Python libraries distribution. I have seen there is an installer for

Re: [Ironpython-users] IronPython Merge Modules for Windows

2012-05-07 Thread Cesar Mello
Thank you so much!! Best regards! Mello On Mon, May 7, 2012 at 7:21 PM, Jeff Hardy wrote: > On Mon, May 7, 2012 at 12:34 PM, Cesar Mello wrote: > > But if I install the MSI instead, how can I reference the standard > library > > that is installed with IronPython? Wher

Re: [Ironpython-users] IronPython Merge Modules for Windows

2012-05-07 Thread Cesar Mello
: > On Mon, May 7, 2012 at 7:41 AM, Cesar Mello wrote: > > Hi, > > > > I've noticed IronRuby has merge modules available. Would this be the > > recommended way to redistribute IronPython? > > > > Now I need to embed IronPython in our product's

Re: [Ironpython-users] IronPython Merge Modules for Windows

2012-05-07 Thread Cesar Mello
A colleague of mine also suggested implementing a stand-alone redistributable, to embed in our product's bootstrapper. That seems to be an easier trend in our installers. What do you think? Thanks a lot for the attention. Best regards Mello On Mon, May 7, 2012 at 11:41 AM, Cesar Mello

[Ironpython-users] IronPython Merge Modules for Windows

2012-05-07 Thread Cesar Mello
Hi, I've noticed IronRuby has merge modules available. Would this be the recommended way to redistribute IronPython? Now I need to embed IronPython in our product's installer. (This is still a prototype). Any advices about this? Probably that's an effort that can be shared, so instead of developi

Re: [Ironpython-users] [main] -X:Sandbox command line argument (#61)

2012-03-27 Thread Cesar Mello
st regards! Mello On Tue, Mar 27, 2012 at 8:29 PM, Cesar Mello wrote: > Hi, > > Our product is not related to ASP.NET. We only need users to script > calculations in a safe environment. They should not be able to run native > code, access the filesystem or do any other harm to the app

Re: [Ironpython-users] [main] -X:Sandbox command line argument (#61)

2012-03-27 Thread Cesar Mello
Hi, Our product is not related to ASP.NET. We only need users to script calculations in a safe environment. They should not be able to run native code, access the filesystem or do any other harm to the application. The default InternetZone permission set seems to be nice for that. The calculation

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

2012-03-22 Thread Cesar Mello
tHandle to the exception object rather than passing the object back.* > *** > > ** ** > > *From:* > [email protected][mailto: > [email protected]] *On > Behalf Of *Cesar Mello &

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

2012-03-21 Thread Cesar Mello
19, 2012 at 10:50 AM, Cesar Mello wrote: > 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: > >

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

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

2012-03-19 Thread Cesar Mello
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 have a >> command line argument for sandboxing the ipy console.

[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

[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

[Ironpython-users] Issue tracking

2012-03-08 Thread Cesar Mello
Hi! Please I would like to know the process for issue tracking. Some doubts: 1) Confirm the official issue tracker is http://ironpython.codeplex.com/workitem/list/basic and not github; 2) Who assigns issues/how/when; 3) Who changes status to Resolved and when; 4) How issues are validated; 5)

Re: [Ironpython-users] IronPython on Windows Phone

2012-03-08 Thread Cesar Mello
of them handles Managed C++ and C++/CLI. > > ** ** > > Grüße, > > Markus > > ** ** > > *Von:* [email protected][mailto: > [email protected]] *Im > Auftrag von *Ces

Re: [Ironpython-users] IronPython on Windows Phone

2012-03-07 Thread Cesar Mello
Opened issue 32374 <http://ironpython.codeplex.com/workitem/32374> for this. Best regards Mello On Tue, Mar 6, 2012 at 2:25 PM, Jeff Hardy wrote: > On Tue, Mar 6, 2012 at 2:45 AM, Cesar Mello wrote: > > Hi Jeff, > > But I reached the same corner: expressions like 2

Re: [Ironpython-users] IronPython on Windows Phone

2012-03-07 Thread Cesar Mello
resulting > files will be in bin. > > - Jeff > > On Wed, Mar 7, 2012 at 5:01 AM, Cesar Mello wrote: > > Hi, > > > > For the repro sample, do you prefer to have references to the RC1 > binaries, > > or should I add the IronPython projects to compile from sou

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

2012-03-07 Thread Cesar Mello
it be accepted for embedding in our product. Best regards! Mello On Mon, Mar 5, 2012 at 4:26 PM, Cesar Mello wrote: > Please ignore my previous question. Sucessfully added FileIOPermission > with PathDiscovery and it worked: > > var pythonLibsPath = ExpressionEvaluator.

Re: [Ironpython-users] IronPython on Windows Phone

2012-03-07 Thread Cesar Mello
PM, Cesar Mello wrote: > Hi Jeff, > > >> Looking at it briefly I can't see an obvious workaround (I'm not sure >> what interactions MaybeNotImplementedAttribute will have); can you >> open an issue and attach a minimal repro if possible? >> >> &g

Re: [Ironpython-users] IronPython on Windows Phone

2012-03-06 Thread Cesar Mello
Hi Jeff, > Looking at it briefly I can't see an obvious workaround (I'm not sure > what interactions MaybeNotImplementedAttribute will have); can you > open an issue and attach a minimal repro if possible? > > Sure! I'll open this issue at home later, because the Windows Phone use case is for a p

Re: [Ironpython-users] IronPython on Windows Phone

2012-03-06 Thread Cesar Mello
ctrl, EventArgs e) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName) On Tue, Mar 6, 2012 at 1:54 AM, Jeff Hardy wrote: > On Sun, Mar 4, 2012 at 5:21 AM, Cesar Mello wrote: > > Hi! > > > > I cr

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

2012-03-05 Thread Cesar Mello
pm_5527\Source\EpmCommon\Elipse.Epm.Scripting\ExpressionEvaluator.cs:line 174 at Elipse.Epm.Scripting.ExpressionEvaluator.AddExpression(Expression expression, Object clientHandle) in D:\proj\epm_5527\Source\EpmCommon\Elipse.Epm.Scripting\ExpressionEvaluator.cs:line 82 On Mon, Mar 5, 2012 at 3:18 PM, Ces

[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

[Ironpython-users] IronPython on Windows Phone

2012-03-04 Thread Cesar Mello
Hi! I created a Silverlight/WP project using Microsoft Visual Studio 2010 Express for Windows Phone. Added references to all the DLLs in IronPython-2.7.2rc1\Platforms\Sl4-WP71 . When I run the application I get the following error: File or assembly name 'Microsoft.Scripting, Version=1.1.0.20, Cul

Re: [Ironpython-users] IronPython 2.7.2 RC Available

2012-03-04 Thread Cesar Mello
This release with embedded sqlite is really awesome! Congratulations for the great work and thanks for providing such a nice software. Best regards Mello On Sun, Mar 4, 2012 at 8:53 AM, Jeff Hardy wrote: > On behalf of the IronPython team, I'm happy to announce the first (and > probably only) r

Re: [Ironpython-users] timedelta.total_seconds()

2012-03-03 Thread Cesar Mello
OK can someone please review? https://github.com/cmello/IronLanguages-main/commit/0d9cad9e1ef203df6131b9d44013a0e0f31b8088 The test passes but I still don't know if/where to enable that test in the build? Thank you. Best regards Mello On Sat, Mar 3, 2012 at 12:57 PM, Cesar Mello wrote:

Re: [Ironpython-users] timedelta.total_seconds()

2012-03-03 Thread Cesar Mello
ronPython tests at once. Best regards Mello On Sat, Mar 3, 2012 at 12:08 PM, Cesar Mello wrote: > Hi, > > Any help here is appreciated. > > I found a related unit test here: > > > main\External.LCA_RESTRICTED\Languages\IronPython\27\Lib\test\test_datetime.py: > >

Re: [Ironpython-users] timedelta.total_seconds()

2012-03-03 Thread Cesar Mello
ri, Mar 2, 2012 at 8:54 AM, Cesar Mello wrote: > > Hi! > > > > This method doesn't seem to be implemented. From > > http://docs.python.org/library/datetime.html : > > timedelta.total_seconds() > > > > Return the total number of seconds contained in t

Re: [Ironpython-users] timedelta.total_seconds()

2012-03-02 Thread Cesar Mello
Oh please forget my questions... Everything sorted out. Just found https://github.com/IronLanguages/main/wiki . That's so great! Best regards! Mello On Fri, Mar 2, 2012 at 7:39 PM, Cesar Mello wrote: > I am a newbie so my first task other than keep reading the documentation > all

Re: [Ironpython-users] timedelta.total_seconds()

2012-03-02 Thread Cesar Mello
y feedback about this is also appreciated. Thanks and best regards! Mello On Fri, Mar 2, 2012 at 5:19 PM, Jeff Hardy wrote: > On Fri, Mar 2, 2012 at 11:57 AM, Cesar Mello wrote: > > OK I prefer small work items too: > > > > http://ironpython.codeplex.com/workitem/32342 > >

Re: [Ironpython-users] timedelta.total_seconds()

2012-03-02 Thread Cesar Mello
of date) > that it might never be closed. I prefer them to be small pieces. > > - Jeff > > On Fri, Mar 2, 2012 at 11:09 AM, Cesar Mello wrote: > > There is a work item for missing datetime features: > > > > http://ironpython.codeplex.com/workitem/17470 > > &

Re: [Ironpython-users] timedelta.total_seconds()

2012-03-02 Thread Cesar Mello
an issue on ironpython.codeplex.com? > Should be easy enough to get this in. If you're up to it, a pull > request would be even better :) > > - Jeff > > On Fri, Mar 2, 2012 at 8:54 AM, Cesar Mello wrote: > > Hi! > > > > This method doesn't seem to be imp

Re: [Ironpython-users] timedelta.total_seconds()

2012-03-02 Thread Cesar Mello
t; - Jeff > > On Fri, Mar 2, 2012 at 8:54 AM, Cesar Mello wrote: > > Hi! > > > > This method doesn't seem to be implemented. From > > http://docs.python.org/library/datetime.html : > > timedelta.total_seconds() > > > > Return the total number o

[Ironpython-users] timedelta.total_seconds()

2012-03-02 Thread Cesar Mello
Hi! This method doesn't seem to be implemented. From http://docs.python.org/library/datetime.html : timedelta.total_seconds() Return the total number of seconds contained in the duration. Equivalent to (td.microseconds

Re: [Ironpython-users] Implicit conversion of objects to float

2012-03-02 Thread Cesar Mello
Hey thanks so much for the great help! It worked perfectly. Thanks! Best regards!!! Mello On Fri, Mar 2, 2012 at 1:24 PM, Jeff Hardy wrote: > On Fri, Mar 2, 2012 at 4:42 AM, Cesar Mello wrote: > > Hi! > > > > Is it possible for a .NET class to provide a property with th

Re: [Ironpython-users] Implicit conversion of objects to float

2012-03-02 Thread Cesar Mello
Hi! Is it possible for a .NET class to provide a property with the Python datetime instead of System.DateTime? Thank you very much for the attention! Best regards! Mello On Thu, Mar 1, 2012 at 6:31 PM, Cesar Mello wrote: > It worked perfectly and fast! Thank you so much >

Re: [Ironpython-users] Implicit conversion of objects to float

2012-03-01 Thread Cesar Mello
It worked perfectly and fast! Thank you so much Best regards Mello On Thu, Mar 1, 2012 at 5:37 PM, Jeff Hardy wrote: > On Thu, Mar 1, 2012 at 12:13 PM, Cesar Mello wrote: > > Hey guys! > > > > Just curious: is there a way to implement in the .NET class something &

Re: [Ironpython-users] Implicit conversion of objects to float

2012-03-01 Thread Cesar Mello
at 5:17 PM, Jeff Hardy wrote: > On Fri, Feb 24, 2012 at 12:00 PM, Cesar Mello wrote: > > Thank you very much for the quick response Jeff! > > > > First, let me clarify I am a Python newbie, so my assumptions about > Python > > may be all wrong. > > > > I

Re: [Ironpython-users] Implicit conversion of objects to float

2012-02-25 Thread Cesar Mello
50 PM, Cesar Mello wrote: > OK thank you very much! > > Best regards > Mello > > > On Fri, Feb 24, 2012 at 6:17 PM, Jeff Hardy wrote: > >> On Fri, Feb 24, 2012 at 12:00 PM, Cesar Mello wrote: >> > Thank you very much for the quick response Jeff! >> > &

Re: [Ironpython-users] Implicit conversion of objects to float

2012-02-24 Thread Cesar Mello
OK thank you very much! Best regards Mello On Fri, Feb 24, 2012 at 6:17 PM, Jeff Hardy wrote: > On Fri, Feb 24, 2012 at 12:00 PM, Cesar Mello wrote: > > Thank you very much for the quick response Jeff! > > > > First, let me clarify I am a Python newbie, so my assum

Re: [Ironpython-users] Implicit conversion of objects to float

2012-02-24 Thread Cesar Mello
much for the attention! Best regards Mello On Fri, Feb 24, 2012 at 5:20 PM, Jeff Hardy wrote: > On Fri, Feb 24, 2012 at 10:54 AM, Cesar Mello wrote: > > Is there a way to satisfy both scenarios? So that the object could also > be > > evaluated implicitly as a float? > &g

[Ironpython-users] Implicit conversion of objects to float

2012-02-24 Thread Cesar Mello
Hi, We embedded IronPython to allow users to specify custom KPIs to be calculated from plant-floor measurements. It's woking nicely. The user selects which measurements she wants, provides aliases to these and they get exposed to the expression scope as variables. But we have two kinds of users:

Re: [Ironpython-users] Metro Profile support

2011-11-22 Thread Cesar Mello
Thank you very much for the attention guys! We plan to embed scripting in our server product, so the Metro profile is not a concern currently. I just wanted to take some feedback about possible difficulties for DLR-based languages in future refactorings of .NET, and how the ironpython community wo

[Ironpython-users] Metro Profile support

2011-11-21 Thread Cesar Mello
Hi, Is there support for running ironpython in Windows 8 Metro style applications? If not, will it be too difficult to implement? Just watched this Build 2011 presentationand it seems DLR was not included in the Metro profile. Thank you