Updating Path on module's manifests. Adding FeatureName attribute.

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2011-03-24 14:18:17 -07:00
parent c3bfa268dd
commit ff31d75ce1
7 changed files with 12 additions and 7 deletions
@@ -1,4 +1,5 @@
Name: Archive Later Name: Archive Later
Path: ArchiveLater
AntiForgery: enabled AntiForgery: enabled
Author: The Orchard Team Author: The Orchard Team
Website: http://orchardproject.net Website: http://orchardproject.net
@@ -5,12 +5,11 @@ Website: http://orchardproject.net
Version: 1.0 Version: 1.0
OrchardVersion: 1.0 OrchardVersion: 1.0
Description: Contains designer tools to ease the Themes development process Description: Contains designer tools to ease the Themes development process
FeatureName: Shape Tracing
Category: Designer
FeatureDescription: Displays all currently displayed shapes and some information to customize them
Dependencies: Orchard.jQuery
Features: Features:
Orchard.DesignerTools:
Name: Shape Tracing
Category: Designer
Description: Displays all currently displayed shapes and some information to customize them
Dependencies: Orchard.jQuery
UrlAlternates: UrlAlternates:
Name: Url Alternates Name: Url Alternates
Category: Designer Category: Designer
@@ -10,7 +10,6 @@ namespace Orchard.Experimental {
[OrchardFeature("Orchard.Experimental.LockLogging")] [OrchardFeature("Orchard.Experimental.LockLogging")]
public class LockLogging : FilterProvider, IExceptionFilter { public class LockLogging : FilterProvider, IExceptionFilter {
private readonly Work<ISessionLocator> _sessionLocator; private readonly Work<ISessionLocator> _sessionLocator;
private readonly ITransactionManager _transactionManager;
public LockLogging(Work<ISessionLocator> sessionLocator) { public LockLogging(Work<ISessionLocator> sessionLocator) {
_sessionLocator = sessionLocator; _sessionLocator = sessionLocator;
@@ -1,4 +1,5 @@
Name: Import Export Name: Import Export
Path: ImportExport
AntiForgery: enabled AntiForgery: enabled
Author: The Orchard Team Author: The Orchard Team
Website: http://orchardproject.net Website: http://orchardproject.net
@@ -1,4 +1,5 @@
Name: Publish Later Name: Publish Later
Path: PublishLater
AntiForgery: enabled AntiForgery: enabled
Author: The Orchard Team Author: The Orchard Team
Website: http://orchardproject.net Website: http://orchardproject.net
@@ -1,4 +1,5 @@
Name: jQuery Name: jQuery
Path: Orchard.jQuery
AntiForgery: enabled AntiForgery: enabled
Author: The Orchard Team Author: The Orchard Team
Website: http://orchardproject.net Website: http://orchardproject.net
@@ -183,6 +183,9 @@ namespace Orchard.Environment.Extensions.Folders {
case "FeatureDescription": case "FeatureDescription":
manifest.Add("FeatureDescription", field[1]); manifest.Add("FeatureDescription", field[1]);
break; break;
case "FeatureName":
manifest.Add("FeatureName", field[1]);
break;
case "Priority": case "Priority":
manifest.Add("Priority", field[1]); manifest.Add("Priority", field[1]);
break; break;
@@ -202,7 +205,7 @@ namespace Orchard.Environment.Extensions.Folders {
// Default feature // Default feature
FeatureDescriptor defaultFeature = new FeatureDescriptor { FeatureDescriptor defaultFeature = new FeatureDescriptor {
Id = extensionDescriptor.Id, Id = extensionDescriptor.Id,
Name = extensionDescriptor.Name, Name = GetValue(manifest, "FeatureName") ?? extensionDescriptor.Name,
Priority = GetValue(manifest, "Priority") != null ? int.Parse(GetValue(manifest, "Priority")) : 0, Priority = GetValue(manifest, "Priority") != null ? int.Parse(GetValue(manifest, "Priority")) : 0,
Description = GetValue(manifest, "FeatureDescription") ?? GetValue(manifest, "Description") ?? string.Empty, Description = GetValue(manifest, "FeatureDescription") ?? GetValue(manifest, "Description") ?? string.Empty,
Dependencies = ParseFeatureDependenciesEntry(GetValue(manifest, "Dependencies")), Dependencies = ParseFeatureDependenciesEntry(GetValue(manifest, "Dependencies")),