Commit Graph
81 Commits
Author SHA1 Message Date
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
Louis DeJardin 1d931abf29 Merge
--HG--
branch : dev
2010-02-15 12:07:08 -08:00
Louis DeJardin 53b96f3248 Snapshot of incremental work
Sequence of events during setup functions at this point
Committing this point prior to cleaning up changes to ensure a working arrangement isn't lost

--HG--
branch : dev
2010-02-15 12:06:05 -08:00
Louis DeJardin f9c4d6dfdd Merge
--HG--
branch : dev
2010-02-15 10:09:00 -08:00
Louis DeJardin 3670374afc Refactoring database components
Simplifying for more direct use-cases

--HG--
branch : dev
2010-02-15 10:04:41 -08:00
Louis DeJardin 6baef5ca02 Adding AppDataFolder service
Factoring references to Server.MapPath and HostingEnvironment.MapPath out of components
Building testing around setup package to isolate database deadlock

--HG--
branch : dev
2010-02-13 19:25:03 -08:00
Louis DeJardin ec5450ac2d Incremental progress on database work behind setup
--HG--
branch : dev
2010-02-11 18:14:13 -08:00
Louis DeJardin ee119699a0 Tweaking a few aspects of the moment of setup
Sites subdirectory may need to be created
Shouldn't write out the site-exists file until the setup transaction has committed
Host reinitialize should be called outside of the lifetime of the temporary shell to avoid a xact deadlock

--HG--
branch : dev
2010-02-09 00:41:23 -08:00
Louis DeJardin 21c024dd97 Merge
--HG--
branch : dev
2010-02-08 16:03:08 -08:00
Louis DeJardin 9990412c63 Adding a Reinitialize method to the IOrchardHost
Needed for the setup scenario to be able to reload and apply new shell topology
Eventyally needed when module configuration requires the same effect

--HG--
branch : dev
2010-02-08 16:01:54 -08:00
Louis DeJardin 17d063fa21 Post-processing the compiled web project
Custom msbuild task performs heavy lifting over csproj xml
Project references are changed to file references, additional content files are added, and code files are copied over

--HG--
branch : dev
2010-02-08 01:09:38 -08:00
Louis DeJardin 6267c938de Mechanical refinement to build cmd files
build.cmd can take an optional target name like Compile or several targets in order with quotes like "Compile,Package"
clicktobuild.cmd will detect when the sdk env variable is not present, and vs2k8 is, and it will run the vs batch to initialize environment for calling msbuild

--HG--
branch : dev
2010-02-07 15:07:45 -08:00
Louis DeJardin c5f70ca998 Adding testing and source zip to build
Failed test will stop the build. Results are in build\OrchardTests.xml.
Source zip should be able to open and run in visual studio.

--HG--
branch : dev
2010-02-06 21:20:38 -08:00
Louis DeJardin fd270f666c Adding test and zip to build
Uses community tasks and sharpziplib for compression
Also updated build.cmd to take optional target as command line parameter

--HG--
branch : dev
2010-02-06 20:35:45 -08:00
Louis DeJardin 797d166da2 Adding a msbuild proj file and associated cmd files
Initially contains Clean, Compile, Stage targets.
Default target, Build, calls each in order.
All outputs end in /build folder, which is ignored for source control purposes

--HG--
branch : dev
2010-02-06 20:10:12 -08:00