So as soon as there's a PythonCodeProvider, I think it could be done. configuration/system.web/compilation/compilers/compiler Here's from my 1.1 machine.config: <!-- compilation Attributes: tempDirectory="directory" debug="[true|false]" // Default: false strict="[true|false]" // Default: false explicit="[true|false]" // Default: false batch="[true|false]" // Default: true batchTimeout="timeout in seconds" // Default: 15 seconds maxBatchSize="max number of pages per batched compilation" // Default: 1000 classes maxBatchGeneratedFileSize="max combined size (in KB) of the generated source files per batched compilation" // Default: 3000KB numRecompilesBeforeAppRestart="max number of recompilations before appdomain is cycled" // Default: 15 recomplations defaultLanguage="name of a language as specified in a <compiler/> tag below" // Default: VB --> - <compilation debug="false" explicit="true" defaultLanguage="vb"> - <compilers> <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="1" /> <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <compiler language="js;jscript;javascript" extension=".js" type="Microsoft.JScript.JScriptCodeProvider, Microsoft.JScript, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <compiler language="comega;cw;xsharp;xs;" extension="cw" type="Microsoft.Comega.ComegaCodeProvider, Microsoft.Comega, Version=1.0.3905.0, Culture=neutral, PublicKeyToken=736440c9b414ea16" warningLevel="1" /> </compilers> - <assemblies> <add assembly="mscorlib" /> <add assembly="System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <add assembly="System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <add assembly="System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <add assembly="System.Web.Services, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <add assembly="System.Xml, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <add assembly="System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <add assembly="*" /> </assemblies> </compilation>
________________________________ From: [EMAIL PROTECTED] on behalf of Keith J. Farmer Sent: Thu 8/4/2005 2:44 PM To: Discussion of IronPython Subject: IronPython in ASP.NET [Python.. ASP.. the combination seems natural to me ;)] Got this reponse from Scott Guthrie. So I suppose it's a matter of digging around and seeing exactly how to use the hooks: Hi Keith, ASP.NET actually has pluggable language support even in V1.1. It is driven using the CodeDOM model, and can be configured in your machine.config and web.config files. Hope this helps, Scott -----Original Message----- From: Keith J. Farmer [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] Sent: Thursday, August 04, 2005 12:47 PM To: Scott Guthrie Subject: RE: Atlas -- CodeDOM? (via ScottGu's Blog) Since you're there -- there was a question on the IronPython list about using it to create aspx. I'm pretty certain the language offerings in 1.1 were hardcoded: is that still the case in 2.0, or is there a build-provider-like registry of filetypes and language tags to compilers?
<<winmail.dat>>
_______________________________________________ users-ironpython.com mailing list users-ironpython.com@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com