Re: [IronPython] Partial classes

2008-06-12 Thread Curt Hagenlocher
The Python language doesn't support partial classes, but you can probably achieve something similar by using multiple inheritance. That is, put each function into a separate class and then create an aggregate class that derives from each of them. >>> class A(object): ... def test1(self): ...

Re: [IronPython] Ironpython exception

2008-06-12 Thread Dino Viehland
Basically you want to call FormatException and get back the formatted exception string. That'll get you the same formatted exception we give at the console. In 1.x this is PythonEngine.FormatException. In 2.x it's ScriptEngine.FormatException. -Original Message- From: [EMAIL PROTECTED

[IronPython] Partial classes

2008-06-12 Thread Michael Stephens
Our company has a scripting/macro system. Functions are stored in a database and at runtime we generate python classes. For a form we have multiple functions declared. We want to use IronPython studio to emit the python classes to a file to be debugged. Is it possible to build a partial class s

[IronPython] Ironpython exception

2008-06-12 Thread Huzaifa Gain
I am embedding Ironpython code into C# code and my C# code is using a COM component which i am using into Python code. Please suggest me what would be the best approach to handle exceptions. Showing Line # and column # in exception message for the embedded python code is a must. -- View this me

[IronPython] Python Exception

2008-06-12 Thread Huzaifa Gain
I am embedding Ironpython code into C# code and my C# code is using a COM component which i am using into Python code. Please suggest me what would be the best approach to handle exceptions. Showing Line # and column # in exception message for the embedded python code is a must. __

Re: [IronPython] Talk to Python script from C# app...

2008-06-12 Thread Curt Hagenlocher
Whether it's CPython or IronPython, you're going to have to deploy something to the user's PC if you want to run a Python program there. IronPython doesn't have any kind of installer; you just copy its modules over with your application. But your program almost certainly makes use of parts of the

Re: [IronPython] Python Pages -- web application stack (like django, rails, ...)

2008-06-12 Thread Jonathan Slenders
2008/6/12 Tim Roberts <[EMAIL PROTECTED]>: > On Thu, 12 Jun 2008 02:18:58 +0200, "Jonathan Slenders" < > [EMAIL PROTECTED]> wrote:" > >> 2008/6/12 Tim Roberts <[EMAIL PROTECTED]>: >> >>> > >>> > May I ask what motivated you to create this from scratch? There are a >>> > number of excellent Python

Re: [IronPython] Python Pages -- web application stack (like django, rails, ...)

2008-06-12 Thread Jimmy Schementi
Integration between Silverlight and web frameworks for IronRuby and IronPython is definitely an awesome thing. John and I showed this stuff with Rails at RailsConf (we're working on getting that announced; let me know if you interested in it and I can send stuff your way), and Dino did something

Re: [IronPython] Python Pages -- web application stack (like django, rails, ...)

2008-06-12 Thread Bill Merrill
This is exactly why there are so many. -Bill On Jun 12, 2008, at 2:19 PM, Charles Mason wrote: Anyone want to take a stab at why there are so many? It seems trivial to me. I know I will be ridiculed for my example, but this is what I use on my personal webserver: def PrintTemplate(file

Re: [IronPython] Python Pages -- web application stack (like django, rails, ...)

2008-06-12 Thread Sylvain Hellegouarch
Tim Roberts a écrit : On Thu, 12 Jun 2008 02:18:58 +0200, "Jonathan Slenders" <[EMAIL PROTECTED]> wrote:" 2008/6/12 Tim Roberts <[EMAIL PROTECTED]>: > > May I ask what motivated you to create this from scratch? There are a > number of excellent Python web application frameworks available today

Re: [IronPython] Python Pages -- web application stack (like django, rails, ...)

2008-06-12 Thread Charles Mason
On Thu, Jun 12, 2008 at 5:40 AM, Michael Foord <[EMAIL PROTECTED]> wrote: > > There are also plenty of templating languages: > > Stan (used by Nevow) > Genshi > Cheetah > Mako > ZPT (Zope) > SimpleTal (another Zope one) > Kid > Django template language > PTL (Python templating language used by Qui

Re: [IronPython] Python Pages -- web application stack (like django, rails, ...)

2008-06-12 Thread Tim Roberts
On Thu, 12 Jun 2008 02:18:58 +0200, "Jonathan Slenders" <[EMAIL PROTECTED]> wrote:" 2008/6/12 Tim Roberts <[EMAIL PROTECTED]>: > > May I ask what motivated you to create this from scratch? There are a > number of excellent Python web application frameworks available today, > several of which ha

Re: [IronPython] Python Pages -- web application stack (like django, rails, ...)

2008-06-12 Thread Carlos Alberto Costa Beppler
Look at the template module from the web.py (www.webpy.org). It is based on python and uses identation to mark blocks. 2008/6/12 Jimmy Schementi <[EMAIL PROTECTED]>: > Awesome about the Silverlight integration! I'll check it out soon and let you > know what I think =) > > About the templating lan

[IronPython] Django Roadmap (Alternative Implementations support)

2008-06-12 Thread Alcides Fonseca
9. Fix all known bugs preventing Django from running on alternate Python implementations. In practice this means fixing any bugs filed before 1.0 beta from people working on running Django on an alternate VM. From Django's Roadmap: com/group/django-developers/browse_thread/ thread/5ce

Re: [IronPython] Python Pages -- web application stack (like django, rails, ...)

2008-06-12 Thread Michael Foord
The Silverlight integration is a *great* idea - but there really are a lot of Python web frameworks and template languages out there. I'm afraid realistically you're unlikely to get more than a handful of users - but if you enjoy coding it then there is no reason to stop. You might have more p

Re: [IronPython] Trouble calling a method on a .NET object

2008-06-12 Thread Orian, Helmut
hi again, this was just a repro. I can not change the visibility of the "Concrete" class. The interface and the "Base" class are the public API of this assembly. I will file a bug on codeplex. Thanks and keep up the great work, Helmut Von: [EMAIL PROTECTED]