Commit Graph
57 Commits
Author SHA1 Message Date
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