From 6519055d21697a7933bb6f7185a82ee73e2713ae Mon Sep 17 00:00:00 2001 From: PerPloug Date: Mon, 28 Feb 2011 09:16:35 -0100 Subject: [PATCH 01/13] New nant file --- default.build | 105 +++++++++++++++++++++++++++++++++++--------------- 1 file changed, 74 insertions(+), 31 deletions(-) diff --git a/default.build b/default.build index 6be7ce3532..82515352bd 100644 --- a/default.build +++ b/default.build @@ -14,7 +14,11 @@ + + + + @@ -41,8 +45,7 @@ - - + @@ -84,9 +87,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -108,13 +156,15 @@ + + @@ -133,13 +183,14 @@ + - + @@ -234,33 +285,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -348,15 +372,34 @@ + + + + + + + + + + + + + + + + + + + From dbc8a0762897d2602b16d32b0ca0e2d30453585a Mon Sep 17 00:00:00 2001 From: PerPloug Date: Mon, 28 Feb 2011 09:21:22 -0100 Subject: [PATCH 02/13] sdsad --- umbraco.sln | 201 -------------------------- umbraco/presentation/web.config | 242 -------------------------------- 2 files changed, 443 deletions(-) delete mode 100644 umbraco.sln delete mode 100644 umbraco/presentation/web.config diff --git a/umbraco.sln b/umbraco.sln deleted file mode 100644 index 0f4e59c558..0000000000 --- a/umbraco.sln +++ /dev/null @@ -1,201 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{F0242771-6DE6-4E03-BD3A-7B79BA79105B}" - ProjectSection(SolutionItems) = preProject - aspnet35.build = aspnet35.build - build.xml = build.xml - default.build = default.build - INDIGO64.testrunconfig = INDIGO64.testrunconfig - SHANDEMVAIO.testrunconfig = SHANDEMVAIO.testrunconfig - SHOCKING.testrunconfig = SHOCKING.testrunconfig - umbraco weekly.build = umbraco weekly.build - umbraco.build = umbraco.build - umbraco2.vsmdi = umbraco2.vsmdi - UMBRACOELISE.testrunconfig = UMBRACOELISE.testrunconfig - UMBRACOHUMMER.testrunconfig = UMBRACOHUMMER.testrunconfig - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "StandardConfig", "StandardConfig", "{B8ECDB8B-BF44-462C-B6DA-22421B3EC4D7}" - ProjectSection(SolutionItems) = preProject - aspnet35.config = aspnet35.config - config templates\config\UI.xml = config templates\config\UI.xml - config templates\umbraco.config = config templates\umbraco.config - config templates\config\umbracoSettings.config = config templates\config\umbracoSettings.config - config templates\config\UrlRewriting.config = config templates\config\UrlRewriting.config - config templates\web.config = config templates\web.config - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Packages", "Packages", "{5BB61485-B480-4A03-A8DD-1636A5AF575C}" - ProjectSection(SolutionItems) = preProject - config templates\packages\createdPackages.config = config templates\packages\createdPackages.config - config templates\packages\installedPackages.config = config templates\packages\installedPackages.config - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "config", "config", "{05329DB0-5C47-44A1-B7B8-BF377446BCD1}" - ProjectSection(SolutionItems) = preProject - config templates\config\404handlers.config = config templates\config\404handlers.config - config templates\config\ClientDependency.config = config templates\config\ClientDependency.config - config templates\config\ExamineIndex.config = config templates\config\ExamineIndex.config - config templates\config\ExamineSettings.config = config templates\config\ExamineSettings.config - config templates\config\formHandlers.config = config templates\config\formHandlers.config - config templates\config\metablogConfig.config = config templates\config\metablogConfig.config - config templates\config\restExtensions.config = config templates\config\restExtensions.config - config templates\config\scripting.config = config templates\config\scripting.config - config templates\config\tinyMceConfig.config = config templates\config\tinyMceConfig.config - config templates\config\umbracoSettings.config = config templates\config\umbracoSettings.config - config templates\config\UrlRewriting.config = config templates\config\UrlRewriting.config - config templates\config\xsltExtensions.config = config templates\config\xsltExtensions.config - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{58072405-85D0-45CA-8F5C-EA8928C32A6A}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Upgrade 4.1", "Upgrade 4.1", "{C5FA9596-B9DC-4DF9-8380-AFC19C1EF51F}" - ProjectSection(SolutionItems) = preProject - UpgradeReadme.txt = UpgradeReadme.txt - EndProjectSection -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DLLs", "DLLs", "{F06D18F6-C510-4CBA-9514-0F890FD62103}" - ProjectSection(SolutionItems) = preProject - foreign dlls\ClientDependency.Core.dll = foreign dlls\ClientDependency.Core.dll - foreign dlls\CookComputing.XmlRpcV2.dll = foreign dlls\CookComputing.XmlRpcV2.dll - foreign dlls\Examine.dll = foreign dlls\Examine.dll - foreign dlls\HtmlAgilityPack.dll = foreign dlls\HtmlAgilityPack.dll - foreign dlls\ICSharpCode.SharpZipLib.dll = foreign dlls\ICSharpCode.SharpZipLib.dll - foreign dlls\IronMath.dll = foreign dlls\IronMath.dll - IronPython License.Rtf = IronPython License.Rtf - License.txt = License.txt - foreign dlls\Microsoft.ApplicationBlocks.Data.dll = foreign dlls\Microsoft.ApplicationBlocks.Data.dll - foreign dlls\WebPages\Microsoft.Web.Infrastructure.dll = foreign dlls\WebPages\Microsoft.Web.Infrastructure.dll - foreign dlls\MySql.Data.dll = foreign dlls\MySql.Data.dll - foreign dlls\TidyNet.dll = foreign dlls\TidyNet.dll - foreign dlls\UmbracoExamine.dll = foreign dlls\UmbracoExamine.dll - foreign dlls\UrlRewritingNet.UrlRewriter.dll = foreign dlls\UrlRewritingNet.UrlRewriter.dll - foreign dlls\VistaDB For Umbraco.dll = foreign dlls\VistaDB For Umbraco.dll - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.presentation", "umbraco\presentation\umbraco.presentation.csproj", "{651E1350-91B6-44B7-BD60-7207006D7003}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.businesslogic", "umbraco\businesslogic\umbraco.businesslogic.csproj", "{E469A9CE-1BEC-423F-AC44-713CD72457EA}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.cms", "umbraco\cms\umbraco.cms.csproj", "{CCD75EC3-63DB-4184-B49D-51C1DD337230}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.interfaces", "umbraco\interfaces\umbraco.interfaces.csproj", "{511F6D8D-7717-440A-9A57-A507E9A8B27F}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.editorControls", "components\editorControls\umbraco.editorControls.csproj", "{255F5DF1-4E43-4758-AC05-7A0B68EB021B}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.macroRenderings", "components\macroRenderings\umbraco.macroRenderings.csproj", "{52AB8F1F-FB76-4E8C-885F-0747B6CE71EC}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.providers", "umbraco\providers\umbraco.providers.csproj", "{D7636876-0756-43CB-A192-138C6F0D5E42}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.datalayer", "umbraco\datalayer\umbraco.datalayer.csproj", "{C7CB79F0-1C97-4B33-BFA7-00731B579AE2}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.controls", "components\umbraco.controls\umbraco.controls.csproj", "{6EDD2061-82F2-461B-BB6E-879245A832DE}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.webservices", "components\umbraco.webservices\umbraco.webservices.csproj", "{CBDB56AC-FF02-4421-9FD4-ED82E339D8E2}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.Linq.Core", "LinqToUmbraco\src\umbraco.Linq\Core\umbraco.Linq.Core.csproj", "{31CAEC36-0C3D-4D69-B092-84866811EA07}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.Legacy", "umbraco\umbraco.Legacy\umbraco.Legacy.csproj", "{27A2590E-1313-4A33-89FD-92811540B69C}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.Test", "umbraco.Test\umbraco.Test.csproj", "{6277C9FB-3A9A-4537-AA86-82DA9B2527FD}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "assets", "assets", "{19400916-4F71-45A0-B0E0-F9BE406D7772}" - ProjectSection(SolutionItems) = preProject - assets\Umbraco.sdf = assets\Umbraco.sdf - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SqlCE4Umbraco", "components\SQLCE4Umbraco\SqlCE4Umbraco.csproj", "{5BA5425F-27A7-4677-865E-82246498AA2E}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.MacroEngines.Legacy", "umbraco.MacroEngines\umbraco.MacroEngines.Legacy.csproj", "{6AE67079-2C00-476C-81DE-2800D1AC14BC}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.MacroEngines", "umbraco.MacroEngines.Juno\umbraco.MacroEngines.csproj", "{89C09045-1064-466B-B94A-DB3AFE2A5853}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WebPi", "WebPi", "{AA6839DD-07D5-4277-915D-8C9290A36D5B}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.MacroEngines.Iron", "umbraco.MacroEngines.Iron\umbraco.MacroEngines.Iron.csproj", "{98CBA7E2-1B62-497C-8AA3-B868704068D7}" -EndProject -Global - GlobalSection(TestCaseManagementSettings) = postSolution - CategoryFile = umbraco2.vsmdi - EndGlobalSection - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {651E1350-91B6-44B7-BD60-7207006D7003}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {651E1350-91B6-44B7-BD60-7207006D7003}.Debug|Any CPU.Build.0 = Debug|Any CPU - {651E1350-91B6-44B7-BD60-7207006D7003}.Release|Any CPU.ActiveCfg = Release|Any CPU - {651E1350-91B6-44B7-BD60-7207006D7003}.Release|Any CPU.Build.0 = Release|Any CPU - {E469A9CE-1BEC-423F-AC44-713CD72457EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E469A9CE-1BEC-423F-AC44-713CD72457EA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E469A9CE-1BEC-423F-AC44-713CD72457EA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E469A9CE-1BEC-423F-AC44-713CD72457EA}.Release|Any CPU.Build.0 = Release|Any CPU - {CCD75EC3-63DB-4184-B49D-51C1DD337230}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CCD75EC3-63DB-4184-B49D-51C1DD337230}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CCD75EC3-63DB-4184-B49D-51C1DD337230}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CCD75EC3-63DB-4184-B49D-51C1DD337230}.Release|Any CPU.Build.0 = Release|Any CPU - {511F6D8D-7717-440A-9A57-A507E9A8B27F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {511F6D8D-7717-440A-9A57-A507E9A8B27F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {511F6D8D-7717-440A-9A57-A507E9A8B27F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {511F6D8D-7717-440A-9A57-A507E9A8B27F}.Release|Any CPU.Build.0 = Release|Any CPU - {255F5DF1-4E43-4758-AC05-7A0B68EB021B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {255F5DF1-4E43-4758-AC05-7A0B68EB021B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {255F5DF1-4E43-4758-AC05-7A0B68EB021B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {255F5DF1-4E43-4758-AC05-7A0B68EB021B}.Release|Any CPU.Build.0 = Release|Any CPU - {52AB8F1F-FB76-4E8C-885F-0747B6CE71EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {52AB8F1F-FB76-4E8C-885F-0747B6CE71EC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {52AB8F1F-FB76-4E8C-885F-0747B6CE71EC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {52AB8F1F-FB76-4E8C-885F-0747B6CE71EC}.Release|Any CPU.Build.0 = Release|Any CPU - {D7636876-0756-43CB-A192-138C6F0D5E42}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D7636876-0756-43CB-A192-138C6F0D5E42}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D7636876-0756-43CB-A192-138C6F0D5E42}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D7636876-0756-43CB-A192-138C6F0D5E42}.Release|Any CPU.Build.0 = Release|Any CPU - {C7CB79F0-1C97-4B33-BFA7-00731B579AE2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C7CB79F0-1C97-4B33-BFA7-00731B579AE2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C7CB79F0-1C97-4B33-BFA7-00731B579AE2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C7CB79F0-1C97-4B33-BFA7-00731B579AE2}.Release|Any CPU.Build.0 = Release|Any CPU - {6EDD2061-82F2-461B-BB6E-879245A832DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6EDD2061-82F2-461B-BB6E-879245A832DE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6EDD2061-82F2-461B-BB6E-879245A832DE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6EDD2061-82F2-461B-BB6E-879245A832DE}.Release|Any CPU.Build.0 = Release|Any CPU - {CBDB56AC-FF02-4421-9FD4-ED82E339D8E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CBDB56AC-FF02-4421-9FD4-ED82E339D8E2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CBDB56AC-FF02-4421-9FD4-ED82E339D8E2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CBDB56AC-FF02-4421-9FD4-ED82E339D8E2}.Release|Any CPU.Build.0 = Release|Any CPU - {31CAEC36-0C3D-4D69-B092-84866811EA07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {31CAEC36-0C3D-4D69-B092-84866811EA07}.Debug|Any CPU.Build.0 = Debug|Any CPU - {31CAEC36-0C3D-4D69-B092-84866811EA07}.Release|Any CPU.ActiveCfg = Release|Any CPU - {31CAEC36-0C3D-4D69-B092-84866811EA07}.Release|Any CPU.Build.0 = Release|Any CPU - {27A2590E-1313-4A33-89FD-92811540B69C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {27A2590E-1313-4A33-89FD-92811540B69C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6277C9FB-3A9A-4537-AA86-82DA9B2527FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6277C9FB-3A9A-4537-AA86-82DA9B2527FD}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5BA5425F-27A7-4677-865E-82246498AA2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5BA5425F-27A7-4677-865E-82246498AA2E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5BA5425F-27A7-4677-865E-82246498AA2E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5BA5425F-27A7-4677-865E-82246498AA2E}.Release|Any CPU.Build.0 = Release|Any CPU - {6AE67079-2C00-476C-81DE-2800D1AC14BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6AE67079-2C00-476C-81DE-2800D1AC14BC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {89C09045-1064-466B-B94A-DB3AFE2A5853}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {89C09045-1064-466B-B94A-DB3AFE2A5853}.Debug|Any CPU.Build.0 = Debug|Any CPU - {89C09045-1064-466B-B94A-DB3AFE2A5853}.Release|Any CPU.ActiveCfg = Release|Any CPU - {89C09045-1064-466B-B94A-DB3AFE2A5853}.Release|Any CPU.Build.0 = Release|Any CPU - {98CBA7E2-1B62-497C-8AA3-B868704068D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {98CBA7E2-1B62-497C-8AA3-B868704068D7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {98CBA7E2-1B62-497C-8AA3-B868704068D7}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(NestedProjects) = preSolution - {B8ECDB8B-BF44-462C-B6DA-22421B3EC4D7} = {F0242771-6DE6-4E03-BD3A-7B79BA79105B} - {58072405-85D0-45CA-8F5C-EA8928C32A6A} = {F0242771-6DE6-4E03-BD3A-7B79BA79105B} - {F06D18F6-C510-4CBA-9514-0F890FD62103} = {F0242771-6DE6-4E03-BD3A-7B79BA79105B} - {19400916-4F71-45A0-B0E0-F9BE406D7772} = {F0242771-6DE6-4E03-BD3A-7B79BA79105B} - {AA6839DD-07D5-4277-915D-8C9290A36D5B} = {F0242771-6DE6-4E03-BD3A-7B79BA79105B} - {5BB61485-B480-4A03-A8DD-1636A5AF575C} = {B8ECDB8B-BF44-462C-B6DA-22421B3EC4D7} - {05329DB0-5C47-44A1-B7B8-BF377446BCD1} = {B8ECDB8B-BF44-462C-B6DA-22421B3EC4D7} - {C5FA9596-B9DC-4DF9-8380-AFC19C1EF51F} = {58072405-85D0-45CA-8F5C-EA8928C32A6A} - EndGlobalSection -EndGlobal diff --git a/umbraco/presentation/web.config b/umbraco/presentation/web.config deleted file mode 100644 index 6d8e33b4d3..0000000000 --- a/umbraco/presentation/web.config +++ /dev/null @@ -1,242 +0,0 @@ - - - -
- - - -
- -
-
-
- - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file From 50f917093533af0f49d7e52638020d1b1dc8768b Mon Sep 17 00:00:00 2001 From: PerPloug Date: Mon, 28 Feb 2011 09:22:32 -0100 Subject: [PATCH 03/13] sdasda --- umbraco.sln | 200 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 200 insertions(+) create mode 100644 umbraco.sln diff --git a/umbraco.sln b/umbraco.sln new file mode 100644 index 0000000000..f41144e7b7 --- /dev/null +++ b/umbraco.sln @@ -0,0 +1,200 @@ +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{F0242771-6DE6-4E03-BD3A-7B79BA79105B}" + ProjectSection(SolutionItems) = preProject + aspnet35.build = aspnet35.build + build.xml = build.xml + default.build = default.build + INDIGO64.testrunconfig = INDIGO64.testrunconfig + SHANDEMVAIO.testrunconfig = SHANDEMVAIO.testrunconfig + SHOCKING.testrunconfig = SHOCKING.testrunconfig + umbraco weekly.build = umbraco weekly.build + umbraco.build = umbraco.build + umbraco2.vsmdi = umbraco2.vsmdi + UMBRACOELISE.testrunconfig = UMBRACOELISE.testrunconfig + UMBRACOHUMMER.testrunconfig = UMBRACOHUMMER.testrunconfig + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "StandardConfig", "StandardConfig", "{B8ECDB8B-BF44-462C-B6DA-22421B3EC4D7}" + ProjectSection(SolutionItems) = preProject + aspnet35.config = aspnet35.config + config templates\config\UI.xml = config templates\config\UI.xml + config templates\umbraco.config = config templates\umbraco.config + config templates\config\umbracoSettings.config = config templates\config\umbracoSettings.config + config templates\config\UrlRewriting.config = config templates\config\UrlRewriting.config + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Packages", "Packages", "{5BB61485-B480-4A03-A8DD-1636A5AF575C}" + ProjectSection(SolutionItems) = preProject + config templates\packages\createdPackages.config = config templates\packages\createdPackages.config + config templates\packages\installedPackages.config = config templates\packages\installedPackages.config + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "config", "config", "{05329DB0-5C47-44A1-B7B8-BF377446BCD1}" + ProjectSection(SolutionItems) = preProject + config templates\config\404handlers.config = config templates\config\404handlers.config + config templates\config\ClientDependency.config = config templates\config\ClientDependency.config + config templates\config\ExamineIndex.config = config templates\config\ExamineIndex.config + config templates\config\ExamineSettings.config = config templates\config\ExamineSettings.config + config templates\config\formHandlers.config = config templates\config\formHandlers.config + config templates\config\metablogConfig.config = config templates\config\metablogConfig.config + config templates\config\restExtensions.config = config templates\config\restExtensions.config + config templates\config\scripting.config = config templates\config\scripting.config + config templates\config\tinyMceConfig.config = config templates\config\tinyMceConfig.config + config templates\config\umbracoSettings.config = config templates\config\umbracoSettings.config + config templates\config\UrlRewriting.config = config templates\config\UrlRewriting.config + config templates\config\xsltExtensions.config = config templates\config\xsltExtensions.config + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{58072405-85D0-45CA-8F5C-EA8928C32A6A}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Upgrade 4.1", "Upgrade 4.1", "{C5FA9596-B9DC-4DF9-8380-AFC19C1EF51F}" + ProjectSection(SolutionItems) = preProject + UpgradeReadme.txt = UpgradeReadme.txt + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DLLs", "DLLs", "{F06D18F6-C510-4CBA-9514-0F890FD62103}" + ProjectSection(SolutionItems) = preProject + foreign dlls\ClientDependency.Core.dll = foreign dlls\ClientDependency.Core.dll + foreign dlls\CookComputing.XmlRpcV2.dll = foreign dlls\CookComputing.XmlRpcV2.dll + foreign dlls\Examine.dll = foreign dlls\Examine.dll + foreign dlls\HtmlAgilityPack.dll = foreign dlls\HtmlAgilityPack.dll + foreign dlls\ICSharpCode.SharpZipLib.dll = foreign dlls\ICSharpCode.SharpZipLib.dll + foreign dlls\IronMath.dll = foreign dlls\IronMath.dll + IronPython License.Rtf = IronPython License.Rtf + License.txt = License.txt + foreign dlls\Microsoft.ApplicationBlocks.Data.dll = foreign dlls\Microsoft.ApplicationBlocks.Data.dll + foreign dlls\WebPages\Microsoft.Web.Infrastructure.dll = foreign dlls\WebPages\Microsoft.Web.Infrastructure.dll + foreign dlls\MySql.Data.dll = foreign dlls\MySql.Data.dll + foreign dlls\TidyNet.dll = foreign dlls\TidyNet.dll + foreign dlls\UmbracoExamine.dll = foreign dlls\UmbracoExamine.dll + foreign dlls\UrlRewritingNet.UrlRewriter.dll = foreign dlls\UrlRewritingNet.UrlRewriter.dll + foreign dlls\VistaDB For Umbraco.dll = foreign dlls\VistaDB For Umbraco.dll + EndProjectSection +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.presentation", "umbraco\presentation\umbraco.presentation.csproj", "{651E1350-91B6-44B7-BD60-7207006D7003}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.businesslogic", "umbraco\businesslogic\umbraco.businesslogic.csproj", "{E469A9CE-1BEC-423F-AC44-713CD72457EA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.cms", "umbraco\cms\umbraco.cms.csproj", "{CCD75EC3-63DB-4184-B49D-51C1DD337230}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.interfaces", "umbraco\interfaces\umbraco.interfaces.csproj", "{511F6D8D-7717-440A-9A57-A507E9A8B27F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.editorControls", "components\editorControls\umbraco.editorControls.csproj", "{255F5DF1-4E43-4758-AC05-7A0B68EB021B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.macroRenderings", "components\macroRenderings\umbraco.macroRenderings.csproj", "{52AB8F1F-FB76-4E8C-885F-0747B6CE71EC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.providers", "umbraco\providers\umbraco.providers.csproj", "{D7636876-0756-43CB-A192-138C6F0D5E42}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.datalayer", "umbraco\datalayer\umbraco.datalayer.csproj", "{C7CB79F0-1C97-4B33-BFA7-00731B579AE2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.controls", "components\umbraco.controls\umbraco.controls.csproj", "{6EDD2061-82F2-461B-BB6E-879245A832DE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.webservices", "components\umbraco.webservices\umbraco.webservices.csproj", "{CBDB56AC-FF02-4421-9FD4-ED82E339D8E2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.Linq.Core", "LinqToUmbraco\src\umbraco.Linq\Core\umbraco.Linq.Core.csproj", "{31CAEC36-0C3D-4D69-B092-84866811EA07}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.Legacy", "umbraco\umbraco.Legacy\umbraco.Legacy.csproj", "{27A2590E-1313-4A33-89FD-92811540B69C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.Test", "umbraco.Test\umbraco.Test.csproj", "{6277C9FB-3A9A-4537-AA86-82DA9B2527FD}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "assets", "assets", "{19400916-4F71-45A0-B0E0-F9BE406D7772}" + ProjectSection(SolutionItems) = preProject + assets\Umbraco.sdf = assets\Umbraco.sdf + EndProjectSection +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SqlCE4Umbraco", "components\SQLCE4Umbraco\SqlCE4Umbraco.csproj", "{5BA5425F-27A7-4677-865E-82246498AA2E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.MacroEngines.Legacy", "umbraco.MacroEngines\umbraco.MacroEngines.Legacy.csproj", "{6AE67079-2C00-476C-81DE-2800D1AC14BC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.MacroEngines", "umbraco.MacroEngines.Juno\umbraco.MacroEngines.csproj", "{89C09045-1064-466B-B94A-DB3AFE2A5853}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WebPi", "WebPi", "{AA6839DD-07D5-4277-915D-8C9290A36D5B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "umbraco.MacroEngines.Iron", "umbraco.MacroEngines.Iron\umbraco.MacroEngines.Iron.csproj", "{98CBA7E2-1B62-497C-8AA3-B868704068D7}" +EndProject +Global + GlobalSection(TestCaseManagementSettings) = postSolution + CategoryFile = umbraco2.vsmdi + EndGlobalSection + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {651E1350-91B6-44B7-BD60-7207006D7003}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {651E1350-91B6-44B7-BD60-7207006D7003}.Debug|Any CPU.Build.0 = Debug|Any CPU + {651E1350-91B6-44B7-BD60-7207006D7003}.Release|Any CPU.ActiveCfg = Release|Any CPU + {651E1350-91B6-44B7-BD60-7207006D7003}.Release|Any CPU.Build.0 = Release|Any CPU + {E469A9CE-1BEC-423F-AC44-713CD72457EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E469A9CE-1BEC-423F-AC44-713CD72457EA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E469A9CE-1BEC-423F-AC44-713CD72457EA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E469A9CE-1BEC-423F-AC44-713CD72457EA}.Release|Any CPU.Build.0 = Release|Any CPU + {CCD75EC3-63DB-4184-B49D-51C1DD337230}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CCD75EC3-63DB-4184-B49D-51C1DD337230}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CCD75EC3-63DB-4184-B49D-51C1DD337230}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CCD75EC3-63DB-4184-B49D-51C1DD337230}.Release|Any CPU.Build.0 = Release|Any CPU + {511F6D8D-7717-440A-9A57-A507E9A8B27F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {511F6D8D-7717-440A-9A57-A507E9A8B27F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {511F6D8D-7717-440A-9A57-A507E9A8B27F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {511F6D8D-7717-440A-9A57-A507E9A8B27F}.Release|Any CPU.Build.0 = Release|Any CPU + {255F5DF1-4E43-4758-AC05-7A0B68EB021B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {255F5DF1-4E43-4758-AC05-7A0B68EB021B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {255F5DF1-4E43-4758-AC05-7A0B68EB021B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {255F5DF1-4E43-4758-AC05-7A0B68EB021B}.Release|Any CPU.Build.0 = Release|Any CPU + {52AB8F1F-FB76-4E8C-885F-0747B6CE71EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {52AB8F1F-FB76-4E8C-885F-0747B6CE71EC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {52AB8F1F-FB76-4E8C-885F-0747B6CE71EC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {52AB8F1F-FB76-4E8C-885F-0747B6CE71EC}.Release|Any CPU.Build.0 = Release|Any CPU + {D7636876-0756-43CB-A192-138C6F0D5E42}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D7636876-0756-43CB-A192-138C6F0D5E42}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D7636876-0756-43CB-A192-138C6F0D5E42}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D7636876-0756-43CB-A192-138C6F0D5E42}.Release|Any CPU.Build.0 = Release|Any CPU + {C7CB79F0-1C97-4B33-BFA7-00731B579AE2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C7CB79F0-1C97-4B33-BFA7-00731B579AE2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C7CB79F0-1C97-4B33-BFA7-00731B579AE2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C7CB79F0-1C97-4B33-BFA7-00731B579AE2}.Release|Any CPU.Build.0 = Release|Any CPU + {6EDD2061-82F2-461B-BB6E-879245A832DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6EDD2061-82F2-461B-BB6E-879245A832DE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6EDD2061-82F2-461B-BB6E-879245A832DE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6EDD2061-82F2-461B-BB6E-879245A832DE}.Release|Any CPU.Build.0 = Release|Any CPU + {CBDB56AC-FF02-4421-9FD4-ED82E339D8E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CBDB56AC-FF02-4421-9FD4-ED82E339D8E2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CBDB56AC-FF02-4421-9FD4-ED82E339D8E2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CBDB56AC-FF02-4421-9FD4-ED82E339D8E2}.Release|Any CPU.Build.0 = Release|Any CPU + {31CAEC36-0C3D-4D69-B092-84866811EA07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {31CAEC36-0C3D-4D69-B092-84866811EA07}.Debug|Any CPU.Build.0 = Debug|Any CPU + {31CAEC36-0C3D-4D69-B092-84866811EA07}.Release|Any CPU.ActiveCfg = Release|Any CPU + {31CAEC36-0C3D-4D69-B092-84866811EA07}.Release|Any CPU.Build.0 = Release|Any CPU + {27A2590E-1313-4A33-89FD-92811540B69C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {27A2590E-1313-4A33-89FD-92811540B69C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6277C9FB-3A9A-4537-AA86-82DA9B2527FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6277C9FB-3A9A-4537-AA86-82DA9B2527FD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5BA5425F-27A7-4677-865E-82246498AA2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5BA5425F-27A7-4677-865E-82246498AA2E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5BA5425F-27A7-4677-865E-82246498AA2E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5BA5425F-27A7-4677-865E-82246498AA2E}.Release|Any CPU.Build.0 = Release|Any CPU + {6AE67079-2C00-476C-81DE-2800D1AC14BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6AE67079-2C00-476C-81DE-2800D1AC14BC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {89C09045-1064-466B-B94A-DB3AFE2A5853}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {89C09045-1064-466B-B94A-DB3AFE2A5853}.Debug|Any CPU.Build.0 = Debug|Any CPU + {89C09045-1064-466B-B94A-DB3AFE2A5853}.Release|Any CPU.ActiveCfg = Release|Any CPU + {89C09045-1064-466B-B94A-DB3AFE2A5853}.Release|Any CPU.Build.0 = Release|Any CPU + {98CBA7E2-1B62-497C-8AA3-B868704068D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {98CBA7E2-1B62-497C-8AA3-B868704068D7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {98CBA7E2-1B62-497C-8AA3-B868704068D7}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {B8ECDB8B-BF44-462C-B6DA-22421B3EC4D7} = {F0242771-6DE6-4E03-BD3A-7B79BA79105B} + {58072405-85D0-45CA-8F5C-EA8928C32A6A} = {F0242771-6DE6-4E03-BD3A-7B79BA79105B} + {F06D18F6-C510-4CBA-9514-0F890FD62103} = {F0242771-6DE6-4E03-BD3A-7B79BA79105B} + {19400916-4F71-45A0-B0E0-F9BE406D7772} = {F0242771-6DE6-4E03-BD3A-7B79BA79105B} + {AA6839DD-07D5-4277-915D-8C9290A36D5B} = {F0242771-6DE6-4E03-BD3A-7B79BA79105B} + {5BB61485-B480-4A03-A8DD-1636A5AF575C} = {B8ECDB8B-BF44-462C-B6DA-22421B3EC4D7} + {05329DB0-5C47-44A1-B7B8-BF377446BCD1} = {B8ECDB8B-BF44-462C-B6DA-22421B3EC4D7} + {C5FA9596-B9DC-4DF9-8380-AFC19C1EF51F} = {58072405-85D0-45CA-8F5C-EA8928C32A6A} + EndGlobalSection +EndGlobal From f1b904ecc46534d5164bb1b54a95eba6ca7048f9 Mon Sep 17 00:00:00 2001 From: PerPloug Date: Mon, 28 Feb 2011 09:23:21 -0100 Subject: [PATCH 04/13] web.config --- umbraco/presentation/web.config | 242 ++++++++++++++++++++++++++++++++ 1 file changed, 242 insertions(+) create mode 100644 umbraco/presentation/web.config diff --git a/umbraco/presentation/web.config b/umbraco/presentation/web.config new file mode 100644 index 0000000000..1308072404 --- /dev/null +++ b/umbraco/presentation/web.config @@ -0,0 +1,242 @@ + + + +
+ + + +
+ +
+
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 5fd694cca92aaf3a41af29ecd78bc1081c5ecb23 Mon Sep 17 00:00:00 2001 From: PerPloug Date: Mon, 28 Feb 2011 09:29:34 -0100 Subject: [PATCH 05/13] nant build --- default.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.build b/default.build index 82515352bd..5f666394f6 100644 --- a/default.build +++ b/default.build @@ -353,7 +353,7 @@ - + From d324ee90a7705a53a70c0a70e361cae9df87fe41 Mon Sep 17 00:00:00 2001 From: PerPloug Date: Mon, 28 Feb 2011 09:36:57 -0100 Subject: [PATCH 06/13] Change build order --- default.build | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/default.build b/default.build index 5f666394f6..d0028a852a 100644 --- a/default.build +++ b/default.build @@ -71,7 +71,16 @@ - + + + + + + + + + + @@ -80,14 +89,7 @@ - - - - - - - - + @@ -133,7 +135,6 @@ - @@ -283,8 +284,7 @@ - - + From 300da7f04a5b22fc5e8c62e642577f6fe44ef645 Mon Sep 17 00:00:00 2001 From: PerPloug Date: Mon, 28 Feb 2011 09:46:21 -0100 Subject: [PATCH 07/13] One more change to build file --- default.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/default.build b/default.build index d0028a852a..81e861b458 100644 --- a/default.build +++ b/default.build @@ -79,6 +79,8 @@ + + From 60c18bdff95ef6c00508880256b19b0a55f02428 Mon Sep 17 00:00:00 2001 From: "agrath@gmail.com" Date: Sun, 27 Feb 2011 21:53:45 -1300 Subject: [PATCH 08/13] More graceful handling of missing properties in .Where - TryGetMember now returns DynamicNull (IEnumerable with fake .Where and .OrderBy) when the property/child type doesn't exist. Expression Tree in DynamicQueryable explictly checks for this type and forces that portion of the predicate/expression tree to return true, bypassing the missing property Handy when you are checking e.g. a boolean property in a .Where and that boolean doesn't exist on all nodes. --- .../RazorDynamicNode/DynamicNode.cs | 6 ++-- .../RazorDynamicNode/DynamicNull.cs | 30 +++++++++++++++++++ .../RazorDynamicNode/DynamicQueryable.cs | 7 +++++ .../umbraco.MacroEngines.csproj | 1 + .../presentation/umbraco.presentation.csproj | 1 + 5 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicNull.cs diff --git a/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicNode.cs b/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicNode.cs index e2b22078d6..28af0dd70e 100644 --- a/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicNode.cs +++ b/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicNode.cs @@ -265,9 +265,9 @@ namespace umbraco.MacroEngines //if property access, type lookup and member invoke all failed //at this point, we're going to return null - //instead, we return an empty list + //instead, we return a DynamicNull - see comments in that file //this will let things like Model.ChildItem work and return nothing instead of crashing - result = new DynamicNodeList(new List()); + result = new DynamicNull(); //changed this to a return true because it breaks testing when using .Children().Random().propertyName return true; } @@ -281,7 +281,7 @@ namespace umbraco.MacroEngines if (dataType == DATATYPE_YESNO_GUID) { bool parseResult; - if (result.ToString() == "") result = "0"; + if (string.Format("{0}", result) == "") result = "0"; if (Boolean.TryParse(result.ToString().Replace("1", "true").Replace("0", "false"), out parseResult)) { result = parseResult; diff --git a/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicNull.cs b/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicNull.cs new file mode 100644 index 0000000000..c93ce3389a --- /dev/null +++ b/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicNull.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Collections; +using System.Dynamic; + +namespace umbraco.MacroEngines +{ + //This type is used as a return type when TryGetMember fails on a DynamicNode + //.Where explicitly checks for this type, to indicate that nothing was returned + //Because it's IEnumerable, if the user is actually trying @Model.TextPages or similar + //it will still return an enumerable object (assuming the call actually failed because there were no children of that type) + //but in .Where, if they use a property that doesn't exist, the lambda will bypass this and return false + public class DynamicNull : DynamicObject, IEnumerable + { + public IEnumerator GetEnumerator() + { + return (new List()).GetEnumerator(); + } + public DynamicNull Where(string predicate, params object[] values) + { + return this; + } + public DynamicNull OrderBy(string orderBy) + { + return this; + } + } +} diff --git a/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicQueryable.cs b/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicQueryable.cs index 6d8202c3b5..f02c6de106 100644 --- a/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicQueryable.cs +++ b/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicQueryable.cs @@ -54,6 +54,7 @@ namespace System.Linq.Dynamic { return (bool)value; } + return false; } catch (Exception) @@ -1467,6 +1468,12 @@ namespace System.Linq.Dynamic Expression.Assign(result, Expression.Constant(null)), Expression.IfThen(Expression.NotEqual(Expression.Constant(null), instanceExpression), Expression.Call(instanceExpression, method, binder, result)), + Expression.IfThen( + Expression.TypeEqual(result, typeof(DynamicNull)), + Expression.Assign(result, + Expression.Constant(true, typeof(object)) + ) + ), Expression.Return(blockReturnLabel, result), Expression.Label(blockReturnLabel, Expression.Constant(-2, typeof(object))) ); diff --git a/umbraco.MacroEngines.Juno/umbraco.MacroEngines.csproj b/umbraco.MacroEngines.Juno/umbraco.MacroEngines.csproj index 9fef26f020..286cde54dc 100644 --- a/umbraco.MacroEngines.Juno/umbraco.MacroEngines.csproj +++ b/umbraco.MacroEngines.Juno/umbraco.MacroEngines.csproj @@ -64,6 +64,7 @@ + diff --git a/umbraco/presentation/umbraco.presentation.csproj b/umbraco/presentation/umbraco.presentation.csproj index 526fad75ac..344d90c196 100644 --- a/umbraco/presentation/umbraco.presentation.csproj +++ b/umbraco/presentation/umbraco.presentation.csproj @@ -1921,6 +1921,7 @@ + Designer From 3f74ee4ab56f92991ee7929a041e3a8bfa727fe5 Mon Sep 17 00:00:00 2001 From: PerPloug Date: Mon, 28 Feb 2011 09:55:02 -0100 Subject: [PATCH 09/13] adding system.webpages to build dir --- default.build | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/default.build b/default.build index 81e861b458..d6815d5beb 100644 --- a/default.build +++ b/default.build @@ -79,8 +79,16 @@ + + + + + + + + From 59e41e39123992d4157ffa2b31fcbf724c715aa3 Mon Sep 17 00:00:00 2001 From: hartvig Date: Mon, 28 Feb 2011 10:01:53 -0100 Subject: [PATCH 10/13] Work items: 30086, 30087 --- umbraco/interfaces/INode.cs | 1 + .../umbraco/create/DLRScripting.ascx.cs | 7 +++---- umbraco/presentation/umbraco/nodeFactory/Page.cs | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/umbraco/interfaces/INode.cs b/umbraco/interfaces/INode.cs index d3c9ca1bd8..e4ecd9c215 100644 --- a/umbraco/interfaces/INode.cs +++ b/umbraco/interfaces/INode.cs @@ -29,6 +29,7 @@ namespace umbraco.interfaces List PropertiesAsList { get; } List ChildrenAsList { get; } IProperty GetProperty(string Alias); + IProperty GetProperty(string Alias, out bool propertyExists); DataTable ChildrenAsTable(); DataTable ChildrenAsTable(string nodeTypeAliasFilter); } diff --git a/umbraco/presentation/umbraco/create/DLRScripting.ascx.cs b/umbraco/presentation/umbraco/create/DLRScripting.ascx.cs index 4c4983619d..3c55f39b9f 100644 --- a/umbraco/presentation/umbraco/create/DLRScripting.ascx.cs +++ b/umbraco/presentation/umbraco/create/DLRScripting.ascx.cs @@ -61,6 +61,9 @@ namespace umbraco.presentation.create string abPath = IO.IOHelper.MapPath(path); list.Items.Clear(); + // always add the option of an empty one + list.Items.Add(new ListItem("Empty template", "")); + if (System.IO.Directory.Exists(abPath)) { string extension = "." + scriptType; @@ -72,10 +75,6 @@ namespace umbraco.presentation.create list.Items.Add(new ListItem(helper.SpaceCamelCasing(filename.Replace(extension, "")), scriptType + "/" + filename)); } } - else - { - list.Items.Add(new ListItem("Empty template", "")); - } } } } \ No newline at end of file diff --git a/umbraco/presentation/umbraco/nodeFactory/Page.cs b/umbraco/presentation/umbraco/nodeFactory/Page.cs index a182c6a4b8..a554472f30 100644 --- a/umbraco/presentation/umbraco/nodeFactory/Page.cs +++ b/umbraco/presentation/umbraco/nodeFactory/Page.cs @@ -314,6 +314,20 @@ namespace umbraco.NodeFactory return null; } + public IProperty GetProperty(string Alias, out bool propertyExists) + { + foreach (Property p in Properties) + { + if (p.Alias == Alias) + { + propertyExists = true; + return p; + } + } + propertyExists = false; + return null; + } + public static Node GetNodeByXpath(string xpath) { XPathNodeIterator xpathNode = library.GetXmlNodeByXPath(xpath); From 6be3b5d93bf6a7b031442338e64f2553824bf08a Mon Sep 17 00:00:00 2001 From: PerPloug Date: Mon, 28 Feb 2011 10:46:48 -0100 Subject: [PATCH 11/13] build version id --- default.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/default.build b/default.build index d6815d5beb..647559ec61 100644 --- a/default.build +++ b/default.build @@ -373,7 +373,7 @@ - + @@ -401,7 +401,7 @@ - + From aaa90bea146ca19dce6b9c559e163e03b87dfa8b Mon Sep 17 00:00:00 2001 From: "agrath@gmail.com" Date: Sun, 27 Feb 2011 22:55:50 -1300 Subject: [PATCH 12/13] More graceful handling of missing properties in .Where - TryGetMember now returns DynamicNull Only return DynamicNull if property truely doesn't exist - if it does exist and has no value, still return null --- .../RazorDynamicNode/DynamicNode.cs | 20 +++++++++++++------ .../RazorDynamicNode/DynamicNull.cs | 4 ++++ .../RazorDynamicNode/DynamicQueryable.cs | 2 +- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicNode.cs b/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicNode.cs index 28af0dd70e..55e60d2a28 100644 --- a/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicNode.cs +++ b/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicNode.cs @@ -205,20 +205,21 @@ namespace umbraco.MacroEngines { var name = binder.Name; + result = null; //this will never be returned if (name == "ChildrenAsList" || name == "Children") { result = GetChildrenAsList; return true; } - + bool propertyExists = false; if (n != null) { - var data = n.GetProperty(name); + var data = n.GetProperty(name, out propertyExists); // check for nicer support of Pascal Casing EVEN if alias is camelCasing: - if (data == null && name.Substring(0, 1).ToUpper() == name.Substring(0, 1)) + if (data == null && name.Substring(0, 1).ToUpper() == name.Substring(0, 1) && !propertyExists) { - data = n.GetProperty(name.Substring(0, 1).ToLower() + name.Substring((1))); + data = n.GetProperty(name.Substring(0, 1).ToLower() + name.Substring((1)), out propertyExists); } if (data != null) @@ -267,8 +268,15 @@ namespace umbraco.MacroEngines //at this point, we're going to return null //instead, we return a DynamicNull - see comments in that file //this will let things like Model.ChildItem work and return nothing instead of crashing - result = new DynamicNull(); - //changed this to a return true because it breaks testing when using .Children().Random().propertyName + if (!propertyExists && result == null) + { + //.Where explictly checks for this type + //and will make it false + //which means backwards equality (&& property != true) will pass + //forwwards equality (&& property or && property == true) will fail + result = new DynamicNull(); + return true; + } return true; } diff --git a/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicNull.cs b/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicNull.cs index c93ce3389a..7bfe6462c5 100644 --- a/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicNull.cs +++ b/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicNull.cs @@ -26,5 +26,9 @@ namespace umbraco.MacroEngines { return this; } + public override string ToString() + { + return string.Empty; + } } } diff --git a/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicQueryable.cs b/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicQueryable.cs index f02c6de106..1f1833869c 100644 --- a/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicQueryable.cs +++ b/umbraco.MacroEngines.Juno/RazorDynamicNode/DynamicQueryable.cs @@ -1471,7 +1471,7 @@ namespace System.Linq.Dynamic Expression.IfThen( Expression.TypeEqual(result, typeof(DynamicNull)), Expression.Assign(result, - Expression.Constant(true, typeof(object)) + Expression.Constant(false, typeof(object)) ) ), Expression.Return(blockReturnLabel, result), From 4f496ef5da6ee2ac2a7d52156509eceac2103467 Mon Sep 17 00:00:00 2001 From: "agrath@gmail.com" Date: Sun, 27 Feb 2011 22:56:12 -1300 Subject: [PATCH 13/13] Updated web.config.ssaolap01.xslt --- umbraco/presentation/web.config.ssaolap01.xslt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umbraco/presentation/web.config.ssaolap01.xslt b/umbraco/presentation/web.config.ssaolap01.xslt index 98e733067d..dc347ada6e 100644 --- a/umbraco/presentation/web.config.ssaolap01.xslt +++ b/umbraco/presentation/web.config.ssaolap01.xslt @@ -8,7 +8,7 @@ - 4.6.1 + 4.7.0.beta