Commit Graph

5294 Commits

Author SHA1 Message Date
Louis DeJardin
331a36a703 Small mistakes in last commit
--HG--
branch : 1.x
2011-05-27 19:35:28 -07:00
Louis DeJardin
252cc00196 Refactoring OwnerEditor and DateEditor breakout
Splitting OwnerEditor and DateEditor settings apart. Breaking off any knowledge
in the CommonPart of the OwnerEditor and DateEditor.

Changed the settings to appear as TypePart definition instead of Type.

Based the ViewModel on Shape instead of EditorTemplates.

The goal of these changes is to illustrate how a 3rd party module would
accomplish the same kind of ContentPart extension w/out changing core code.

--HG--
branch : 1.x
rename : src/Orchard.Web/Core/Common/Drivers/DateEditorPartDriver.cs => src/Orchard.Web/Core/Common/DateEditor/DateEditorDriver.cs
rename : src/Orchard.Web/Core/Common/Handlers/DateEditorPartHandler.cs => src/Orchard.Web/Core/Common/DateEditor/DateEditorHandler.cs
rename : src/Orchard.Web/Core/Common/Settings/CommonEditorsSettings.cs => src/Orchard.Web/Core/Common/DateEditor/DateEditorSettings.cs
rename : src/Orchard.Web/Core/Common/Drivers/OwnerEditorPartDriver.cs => src/Orchard.Web/Core/Common/OwnerEditor/OwnerEditorDriver.cs
rename : src/Orchard.Web/Core/Common/Settings/CommonEditorsSettings.cs => src/Orchard.Web/Core/Common/OwnerEditor/OwnerEditorSettings.cs
rename : src/Orchard.Web/Core/Common/ViewModels/OwnerEditorViewModel.cs => src/Orchard.Web/Core/Common/OwnerEditor/OwnerEditorViewModel.cs
rename : src/Orchard.Web/Core/Common/Views/DefinitionTemplates/CommonEditorsSettings.cshtml => src/Orchard.Web/Core/Common/Views/DefinitionTemplates/DateEditorSettings.cshtml
rename : src/Orchard.Web/Core/Common/Views/DefinitionTemplates/CommonEditorsSettings.cshtml => src/Orchard.Web/Core/Common/Views/DefinitionTemplates/OwnerEditorSettings.cshtml
rename : src/Orchard.Web/Core/Common/Views/EditorTemplates/Parts.Common.CreatedUtc.cshtml => src/Orchard.Web/Core/Common/Views/Parts.Common.Date.Edit.cshtml
extra : transplant_source : %D1%21c%ACa%F0%0FO%A1%9A%88YS%1Bk9.%CB%04%08
2011-05-27 19:02:45 -07:00
Sebastien Ros
fd041c3c2e #17842: Exception when content type name contains special chars
Work Items: 17842

--HG--
branch : 1.x
2011-05-27 14:59:45 -07:00
Renaud Paquay
7a35d03902 PERF: Adding various logging calls related to startup performance
--HG--
branch : 1.x
2011-05-27 14:19:46 -07:00
Renaud Paquay
fdbe7fd454 Fixing UT
--HG--
branch : 1.x
2011-05-27 14:19:23 -07:00
Sebastien Ros
5677c4dba9 Changing CreatedUtc behavior to be also set the first time it is published.
Relies on DateEditorPartDriver to be enabled.

--HG--
branch : 1.x
2011-05-27 12:11:31 -07:00
Renaud Paquay
e806b8a1f3 PERF: Adding various logging calls related to startup performance
--HG--
branch : 1.x
2011-05-27 10:58:37 -07:00
Andre Rodrigues
fc6821cb8c Merge
--HG--
branch : 1.x
2011-05-26 13:40:51 -07:00
Andre Rodrigues
2e2e193905 #17297: Setting default container sorting to be by CreatedUtc.
--HG--
branch : 1.x
2011-05-26 13:39:03 -07:00
Suha Can
9c6e953ba7 #17823 Import/Export doesn't export the Display Name of a content type
--HG--
branch : 1.x
2011-05-26 11:29:44 -07:00
Dave Reed
ee35e138a3 #17860: WidgetsService.GetZones can return duplicate zones
--HG--
branch : 1.x
2011-05-25 14:06:24 -07:00
Dave Reed
c17488d329 Merge
--HG--
branch : 1.x
2011-05-25 12:13:53 -07:00
Dave Reed
0aa6757b08 Moving list content to position 7
--HG--
branch : 1.x
2011-05-25 12:07:12 -07:00
Dave Reed
ab71f4cc7f #17426: Content item with Container part renders without other parts
--HG--
branch : 1.x
2011-05-25 12:06:19 -07:00
Dave Reed
f10f1215e6 #17867: OrchardControllerFactory exception on 404s
--HG--
branch : 1.x
2011-05-25 12:03:30 -07:00
Louis DeJardin
39d22e4ec4 Merge
--HG--
branch : 1.x
2011-05-25 11:10:59 -07:00
Andre Rodrigues
e137d146db Removing unused IWorkContextAccessor, logger and localizer.
--HG--
branch : 1.x
2011-05-24 18:46:56 -07:00
Louis DeJardin
c771be816c Using better argument variable names
--HG--
branch : 1.x
2011-05-24 17:39:47 -07:00
Louis DeJardin
08ec2d3674 Adding tests to assert Autofac's expected behavior
--HG--
branch : 1.x
2011-05-24 17:35:31 -07:00
Sebastien Ros
742bafcd39 Merge
--HG--
branch : 1.x
2011-05-24 16:35:10 -07:00
Sebastien Ros
e193b4e3c7 Adding Shape debug viewers
--HG--
branch : 1.x
2011-05-24 16:34:42 -07:00
Louis DeJardin
80bfa368c1 Reversing order of IEnumerable<TService> resolved from IoC
Components are registered in dependency/priority order and
this is also the order events and hooks should fire. The default
order of Autofac is opposite what we need for enumerable services.

The behavior of resolving a single TService is unchanged - the
last-registered of TService is the only returned.

--HG--
branch : 1.x
extra : transplant_source : %87%22%FC%84%A1%0FP%3C%20w%B4%1EQ%CC%90%20%97%C1%EC%BF
2011-05-24 15:52:15 -07:00
Andre Rodrigues
3e74f4a4d6 #17816: Avoiding unecessary allocations and comparisons in the DefaultCacheManager.
--HG--
branch : 1.x
2011-05-24 14:10:40 -07:00
Andre Rodrigues
62c94648ec #17816: Caching current theme name as a way to avoid up to 2 queries per request.
--HG--
branch : 1.x
2011-05-24 12:34:27 -07:00
Renaud Paquay
8e83faa224 PERF: Adding various logging calls related to startup performance
--HG--
branch : 1.x
extra : transplant_source : %DC%AB%0E%89%B4%01%20%17%29%87%0F%D86%3A%FE%EE%A2%FB%D9%94
2011-05-23 17:46:46 -07:00
Renaud Paquay
2922ede0d5 Refactor WarmupHttpModule use of AsyncResult
If processing the request immediately, use a dedicated
"DoneAsyncResult" class to avoid waiting on a handle.

Also make sure that we return false from "CompletedSynchronously" only
when in "Warmup" mode.

--HG--
branch : 1.x
2011-05-27 10:50:58 -07:00
Sebastien Ros
e3a3753d53 #17841: Fixing page sie selector in admin
The <select /> element might not be in a <form />

Work Items: 17841

--HG--
branch : 1.x
2011-05-23 13:25:56 -07:00
Sebastien Ros
de6fc72d8e Merge
--HG--
branch : 1.x
2011-05-23 10:34:28 -07:00
Andre Rodrigues
984c11a80f #17825: Showing created instead of published datetime.
--HG--
branch : 1.x
2011-05-20 16:10:34 -07:00
Nathan Heskew
0fba396da1 Merge
--HG--
branch : 1.x
2011-05-19 09:52:15 -07:00
Andre Rodrigues
a6bee4cdab Addinf fluentnhibernate patches.
--HG--
branch : 1.x
2011-05-18 14:47:33 -07:00
Nathan Heskew
07a69a6bdf Adding a "Delete" button on the blog edit page. Keeping consistent with what we're doing with widgets.
work item: 17769

--HG--
branch : 1.x
2011-05-18 14:00:43 -07:00
Andre Rodrigues
6a88f44e73 #17830: Registering ServiceRoutes after MVCRoutes. Using existing WorkContext in OrchardFactory in case of aspnetcompatibilitymode.
--HG--
branch : 1.x
2011-05-18 13:25:57 -07:00
Dave Reed
eed3340e89 MediaPicker: refactor
--HG--
branch : 1.x
2011-05-18 10:51:52 -07:00
Renaud Paquay
8fc1b4d707 Refactoring: moving code out of WarmupHttpModule class
--HG--
branch : 1.x
extra : transplant_source : %86%0A%26%0DP%29e%99%0E%87%5D%F5%7E%F5X%C0i%9E%2C%01
2011-05-17 13:04:51 -07:00
Renaud Paquay
b01a0898a9 Refactor Orchard.WarmupStarter assembly
* Remove dependency on Orchard.Framework assembly
* Fix issue where a host initialization failure would result in
  '404' errors. We need to restart the host initialization and
  make sure new incoming requests are queued.
* Fix concurrency issue when multiple requests are pending for the
  host initialization to finish (only one request would notify
  of a potentially error, the other ones would return a '404').

--HG--
branch : 1.x
extra : transplant_source : %3Dz%E4%ADEq%91%9D%17%D2%10jut%A6%93%09t%7CR
2011-05-17 13:01:39 -07:00
Renaud Paquay
c51f4ce2de PERF: Adding more logging calls related to performance tracking
Also added a few "Disabled" checks in extension loaders to avoid
extra-work when they are disabled.

--HG--
branch : 1.x
2011-05-27 10:45:28 -07:00
Renaud Paquay
852d21fee9 Fix incorrect condition
--HG--
branch : 1.x
2011-05-26 20:41:02 -07:00
Renaud Paquay
7084ecbbbc #17804: Ensure views are recompiled more aggressively
When a module changes, it's loader can change, which means the list
of dependencies can change to. Instead of trying to track the list
of dependencies, we now simply add a dependency on a file on disk
which describe the module compilation state.

As an aside, this also improves startup performance when
there were no changes to a site, since asp.net now only has
to check a single file instead of the list of dependencies.

--HG--
branch : 1.x
2011-05-26 18:11:51 -07:00
Renaud Paquay
1a30d2492f Refactor interaction between Dynamic loader and Dynamic VPP
--HG--
branch : 1.x
2011-05-26 16:40:05 -07:00
Renaud Paquay
6889ba4328 Perf: Include references from module project files only
In particular, files from ~/Core should not be included in
the list of dependencies, are Orchard.Core.dll is assumed to be
in "~/bin", so any change to it will force a whole site recompilation
anyways.

--HG--
branch : 1.x
2011-05-26 16:28:28 -07:00
Renaud Paquay
7a4e86e6a5 Virtual paths are case insensitive.
--HG--
branch : 1.x
2011-05-26 11:06:20 -07:00
Renaud Paquay
6c732af595 Implement dependency files storing state of modules compilation
The file is similar to "dependencies.xml", except it contains file
hash of all virtual path stored in the file. This is to ensure that
the file content is updated when any file hash changes.

This will be used in an upcoming bug fix.

--HG--
branch : 1.x
2011-05-26 11:05:50 -07:00
Renaud Paquay
b20b68c9fd Expose GetFileHash method on IVirtualPathProvider
--HG--
branch : 1.x
2011-05-25 21:35:37 -07:00
Renaud Paquay
314c9cb9a6 Refactoring a couple of method related to dynamic compilation
Abstract away WebForms syntax knowledge from extension loader
implementations.

Rename the corresponding methods to be more semantically correct.

--HG--
branch : 1.x
2011-05-25 20:56:02 -07:00
Renaud Paquay
6d0b7e1d61 Removing method from interface
The method really only makes sense for the DynamicExtensionLoader.
It is used only in the DynamicModuleVirtualPathProvider only.

--HG--
branch : 1.x
2011-05-25 19:49:08 -07:00
Renaud Paquay
72e787ed38 Renaming method
--HG--
branch : 1.x
2011-05-25 19:36:19 -07:00
Renaud Paquay
56284c516a Fix typo
--HG--
branch : 1.x
2011-05-25 18:10:51 -07:00
Renaud Paquay
6de0700f3e Merge
--HG--
branch : 1.x
2011-05-25 17:47:02 -07:00
Renaud Paquay
0ac6091b74 17875: Too many InvalidOperationExceptions during startup
Prevent common cases exception by explicitly rejecting invalid
virtual paths.

--HG--
branch : 1.x
2011-05-25 17:36:27 -07:00