Restyling the recipe dropdown

Roughing in some recipe execution concepts...

--HG--
branch : recipe
This commit is contained in:
Suha Can
2011-02-14 16:30:14 -08:00
parent b66b738a24
commit 8ddb5b55b6
8 changed files with 67 additions and 12 deletions

View File

@@ -216,11 +216,6 @@ namespace Orchard.Setup.Services {
}
private void CreateTenantData(SetupContext context, IWorkContextScope environment) {
var recipeManager = environment.Resolve<IRecipeManager>();
if (context.Recipe != null) {
recipeManager.Execute(Recipes().Where(r => r.Name == context.Recipe).FirstOrDefault());
}
// create superuser
var membershipService = environment.Resolve<IMembershipService>();
var user =
@@ -349,6 +344,11 @@ Modules are created by other users of Orchard just like you so if you feel up to
menuItem.As<MenuPart>().OnMainMenu = true;
menuItem.As<MenuItemPart>().Url = "";
var recipeManager = environment.Resolve<IRecipeManager>();
if (context.Recipe != null) {
recipeManager.Execute(Recipes().Where(r => r.Name == context.Recipe).FirstOrDefault());
}
//null check: temporary fix for running setup in command line
if (HttpContext.Current != null) {
authenticationService.SignIn(user, true);