Commit Graph
100 Commits
Author SHA1 Message Date
Louis DeJardin c0fac8d2ca Merge
--HG--
branch : dev
2010-04-21 15:01:30 -07:00
Louis DeJardin 19e694834d Setup integration test working
Added (very bad) cookie support to integration test lib
Workaround to resolving collections appears to have worked

--HG--
branch : dev
2010-04-21 15:01:01 -07:00
Louis DeJardin 583138c7ed Updating Autofac.dll with small change for implicit collections issue
--HG--
branch : dev
2010-04-21 13:51:26 -07:00
Louis DeJardin e750edb514 Found what could be an Autofac bug
Made a test for repro and emailed the autofac group

--HG--
branch : dev
2010-04-21 00:36:36 -07:00
Louis DeJardin 5a07a5a8c4 Fixing more tests
Default Orchard host tests provides test components explicitly for resolving
Simple hosting tests use site in it's own basic folder

--HG--
branch : dev
2010-04-20 16:11:48 -07:00
Louis DeJardin a03f0278f7 Merge
--HG--
branch : dev
2010-04-20 15:07:33 -07:00
Louis DeJardin 31995c55ca Setup submit scenario works
Minimum modules are copied
Form is submitted
Redirect is verified (should have a step to follow redirect)
Also changed .Named to .Keyed in a controller test

--HG--
branch : dev
2010-04-20 15:07:00 -07:00
Louis DeJardin ef8e3d4cce Merge
--HG--
branch : dev
2010-04-20 14:28:31 -07:00
Louis DeJardin 699d4c0f4d Merge
--HG--
branch : dev
2010-04-20 14:28:19 -07:00
Louis DeJardin 299a4ba74d Working SpecFlow POST support
Step named: When I hit "x"
locates input type submit with value "x"
locates the form surrounding that input
and sends a POST request to the embedded web host with all of the input values of that form element
Also added step: Given I have a clean site with
as a large-grained copier of extensions

--HG--
branch : dev
2010-04-20 14:27:43 -07:00
Louis DeJardin 5b3c213de4 Incremental work towards getting SpecFlow form "POST"
--HG--
branch : dev
2010-04-20 14:13:14 -07:00
Louis DeJardin fc6acf68e1 Fixing an issue with order-of-execution in setup
Database created and schema generated before the rest of the setup info is applied
Known set of minimum modules are used to generate schema, and are saved in the shell's records

--HG--
branch : dev
2010-04-19 18:29:45 -07:00
Louis DeJardin ffa92f76e9 Passing along ShellSettings to apply DataPrefix to RecordTopology
--HG--
branch : dev
2010-04-19 16:52:22 -07:00
Louis DeJardin 78d5711e1a Creating feature for extension name implicitly
Supports existing module.txt file format
Reduces the size of a minimalistic descriptor file

--HG--
branch : dev
2010-04-19 16:34:35 -07:00
Louis DeJardin 1800c632b6 Refactoring ShellTopology slightly
Merging IModule and IDependency information in ShellTopology
Avoids conceptual collision with Orchard Modules and Autofac IModule components

--HG--
branch : dev
2010-04-19 16:21:20 -07:00
Louis DeJardin 4ea2ff7327 Adding comments to some environment model classes
--HG--
branch : dev
2010-04-19 15:48:05 -07:00
Louis DeJardin 9495f5c557 Must remember to save all before commit
--HG--
branch : dev
2010-04-19 14:25:16 -07:00
Louis DeJardin 8d78fee02b Renaming ShellTopologyDescriptor to ShellDescriptor
More accurate and terse
Associated tests, interface, component names changed to follow suit

--HG--
branch : dev
2010-04-19 13:51:15 -07:00
Louis DeJardin 7c793f4e0a Cleaning up and fixing some tests. Refactoring.
Using auto mocking instead of some null stubs. Unclear if that practice will be adopted.
Builtin Orchard.Framework feature definition moved from ExtensioManager to CompositionStrategy

--HG--
branch : dev
2010-04-19 12:25:53 -07:00
Louis DeJardin 3509843b48 Compacting code and removing some obsolete things
--HG--
branch : dev
2010-04-17 22:14:31 -07:00
Louis DeJardin 71e019a0b8 Incremental changes towards enabling setup module
Setup controller can render initial screen
SafeMode container factory moved into Orchard.Setup module
ShellBuilders namespace files compacted a bit
Core feature named "Orchard.Framework" and is not used in setup mode

--HG--
branch : dev
2010-04-17 21:33:36 -07:00
Louis DeJardin a137d84732 Working towards re-enabling setup context
--HG--
branch : dev
2010-04-17 19:22:26 -07:00
Louis DeJardin 1cfaae90b8 Building out composition strategy
Four main component types are populated from topology
Additional information for table/area/controller name populated
Some core types for records added automatically

--HG--
branch : dev
2010-04-17 17:03:07 -07:00
Louis DeJardin 6fb6ef0033 Relocating extensions to environment namespace
--HG--
branch : dev
2010-04-17 16:09:53 -07:00
Louis DeJardin 00d235c717 Merge
--HG--
branch : dev
2010-04-16 20:58:47 -07:00
Louis DeJardin ff96ad73ea Incremental change refactoring modularity
--HG--
branch : dev
2010-04-16 20:50:01 -07:00
Louis DeJardin a1c639bd0f Roughing in tests around topology descriptor manager
Implementation in settings module intended to live inside shell with access to current irepostory<> orm
Basic tests around serial numbers and initial conditions and update behaviors
Also sets expectations around event raising

--HG--
branch : dev
2010-04-15 02:27:55 -07:00
Louis DeJardin 8508a860cc Incomplete commit
--HG--
branch : dev
2010-04-15 01:21:03 -07:00
Louis DeJardin aee044781c Small changes to model/interfaces
Cropping some data
Adding an Update method, and renaming to ITopologyDescriptorManager

--HG--
branch : dev
2010-04-15 01:16:13 -07:00
Louis DeJardin 122ea0b629 Reimplementing DefaultShellContainerFactory : IShellContainerFactory
Based on new interface which takes ShellTopology and returns ILifetimeScope
Other partial changes to DefaultOrchardHost
Several tests and web app currently broken

--HG--
branch : dev
2010-04-15 00:52:58 -07:00
Louis DeJardin a302fefbdf Merge
--HG--
branch : dev
2010-04-14 19:18:12 -07:00
Louis DeJardin d9598d020f Adding a specific component to orchetrate the creation of a shell context
--HG--
branch : dev
2010-04-14 18:22:23 -07:00
Louis DeJardin f6f73cca9c Merge
--HG--
branch : dev
2010-04-14 15:53:51 -07:00
Louis DeJardin c319bf2e6b Adding tests and placeholder implementation of TopDescCache
--HG--
branch : dev
2010-04-14 15:53:28 -07:00
Louis DeJardin 1c00ffb3b6 Adding implementation notes to some service interfaces
--HG--
branch : dev
2010-04-14 15:07:12 -07:00
Louis DeJardin 247e077d2c Fixing some badly resolved merge conflicts
--HG--
branch : dev
2010-04-14 14:50:53 -07:00
Louis DeJardin cef5d9bb3d Merge
--HG--
branch : dev
2010-04-14 14:45:34 -07:00
Louis DeJardin 83db3cd3d3 Roughing in service interfaces and models for shell topology work
Some existing types refactored _Obsolete suffix to indicate it's replaced w/out breaking exising usage

--HG--
branch : dev
2010-04-14 14:43:57 -07:00
Louis DeJardin 4b24886423 Using FluentPath assembly
Deprecates PathUtil utility class

--HG--
branch : dev
2010-04-14 12:50:00 -07:00
Louis DeJardin c416ed1f53 Integrating SpecFlow
asp.net inprocess appdomain utilized for integration style testing
feature files generate nunit tests at "save time" with vs specflow 1.2 installed
micro orchard site created dynamically in temp folder as a given step
cross-domain delegate invokation based on the excellent work of Steve Sanderson http://blog.stevensanderson.com/

--HG--
branch : dev
2010-04-14 10:28:33 -07:00
Louis DeJardin 52a4a18f3c Merge default -> dev
--HG--
branch : dev
2010-04-14 10:23:12 -07:00
Louis DeJardin e070353631 Removing some commented code
--HG--
branch : dev
2010-04-08 10:11:56 -07:00
Louis DeJardin 26add78779 Adjusting registration of dependencies to avoid duplications
Types are registered once and multiple interfaces result in several services being associated with that component.
Any singleton or transient interfaces will adjust the lifecycle of the entire component.

--HG--
branch : dev
2010-04-07 17:55:38 -07:00
Louis DeJardin d77526259b Moving Host.config over to ~/Config instead of ~/App_Data
Assumes you may want to consider it's settings not quite as portable as tenant info

--HG--
branch : dev
2010-04-07 17:32:34 -07:00
Louis DeJardin ef50916694 Forcing Hg to add Sample.Host.config in App_Data
--HG--
branch : dev
2010-04-07 17:29:24 -07:00
Louis DeJardin 36622bb303 Renaming Host.config to avoid collisions with user files
--HG--
branch : dev
2010-04-07 17:03:45 -07:00
Louis DeJardin 39dfe31ee2 Merge
--HG--
branch : dev
2010-04-07 17:02:27 -07:00
Louis DeJardin 0856fce9a4 Adding file-based configurability
optional ~/App_Data/Host.config file will modify root container registrations
not implemented stub for azure tenant storage added

--HG--
branch : dev
2010-04-07 16:59:21 -07:00
Louis DeJardin 7172a784c0 Fixing an incomplete save/merge for previous commit
--HG--
branch : dev
2010-04-07 15:41:43 -07:00
Louis DeJardin ca0859f32b Merge
--HG--
branch : dev
rename : src/Orchard.Tests/Orchard.Tests.csproj => src/Orchard.Tests/Orchard.Framework.Tests.csproj
rename : src/Orchard/Orchard.csproj => src/Orchard/Orchard.Framework.csproj
2010-04-07 15:36:18 -07:00
Louis DeJardin 476abfc409 Changing shell settings loader to prep for multi-tenancy work
Adding data prefix property
Moving to a different yaml library
Renaming IShellSettingsLoader and ShellSettingsLoader to ITenantManager and DefaultTenantManager
Avoiding use of MapPath in the appdatafolder abstraction

--HG--
branch : dev
2010-04-07 15:34:38 -07:00
Louis DeJardin 80007a5101 Allowing modules to add interceptors to registered components
Removes reference to Autofac contrib dynamicproxy assembly
Shell factories enable dynamic proxy as dependencies are registered
CurrentUser and CurrentSite interceptors updated for new api
Castle.DynamicProxy2 v2.1 is used to avoid rebuilding nhib binaries

--HG--
branch : dev
2010-04-07 13:30:18 -07:00
Louis DeJardin a2e58f9470 Troubleshooting automated build
Server has a different implementation of NUnit task.
Using x86 sqlite for that environment.

--HG--
branch : dev
2010-04-05 14:01:56 -07:00
Louis DeJardin 85a08396dd Initial SpecFlow project and adjusting for x64 testing
Added bits from SpecFlow 1.2 install
Added lib/specflow libraries and nearly empty Spec test project
Updating Orchard.proj to use NUnit task and locate test projects by pattern instead of fixed list

--HG--
branch : dev
2010-04-05 13:30:02 -07:00
Louis DeJardin 2943b7887e Allowing first RC in addition to RTM and RC2 when found in GAC
--HG--
branch : dev
2010-03-11 14:38:29 -08:00
Louis DeJardin 0d07a3c691 Merge
--HG--
branch : dev
2010-03-11 14:09:49 -08:00
Louis DeJardin 820c71a01a Updating Orchard to ASP.NET MVC 2 RTM
Binaries taken from installation of public download
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c9ba1fe1-3ba8-439a-9e21-def90a8615a9
Version check updated to allow Orchard to run with RTM or RC2 of System.Web.Mvc.dll in GAC

--HG--
branch : dev
2010-03-11 14:08:54 -08:00
Louis DeJardin 0320862826 Providing designer notes html for zones
IZoneManagerEvents interface added to inject designer notes in empty zones
Static html file matching zone names displayed when nothing else is in that location
An Edit link simulates the look of an html widget
Clicking it creates a widget with the designer notes html
Code that calculates media path refactored and moved to viewmodel state

--HG--
branch : dev
2010-03-06 01:25:17 -08:00
Louis DeJardin a238d0e0d0 Relocating the default role/permission assignments
Now that there is a SetupController that is a more appropriate place to simulate
one-time-only module activation. This avoids a problem where default permissions
would be re-applied when the app domain restarted.

--HG--
branch : dev
2010-03-03 17:36:54 -08:00
Louis DeJardin bcaa4462ec Changing the MVC hint path
Invalid hint path causes problems on some machines

--HG--
branch : dev
2010-03-03 17:35:25 -08:00
Louis DeJardin ed4314ef2a Merge
--HG--
branch : dev
2010-03-03 16:38:40 -08:00
Louis DeJardin 3d7a6a517b Adding a Futures project to hold Widget concept
Conceptual implementation of Widget and HasWidgets parts
Adds "HtmlWidget" content type and "Widget" display type
WidgetFilter adds widget display view models to named zones (for non-admin requests)

--HG--
branch : dev
2010-03-03 11:32:00 -08:00
Louis DeJardin 93362781a7 Merge
--HG--
branch : dev
2010-03-01 18:03:15 -08:00
Louis DeJardin a6f56b97d5 [Themed] attribute signals the use Orchard theming w/out BaseViewModel
ThemeFilter detects attribute at action time or TModel at result time
LayoutViewEngine uses ThemeFilter.IsApplied the same way AdminFilter.IsApplied is used
Themed(false) at an action will override [Themed(true)] or [Themed] at a controller level

--HG--
branch : dev
2010-03-01 18:02:48 -08:00
Louis DeJardin 1fb4b305e4 Merge
--HG--
branch : dev
2010-03-01 16:54:27 -08:00
Louis DeJardin dfa3f1b961 Merge
--HG--
branch : dev
2010-03-01 16:44:46 -08:00
Louis DeJardin b4763aabaf Making the use of BaseViewModel optional
Providing BaseViewModel.From(x) static methods to adapt properties from various context objects
Adds DevTools\HomeController actions to verify results
AdaptedViewModel exposes public properties or view data dictionary entries as appropriate
Layout view engine restriction loosened to allow any ViewResult to be themed (not Partial of course)

--HG--
branch : dev
2010-03-01 16:43:51 -08:00
Louis DeJardin 8e5f470fbf Merge
--HG--
branch : dev
2010-03-01 14:59:23 -08:00
Louis DeJardin e316d0e280 Preventing DevTools and Sandmox Module.txt from being committed
--HG--
branch : dev
2010-02-26 15:47:47 -08:00
Louis DeJardin 93c18ac293 Starting to deprecate the AdminViewModel
All references are changed to BaseViewModel
AdminViewModel class still present, but only temporarily as a stepping stone to smooth transition
BaseViewModel.Menu now represents either the "admin" or "main" navigation depending on location
MenuFilter now uses the AdminFilter.IsApplied flag to determine which primary nav to use
IsApplied property moved to AdminFilter which is a better location for a universal flag than the theme selector

--HG--
branch : dev
2010-02-26 13:58:09 -08:00
Louis DeJardin 2145f4e544 Adding values to unit test and null checking in some properties
--HG--
branch : dev
2010-02-26 10:25:48 -08:00
Louis DeJardin d02306cfbf Merge
--HG--
branch : dev
2010-02-26 03:12:56 -08:00
Louis DeJardin a25f68ae90 Updated Admin filter and access control
AdminController convention or [Admin] attribute activates both the security
check and "TheAdmin" theme

--HG--
branch : dev
2010-02-26 03:09:52 -08:00
Louis DeJardin fe29853912 Implementing AdminAuthorizationFilter to test for AccessAdminPanel
Authorization will be required for a controller named "Admin"
or when an [Admin] attribute is on controller, base controllers, or action
Result will be HttpUnauthorizedResult if current user does not
have StandardPermissions.AccessAdminPanel

--HG--
branch : dev
2010-02-26 00:50:19 -08:00
Louis DeJardin ca7d66cff8 Correcting another class location preparing for admin story
AdminThemeSelector moving to Orchard.UI.Admin

--HG--
branch : dev
2010-02-25 23:55:13 -08:00
Louis DeJardin 09be861aaf Correcting some namespaces preparing for admin story
Orchard.Mvc.Filters contains base implementations, not specific functionality
Orchard.Mvc.AntiForgery and Orchard.UI.Admin contain specific functionality

--HG--
branch : dev
2010-02-25 23:45:37 -08:00
Louis DeJardin 691908fb48 Making some service references more consistent
Several admin controllers referenced INotifier, IAuthorizer, and IContentManager as individual services
rather than as the general IOrchardServices carrier. Some extra namespaces also removed.

--HG--
branch : dev
2010-02-25 21:59:17 -08:00
Louis DeJardin adc2e9f06f Changing "~" back to ""
Has some negative side-effects (e.g. doesn't work)
2010-02-22 14:23:41 -08:00
Louis DeJardin 57a4b2ad24 Fixing arbitrary spelling of the word arbetrary
Oddly, this is far from the first time a person whose native language
is not english has corrected my spelling.
2010-02-22 13:26:28 -08:00
Louis DeJardin c7e95e31ea Correcting text field lengths in sql server
Convention adds support for StringLengthAttribute
Adds StringLengthMax attribute to hide arbitrarily large number
Increate Routable.Title length to nvarchar(1024) and Body.Text length to nvarchar(max)
2010-02-22 13:17:11 -08:00
Louis DeJardin c555f05404 Improving error messages in setup failure scenario
Inner exceptions are looped and output to provide richer error context
Error message text is not localized
2010-02-22 13:11:23 -08:00
Louis DeJardin 1cf3c51687 Merge 2010-02-22 12:07:24 -08:00
Louis DeJardin b588e6e91b Changing default home url to ~
It's a slightly clearer indicator of what the url textbox refers to
2010-02-22 12:06:41 -08:00
Louis DeJardin 5ea1126bcc Removing another reference to a file that doesn't exist
Again, causing problems with the automated build
2010-02-22 11:36:05 -08:00
Louis DeJardin fa90119e70 Removing references to file that do not exist
Was causing failures in the automated build script
2010-02-22 11:32:24 -08:00
Louis DeJardin b7220ed713 Merge 2010-02-20 00:35:58 -08:00
Louis DeJardin b7723c5a62 Fixing unit test
Compile error introduced when model was removed from setup/index action
2010-02-20 00:35:17 -08:00
Louis DeJardin 07e5cbb6db Merge updating default to dev for download convenience 2010-02-19 13:28:38 -08:00
Louis DeJardin dd9804ce12 Updating SetupController to work with new [Required] attribute behavior
GET method no longer takes model as an argument
see also http://bradwilson.typepad.com/blog/2010/01/input-validation-vs-model-validation-in-aspnet-mvc.html

--HG--
branch : dev
2010-02-19 11:51:21 -08:00
Louis DeJardin f68c2d0f8a Changing comments to work with MVC 2 RC2 model validation approach
email is no longer required (it's not required by logged in users by default)
name is provided as hidden

--HG--
branch : dev
2010-02-19 11:18:27 -08:00
Louis DeJardin 76fb32350e Updating depencencies to MVC 2 RC2
Should allow RC1 or RC2 versions on app start. RC2 is deployed in bin.
Had a report from @chrissutton the binaries are compatible for Orchard's purposes.

--HG--
branch : dev
2010-02-19 10:30:43 -08:00
Louis DeJardin 300d2abe75 Changing setting to prevent Orchard.Core project from launching a dev web process
--HG--
branch : dev
2010-02-15 23:21:19 -08:00
Louis DeJardin cb9874aae6 Changing how the UrlHelper is registered in IoC
Added delegates to the MvcModule to resolve context-specific components

--HG--
branch : dev
2010-02-15 23:01:46 -08:00
Louis DeJardin 995c755833 Merge
--HG--
branch : dev
2010-02-15 15:20:36 -08:00
Louis DeJardin b1173193cc Finishing aggressive data scrubbing on setup
Existing file destroyed for lightweight databases
Tables dropped and recreated for client/server databases
This is "setup" only scenario. Recreating an orchard site on a new database will need some alternate "attach" mechanism - orthogonal to "setup" mechanism

--HG--
branch : dev
2010-02-15 15:16:45 -08:00
Louis DeJardin 3aec8ac80a Changing location of site settings file
A subfolder location is more symmetrical with location of db, and other theme and module txt files.

--HG--
branch : dev
2010-02-15 13:59:15 -08:00
Louis DeJardin d08e0b38ed Merge
--HG--
branch : dev
2010-02-15 12:59:51 -08:00
Louis DeJardin 6a34dce4ef Changing namespace of Migrations to Builders
Refactoring to be what's needed at the moment

--HG--
branch : dev
2010-02-15 12:57:52 -08:00
Louis DeJardin 91a34a35ff Refactoring database session builder
Reducing the implementation to what's needed at the moment
Making the individual providers an implementation detail

--HG--
branch : dev
2010-02-15 12:54:27 -08:00
Louis DeJardin 62465ff1da Ignoring some tests that can't be made to work
Can't test shell until module settings/state is implemented

--HG--
branch : dev
2010-02-15 12:21:18 -08:00