From 1e8cbb7a6dab5d9f40a743155f903d32ec9df128 Mon Sep 17 00:00:00 2001 From: Suha Can Date: Wed, 23 Jun 2010 12:23:22 -0700 Subject: [PATCH] - Featurizing DevTools, adding scaffolding and profiling features. --HG-- branch : dev --- .../Orchard.DevTools/Commands/ProfilingCommands.cs | 2 ++ .../Orchard.DevTools/Commands/ScaffoldingCommands.cs | 8 ++++++++ src/Orchard.Web/Modules/Orchard.DevTools/Module.txt | 12 ++++++++++-- .../Modules/Orchard.DevTools/Orchard.DevTools.csproj | 1 + 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 src/Orchard.Web/Modules/Orchard.DevTools/Commands/ScaffoldingCommands.cs diff --git a/src/Orchard.Web/Modules/Orchard.DevTools/Commands/ProfilingCommands.cs b/src/Orchard.Web/Modules/Orchard.DevTools/Commands/ProfilingCommands.cs index 6635ab22b..aae71f2d8 100644 --- a/src/Orchard.Web/Modules/Orchard.DevTools/Commands/ProfilingCommands.cs +++ b/src/Orchard.Web/Modules/Orchard.DevTools/Commands/ProfilingCommands.cs @@ -3,9 +3,11 @@ using Orchard.ContentManagement; using Orchard.ContentManagement.Aspects; using Orchard.Core.Common.Models; using Orchard.Core.Navigation.Models; +using Orchard.Environment.Extensions; using Orchard.Security; namespace Orchard.DevTools.Commands { + [OrchardFeature("Profiling")] public class ProfilingCommands : DefaultOrchardCommandHandler { private readonly IContentManager _contentManager; private readonly IMembershipService _membershipService; diff --git a/src/Orchard.Web/Modules/Orchard.DevTools/Commands/ScaffoldingCommands.cs b/src/Orchard.Web/Modules/Orchard.DevTools/Commands/ScaffoldingCommands.cs new file mode 100644 index 000000000..92c051d12 --- /dev/null +++ b/src/Orchard.Web/Modules/Orchard.DevTools/Commands/ScaffoldingCommands.cs @@ -0,0 +1,8 @@ +using Orchard.Commands; +using Orchard.Environment.Extensions; + +namespace Orchard.DevTools.Commands { + [OrchardFeature("Scaffolding")] + public class ScaffoldingCommands : DefaultOrchardCommandHandler { + } +} diff --git a/src/Orchard.Web/Modules/Orchard.DevTools/Module.txt b/src/Orchard.Web/Modules/Orchard.DevTools/Module.txt index 40cb75a5e..1aeb0b2b3 100644 --- a/src/Orchard.Web/Modules/Orchard.DevTools/Module.txt +++ b/src/Orchard.Web/Modules/Orchard.DevTools/Module.txt @@ -7,5 +7,13 @@ orchardversion: 0.1.2010.0312 description: This module is not activated by default and should only be used in a development environment. It contains various debugging and tracing tools that can display information about your content types. features: Orchard.DevTools: - Description: An assortment of debuging tools. - Category: Developer \ No newline at end of file + Description: An assortment of debugging tools. + Category: Developer + Scaffolding: + Description: Tools to create Orchard components. + Category: Developer + Dependencies: Orchard.DevTools + Profiling: + Description: Tools to help profile Orchard. + Category: Developer + Dependencies: Orchard.DevTools \ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.DevTools/Orchard.DevTools.csproj b/src/Orchard.Web/Modules/Orchard.DevTools/Orchard.DevTools.csproj index fd88a2bd9..6a0fa7473 100644 --- a/src/Orchard.Web/Modules/Orchard.DevTools/Orchard.DevTools.csproj +++ b/src/Orchard.Web/Modules/Orchard.DevTools/Orchard.DevTools.csproj @@ -71,6 +71,7 @@ +