[IronPython] Tips for IronPython for ASP.Net (IronPython 2.6 Beta 1)

2009-05-26 Thread Dody Gunawinata
1. ViewState property is not available in UserControl (this is a bug) but this is easily rectified. Just create an assembly that inherits from Microsoft.Web.Scripting.UI.ScriptUserControl public class ScriptUserControlBase : Microsoft.Web.Scripting.UI.ScriptUserControl { public StateBag V

Re: [IronPython] 'Python' does not exist in current context

2009-05-26 Thread Justin Regele
thanks. that did the trick. it was the one I assumed wasn't needed, since modules sounded like it would be, well, just python modules. On Tue, May 26, 2009 at 2:00 PM, Dody Gunawinata wrote: > Make sure you refer to the following assemblies. > > Microsoft.Scripting.dllMicrosoft.Scripting.Core.dl

Re: [IronPython] [ATTN] ASP.NET and IronPython 2.6 Beta 1

2009-05-26 Thread Dody Gunawinata
Alright, time to file bug report :) ViewState in user control fails to work. This is how to reproduce it 1. I run the example hello-webforms example. 2. I added a user control called test.ascx 3. The content of test.ascx.py as follows: def Page_Load(sender, e): lblWarning.Text = "Hello World" Re

Re: [IronPython] 'Python' does not exist in current context

2009-05-26 Thread Dody Gunawinata
Make sure you refer to the following assemblies. Microsoft.Scripting.dllMicrosoft.Scripting.Core.dll IronPython.dll IronPython.Modules.dll On Tue, May 26, 2009 at 11:47 PM, Justin Regele wrote: > Trying to embed IPy in C#, and after digging all over the web and the > archives of this list, I ca

[IronPython] 'Python' does not exist in current context

2009-05-26 Thread Justin Regele
Trying to embed IPy in C#, and after digging all over the web and the archives of this list, I can't figure out why the Python object won't load. Here is the basic line where it goes wrong: ScriptEngine eng = Python.CreateEngine(); All the other typical Objects are loading fine, just not the Pyth

Re: [IronPython] [ATTN] ASP.NET and IronPython 2.6 Beta 1

2009-05-26 Thread Dody Gunawinata
Yay ! I had planned to sleep early :) (It's 11 PM Cairo time) This is awesome, thank you so much. Finally I can say goodbye to Microsoft.Scripting.Vestigial and remove my custom built IP 2.0. Dody G. On Tue, May 26, 2009 at 10:39 PM, Jimmy Schementi < jimmy.scheme...@microsoft.com> wrote: > *D

Re: [IronPython] [ATTN] ASP.NET and IronPython 2.6 Beta 1

2009-05-26 Thread Adam Brand
NICE! Just a thought, but maybe on the download page you should put a link that says "IronPython for ASP.Net Binaries" or something. Right now the link to "sample" is kind of confusing. The way I read "sample" is that it will just contain source code, not actual binaries. Thanks, Adam

[IronPython] [ATTN] ASP.NET and IronPython 2.6 Beta 1

2009-05-26 Thread Jimmy Schementi
Download Now http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=17613#DownloadId=69511 This release is compatible with IronPython 2.6 Beta 1. Currently it does not include Language Services Support and pr

Re: [IronPython] ironpython compared to powershell

2009-05-26 Thread Davy Mitchell
Ironpython is a general purpose programming language whereas Powershell is primarily to replace the 'command prompt', batch file and vbscript within Windows system administration, though it appears in SQL Server 2008. Both have good .Net integration so you you could administer a network with eithe

Re: [IronPython] ironpython compared to powershell

2009-05-26 Thread cur...@acm.org
On Tue, May 26, 2009 at 14:16, jocke khazad wrote: > So pretty much, there is no real advantage of using python more then in a > religious point of view? > > Can you code powershell to control/automatise linux servers for example? An > advantage could be to work with a language that works on any

Re: [IronPython] ironpython compared to powershell

2009-05-26 Thread jocke khazad
So pretty much, there is no real advantage of using python more then in a religious point of view? Can you code powershell to control/automatise linux servers for example? An advantage could be to work with a language that works on any platform. On Tue, May 26, 2009 at 9:02 PM, Vernon Cole wrote

Re: [IronPython] ironpython compared to powershell

2009-05-26 Thread Vernon Cole
I am prejudiced. Several years ago, I was looking for a copy of perl which would run on Windows, because I needed a better scripting language than a .BAT file could give. (This was using Windows 2000.) While searching the Internet, I tripped across a comment something like: "Why would anyone le

Re: [IronPython] IPython is breathing but there's a compile() problem

2009-05-26 Thread Mike Krell
On Tue, May 26, 2009 at 10:50 AM, Michael Foord wrote > I wonder if it isn't in fact caused by the fact that the repr of an > IronPython syntax error doesn't change if the you add new lines to the > source code you are compiling. Yes, in this case that is the crux of the issue. Mike ___

Re: [IronPython] IPython is breathing but there's a compile() problem

2009-05-26 Thread Michael Foord
Dino Viehland wrote: This is probably a dup of 12907 http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=12907 That being said the more test cases for this the better – this option isn’t really documented. Also if anyone can provide insight into exactly how this is supposed to beha

Re: [IronPython] IPython is breathing but there's a compile() problem

2009-05-26 Thread Dino Viehland
This is probably a dup of 12907 http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=12907 That being said the more test cases for this the better - this option isn't really documented. Also if anyone can provide insight into exactly how this is supposed to behave that'd be great. But

Re: [IronPython] ironpython compared to powershell

2009-05-26 Thread Dody Gunawinata
Nicer syntax On Tue, May 26, 2009 at 4:58 PM, jocke khazad wrote: > Hi everyone! > > I would like you ask this question that I seem not to get an answer for > anywhere. > > What is the advantage of using ironpython compared to using only > powershell? Or is it just a personal choice which one yo

[IronPython] ironpython compared to powershell

2009-05-26 Thread jocke khazad
Hi everyone! I would like you ask this question that I seem not to get an answer for anywhere. What is the advantage of using ironpython compared to using only powershell? Or is it just a personal choice which one you like the best? Best Regards, Joakim