Revision: 471
Author:
sasha_...@mail.ru
Date: Mon Sep 27 05:39:16 2010
Log: [No log message]
http://code.google.com/p/bistro-framework/source/detail?r=471
Added:
/Integration/CastleIntegration/src
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/Castle.Monorail.Views.NDjangoView.csproj
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/Castle.Monorail.Views.NDjangoView35.csproj
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/Castle.Monorail.Views.NDjangoView40.csproj
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/Castle.Monorail.Views.NDjangoView40.csproj.user
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/MonorailUrlTag.cs
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/NDjangoViewEngine.cs
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/Properties
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/Properties/AssemblyInfo.cs
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/TemplateKeys.cs
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/TemplateLoader.cs
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/bin
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/bin/Debug
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/obj
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/obj/Debug
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/obj/Debug/TempPE
/Integration/CastleIntegration/src/DemoNDjango
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Content
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Content/images
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Content/images/mr.png
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Controllers
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Controllers/BaseController.cs
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Controllers/HomeController.cs
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Default.aspx
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/ExampleProject.csproj.user
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/ExampleProject35.csproj
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/ExampleProject40.csproj
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/ExampleProject40.csproj.user
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/GlobalApplication.cs
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Models
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Models/ContactInfo.cs
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Properties
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Properties/AssemblyInfo.cs
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Views
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Views/Common
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Views/Common/Base.django
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Views/Home
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Views/Home/Index.django
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Views/rescues
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Views/rescues/generalerror.django
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Web.config
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/Castle.Components.Binder.dll
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/Castle.Components.Common.EmailSender.dll
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/Castle.Components.DictionaryAdapter.dll
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/Castle.Components.Validator.dll
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/Castle.Core.dll
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/Castle.MonoRail.Framework.dll
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/Castle.Monorail.Views.NDjangoView.dll
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/Castle.Monorail.Views.NDjangoView.pdb
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/ExampleProject.dll
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/ExampleProject.pdb
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/NDjango.Core35.dll
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/NDjango.Core40.dll
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/NDjangoFilters.NDjangoExtension35.dll
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/NDjangoFilters.NDjangoExtension40.dll
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/global.asax
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/obj
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/obj/Debug
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/obj/Debug/TempPE
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject.Tests
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject.Tests/AssemblyInfo.cs
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject.Tests/Controllers
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject.Tests/Controllers/HomeControllerTestCase.cs
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject.Tests/ExampleProject.Tests.csproj
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject.Tests/ExampleProject.Tests.csproj.user
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject.Tests/bin
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject.Tests/bin/Debug
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject.Tests/obj
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject.Tests/obj/Debug
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject.Tests/obj/Debug/TempPE
/Integration/CastleIntegration/src/MonorailIntegration35.sln
/Integration/CastleIntegration/src/MonorailIntegration40.sln
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/Castle.Monorail.Views.NDjangoView.csproj
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build"
xmlns="
http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)'
== '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{64D8A354-DCEE-44E2-B25C-C1D1A1E7BF58}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Castle.Monorail.Views.NDjangoView</RootNamespace>
+ <AssemblyName>Castle.Monorail.Views.NDjangoView</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|
AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|
AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Castle.Core, Version=1.2.0.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\bin\Castle\Castle.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="Castle.MonoRail.Framework, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=407dd0808d44fbdc,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\bin\Castle\Castle.MonoRail.Framework.dll</HintPath>
+ </Reference>
+ <Reference Include="FSharp.Core, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>C:\Program
Files\FSharp-1.9.9.9\\bin\FSharp.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="FSharp.PowerPack, Version=1.9.9.9,
Culture=neutral, PublicKeyToken=a19089b1c74d0809,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>C:\Program
Files\FSharpPowerPack-1.9.9.9\bin\FSharp.PowerPack.dll</HintPath>
+ </Reference>
+ <Reference Include="NDjango.Core35, Version=0.9.8.0, Culture=neutral,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\bin\NDjango\NDjango.Core35.dll</HintPath>
+ </Reference>
+ <Reference Include="NDjangoFilters.NDjangoExtension35,
Version=0.9.8.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+
<HintPath>..\..\bin\NDjango\NDjangoFilters.NDjangoExtension35.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Web" />
+ <Reference Include="System.Xml.Linq">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data.DataSetExtensions">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="MonorailUrlTag.cs" />
+ <Compile Include="NDjangoViewEngine.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="TemplateKeys.cs" />
+ <Compile Include="TemplateLoader.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the
targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/Castle.Monorail.Views.NDjangoView35.csproj
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build"
xmlns="
http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)'
== '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{64D8A354-DCEE-44E2-B25C-C1D1A1E7BF58}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Castle.Monorail.Views.NDjangoView</RootNamespace>
+ <AssemblyName>Castle.Monorail.Views.NDjangoView</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|
AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|
AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Castle.Core, Version=1.2.0.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\bin\Castle\Castle.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="Castle.MonoRail.Framework, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=407dd0808d44fbdc,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\bin\Castle\Castle.MonoRail.Framework.dll</HintPath>
+ </Reference>
+ <Reference Include="FSharp.Core, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>C:\Program
Files\FSharp-1.9.9.9\\bin\FSharp.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="FSharp.PowerPack, Version=1.9.9.9,
Culture=neutral, PublicKeyToken=a19089b1c74d0809,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>C:\Program
Files\FSharpPowerPack-1.9.9.9\bin\FSharp.PowerPack.dll</HintPath>
+ </Reference>
+ <Reference Include="NDjango.Core35, Version=0.9.8.0, Culture=neutral,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\bin\NDjango\NDjango.Core35.dll</HintPath>
+ </Reference>
+ <Reference Include="NDjangoFilters.NDjangoExtension35,
Version=0.9.8.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+
<HintPath>..\..\bin\NDjango\NDjangoFilters.NDjangoExtension35.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Web" />
+ <Reference Include="System.Xml.Linq">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data.DataSetExtensions">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="MonorailUrlTag.cs" />
+ <Compile Include="NDjangoViewEngine.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="TemplateKeys.cs" />
+ <Compile Include="TemplateLoader.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the
targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/Castle.Monorail.Views.NDjangoView40.csproj
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build"
xmlns="
http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)'
== '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{64D8A354-DCEE-44E2-B25C-C1D1A1E7BF58}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Castle.Monorail.Views.NDjangoView</RootNamespace>
+ <AssemblyName>Castle.Monorail.Views.NDjangoView</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+
<PublishUrl>
http://localhost/Castle.Monorail.Views.NDjangoView/</PublishUrl>
+ <Install>true</Install>
+ <InstallFrom>Web</InstallFrom>
+ <UpdateEnabled>true</UpdateEnabled>
+ <UpdateMode>Foreground</UpdateMode>
+ <UpdateInterval>7</UpdateInterval>
+ <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+ <UpdatePeriodically>false</UpdatePeriodically>
+ <UpdateRequired>false</UpdateRequired>
+ <MapFileExtensions>true</MapFileExtensions>
+ <ApplicationRevision>0</ApplicationRevision>
+ <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
+ <IsWebBootstrapper>true</IsWebBootstrapper>
+ <UseApplicationTrust>false</UseApplicationTrust>
+ <BootstrapperEnabled>true</BootstrapperEnabled>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|
AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|
AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Castle.Core, Version=1.2.0.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\bin\Castle\Castle.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="Castle.MonoRail.Framework, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=407dd0808d44fbdc,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\bin\Castle\Castle.MonoRail.Framework.dll</HintPath>
+ </Reference>
+ <Reference Include="FSharp.Core, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
+ <Reference Include="FSharp.PowerPack, Version=1.9.9.9,
Culture=neutral, PublicKeyToken=a19089b1c74d0809,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>C:\Program
Files\FSharpPowerPack-1.9.9.9\bin\FSharp.PowerPack.dll</HintPath>
+ </Reference>
+ <Reference Include="NDjango.Core40">
+ <HintPath>..\..\bin\NDjango\NDjango.Core40.dll</HintPath>
+ </Reference>
+ <Reference Include="NDjangoFilters.NDjangoExtension40">
+
<HintPath>..\..\bin\NDjango\NDjangoFilters.NDjangoExtension40.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Web" />
+ <Reference Include="System.Xml.Linq">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data.DataSetExtensions">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="MonorailUrlTag.cs" />
+ <Compile Include="NDjangoViewEngine.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="TemplateKeys.cs" />
+ <Compile Include="TemplateLoader.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <BootstrapperPackage Include=".NETFramework,Version=v4.0">
+ <Visible>False</Visible>
+ <ProductName>Microsoft .NET Framework 4 %28x86 and
x64%29</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
+ <Install>false</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
+ <Visible>False</Visible>
+ <ProductName>.NET Framework 3.5 SP1</ProductName>
+ <Install>false</Install>
+ </BootstrapperPackage>
+ <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
+ <Visible>False</Visible>
+ <ProductName>Windows Installer 3.1</ProductName>
+ <Install>true</Install>
+ </BootstrapperPackage>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the
targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/Castle.Monorail.Views.NDjangoView40.csproj.user
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0"
xmlns="
http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <PublishUrlHistory />
+ <InstallUrlHistory />
+ <SupportUrlHistory />
+ <UpdateUrlHistory />
+ <BootstrapperUrlHistory />
+ <ErrorReportUrlHistory />
+ <FallbackCulture>en-US</FallbackCulture>
+ <VerifyUploadedFiles>true</VerifyUploadedFiles>
+ </PropertyGroup>
+</Project>
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/MonorailUrlTag.cs
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,57 @@
+// Copyright 2004-2009 Castle Project -
http://www.castleproject.org/
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//
http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+namespace Castle.Monorail.Views.NDjangoView
+{
+
+ using System;
+ using System.Collections.Generic;
+ using System.Text;
+
+ /// <summary>
+ /// Implementation of the django {% url %} tag.
+ ///
+ /// This tag will take a url in a String.Format format, and apply the
+ /// supplied parameters to it.
+ /// </summary>
+ internal class MonorailUrlTag : NDjango.Tags.Abstract.UrlTag
+ {
+ /// <summary>
+ /// Root directory
+ /// </summary>
+ private string rootDir;
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="MonorailUrlTag"/>
class.
+ /// </summary>
+ /// <param name="rootDir">The application virtual path.</param>
+ internal MonorailUrlTag(string rootDir)
+ {
+ // trim "/" to guarantee it's not there, then add to not to do
it every time
+ this.rootDir = rootDir.TrimEnd('/') + '/';
+ }
+
+ /// <summary>
+ /// Generates the URL.
+ /// </summary>
+ /// <param name="pathTemplate">The path template.</param>
+ /// <param name="parameters">The parameters.</param>
+ /// <param name="context">The context.</param>
+ /// <returns></returns>
+ public override string GenerateUrl(string pathTemplate, string[]
parameters, NDjango.Interfaces.IContext context)
+ {
+ return rootDir + String.Format(pathTemplate.Trim('/'),
parameters);
+ }
+ }
+}
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/NDjangoViewEngine.cs
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,334 @@
+// Copyright 2004-2009 Castle Project -
http://www.castleproject.org/
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//
http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+namespace Castle.Monorail.Views.NDjangoView
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Text;
+ using System.Web;
+ using System.IO;
+ using System.Collections;
+ using System.Reflection;
+ using Castle.MonoRail.Framework;
+ using Castle.Core;
+ using NDjango;
+ using NDjango.Interfaces;
+
+
+ /// <summary>
+ /// Implements a view engine using NDjango rendering engine.
+ ///
+ /// For details - see
http://www.ndjango.org
+ /// </summary>
+ public class NDjangoViewEngine : ViewEngineBase, IInitializable
+ {
+ /// <summary>
+ /// Key to use in HttpApplicationState for storing ITemplateManager.
+ /// </summary>
+ private const String cDjangoManagerKey = "_djangoManagerKey";
+ /// <summary>
+ /// Template extension
+ /// </summary>
+ private const String cTemplateExtension = ".django";
+
+ /// <summary>
+ /// Template Manager Provider stored here.
+ /// </summary>
+ private TemplateManagerProvider managerProvider;
+
+ #region IInitializable Members
+ /// <summary>
+ /// initializing managerProvider and loader.
+ /// </summary>
+ public void Initialize()
+ {
+ string path = typeof(TemplateManagerProvider).Assembly.CodeBase;
+ List<Tag> tags = new List<Tag>();
+ List<NDjango.Filter> filters = new List<NDjango.Filter>();
+ // Searching for NDjango tags and filters in the dll's.
+ if (path.StartsWith("file:///"))
+ {
+ foreach (string file in
+ Directory.GetFiles(
+ Path.GetDirectoryName(path.Substring(8)),
+ "*.dll",
+ SearchOption.AllDirectories))
+ {
+ AssemblyName name = new AssemblyName();
+ name.CodeBase = file;
+ try
+ {
+ foreach (Type t in Assembly.Load(name).GetExportedTypes())
+ {
+ if (typeof(ITag).IsAssignableFrom(t))
+ CreateEntry<Tag>(tags, t);
+ if (typeof(ISimpleFilter).IsAssignableFrom(t))
+ CreateEntry<NDjango.Filter>(filters, t);
+ }
+ }
+ // There may be unmanaged dll's, and in that case dll fails to load.
+ // We have no other option to check it
+ catch
+ {
+ }
+ }
+ }
+
+ managerProvider =
+ new TemplateManagerProvider()
+ .WithLoader(new TemplateLoader())
+ .WithFilters(filters)
+ .WithTags(tags)
+ .WithTag("url", new
MonorailUrlTag(HttpRuntime.AppDomainAppVirtualPath));
+ }
+
+ /// <summary>
+ /// Creates the class instance and adds it to the list
+ /// </summary>
+ /// <typeparam name="T"></typeparam>
+ /// <param name="list">The list.</param>
+ /// <param name="t">The type to create instance of.</param>
+ private void CreateEntry<T>(List<T> list, Type t) where T : class
+ {
+ if (t.IsAbstract)
+ return;
+ if (t.IsInterface)
+ return;
+
+ var attrs = t.GetCustomAttributes(typeof(NameAttribute), false) as
NameAttribute[];
+ if (attrs.Length == 0)
+ return;
+
+ if (t.GetConstructor(new Type[] { }) == null)
+ return;
+
+ list.Add((T)Activator.CreateInstance(typeof(T), attrs[0].Name,
Activator.CreateInstance(t)));
+ }
+
+ #endregion
+
+
+
+
+
+
+ #region IViewEngine implementation
+ /// <summary>
+ /// Not Implemented - Implementors should return a generator instance if
+ /// the view engine supports JS generation.
+ /// </summary>
+ /// <param name="context">The request context.</param>
+ /// <returns>A JS generator instance</returns>
+ public override object CreateJSGenerator(JSCodeGeneratorInfo
generatorInfo, IEngineContext context, IController controller,
IControllerContext controllerContext)
+ {
+ throw new NotImplementedException();
+ }
+
+ /// <summary>
+ /// Not Implemented - Processes the js generation view template - using
the templateName
+ /// to obtain the correct template, and using the specified <see
cref="T:System.IO.TextWriter"/>
+ /// to output the result.
+ /// </summary>
+ /// <param name="output">The output.</param>
+ /// <param name="context">The request context.</param>
+ /// <param name="controller">The controller.</param>
+ /// <param name="templateName">Name of the template.</param>
+ public override void GenerateJS(string templateName, TextWriter output,
JSCodeGeneratorInfo generatorInfo, IEngineContext context, IController
controller, IControllerContext controllerContext)
+ {
+ throw new NotImplementedException();
+ }
+
+ /// <summary>
+ /// Evaluates whether the specified template exists.
+ /// </summary>
+ /// <param name="templateName"></param>
+ /// <returns><c>true</c> if it exists</returns>
+ public override bool HasTemplate(string templateName)
+ {
+ string filename = HttpRuntime.AppDomainAppPath + "Views\\" +
templateName + ".django";
+ return File.Exists(filename);
+ }
+
+ /// <summary>
+ /// Not Implemented - Gets the JS generator file extension.
+ /// </summary>
+ /// <value>The JS generator file extension.</value>
+ public override string JSGeneratorFileExtension
+ {
+ get { throw new NotImplementedException(); }
+ }
+
+ /// <summary>
+ /// Processes the view - using the templateName
+ /// to obtain the correct template
+ /// and writes the results to the System.IO.TextWriter.
+ /// </summary>
+ /// <param name="output"></param>
+ /// <param name="context"></param>
+ /// <param name="controller"></param>
+ /// <param name="templateName"></param>
+ public override void Process(string templateName, TextWriter output,
IEngineContext context, IController controller, IControllerContext
controllerContext)
+ {
+
+ HttpApplicationState app = context.UnderlyingContext.Application;
+ // If there's no manager - managerProvider will return new one for us.
+ if (app[cDjangoManagerKey] == null)
+ {
+ // Since one HttpApplication processed by a single thread - we don't
need no locking here.
+ app[cDjangoManagerKey] = managerProvider.GetNewManager();
+ }
+
+ ITemplateManager mgr = app[cDjangoManagerKey] as ITemplateManager;
+ if (mgr == null)
+ {
+ if (Logger.IsErrorEnabled)
+ {
+ Logger.Error("Couldn't get ITemplateManager from the
HttpApplicationState");
+ }
+
+ throw new MonoRailException("Couldn't get ITemplateManager from the
HttpApplicationState");
+ }
+
+
+ AdjustContentType(context);
+
+ string resolvedName = Path.HasExtension(templateName) ? templateName :
templateName + cTemplateExtension;
+
+ try
+ {
+ var djangoContext = CreateContext(context, (Controller)controller);
+
+ TextReader reader = mgr.RenderTemplate(resolvedName, djangoContext);
+ char[] buffer = new char[4096];
+ int count = 0;
+ while ((count = reader.ReadBlock(buffer, 0, 4096)) > 0)
+ output.Write(buffer, 0, count);
+ }
+ catch (Exception ex)
+ {
+ if (Logger.IsErrorEnabled)
+ {
+ Logger.Error("Could not render view", ex);
+ }
+
+ throw new MonoRailException("Could not render view: " + resolvedName,
ex);
+ }
+ }
+
+ /// <summary>
+ /// Processes the view - using the templateName
+ /// to obtain the correct template,
+ /// and using the context's response's output to output the result.
+ /// </summary>
+ /// <param name="context"></param>
+ /// <param name="controller"></param>
+ /// <param name="templateName"></param>
+ public override void Process(string templateName, string layoutName,
TextWriter output, IDictionary<string, object> parameters)
+ {
+ throw new NotImplementedException();
+ }
+
+
+ /// <summary>
+ /// Not Implemented - Should process the specified partial. The partial
name must contains
+ /// the path relative to the views folder.
+ /// </summary>
+ /// <param name="output">The output.</param>
+ /// <param name="context">The request context.</param>
+ /// <param name="controller">The controller.</param>
+ /// <param name="partialName">The partial name.</param>
+ public override void ProcessPartial(string partialName, TextWriter
output, IEngineContext context, IController controller, IControllerContext
controllerContext)
+ {
+ throw new NotImplementedException();
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether [supports JS generation].
+ /// </summary>
+ /// <value>
+ /// <c>true</c> if [supports JS generation]; otherwise, <c>false</c>.
+ /// </value>
+ public override bool SupportsJSGeneration
+ {
+ get { return false; }
+ }
+
+ /// <summary>
+ /// Gets the view file extension for ndjango templates.
+ /// </summary>
+ /// <value>The view file extension for ndjango templates.</value>
+ public override string ViewFileExtension
+ {
+ get { return cTemplateExtension; }
+ }
+ public override void RenderStaticWithinLayout(string contents,
IEngineContext context, IController controller, IControllerContext
controllerContext)
+ {
+ throw new NotImplementedException();
+ }
+ #endregion
+
+ #region Context creation
+ /// <summary>
+ /// Creates the context form the Rails Context and the controller.
+ /// </summary>
+ /// <param name="context">The context.</param>
+ /// <param name="controller">The controller.</param>
+ /// <returns></returns>
+ private IDictionary<string, object> CreateContext(IEngineContext
context, Controller controller)
+ {
+ // Ndjango context is actually a dictionary with string keys.
+ IDictionary<string, object> ndjangoContext = new Dictionary<string,
object>();
+ ndjangoContext.Add(TemplateKeys.Controller, controller);
+ ndjangoContext.Add(TemplateKeys.Context, context);
+ ndjangoContext.Add(TemplateKeys.Request, context.Request);
+ ndjangoContext.Add(TemplateKeys.Response, context.Response);
+ ndjangoContext.Add(TemplateKeys.Session, context.Session);
+
+ // Drop in controller's resources
+ if (controller.Resources != null)
+ {
+ foreach (String key in controller.Resources.Keys)
+ {
+ ndjangoContext[key] = controller.Resources[key];
+ }
+ }
+
+ // All context parameters
+ //foreach (String key in context.Params.AllKeys)
+ //{
+ // if (key == null) continue;
+ // object value = context.Params[key ?? ""];
+ //}
+
+ // And finally - the property bag of the controller
+ if (controller.PropertyBag != null)
+ {
+ foreach (DictionaryEntry entry in controller.PropertyBag)
+ {
+ String entryKey = entry.Key as string;
+ if (entryKey == null) continue;
+ ndjangoContext[entryKey] = entry.Value;
+ }
+ }
+
+ return ndjangoContext;
+
+ }
+
+ #endregion
+
+ }
+}
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/Properties/AssemblyInfo.cs
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,50 @@
+// Copyright 2004-2009 Castle Project -
http://www.castleproject.org/
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//
http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the
following
+// set of attributes. Change these attribute values to modify the
information
+// associated with an assembly.
+[assembly: AssemblyTitle("Castle.Monorail.Views.NDjango")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Hill30")]
+[assembly: AssemblyProduct("Castle.Monorail.Views.NDjango")]
+[assembly: AssemblyCopyright("Copyright © Hill30 2009")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is
exposed to COM
+[assembly: Guid("e1960627-3fe7-4e5c-ac5e-a472b59bb946")]
+
+// Version information for an assembly consists of the following four
values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and
Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("0.9.0.0")]
+[assembly: AssemblyFileVersion("0.9.0.0")]
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/TemplateKeys.cs
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,33 @@
+// Copyright 2004-2009 Castle Project -
http://www.castleproject.org/
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//
http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+namespace Castle.Monorail.Views.NDjangoView
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Text;
+
+ /// <summary>
+ /// Class containing constants for use in the context dictionary and
in the template.
+ /// </summary>
+ public static class TemplateKeys
+ {
+ public const String Context = "context";
+ public const String Request = "request";
+ public const String Response = "response";
+ public const String Session = "session";
+ public const String Controller = "controller";
+ }
+}
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/Castle.Monorail.Views.NDjangoView/TemplateLoader.cs
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,72 @@
+// Copyright 2004-2009 Castle Project -
http://www.castleproject.org/
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+//
http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+namespace Castle.Monorail.Views.NDjangoView
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Text;
+ using System.IO;
+ using System.Web;
+ using NDjango.Interfaces;
+
+ /// <summary>
+ /// Class, which implements ITemplateLoader interface - used by
NDjango engine to load templates
+ /// and check - whether template was updated.
+ /// </summary>
+ internal class TemplateLoader : ITemplateLoader
+ {
+ /// <summary>
+ /// Views directory - templates are stored here.
+ /// </summary>
+ private string rootDir;
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="TemplateLoader"/>
class.
+ /// Sets initial directory, where templates are.
+ /// </summary>
+ internal TemplateLoader()
+ {
+ rootDir = HttpRuntime.AppDomainAppPath + "Views\\";
+ }
+
+ #region ITemplateLoader Members
+
+ /// <summary>
+ /// Gets the template.
+ /// </summary>
+ /// <param name="name">The name.</param>
+ /// <returns></returns>
+ public TextReader GetTemplate(string name)
+ {
+ return File.OpenText(Path.Combine(rootDir, name));
+ }
+
+ /// <summary>
+ /// Determines whether the specified name is updated.
+ /// </summary>
+ /// <param name="name">The name.</param>
+ /// <param name="timestamp">The timestamp.</param>
+ /// <returns>
+ /// <c>true</c> if the specified name is updated; otherwise,
<c>false</c>.
+ /// </returns>
+ public bool IsUpdated(string name, System.DateTime timestamp)
+ {
+ return File.GetLastWriteTime(Path.Combine(rootDir, name)) >
timestamp;
+ }
+
+ #endregion
+ }
+}
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Content/images/mr.png
Mon Sep 27 05:39:16 2010
Binary file, no diff available.
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Controllers/BaseController.cs
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,9 @@
+namespace ExampleProject.Controllers
+{
+ using Castle.MonoRail.Framework;
+
+ [Rescue("generalerror")]
+ public abstract class BaseController : SmartDispatcherController
+ {
+ }
+}
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Controllers/HomeController.cs
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,21 @@
+namespace ExampleProject.Controllers
+{
+ using System;
+ using ExampleProject.Models;
+
+ public class HomeController : BaseController
+ {
+ public void Index()
+ {
+ PropertyBag["AccessDate"] = DateTime.Now;
+ var testData = new ContactInfo();
+ testData.Email = "a@b.c";
+ PropertyBag["testData"] = testData;
+ }
+
+ public void BlowItAway()
+ {
+ throw new Exception("Exception thrown from a MonoRail action");
+ }
+ }
+}
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Default.aspx
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,8 @@
+<%@ Page Language="C#" %>
+<script runat="server">
+ protected override void OnLoad(EventArgs e)
+ {
+ Response.Redirect("~/home/index.castle");
+ base.OnLoad(e);
+ }
+</script>
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/ExampleProject.csproj.user
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project xmlns="
http://schemas.microsoft.com/developer/msbuild/2003">
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <StartPageUrl>
+ </StartPageUrl>
+ <StartAction>CurrentPage</StartAction>
+ <AspNetDebugging>True</AspNetDebugging>
+ <SilverlightDebugging>False</SilverlightDebugging>
+ <NativeDebugging>False</NativeDebugging>
+ <SQLDebugging>False</SQLDebugging>
+ <ExternalProgram>
+ </ExternalProgram>
+ <StartExternalURL>
+ </StartExternalURL>
+ <StartCmdLineArguments>
+ </StartCmdLineArguments>
+ <StartWorkingDirectory>
+ </StartWorkingDirectory>
+ <EnableENC>False</EnableENC>
+ <AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+</Project>
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/ExampleProject35.csproj
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build"
xmlns="
http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion="3.5">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)'
== '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{EAF16D88-38FF-4495-BC40-AAE93FD250EC}</ProjectGuid>
+
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>ExampleProject</RootNamespace>
+ <AssemblyName>ExampleProject</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|
AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|
AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Castle.Components.Binder, Version=1.0.3.0,
Culture=neutral, PublicKeyToken=407dd0808d44fbdc,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\bin\Castle\Castle.Components.Binder.dll</HintPath>
+ </Reference>
+ <Reference Include="Castle.Components.Common.EmailSender,
Version=1.0.3.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+
<HintPath>..\..\..\bin\Castle\Castle.Components.Common.EmailSender.dll</HintPath>
+ </Reference>
+ <Reference Include="Castle.Components.Validator, Version=1.0.3.0,
Culture=neutral, PublicKeyToken=407dd0808d44fbdc,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+
<HintPath>..\..\..\bin\Castle\Castle.Components.Validator.dll</HintPath>
+ </Reference>
+ <Reference Include="Castle.Core, Version=1.0.3.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\bin\Castle\Castle.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="Castle.MonoRail.Framework, Version=1.0.3.0,
Culture=neutral, PublicKeyToken=407dd0808d44fbdc,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+
<HintPath>..\..\..\bin\Castle\Castle.MonoRail.Framework.dll</HintPath>
+ </Reference>
+ <Reference Include="NDjango.Core35, Version=0.9.8.0, Culture=neutral,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\bin\NDjango\NDjango.Core35.dll</HintPath>
+ </Reference>
+ <Reference Include="NDjangoFilters.NDjangoExtension35,
Version=0.9.8.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+
<HintPath>..\..\..\bin\NDjango\NDjangoFilters.NDjangoExtension35.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Data.DataSetExtensions, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089,
processorArchitecture=MSIL">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Web.Extensions, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Web.Extensions.Design, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Configuration" />
+ <Reference Include="System.Xml.Linq, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="Content\images\mr.png" />
+ <Content Include="Default.aspx" />
+ <Content Include="global.asax" />
+ <Content Include="Web.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Controllers\BaseController.cs" />
+ <Compile Include="Controllers\HomeController.cs" />
+ <Compile Include="GlobalApplication.cs" />
+ <Compile Include="Models\ContactInfo.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Views\Common\Base.django" />
+ <None Include="Views\Home\Index.django" />
+ <None Include="Views\rescues\generalerror.django" />
+ </ItemGroup>
+ <ItemGroup>
+ <Service Include="{B4F97281-0DBD-4835-9ED8-7DFB966E87FF}" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference
Include="..\..\Castle.Monorail.Views.NDjangoView\Castle.Monorail.Views.NDjangoView.csproj">
+ <Project>{64D8A354-DCEE-44E2-B25C-C1D1A1E7BF58}</Project>
+ <Name>Castle.Monorail.Views.NDjangoView</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <Import
Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets"
/>
+ <!-- To modify your build process, add your task inside one of the
targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <UseIIS>False</UseIIS>
+ <AutoAssignPort>True</AutoAssignPort>
+ <DevelopmentServerPort>1684</DevelopmentServerPort>
+ <DevelopmentServerVPath>/</DevelopmentServerVPath>
+ <IISUrl>
http://localhost/ExampleProject</IISUrl>
+ <NTLMAuthentication>False</NTLMAuthentication>
+ <UseCustomServer>False</UseCustomServer>
+ <CustomServerUrl>
+ </CustomServerUrl>
+
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+</Project>
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/ExampleProject40.csproj
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,138 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build"
xmlns="
http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion="4.0">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)'
== '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{EAF16D88-38FF-4495-BC40-AAE93FD250EC}</ProjectGuid>
+
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>ExampleProject</RootNamespace>
+ <AssemblyName>ExampleProject</AssemblyName>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|
AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|
AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Castle.Components.Binder, Version=1.0.3.0,
Culture=neutral, PublicKeyToken=407dd0808d44fbdc,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\bin\Castle\Castle.Components.Binder.dll</HintPath>
+ </Reference>
+ <Reference Include="Castle.Components.Common.EmailSender,
Version=1.0.3.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+
<HintPath>..\..\..\bin\Castle\Castle.Components.Common.EmailSender.dll</HintPath>
+ </Reference>
+ <Reference Include="Castle.Components.Validator, Version=1.0.3.0,
Culture=neutral, PublicKeyToken=407dd0808d44fbdc,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+
<HintPath>..\..\..\bin\Castle\Castle.Components.Validator.dll</HintPath>
+ </Reference>
+ <Reference Include="Castle.Core, Version=1.0.3.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\bin\Castle\Castle.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="Castle.MonoRail.Framework, Version=1.0.3.0,
Culture=neutral, PublicKeyToken=407dd0808d44fbdc,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+
<HintPath>..\..\..\bin\Castle\Castle.MonoRail.Framework.dll</HintPath>
+ </Reference>
+ <Reference Include="NDjango.Core35, Version=0.9.8.0, Culture=neutral,
processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\bin\NDjango\NDjango.Core35.dll</HintPath>
+ </Reference>
+ <Reference Include="NDjangoFilters.NDjangoExtension35,
Version=0.9.8.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+
<HintPath>..\..\..\bin\NDjango\NDjangoFilters.NDjangoExtension35.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Web.Extensions" />
+ <Reference Include="System.Web.Extensions.Design" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Configuration" />
+ <Reference Include="System.Xml.Linq" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="Content\images\mr.png" />
+ <Content Include="Default.aspx" />
+ <Content Include="global.asax" />
+ <Content Include="Web.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Controllers\BaseController.cs" />
+ <Compile Include="Controllers\HomeController.cs" />
+ <Compile Include="GlobalApplication.cs" />
+ <Compile Include="Models\ContactInfo.cs">
+ <SubType>Code</SubType>
+ </Compile>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Views\Common\Base.django" />
+ <None Include="Views\Home\Index.django" />
+ <None Include="Views\rescues\generalerror.django" />
+ </ItemGroup>
+ <ItemGroup>
+ <Service Include="{B4F97281-0DBD-4835-9ED8-7DFB966E87FF}" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference
Include="..\..\Castle.Monorail.Views.NDjangoView\Castle.Monorail.Views.NDjangoView.csproj">
+ <Project>{64D8A354-DCEE-44E2-B25C-C1D1A1E7BF58}</Project>
+ <Name>Castle.Monorail.Views.NDjangoView</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <Import
Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets"
/>
+ <!-- To modify your build process, add your task inside one of the
targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <UseIIS>False</UseIIS>
+ <AutoAssignPort>True</AutoAssignPort>
+ <DevelopmentServerPort>1684</DevelopmentServerPort>
+ <DevelopmentServerVPath>/</DevelopmentServerVPath>
+ <IISUrl>
http://localhost/ExampleProject</IISUrl>
+ <NTLMAuthentication>False</NTLMAuthentication>
+ <UseCustomServer>False</UseCustomServer>
+ <CustomServerUrl>
+ </CustomServerUrl>
+
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+</Project>
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/ExampleProject40.csproj.user
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0"
xmlns="
http://schemas.microsoft.com/developer/msbuild/2003">
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+ <WebProjectProperties>
+ <StartPageUrl>
+ </StartPageUrl>
+ <StartAction>CurrentPage</StartAction>
+ <AspNetDebugging>True</AspNetDebugging>
+ <SilverlightDebugging>False</SilverlightDebugging>
+ <NativeDebugging>False</NativeDebugging>
+ <SQLDebugging>False</SQLDebugging>
+ <ExternalProgram>
+ </ExternalProgram>
+ <StartExternalURL>
+ </StartExternalURL>
+ <StartCmdLineArguments>
+ </StartCmdLineArguments>
+ <StartWorkingDirectory>
+ </StartWorkingDirectory>
+ <EnableENC>False</EnableENC>
+ <AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug>
+ </WebProjectProperties>
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+</Project>
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/GlobalApplication.cs
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,25 @@
+namespace ExampleProject
+{
+ using System;
+ using System.Web;
+ using Castle.MonoRail.Framework.Routing;
+
+ public class GlobalApplication : HttpApplication
+ {
+ public GlobalApplication()
+ {
+ }
+
+ public void Application_OnStart()
+ {
+ RoutingModuleEx.Engine.Add(
+ new PatternRoute("/<controller>/<id>/view.aspx")
+ .DefaultForAction().Is("view"));
+
+ }
+
+ public void Application_OnEnd()
+ {
+ }
+ }
+}
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Models/ContactInfo.cs
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,33 @@
+namespace ExampleProject.Models
+{
+ using Castle.Components.Validator;
+ using System;
+
+ public class ContactInfo
+ {
+ private string name, email, message;
+
+ [ValidateNonEmpty]
+ public string Name
+ {
+ get { return name; }
+ set { name = value; }
+ }
+
+ [ValidateNonEmpty, ValidateEmail]
+ public string Email
+ {
+ get { return email; }
+ set { email = value; }
+ }
+
+ [ValidateNonEmpty]
+ public string Message
+ {
+ get { return message; }
+ set { message = value; }
+ }
+
+
+ }
+}
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Properties/AssemblyInfo.cs
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,31 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// Change me!
+[assembly: AssemblyTitle("MonoRail Web Project")]
+
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+
+// Change me!
+[assembly: AssemblyProduct("MonoRail Web Project")]
+
+// Change me!
+[assembly: AssemblyCopyright("Copyright © 2007")]
+
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Version information for an assembly consists of the following four
values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and
Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Views/Common/Base.django
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,22 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="
http://www.w3.org/1999/xhtml" >
+<head>
+ <title>
+ {% block Title %}
+ Base Title
+ {% endblock %}
+ </title>
+</head>
+<body>
+<h3>This text comes from the base template.</h3>
+
+Base text.
+
+<h3>While following - from the inherited template.</h3>
+{% block body %}
+Base body.
+{% endblock %}
+
+</body>
+</html>
+
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Views/Home/Index.django
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,13 @@
+{% extends "Common/base.django" %}
+
+{% block Title %}
+ New Template
+
+{% endblock %}
+{% block body %}
+ Hello world. Test email:{{ testData.Email }} <br />
+ Image example <img src ="{% url 'Content/images/mr.png' %}" border="0"
/>
+
+{% endblock %}
+
+
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Views/rescues/generalerror.django
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,16 @@
+{% extends "Common/base.django" %}
+
+{% block Title %}
+ Unexpected error happenend
+{% endblock %}
+{% block body %}
+ <h2>Unexpected error happenend</h2>
+
+ <p> This is the rescue page and it is supposed to show you a nice
message.</p>
+{% endblock %}
+
+
+
+
+
+
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/Web.config
Mon Sep 27 05:39:16 2010
@@ -0,0 +1,76 @@
+<?xml version="1.0"?>
+<configuration>
+ <configSections>
+ <section name="monorail"
type="Castle.MonoRail.Framework.Configuration.MonoRailSectionHandler,
Castle.MonoRail.Framework"/>
+ <sectionGroup name="system.web.extensions"
type="System.Web.Configuration.SystemWebExtensionsSectionGroup,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35">
+ <sectionGroup name="scripting"
type="System.Web.Configuration.ScriptingSectionGroup,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35">
+ <section name="scriptResourceHandler"
type="System.Web.Configuration.ScriptingScriptResourceHandlerSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
+ <sectionGroup name="webServices"
type="System.Web.Configuration.ScriptingWebServicesSectionGroup,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35">
+ <section name="jsonSerialization"
type="System.Web.Configuration.ScriptingJsonSerializationSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="Everywhere"/>
+ <section name="profileService"
type="System.Web.Configuration.ScriptingProfileServiceSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
+ <section name="authenticationService"
type="System.Web.Configuration.ScriptingAuthenticationServiceSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/>
+ <section name="roleService"
type="System.Web.Configuration.ScriptingRoleServiceSection,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" requirePermission="false"
allowDefinition="MachineToApplication"/></sectionGroup></sectionGroup></sectionGroup></configSections>
+ <!--
+ For more on MonoRail configuration see
+
http://www.castleproject.org/monorail/documentation/v1rc3/index.html
+ -->
+ <monorail smtpHost="yoursmtphost" useWindsorIntegration="false">
+ <controllers>
+ <assembly>ExampleProject</assembly>
+ </controllers>
+ <viewEngines viewPathRoot="Views">
+ <add xhtml="false"
type="Castle.Monorail.Views.NDjangoView.NDjangoViewEngine,
Castle.Monorail.Views.NDjangoView"/>
+ </viewEngines>
+ </monorail>
+ <system.web>
+ <httpHandlers>
+ <add verb="*" path="*.castle"
type="Castle.MonoRail.Framework.MonoRailHttpHandlerFactory,
Castle.MonoRail.Framework"/>
+ <!-- block direct user access to template files -->
+ <add verb="*" path="*.django" type="System.Web.HttpForbiddenHandler"/>
+ <add verb="*" path="*.vm" type="System.Web.HttpForbiddenHandler"/>
+ <add verb="*" path="*.njs" type="System.Web.HttpForbiddenHandler"/>
+ <add verb="*" path="*.brail" type="System.Web.HttpForbiddenHandler"/>
+ <add verb="*" path="*.brailjs" type="System.Web.HttpForbiddenHandler"/>
+ <add verb="*" path="*.st" type="System.Web.HttpForbiddenHandler"/>
+ <remove verb="*" path="*.asmx"/>
+ <add verb="*" path="*.asmx" validate="false"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
+ <add verb="*" path="*_AppService.axd" validate="false"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
+ <add verb="GET,HEAD" path="ScriptResource.axd" validate="false"
type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/></httpHandlers>
+ <httpModules>
+ <add name="monorail"
type="Castle.MonoRail.Framework.Routing.RoutingModuleEx,
Castle.MonoRail.Framework"/>
+ <add name="ScriptModule" type="System.Web.Handlers.ScriptModule,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/></httpModules>
+ <compilation debug="true">
+ <assemblies>
+ <add assembly="System.Core, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089"/>
+ <add assembly="System.Web.Extensions, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
+ <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089"/>
+ <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0,
Culture=neutral,
PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
+ <pages>
+ <controls>
+ <add tagPrefix="asp" namespace="System.Web.UI"
assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
+ <add tagPrefix="asp" namespace="System.Web.UI.WebControls"
assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/></controls></pages></system.web>
+ <system.codedom>
+ <compilers>
+ <compiler language="c#;cs;csharp" extension=".cs"
type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
+ <providerOption name="CompilerVersion" value="v3.5"/>
+ <providerOption name="WarnAsError"
value="false"/></compiler></compilers></system.codedom>
+ <system.webServer>
+ <validation validateIntegratedModeConfiguration="false"/>
+ <modules>
+ <remove name="ScriptModule"/>
+ <add name="ScriptModule" preCondition="managedHandler"
type="System.Web.Handlers.ScriptModule, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/></modules>
+ <handlers>
+ <remove name="WebServiceHandlerFactory-Integrated"/>
+ <remove name="ScriptHandlerFactory"/>
+ <remove name="ScriptHandlerFactoryAppServices"/>
+ <remove name="ScriptResource"/>
+ <add name="ScriptHandlerFactory" verb="*" path="*.asmx"
preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
+ <add name="ScriptHandlerFactoryAppServices" verb="*"
path="*_AppService.axd" preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>
+ <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd"
preCondition="integratedMode"
type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions,
Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/></handlers></system.webServer>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
appliesTo="v2.0.50727"><dependentAssembly>
+ <assemblyIdentity name="System.Web.Extensions"
publicKeyToken="31bf3856ad364e35"/>
+ <bindingRedirect oldVersion="1.0.0.0-1.1.0.0"
newVersion="3.5.0.0"/></dependentAssembly>
+ <dependentAssembly>
+ <assemblyIdentity name="System.Web.Extensions.Design"
publicKeyToken="31bf3856ad364e35"/>
+ <bindingRedirect oldVersion="1.0.0.0-1.1.0.0"
newVersion="3.5.0.0"/></dependentAssembly></assemblyBinding></runtime></configuration>
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/Castle.Components.Binder.dll
Mon Sep 27 05:39:16 2010
Binary file, no diff available.
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/Castle.Components.Common.EmailSender.dll
Mon Sep 27 05:39:16 2010
Binary file, no diff available.
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/Castle.Components.DictionaryAdapter.dll
Mon Sep 27 05:39:16 2010
Binary file, no diff available.
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/Castle.Components.Validator.dll
Mon Sep 27 05:39:16 2010
Binary file, no diff available.
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/Castle.Core.dll
Mon Sep 27 05:39:16 2010
Binary file, no diff available.
=======================================
--- /dev/null
+++
/Integration/CastleIntegration/src/DemoNDjango/ExampleProject/bin/Castle.MonoRail.Framework.dll
Mon Sep 27 05:39:16 2010
Binary file, no diff available.
=======================================
***Additional files exist in this changeset.***