Renaud Paquay
cd68f2430c
Merge
...
--HG--
branch : dev
2010-12-09 13:07:57 -08:00
Renaud Paquay
b91101d2ec
Add check for extension with the same ID
...
This can happen as we collect extensions from different
source locations.
Work Item: 16632
--HG--
branch : dev
2010-12-09 13:07:26 -08:00
Renaud Paquay
1ce6ab190e
Merge
...
--HG--
branch : dev
2010-12-09 12:15:00 -08:00
Renaud Paquay
93914fc296
Rename method
...
--HG--
branch : dev
2010-12-09 09:56:57 -08:00
Renaud Paquay
1cc0c528f8
Merge
...
--HG--
branch : dev
2010-12-08 21:39:58 -08:00
Renaud Paquay
932f7fd792
Fix unit tests
...
--HG--
branch : dev
2010-12-08 21:39:17 -08:00
Renaud Paquay
4df23c2221
Tweak assembly loading policy one more
...
We have this in Orchard.Setup.csproj:
<Reference Include="Autofac, Version=2.1.13.813, Culture=neutral, PublicKeyToken=17863af14b0044da, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\lib\autofac\Autofac.dll</HintPath>
</Reference>
However, version of autoface we are using is not 2.1.13.813.
This means that, even if the full assembly name is specified in the csproj file,
we still need to lookup the assembly by short name if we can't find it.
--HG--
branch : dev
2010-12-08 20:07:58 -08:00
Renaud Paquay
ee271abff2
Rename method
...
--HG--
branch : dev
2010-12-08 18:32:59 -08:00
Renaud Paquay
7a4ece294c
Merge
...
--HG--
branch : dev
2010-12-08 18:14:56 -08:00
Renaud Paquay
ff6c5f3edc
Make the engine view discovery more correct
...
For themes, the pattern is slighty different than for modules,
Also, we need to interleave the different views engine in between
themes and base themes, so that overrides between Razor and WebForms
work as excpected.
--HG--
branch : dev
2010-12-08 15:40:15 -08:00
Renaud Paquay
a81d4c0821
Removing incorrect definition of extension type
...
There is no such thing as a "Core" extension type.
"Theme" and "Module" are the only valid extension types.
--HG--
branch : dev
2010-12-08 14:44:55 -08:00
Renaud Paquay
9b8a20c222
Merge
...
--HG--
branch : dev
2010-12-08 14:33:44 -08:00
Renaud Paquay
ab3d0a2636
Fix computed set of views paths to allow themes in the admin
...
When looking for ViewPath to activate, the order should be:
1. Current active theme
2. Base themes of the current theme (in "base" order). Note that "base themes"
for "TheAdmin" theme means all enabled themes
3. Modules which have at least one active feature, in feature dependency order
Work Item: 16654
--HG--
branch : dev
2010-12-08 14:27:50 -08:00
Renaud Paquay
e41e43bda4
Simplifying code, and making more efficient too
...
--HG--
branch : dev
2010-12-07 20:35:58 -08:00
Renaud Paquay
259b465fd3
Skip SqlServer related unit tests if SqlServer is not installed
...
--HG--
branch : dev
extra : transplant_source : g%B6%FFf%9DD%B0UD%97%E8%2B%94%2B%3A%CF%A8B%17%A0
2010-12-07 13:11:44 -08:00
Renaud Paquay
a2d456e6f8
Adding GAC lookup policy for assembly name resolution
...
For dynamic compilation, there is a limited set of thing Orchard can
do to load assemblies referenced in .csproj files. With this checkin,
there are now 4 policies for resolving short assembly names to full
assembly names:
1. Try to load the assembly with its short name
2. Try to find the assembly in the list of assemblies in the AppDomain
3. Try to find the assembly in the list of assemblies referenced
by Orchard.Framework
4. Try to find the assembly in the list of assemblies commonly
installed in the GAC with .NET 4.0.
Work Items: 16940, 16946
--HG--
branch : dev
2010-12-06 23:01:31 -08:00
Renaud Paquay
cb8b5f3812
Delete 'Trust Level="Medium"' element for package
...
--HG--
branch : dev
2010-12-06 22:03:10 -08:00
Renaud Paquay
ce4c6d6ca5
Merge
...
--HG--
branch : dev
2010-12-06 20:58:43 -08:00
Renaud Paquay
57ff31e8e5
Revising how Orchard restarts the AppDomain
...
Orchard used to write to the "~/web.config" file to force an AppDomain
restart needed in some case of dynamic compilation.
Revised the policy to be like this:
1. If full trust, use HttpRuntime.UnloadAppDomain()
2. If Medium Trust, write to "~/bin/HostRestart/marker.txt"
3. If Medium Trust and 2. failed, write to "~/web.config"
4. If Medium Trust and 2.+3. failed, give an error message to
the user with appropriate measures to take on the web server.
Also removed a now unused "ResetSiteCompilation" method
--HG--
branch : dev
2010-12-06 20:52:33 -08:00
Renaud Paquay
5f10d84ac2
Update call to logger to pass exception
...
--HG--
branch : dev
2010-12-06 20:21:12 -08:00
Renaud Paquay
3b01899bb1
Ensure file dependencies are inserted for "~/Themes" csproj files too
...
--HG--
branch : dev
2010-12-06 19:11:07 -08:00
Renaud Paquay
f2ce631377
Ensure Microsoft.Web.Infrastructure is copied to ~/bin
...
--HG--
branch : dev
2010-12-06 17:51:03 -08:00
Renaud Paquay
0092755471
Merge
...
--HG--
branch : dev
2010-12-06 14:13:41 -08:00
Renaud Paquay
687fe45672
Fix dynamic compilation issue
...
Don't try to load references that have been already loaded by
extension loaders. This bug was affecting compiling of modules
depending on other modules (e.g. Orchard.Widgets depends on
Orchard.Scripting). If Orchard.Scripting has been loaded by the
dynamic compilation loader, don't try to load the "Orchard.Scripting"
assembly.
--HG--
branch : dev
2010-12-06 10:28:37 -08:00
Renaud Paquay
947fb55d7d
Fix regression in monitoring file changes
...
We were only monitoring existing directories only (not files).
Since asp.net supports monitoring missing files, but not missing
directories, we have to catch the HttpException and fallback
adequatly.
--HG--
branch : dev
2010-12-05 14:41:41 -08:00
Renaud Paquay
91c5e6dae8
Remove unnecessary reference
...
--HG--
branch : dev
2010-12-05 14:29:25 -08:00
Renaud Paquay
29a1b5cce1
Removing extra spaces
...
--HG--
branch : dev
2010-12-05 11:29:04 -08:00
Renaud Paquay
9cb05a9a31
Update ASP.NET compilation options
...
Ensure batch compilation is on and that the number of recompilation
before appdomain restart is greater than the default (15), because
Orchard being a composable application where new modules can be installed
at any time, views can be re-compiled more often than for a typical
application.
--HG--
branch : dev
2010-12-05 11:28:48 -08:00
Renaud Paquay
8a9b41a3be
Fix command
...
--HG--
branch : dev
2010-12-04 23:03:49 -08:00
Renaud Paquay
27f046ca60
Delete ASP.NET folder created by spec flow tests
...
--HG--
branch : dev
2010-12-04 23:02:12 -08:00
Renaud Paquay
26888dd360
Re-enable ignored specflow tests
...
--HG--
branch : dev
2010-12-04 22:04:50 -08:00
Renaud Paquay
cda72759a1
Fix incorrect command
...
--HG--
branch : dev
2010-12-04 22:04:38 -08:00
Renaud Paquay
f23f9806f7
Merge
...
--HG--
branch : dev
2010-12-04 18:55:18 -08:00
Renaud Paquay
9ba2e35a6a
Update web.config file for SpecFlow tests
...
* Remove un-used machine key
* Increase "numRecompilesBeforeAppRestart" default value (15) to (1000) so
that the AppDomain used for hosting the ASP.NET domain doesn't get unloaded
during the test.
--HG--
branch : dev
2010-12-04 18:51:19 -08:00
Renaud Paquay
f794b3f955
Split feature lifetime events to "xx'ing" and "xx'ed"
...
--HG--
branch : dev
2010-12-04 15:31:24 -08:00
Renaud Paquay
b12a25e169
Fix unit tests
...
--HG--
branch : dev
2010-12-04 15:29:35 -08:00
Renaud Paquay
299d49b41a
Re-organizing targets
...
Build => CI build
FullBuild => Daily build (Build + SpecFlow + Gallery Packages)
--HG--
branch : dev
2010-12-04 15:29:23 -08:00
Renaud Paquay
5ab00ebabe
Process all pending tasks at the end of the request
...
Instead of processing tasks asynchronously at the end of a request,
we process them synchronously, so that the behavior is more
deterministic.
--HG--
branch : dev
2010-12-04 14:11:18 -08:00
Renaud Paquay
3a4a4b7837
Make all event notifications fail fast
...
--HG--
branch : dev
2010-12-04 14:09:29 -08:00
Renaud Paquay
a1059de8bb
Adding logging in a couple of components
...
--HG--
branch : dev
2010-12-04 14:09:15 -08:00
Renaud Paquay
74701225aa
Add a "NotifyFailFast" method to the event bus
...
This mode allows exceptions to be bubbled up when then caller cares,
which is the case in the "ProcessingEngine", as the transaction scope
may become invalid if a nhibernate exception is not bubbled up.
--HG--
branch : dev
2010-12-04 13:31:29 -08:00
Renaud Paquay
32adc23ee1
Fix concurrency issue with "T" injection
...
--HG--
branch : dev
2010-12-04 13:29:31 -08:00
Renaud Paquay
87186191ae
Flatten "Comments" views
...
--HG--
branch : dev
rename : src/Orchard.Web/Modules/Orchard.Comments/Views/EditorTemplates/Parts/Comments.Comments.cshtml => src/Orchard.Web/Modules/Orchard.Comments/Views/EditorTemplates/Parts.Comments.Comments.cshtml
rename : src/Orchard.Web/Modules/Orchard.Comments/Views/EditorTemplates/Parts/Comments.SiteSettings.cshtml => src/Orchard.Web/Modules/Orchard.Comments/Views/EditorTemplates/Parts.Comments.SiteSettings.cshtml
rename : src/Orchard.Web/Modules/Orchard.Comments/Views/Parts/Comments.Count.SummaryAdmin.cshtml => src/Orchard.Web/Modules/Orchard.Comments/Views/Parts.Comments.Count.SummaryAdmin.cshtml
rename : src/Orchard.Web/Modules/Orchard.Comments/Views/Parts/Comments.Count.cshtml => src/Orchard.Web/Modules/Orchard.Comments/Views/Parts.Comments.Count.cshtml
rename : src/Orchard.Web/Modules/Orchard.Comments/Views/Parts/Comments.cshtml => src/Orchard.Web/Modules/Orchard.Comments/Views/Parts.Comments.cshtml
2010-12-03 23:49:08 -08:00
Renaud Paquay
a56b80322a
Flatten "Blogs" views
...
--HG--
branch : dev
rename : src/Orchard.Web/Modules/Orchard.Blogs/Views/Items/Content-Blog.DetailAdmin.cshtml => src/Orchard.Web/Modules/Orchard.Blogs/Views/Content-Blog.DetailAdmin.cshtml
rename : src/Orchard.Web/Modules/Orchard.Blogs/Views/Items/Content-Blog.Edit.cshtml => src/Orchard.Web/Modules/Orchard.Blogs/Views/Content-Blog.Edit.cshtml
rename : src/Orchard.Web/Modules/Orchard.Blogs/Views/Items/Content-Blog.SummaryAdmin.cshtml => src/Orchard.Web/Modules/Orchard.Blogs/Views/Content-Blog.SummaryAdmin.cshtml
rename : src/Orchard.Web/Modules/Orchard.Blogs/Views/EditorTemplates/Parts/Blogs.Blog.Fields.cshtml => src/Orchard.Web/Modules/Orchard.Blogs/Views/EditorTemplates/Parts.Blogs.Blog.Fields.cshtml
rename : src/Orchard.Web/Modules/Orchard.Blogs/Views/EditorTemplates/Parts/Blogs.BlogArchives.cshtml => src/Orchard.Web/Modules/Orchard.Blogs/Views/EditorTemplates/Parts.Blogs.BlogArchives.cshtml
rename : src/Orchard.Web/Modules/Orchard.Blogs/Views/EditorTemplates/Parts/Blogs.RecentBlogPosts.cshtml => src/Orchard.Web/Modules/Orchard.Blogs/Views/EditorTemplates/Parts.Blogs.RecentBlogPosts.cshtml
rename : src/Orchard.Web/Modules/Orchard.Blogs/Views/Parts/Blogs.Blog.BlogPostCount.cshtml => src/Orchard.Web/Modules/Orchard.Blogs/Views/Parts.Blogs.Blog.BlogPostCount.cshtml
rename : src/Orchard.Web/Modules/Orchard.Blogs/Views/Parts/Blogs.Blog.Description.cshtml => src/Orchard.Web/Modules/Orchard.Blogs/Views/Parts.Blogs.Blog.Description.cshtml
rename : src/Orchard.Web/Modules/Orchard.Blogs/Views/Parts/Blogs.Blog.Manage.cshtml => src/Orchard.Web/Modules/Orchard.Blogs/Views/Parts.Blogs.Blog.Manage.cshtml
rename : src/Orchard.Web/Modules/Orchard.Blogs/Views/Parts/Blogs.BlogArchives.cshtml => src/Orchard.Web/Modules/Orchard.Blogs/Views/Parts.Blogs.BlogArchives.cshtml
rename : src/Orchard.Web/Modules/Orchard.Blogs/Views/Parts/Blogs.BlogPost.List.cshtml => src/Orchard.Web/Modules/Orchard.Blogs/Views/Parts.Blogs.BlogPost.List.cshtml
rename : src/Orchard.Web/Modules/Orchard.Blogs/Views/Parts/Blogs.BlogPost.ListAdmin.cshtml => src/Orchard.Web/Modules/Orchard.Blogs/Views/Parts.Blogs.BlogPost.ListAdmin.cshtml
rename : src/Orchard.Web/Modules/Orchard.Blogs/Views/Parts/Blogs.RecentBlogPosts.cshtml => src/Orchard.Web/Modules/Orchard.Blogs/Views/Parts.Blogs.RecentBlogPosts.cshtml
rename : src/Orchard.Web/Modules/Orchard.Blogs/Views/Parts/Blogs.RemotePublishing.cshtml => src/Orchard.Web/Modules/Orchard.Blogs/Views/Parts.Blogs.RemotePublishing.cshtml
2010-12-03 23:29:23 -08:00
Renaud Paquay
b1f9a33ed7
Flatten "Widgets" views
...
--HG--
branch : dev
rename : src/Orchard.Web/Modules/Orchard.Widgets/Views/Items/Content-WidgetPage.cshtml => src/Orchard.Web/Modules/Orchard.Widgets/Views/Content-WidgetPage.cshtml
rename : src/Orchard.Web/Modules/Orchard.Widgets/Views/EditorTemplates/Parts/Widgets.LayerPart.cshtml => src/Orchard.Web/Modules/Orchard.Widgets/Views/EditorTemplates/Parts.Widgets.LayerPart.cshtml
rename : src/Orchard.Web/Modules/Orchard.Widgets/Views/EditorTemplates/Parts/Widgets.WidgetPart.cshtml => src/Orchard.Web/Modules/Orchard.Widgets/Views/EditorTemplates/Parts.Widgets.WidgetPart.cshtml
rename : src/Orchard.Web/Modules/Orchard.Widgets/Views/Items/Widget.Edit.cshtml => src/Orchard.Web/Modules/Orchard.Widgets/Views/Widget.Edit.cshtml
rename : src/Orchard.Web/Modules/Orchard.Widgets/Views/Items/Widget.cshtml => src/Orchard.Web/Modules/Orchard.Widgets/Views/Widget.cshtml
2010-12-03 22:57:42 -08:00
Renaud Paquay
b09f5e5a80
Fixing unit test
...
--HG--
branch : dev
2010-12-03 19:07:59 -08:00
Renaud Paquay
8f56b05541
Merge
...
--HG--
branch : dev
2010-12-03 18:59:37 -08:00
Renaud Paquay
5cad080d8b
Fix a few views with compilation errors
...
--HG--
branch : dev
2010-12-03 18:56:01 -08:00
Renaud Paquay
a0e8404fe4
Flatten "Settings" and "Navigation"
...
--HG--
branch : dev
rename : src/Orchard.Web/Core/Navigation/Views/EditorTemplates/Parts/Navigation.Menu.Edit.cshtml => src/Orchard.Web/Core/Navigation/Views/EditorTemplates/Parts.Navigation.Menu.Edit.cshtml
rename : src/Orchard.Web/Core/Settings/Views/EditorTemplates/Parts/Settings.SiteSettingsPart.cshtml => src/Orchard.Web/Core/Settings/Views/EditorTemplates/Parts.Settings.SiteSettingsPart.cshtml
2010-12-03 17:52:01 -08:00
Renaud Paquay
1087a05494
Flatten "Core/Containers/Views" folder
...
--HG--
branch : dev
rename : src/Orchard.Web/Core/Containers/Views/Parts/Container.Contained.SummaryAdmin.cshtml => src/Orchard.Web/Core/Containers/Views/Parts.Container.Contained.SummaryAdmin.cshtml
rename : src/Orchard.Web/Core/Containers/Views/Parts/ContainerWidget.cshtml => src/Orchard.Web/Core/Containers/Views/Parts.ContainerWidget.cshtml
2010-12-03 17:02:51 -08:00
Renaud Paquay
e348e5a2d3
Flatten "Core/Contents/Views" folder
...
--HG--
branch : dev
rename : src/Orchard.Web/Core/Contents/Views/Items/Content.Edit.cshtml => src/Orchard.Web/Core/Contents/Views/Content.Edit.cshtml
rename : src/Orchard.Web/Core/Contents/Views/Items/Content.Summary.cshtml => src/Orchard.Web/Core/Contents/Views/Content.Summary.cshtml
rename : src/Orchard.Web/Core/Contents/Views/Items/Content.SummaryAdmin.cshtml => src/Orchard.Web/Core/Contents/Views/Content.SummaryAdmin.cshtml
rename : src/Orchard.Web/Core/Contents/Views/Items/Content.cshtml => src/Orchard.Web/Core/Contents/Views/Content.cshtml
rename : src/Orchard.Web/Core/Contents/Views/Parts/Contents.Publish.SummaryAdmin.cshtml => src/Orchard.Web/Core/Contents/Views/Parts.Contents.Publish.SummaryAdmin.cshtml
rename : src/Orchard.Web/Core/Contents/Views/Parts/Contents.Publish.cshtml => src/Orchard.Web/Core/Contents/Views/Parts.Contents.Publish.cshtml
2010-12-03 17:00:21 -08:00
Renaud Paquay
c4fb128c72
Fix intermitent bug with injecting ILogger
...
--HG--
branch : dev
2010-12-03 16:42:13 -08:00
Renaud Paquay
ee31489a17
Fix Routable views ("Item" is a controller name)
...
--HG--
branch : dev
rename : src/Orchard.Web/Core/Routable/Views/Item.Display.cshtml => src/Orchard.Web/Core/Routable/Views/Item/Display.cshtml
2010-12-03 14:34:45 -08:00
Renaud Paquay
ee4b77790d
Merge
...
--HG--
branch : dev
2010-12-03 14:14:02 -08:00
Renaud Paquay
58f54e24a5
Flatten "Core/Route/Views" folder
...
--HG--
branch : dev
rename : src/Orchard.Web/Core/Routable/Views/EditorTemplates/Parts/Routable.RoutePart.cshtml => src/Orchard.Web/Core/Routable/Views/EditorTemplates/Parts.Routable.RoutePart.cshtml
rename : src/Orchard.Web/Core/Routable/Views/Item/Display.cshtml => src/Orchard.Web/Core/Routable/Views/Item.Display.cshtml
rename : src/Orchard.Web/Core/Routable/Views/Parts/RoutableTitle.cshtml => src/Orchard.Web/Core/Routable/Views/Parts.RoutableTitle.cshtml
rename : src/Orchard.Web/Core/Routable/Views/Parts/RoutableTitle_Summary.cshtml => src/Orchard.Web/Core/Routable/Views/Parts.RoutableTitle_Summary.cshtml
rename : src/Orchard.Web/Core/Routable/Views/Parts/RoutableTitle_SummaryAdmin.cshtml => src/Orchard.Web/Core/Routable/Views/Parts.RoutableTitle_SummaryAdmin.cshtml
2010-12-03 14:12:38 -08:00
Renaud Paquay
d30cd7aa8c
Add more unit tests for shape template harvester
...
--HG--
branch : dev
2010-12-03 14:03:28 -08:00
Renaud Paquay
799471b902
Flatten "Core/Common/Views" folder
...
--HG--
branch : dev
2010-12-03 14:02:56 -08:00
Renaud Paquay
f486b7afa3
Flatten "Core/Common/Views" folder
...
--HG--
branch : dev
rename : src/Orchard.Web/Core/Common/Views/EditorTemplates/Fields/Common.Text.Edit.cshtml => src/Orchard.Web/Core/Common/Views/EditorTemplates/Fields.Common.Text.Edit.cshtml
rename : src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Body.cshtml => src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts.Common.Body.cshtml
rename : src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Container.cshtml => src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts.Common.Container.cshtml
rename : src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts/Common.Owner.cshtml => src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts.Common.Owner.cshtml
rename : src/Orchard.Web/Core/Common/Views/Fields/Common.Text.cshtml => src/Orchard.Web/Core/Common/Views/Fields.Common.Text.cshtml
rename : src/Orchard.Web/Core/Common/Views/Parts/Common.Body.Summary.cshtml => src/Orchard.Web/Core/Common/Views/Parts.Common.Body.Summary.cshtml
rename : src/Orchard.Web/Core/Common/Views/Parts/Common.Body.SummaryAdmin.cshtml => src/Orchard.Web/Core/Common/Views/Parts.Common.Body.SummaryAdmin.cshtml
rename : src/Orchard.Web/Core/Common/Views/Parts/Common.Body.cshtml => src/Orchard.Web/Core/Common/Views/Parts.Common.Body.cshtml
rename : src/Orchard.Web/Core/Common/Views/Parts/Common.Metadata.Summary.cshtml => src/Orchard.Web/Core/Common/Views/Parts.Common.Metadata.Summary.cshtml
rename : src/Orchard.Web/Core/Common/Views/Parts/Common.Metadata.SummaryAdmin.cshtml => src/Orchard.Web/Core/Common/Views/Parts.Common.Metadata.SummaryAdmin.cshtml
rename : src/Orchard.Web/Core/Common/Views/Parts/Common.Metadata.Summary.cshtml => src/Orchard.Web/Core/Common/Views/Parts.Common.Metadata.cshtml
2010-12-03 14:02:10 -08:00
Renaud Paquay
65c0def67e
Log total time and total number of directories processed
...
--HG--
branch : dev
2010-12-03 12:12:04 -08:00
Renaud Paquay
40924a0f73
Merge Perf => Dev
...
--HG--
branch : dev
2010-12-02 22:56:46 -08:00
Renaud Paquay
37c133af48
Remove use of "async" (future C# keyword)
...
Work Item: 16709
--HG--
branch : dev
2010-12-02 20:32:13 -08:00
Renaud Paquay
cc44d1d7dd
Add a "OnUnpublish" event to content handlers
...
Work Item: 16856
--HG--
branch : dev
2010-12-02 20:30:13 -08:00
Renaud Paquay
d336bfa6cf
Add error message in dynamic compilation if a reference can't be found
...
Work item: 16920
--HG--
branch : dev
2010-12-02 20:01:38 -08:00
Renaud Paquay
eb8624966a
Merge
...
--HG--
branch : dev
2010-12-02 17:18:38 -08:00
Renaud Paquay
e88e52b280
Improve response time for first time users
...
On the first time installation of Orchard, the user gets to the setup screen, which
will take a while to finish (user entering data and the setup process itself).
We use this opportunity to start a background task to "pre-compile" all the known
views in the app folder, so that the application is more reponsive when the user
hits the homepage and admin screens for the first time.
--HG--
branch : dev
2010-12-02 17:13:44 -08:00
Renaud Paquay
907c6481c8
Fix csproj file
...
--HG--
branch : dev
2010-12-02 00:07:02 -08:00
Renaud Paquay
5dd5f1333c
Merge
...
--HG--
branch : dev
2010-12-01 19:43:01 -08:00
Renaud Paquay
1cd1e8c417
Removed unused methods
...
--HG--
branch : dev
2010-12-01 19:40:13 -08:00
Renaud Paquay
7281a5d174
Removed unused methods
...
--HG--
branch : dev
2010-12-01 15:40:02 -08:00
Renaud Paquay
2d032e59d2
Merge
...
--HG--
branch : dev
2010-11-30 23:21:29 -08:00
Renaud Paquay
7b14eced5b
Improve performance of GetFeaturesThatNeedUpdate
...
This improves (~25%) the response time of _every_ admin page,
as the GetFeaturesThatNeedUpdate method is called once per page
to figure out if an admin notification should be displayed
about features needed to update.
There were 2 issues:
1. Using (and compiling) a regular expression is expensive to match
a simple "UpdateFrom[n]" pattern.
2. Reading each row of the data migration table is more expensive than
reading everything in one shot (the number of rows is alway going to be
small, as there is one row per feature)
--HG--
branch : dev
2010-11-30 23:20:19 -08:00
Renaud Paquay
9d7d2d5b12
Merge perf => dev
...
--HG--
branch : dev
2010-11-30 13:36:13 -08:00
Renaud Paquay
d97b2aacb0
Merge
...
--HG--
branch : dev
2010-11-30 11:05:31 -08:00
Renaud Paquay
9366f79f5a
Fixing error from previous merge
...
--HG--
branch : dev
2010-11-30 10:30:36 -08:00
Renaud Paquay
24ef2adb9e
Merge perf => dev
...
--HG--
branch : dev
2010-11-29 16:44:10 -08:00
Renaud Paquay
4101cfef7e
Merge
...
--HG--
branch : dev
2010-11-29 10:29:30 -08:00
Renaud Paquay
5b01b31079
Fix SpecFlow tests
...
--HG--
branch : dev
2010-11-29 10:29:06 -08:00
Renaud Paquay
a206e1e119
Merge
...
--HG--
branch : dev
2010-11-28 18:53:03 -08:00
Renaud Paquay
2afa0fff41
Implement support for "null" (and "nil") literals
...
--HG--
branch : dev
2010-11-28 18:48:24 -08:00
Renaud Paquay
32730f0309
Implement evaluation of operators: <, <=, >, >=, ==, != and !
...
--HG--
branch : dev
2010-11-28 18:40:54 -08:00
Renaud Paquay
ea049d28d0
Implement parsing of relational operators
...
--HG--
branch : dev
2010-11-28 16:59:45 -08:00
Renaud Paquay
ffe6c88038
Implement tokenization of relational operators
...
--HG--
branch : dev
2010-11-28 16:18:00 -08:00
Renaud Paquay
2d5b2bb20c
Fix unit tests
...
--HG--
branch : dev
2010-11-28 15:53:31 -08:00
Renaud Paquay
bc96901a93
Merge
...
--HG--
branch : dev
2010-11-28 15:15:36 -08:00
Renaud Paquay
b97d9bd227
Replace enumerators
...
--HG--
branch : dev
2010-11-28 15:13:53 -08:00
Renaud Paquay
a59d1fa97e
Fix bug with ignoring whitespaces at end of expression
...
--HG--
branch : dev
2010-11-28 13:28:03 -08:00
Renaud Paquay
31f4062b60
Update packaging to exclude Orchard.Scripting.Dlr
...
--HG--
branch : dev
2010-11-28 12:11:16 -08:00
Renaud Paquay
69951673af
Add Orchard.Scripting.Lightweight as a default feature
...
--HG--
branch : dev
2010-11-28 12:09:11 -08:00
Renaud Paquay
f96abb981a
Replace dlr scripting implementation with the new lightweight engine
...
DLR scripting engine still available in new Orchard.Scripting.Dlr module
--HG--
branch : dev
rename : src/Orchard.Web/Modules/Orchard.Scripting/ScriptingManager.cs => src/Orchard.Web/Modules/Orchard.Scripting/ScriptExpressionEvaluator.cs
2010-11-28 12:03:11 -08:00
Renaud Paquay
14dd1c754f
Rename namespaces to match file locations
...
--HG--
branch : dev
2010-11-28 11:01:34 -08:00
Renaud Paquay
517725b5ce
Moving scripting engine to Orchard.Scripting
...
--HG--
branch : dev
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/Ast/AbstractSyntaxTree.cs => src/Orchard.Web/Modules/Orchard.Scripting/Ast/AbstractSyntaxTree.cs
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/Ast/AstNode.cs => src/Orchard.Web/Modules/Orchard.Scripting/Ast/AstNode.cs
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/Ast/AstVisitor.cs => src/Orchard.Web/Modules/Orchard.Scripting/Ast/AstVisitor.cs
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/Ast/BinaryAstNode.cs => src/Orchard.Web/Modules/Orchard.Scripting/Ast/BinaryAstNode.cs
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/Ast/ConstantAstNode.cs => src/Orchard.Web/Modules/Orchard.Scripting/Ast/ConstantAstNode.cs
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/Ast/ErrorAstNode.cs => src/Orchard.Web/Modules/Orchard.Scripting/Ast/ErrorAstNode.cs
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/Ast/IAstNodeWithToken.cs => src/Orchard.Web/Modules/Orchard.Scripting/Ast/IAstNodeWithToken.cs
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/Ast/MethodCallAstNode.cs => src/Orchard.Web/Modules/Orchard.Scripting/Ast/MethodCallAstNode.cs
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/Ast/UnaryAstNode.cs => src/Orchard.Web/Modules/Orchard.Scripting/Ast/UnaryAstNode.cs
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/Compiler/Interpreter.cs => src/Orchard.Web/Modules/Orchard.Scripting/Compiler/Interpreter.cs
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/Compiler/InterpreterVisitor.cs => src/Orchard.Web/Modules/Orchard.Scripting/Compiler/InterpreterVisitor.cs
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/Compiler/Lexer.cs => src/Orchard.Web/Modules/Orchard.Scripting/Compiler/Lexer.cs
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/Compiler/Parser.cs => src/Orchard.Web/Modules/Orchard.Scripting/Compiler/Parser.cs
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/Compiler/Token.cs => src/Orchard.Web/Modules/Orchard.Scripting/Compiler/Token.cs
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/Compiler/TokenKind.cs => src/Orchard.Web/Modules/Orchard.Scripting/Compiler/TokenKind.cs
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/Compiler/Tokenizer.cs => src/Orchard.Web/Modules/Orchard.Scripting/Compiler/Tokenizer.cs
rename : src/Orchard.Web/Modules/Orchard.Widgets/SimpleScripting/ScriptingManager.cs => src/Orchard.Web/Modules/Orchard.Scripting/ScriptingManager.cs
2010-11-28 10:54:21 -08:00
Renaud Paquay
5cdb528d2b
Step 2 in renaming Orchard.Scripting to Orchard.Scripting.Dlr
...
--HG--
branch : dev
rename : src/Orchard.Tests.Modules/Scripting/ScriptingTests.cs => src/Orchard.Tests.Modules/Scripting.Dlr/ScriptingTests.cs
rename : src/Orchard.Tests.Modules/SimpleScripting/EvaluatorTests.cs => src/Orchard.Tests.Modules/Scripting/EvaluatorTests.cs
rename : src/Orchard.Tests.Modules/SimpleScripting/ParserTests.cs => src/Orchard.Tests.Modules/Scripting/ParserTests.cs
rename : src/Orchard.Tests.Modules/SimpleScripting/SimpleScriptingTests.cs => src/Orchard.Tests.Modules/Scripting/SimpleScriptingTests.cs
rename : src/Orchard.Tests.Modules/SimpleScripting/TokenizerTests.cs => src/Orchard.Tests.Modules/Scripting/TokenizerTests.cs
rename : src/Orchard.Web/Modules/Orchard.Scripting.Dlr/Orchard.Scripting.csproj => src/Orchard.Web/Modules/Orchard.Scripting.Dlr/Orchard.Scripting.Dlr.csproj
2010-11-28 10:01:59 -08:00
Renaud Paquay
02b0d69621
1st step in renaming Orchard.Scripting to Orchard.Scripting.Dlr
...
--HG--
branch : dev
rename : src/Orchard.Web/Modules/Orchard.Scripting/Module.txt => src/Orchard.Web/Modules/Orchard.Scripting.Dlr/Module.txt
rename : src/Orchard.Web/Modules/Orchard.Scripting/Orchard.Scripting.csproj => src/Orchard.Web/Modules/Orchard.Scripting.Dlr/Orchard.Scripting.csproj
rename : src/Orchard.Web/Modules/Orchard.Scripting/Properties/AssemblyInfo.cs => src/Orchard.Web/Modules/Orchard.Scripting.Dlr/Properties/AssemblyInfo.cs
rename : src/Orchard.Web/Modules/Orchard.Scripting/Services/IScriptingManager.cs => src/Orchard.Web/Modules/Orchard.Scripting.Dlr/Services/IScriptingManager.cs
rename : src/Orchard.Web/Modules/Orchard.Scripting/Services/IScriptingRuntime.cs => src/Orchard.Web/Modules/Orchard.Scripting.Dlr/Services/IScriptingRuntime.cs
rename : src/Orchard.Web/Modules/Orchard.Scripting/Services/RubyScriptingRuntime.cs => src/Orchard.Web/Modules/Orchard.Scripting.Dlr/Services/RubyScriptingRuntime.cs
rename : src/Orchard.Web/Modules/Orchard.Scripting/Services/ScriptingManager.cs => src/Orchard.Web/Modules/Orchard.Scripting.Dlr/Services/ScriptingManager.cs
2010-11-28 09:53:24 -08:00
Renaud Paquay
5e26384cae
Implement scripting manager end-2-end
...
--HG--
branch : dev
2010-11-28 09:51:00 -08:00
Renaud Paquay
2da2969a36
fix 2 special cases of method invocation
...
--HG--
branch : dev
2010-11-28 00:20:52 -08:00
Renaud Paquay
cacc8899a9
Method to collect errors from AST
...
--HG--
branch : dev
2010-11-28 00:20:27 -08:00
Renaud Paquay
eb6762d11a
Adding more unit tests
...
--HG--
branch : dev
2010-11-27 23:36:05 -08:00
Renaud Paquay
24650f0db6
Implement evaluation of method calls
...
--HG--
branch : dev
2010-11-27 23:28:16 -08:00
Renaud Paquay
b299c73824
Implement parsing of method calls
...
Parsing methods calls of the form:
<identifier> '(' arg [, arg, ...] ')'
<identifier> arg [, arg, ...]
--HG--
branch : dev
2010-11-27 23:04:30 -08:00
Renaud Paquay
98abc18658
Refactor/simplify interpreter
...
--HG--
branch : dev
2010-11-27 22:18:56 -08:00