Code Voyeur
Data Access Languages MVC ORM About Roadmap Contact Site Map RSS Sample Code Presentations Snippets dll Hell .net Rate My Snippet

Articles Tagged with ironpython

A Simple IronPython Business Object Validation Framework
Frameworks like Spring.NET and the Enterprise Library provide rich, extensible validation support. In both cases, rules may be defined within the app config's XML (or some external configuration source). Castle's approach allows for custom attributes to be created, extending validation with .NET code. This article offers an in-between approach.
A Simple IronPython Dependency Injection Framework
Dependency injection frameworks (i.e., IoC containers) found as part of the Castle and Spring.NET projects (among others) support object wiring through XML. This article will demonstrate how XML and IronPython may be coupled to produce a natural and extensible language for managing object creation.
A Simple IronPython ControllerFactory for ASP.NET MVC
ASP.NET MVC includes a facility for creating a custom controller factory. By implementing IControllerFactory, it is possible to manage controllers with configuration files using popular IoC containers, such as Spring.NET and Windsor. This article will demonstrate how to manage controllers using an external IronPython configuration file to manage controller instances.
A Simple IronPython ActionFilter for ASP.NET MVC
ASP.NET MVC allows developer to wrap controller actions with arbitrary chunks of code by extending the ActionFilterAttribute class. This class provides four virtual methods that can be run before or after an action executes and before and after an actions result is delivered. This article describes how to create a single, extensible action filter that will inject IronPython scripts into the controller's request.
A Simple IronPython Route Mapper for ASP.NET MVC
Though compiled-code as configuration has become a popular alternative to XML configuration, it does come at the price of build and deployment flexibility. This article demonstrates how to avoid a cluttered Global.asax and XML config by moving ASP.NET MVC route mappings out of the standard RegisterRoutes method and into a Python file.
An Unobtrusive IronPython ViewEngine for ASP.NET MVC
ASP.NET MVC supports a variety of view engines. The default WebForms view engine mixes C# or VB.NET code blocks with standard HTML markup. In an effort to be more readable than WebForms, other view engines such as NVelocity, Brail and Razor have simplified syntaxes that are less intrusive to the HTML document. This article will introduce an experimental, but unobtrusive view engine that uses IronPython and eliminates virtually all templating code from the markup.