Commit Graph

28629 Commits

Author SHA1 Message Date
Shannon Deminick 3ad793c4c5 Got partial view tree and partial view macros tree done. Need to get the custom create dialogs done now. 2012-12-31 02:51:30 +03:00
Morten Christensen f4706fcfb7 Fixes U4-1370 for ContentTypes thats loading using new api meaning that the fix only applies to Content and Media, but currently not Members.
For Members there is still an issue with MasterContentTypes, as the full structure is not loaded. Need to make the sql lookup recursive-
2012-12-30 18:26:08 -01:00
Morten Christensen f794730118 Merge 2012-12-30 07:17:48 -01:00
Morten Christensen b3b23e736b Restructering strategies in folders 2012-12-30 07:17:04 -01:00
Shannon Deminick 746c2b960b Merge 2012-12-30 03:11:42 +03:00
Shannon Deminick a7834b45da Created UmbracoAuthorizeAttribute, UmbracoAuthorizedController for all base MVC controllers that required a back office user to be logged in.
Converted over the SaveTemplate and SavePartialView methods of the codeEditorSave legacy web service to use MVC services and marked them obsolete.
Created a generic route to route all controllers found in the namespace Umbraco.Web.WebServices. Added a 'Url' property on the BasePage webforms class
to expose a UrlHelper for use in views. Created UrlHelper extensions to easily get the base url path of the REST MVC web services.
Converted the EditView page and JavaScript to use the new REST services with jQuery instead of crappy MS ajax.
2012-12-30 03:11:21 +03:00
Shannon Deminick dbe9c6a2a9 Fixes: #U4-1360 - full names of tree types in config.
Updates: #U4-1303 - basic UI support for partial view macros.
2012-12-30 00:59:25 +03:00
Morten Christensen 782c23588c Adding a simplified implementation of PetaPoco's IMapper, which is used to correct an issue with inserting nullable dates in the db. 2012-12-29 18:53:13 -01:00
Morten Christensen 602e9c6d7e Adding trailing slash to failing routing tests.
The issue with these tests might again be because of the UmbracoSettings file, which has the trailing slash setting. But with the settings being reset after teardown the tests were still failing, so made these minor corrections which shoudl correspond to the default setting.
2012-12-29 18:22:51 -01:00
Morten Christensen 655964f11b Fixing up a few path issues after having changed FullpathToRoot in GlobalSettings.
Corrected the path concat of path + web.config file.
2012-12-29 18:18:49 -01:00
Morten Christensen bcccc37f93 Changing t.GetAllProperties back to original t.GetProperties to avoid the use of binding flags, which is no longer necessary after having refactored the querying. 2012-12-29 18:17:16 -01:00
Morten Christensen 8999db6362 Refactoring ExpressionHelpers and querying to seperate the mapping used for our Database DTOs and Public Model.
Adding a MediaTypeMapper similar to the ContentTypeMapper, but type specific.
The PetaPoco IMapper implementation is removed as its no longer needed.
Updating a few unit tests, as the Where clause is now correctly formatted.
Adding unit tests for the new ExpressionHelper and MappingResolver classes.
2012-12-29 17:34:42 -01:00
Morten Christensen 3955f78966 Removing the camel case enforcement on the Alias of ContentTypes and MediaTypes in the new api. 2012-12-29 11:12:29 -01:00
Morten Christensen 56e2a89199 Adding a few new test cases to verify that AllowedChildContentTypes are saved correctly on ContentTypes and MediaTypes. 2012-12-29 11:11:09 -01:00
Morten Christensen 3e47d38a71 Adding missing directory seperator in FullpathToRoot.
Changing Umbraco.Core to use the SqlCe assemblies from the nuget package instead of those in the GAC, as that could cause problems for the build of the Umbraco.Core.dll.
2012-12-28 20:51:08 -01:00
Morten Christensen c98d906f36 Correcting a few formatting issues after importing patch. 2012-12-28 19:08:01 -01:00
Morten Christensen e198f76356 Committing changes from randy.mccluer's pull request 2012-12-28 19:03:15 -01:00
Morten Christensen 34c90e6e72 Removing redundent EventArgs class. 2012-12-28 17:55:00 -01:00
Shannon Deminick 6a84b6dc7a Merge 2012-12-28 19:36:05 +03:00
Shannon Deminick e9af1cb865 Fixes #U4-1048 - package installer cleanup, etc... 2012-12-28 19:34:57 +03:00
Morten Christensen fe595093f0 Merge 2012-12-28 14:48:21 -01:00
Morten Christensen 5dbcfa57a8 Implements the new publish and unpublish events in the PublishingStrategy.
Making the PublishStrategy public, so that its possible to subscribe to the events.
Removing the old PublishingEventArgs, which is no longer used.
Correcting a few comments.
2012-12-28 14:47:09 -01:00
Shannon Deminick 6c325f565d Merge 2012-12-28 18:32:26 +03:00
Shannon Deminick 020fa577f0 Fixes: #U4-1357 - more properties to expose context objects on SurfaceController and RenderMvcController base classes. 2012-12-28 18:31:10 +03:00
Morten Christensen 194d241b02 Adding Publish and UnPublish EventArgs 2012-12-28 14:15:12 -01:00
Morten Christensen 3ae5aa7195 Refactoring nodeSorter to utilize the changes made to the legacy/new api refactor.
Making a few of the public properties on CMSNode virtual, so we can override them in the Document and Media classes, which allow us to use the new api for saving changes to these properties instead of having them saved directly to the database.
2012-12-28 13:40:35 -01:00
Morten Christensen 8338102944 Reverting use of DateTime.UtcNow to DateTime.Now in the new api. 2012-12-28 10:43:34 -01:00
Sebastiaan Janssen 8ef6ca73f6 Merge with 4.11.2 2012-12-28 09:02:45 -01:00
Sebastiaan Janssen 1e4361ed2f Merge with 6.0.0-LegacyApi-Refactor 2012-12-28 08:45:40 -01:00
Morten Christensen e4e5982349 Removing sql server/ce specific brackets from repository queries as it was causing problems with MySql.
Fixes regression bug from removing brackets from PrimaryKey columns. Columns are now passed and syntax specific brackets are added.
Moving the MySql special case for updating User Id from one to zero.
2012-12-27 19:53:01 -01:00
Morten Christensen 0d4de7d585 Merge 2012-12-27 18:52:59 -01:00
Morten Christensen 64af0a610b Refactoring migrations by adding an abstract class to all expressions that allow for processing prior to returning an sql statement.
Refactoring the current sql syntax providers to better work with sql ce, sql server and mysql.
Adding migrations for v4.8 and v6.0.
Adding test cases for upgrading from 4.7 to 6.0 for the 3 database providers - sql ce, sql server and mysql.
Adding product name to the MigrationAttribute, which adds more flexibility to the MigrationRunner.
Fixing schema creation for mysql, which broke during a previous refactor task.
2012-12-27 18:52:47 -01:00
Sebastiaan Janssen bf78334290 Realized I was doing the added Save in the wrong place 2012-12-27 17:53:23 -01:00
Sebastiaan Janssen c97085f9bb Fix errors and wrong display of subnodes under and unpublished node showing as
published. Also fixes error message where it says on the subnode:
This document is published but is not visible because the parent '???' is unpublished
2012-12-27 17:29:54 -01:00
Sebastiaan Janssen e10cb56502 Previous fix didn't work if you don't Save() the document +don't publish copies. 2012-12-27 16:08:24 -01:00
Sebastiaan Janssen 140c1db66a Fixing umbEnsureUniqueName not being ran for a document copy 2012-12-27 15:39:37 -01:00
Sebastiaan Janssen 9b6677c7c7 Clean up this code a little bit 2012-12-27 14:42:49 -01:00
Sebastiaan Janssen 77f279eb53 Make move from recycle bin work again, pretty hacky 2012-12-27 13:42:31 -01:00
Shannon Deminick 116a87f5c5 Updated an error logging call in the Log class. Changed the redirected logging to use the lazy overload in case Info isn't enabled in the config. 2012-12-27 17:22:08 +03:00
Sebastiaan Janssen c508a2e4a8 Clean up this ugly code a little bit 2012-12-27 12:14:08 -01:00
Sebastiaan Janssen 2f8ac81fab Fix a typo 2012-12-27 12:04:00 -01:00
Sebastiaan Janssen ef32ed50c4 Fix sorting 2012-12-27 12:03:51 -01:00
Sebastiaan Janssen 5e4c4ae57c Fixes U4-1347 Can't enter backoffice of V6 with IE9 2012-12-27 11:21:38 -01:00
Sebastiaan Janssen dbb03b79e4 Merge 2012-12-26 15:25:43 -01:00
Sebastiaan Janssen c4103baaf8 Clean up Log class a bit 2012-12-26 15:22:28 -01:00
Sebastiaan Janssen 23c8348ab9 U-7 Only Audit Logs should go to UmbracoLog, the rest goes to LogHelper 2012-12-26 15:17:30 -01:00
Morten Christensen 5b1ce5fe67 Merge 2012-12-26 14:45:10 -01:00
Morten Christensen dbce36b7a5 Adding migrations for v6 upgrades.
Updating and testing migrations.
2012-12-26 14:44:42 -01:00
Sebastiaan Janssen fae949145e Remove more non-audit logtypes for U4-7 2012-12-26 14:39:27 -01:00
Sebastiaan Janssen 16289b8f2d U4-7 - Finish logging refactor 2012-12-26 11:59:51 -01:00