Commit Graph

416 Commits

Author SHA1 Message Date
Sebastien Ros
8372db9457 Merge
--HG--
branch : dev
2010-06-25 16:52:14 -07:00
Sebastien Ros
092fcc869a Work on automatic schema creation
--HG--
branch : dev
2010-06-25 15:35:52 -07:00
Louis DeJardin
4fdecf04c5 Refactoring data builders into data service providers
IDataServicesProviderFactory used to build correct IDataServicesProvider instance
Components implementing IDataServiceProvider must also have public static ProviderName {get;} to be identified
The data service provider, for now, has the responsability of creating the ISessionFactory for a shell

--HG--
branch : dev
2010-06-25 14:41:19 -07:00
Louis DeJardin
c35369fabc Roughing in extensibility model for content type definition editor
IEventHandler method invocation will aggregate return values of type IEnumerable<T>
Added IContentDefinitionEditorEvents and ContentDefinitionEditorEventsBase to framework assembly
ContentTypes editor fires events to build and apply additional type and typepart TemplateViewModel classes
As an example, added some content type settings to devtools "ShowDebugLinks"
In content type definition builder moved DisplayedAs(name) into it's own method
Added Html.RenderTemplates helper to execute renderpartial with prefix directly to bypass (for some cases) Html.EditorXxx, Html.DisplayXxx

--HG--
branch : dev
2010-06-25 10:11:50 -07:00
Louis DeJardin
61395c8ad8 Merge
--HG--
branch : dev
2010-06-24 16:11:45 -07:00
Sebastien Ros
0d30307fce Data migration schema API
--HG--
branch : dev
2010-06-24 16:05:08 -07:00
Louis DeJardin
6540479d48 Point where basic infoset-based storage of fields is working
Moved some namespaces to reorganize some parts of code
Created a field storage api and default implementation
Added InfosetPart that's always welded as mechanism to reach versioned and non-versioned ad-hoc data

--HG--
branch : dev
2010-06-24 14:35:18 -07:00
Louis DeJardin
f38620786e Incremental work towards infoset field storage
Thinning out ContentField model slightly
Reducing ContentFieldDriver's burden of locating storage strategies
Implementing non-versioned infoset field storage on ContentItemRecord Data property

--HG--
branch : dev
2010-06-23 14:38:21 -07:00
Louis DeJardin
f7a135b97a Merge
--HG--
branch : dev
2010-06-23 11:13:17 -07:00
Louis DeJardin
b9c26d3422 Incremental work towards infoset field storage
--HG--
branch : dev
2010-06-23 11:13:03 -07:00
Sebastien Ros
325d00d1dd Implemented GetFeaturesThatNeedUpdate() method
Returns all features that could be updated

--HG--
branch : dev
2010-06-23 10:56:14 -07:00
Sebastien Ros
01e5a97139 Data migration fluent API
Inject a SchemaBuilder instance configured with DataTablePrefix in Data Migration classes inheriting from DataMigrationImpl

--HG--
branch : dev
2010-06-22 17:07:06 -07:00
Louis DeJardin
32d59676dc Moving around some handler/driver machinary
Relocating IContentHandler imlementations that power IContentXxxDriver interfaces
Giving them component role suffix Coordinator
Merging two handlers into one content part driver coordinator

--HG--
branch : dev
2010-06-22 14:34:10 -07:00
Nathan Heskew
ab81cda4eb Getting some work towards being able to edit content types in to share the fun.
- includes changing settings from IDictionary<string, string> to SettingsDictionary : IDictionary<string, string> w/ GetModel<T>
- also cleaned up content type creation a little

--HG--
branch : dev
2010-06-22 03:36:04 -07:00
Sebastien Ros
2a8c51128e Added upgrade database command
--HG--
branch : dev
2010-06-21 13:44:43 -07:00
Sebastien Ros
fcb6797c56 Data migration management class and automatic discovery mecanism
--HG--
branch : dev
2010-06-21 13:36:18 -07:00
Renaud Paquay
a2da9c0f97 Merge
--HG--
branch : dev
2010-06-18 18:41:14 -07:00
Renaud Paquay
253126957d Removed unused parameter
--HG--
branch : dev
2010-06-18 18:35:19 -07:00
Renaud Paquay
a7841bd919 Slightly refactor ExtensionLoader.Load method implementations
--HG--
branch : dev
2010-06-18 14:27:04 -07:00
Nathan Heskew
c546d45f8e A little more MvcHtmlString/IHtmlString cleanup for the UnorderedList<T> HtmlHelper extensions
--HG--
branch : dev
2010-06-18 13:44:02 -07:00
Renaud Paquay
a9593f69ff Update WebFormVirtualPathProvider GetFileHash method
When a WebForm view file is served through the WebFormVirtualPathProvider,
we override GetFileHash to include the virtual path of all the dependencies
used to compile the form. For example, if we had a "Assembly Name=..."
directive, we want to include the file hash of the assembly file, so that if the
assembly file is updated with a newer version, the file hash of the WebForm view
file will be different, which will tell ASP.NET the view file needs to be
recompiled.

--HG--
branch : dev
2010-06-18 10:23:41 -07:00
Suha Can
a1cc5d579b - A couple basic test cases for welding fields to parts.
--HG--
branch : dev
2010-06-17 12:44:19 -07:00
Suha Can
dd6e3d3806 - Some modifications to last fork to bring it up to date with latest dev.
--HG--
branch : dev
2010-06-17 10:57:00 -07:00
Renaud Paquay
d3c393cc41 Add Unit Tests for AssemblyProbingFolder
--HG--
branch : dev
rename : src/Orchard/FileSystems/Dependencies/IAssenblyProbyFolder.cs => src/Orchard/FileSystems/Dependencies/IAssemblyProbingFolder.cs
2010-06-16 17:23:33 -07:00
Renaud Paquay
f8fe5a8665 Update unit tests to use StubAppDataFolder
--HG--
branch : dev
2010-06-16 11:49:45 -07:00
Renaud Paquay
ec0e452c3a Add more unit test for IDependenciesFolder
--HG--
branch : dev
2010-06-15 19:05:49 -07:00
Renaud Paquay
4ad1abc4c9 Add more unit test for IDependenciesFolder
--HG--
branch : dev
2010-06-15 18:56:37 -07:00
Renaud Paquay
b45ccb6864 Add more unit tests
--HG--
branch : dev
2010-06-15 14:18:07 -07:00
Renaud Paquay
9444fc83f5 Add unit test for IDepdendenciesFolder
--HG--
branch : dev
rename : src/Orchard.Tests/Environment/Configuration/AppDataFolderTests.cs => src/Orchard.Tests/FileSystems/AppData/AppDataFolderTests.cs
2010-06-15 14:04:55 -07:00
Renaud Paquay
cd3a537396 work on extension loading
* Add a "ExtensionLoaderCoordinator" class
* Rework the way loaders are notified of extensions being loaded,
  (de)activated, etc.

--HG--
branch : dev
2010-06-14 09:01:31 -07:00
Renaud Paquay
ad54ffdbb2 Remove implicit conversion from string to LocalizedString
In most cases, relying on the implicit conversion is a sign
of a missing call to "T".

--HG--
branch : dev
2010-06-12 13:33:35 -07:00
Renaud Paquay
695f001f0f Add ability for OrchardHost to reset its state when Extensions change
OrchardHost calls into all extension loaders to all extensions descriptor,
allowing each loader to add the set of resource to monitor for change.
OrchardHost resets its list of shells at the beginning of a request if
any monitored resources has changed.

--HG--
branch : dev
2010-06-12 12:38:49 -07:00
Renaud Paquay
767f19a4e3 Slightly refactor IAppDataFolder
Remove the "SetBasePath" method, introduce IAppDataFolderRoot as replacement.

--HG--
branch : dev
2010-06-12 12:18:08 -07:00
Renaud Paquay
c566e6599d Fix build error from previous merge
--HG--
branch : dev
2010-06-11 21:27:56 -07:00
Renaud Paquay
9f92ee275c Merge
--HG--
branch : dev
2010-06-11 21:23:42 -07:00
Renaud Paquay
9b9efe02a2 Removing obsolete method
--HG--
branch : dev
2010-06-11 21:20:13 -07:00
Louis DeJardin
e2af46ed71 Changing folder paths to follow namespaces
--HG--
branch : dev
2010-06-11 17:28:46 -07:00
Louis DeJardin
4598e82a68 Changing term Topology to Blueprint
Verify consistent use of descriptor and blueprint
Update namespaces, but not folder paths, of same
Add small ISignal component for explicit app-triggered cache expiration tokens

--HG--
branch : dev
2010-06-11 17:17:00 -07:00
Renaud Paquay
75efa67b61 Make extension loading a 2 pass process
First pass is "probing": any loader who thinks it can load a
given extension returns a descriptor for it. The descriptor contains
information about how old the extension is.

The extension manager sorts the descriptor list return by probing all
loaders, and picks the most recent entry.

During the 2nd pass, each loader is called again, with the candidate extension
entry as argument. This allows each loader to be notified that, if they don't
load an extension, they might still need to cleanup some state related to
previous loading.

In essence, this is implementing a complete state machine of loaders and
extension "active/inactive" states/transitions.

--HG--
branch : dev
2010-06-11 17:12:27 -07:00
Renaud Paquay
4b9c9da8fd Refactor IAppDataFolder and default implementation
Refactor IAppDataFolder so that it can be used for implementing
DefaultDependenciesFolder.

--HG--
branch : dev
rename : src/Orchard/Environment/Extensions/Loaders/WebFormsExtensionsVirtualFile.cs => src/Orchard/FileSystems/Dependencies/WebFormsExtensionsVirtualFile.cs
rename : src/Orchard/Environment/Extensions/Loaders/WebFormsExtensionsVirtualPathProvider.cs => src/Orchard/FileSystems/Dependencies/WebFormsExtensionsVirtualPathProvider.cs
rename : src/Orchard/Environment/IVirtualPathProvider.cs => src/Orchard/FileSystems/VirtualPath/DefaultVirtualPathProvider.cs
rename : src/Orchard/Environment/ICustomVirtualPathProvider.cs => src/Orchard/FileSystems/VirtualPath/ICustomVirtualPathProvider.cs
2010-06-11 15:48:40 -07:00
Phil Haack
4bd6fbb866 Updated UnorderedList to return IHtmlString and changed the relevant <%= blocks to <%:
--HG--
branch : dev
2010-06-10 00:07:26 -07:00
Phil Haack
65772415fd LinkOrDefault now returns IHtmlString. Replaced calls to <%= with <%: where relevant to this change.
--HG--
branch : dev
2010-06-09 23:39:02 -07:00
Phil Haack
013638aca8 Converted Html.Link to return MvcHtmlString. Replaced unnecessary calls to <%= with <%: as a result of this change.
Added some unit tests for Html.Link.

--HG--
branch : dev
2010-06-09 23:06:36 -07:00
Renaud Paquay
7f1b47e7c4 Merge
--HG--
branch : dev
2010-06-09 19:00:48 -07:00
Renaud Paquay
4becc488c8 Couple of fixed with dynamic extension loader
Perf: Use the cache manager to keep the list of dependency descriptors in
      memory, with invalidation when "dependencies.xml" changes on disk

When loading an assembly from the list of references assemblies, notify
the dependencies folder component, so it removes the entry.

--HG--
branch : dev
2010-06-09 18:55:35 -07:00
Louis DeJardin
57e830f19e Content manager assigning values to definition properties
DefaultContentManager now takes a dependency on IContentDefinitionManager
ContentItem.TypeDefinition assigned to ContentTypeDefinition instance when creating
ContentPart.TypePartDefinition assigned to ContentTypeDefinition.Part instance as added
Empty definition instances are created as code-only types and parts are created

--HG--
branch : dev
2010-06-08 12:05:29 -07:00
Louis DeJardin
b63e5f2bcd Working towards definition import/export
Reader and writer mapping definition to infoset
Devtools placeholder providing way to see/alter metadata
Reader on builder over existing content definition provides merge capabilies on import

--HG--
branch : dev
2010-06-06 14:58:27 -07:00
Louis DeJardin
83f1de1fc9 Adding fields to metadata definitions
Refactoring some component and record names
Made content definition model immutable, with builder pattern for creation and alteration
Moving records and storage out of base framework assembly
Splitting into separate ContentTypeRecord and ContentTypeDefinitionRecord
Changing MetaData module's MetaDataController to AdminController
Introduced a ContentHandlerBase : IContentHandler to provide virtual no-op implementation of fairly large interface

--HG--
branch : dev
2010-06-04 13:37:34 -07:00
Suha Can
417ab3eadf - Refactoring in the Orchard.Localization namespace and folders before things grow out of control.
--HG--
branch : dev
2010-06-01 17:09:26 -07:00
Suha Can
413a943194 - Localizer to use CultureManager, ResourceManager to translate strings.
- Stub ResourceManager implementation.
- Some test updates.

--HG--
branch : dev
2010-06-01 16:25:29 -07:00