Commit Graph
100 Commits
Author SHA1 Message Date
Louis DeJardin b042860645 Correcting comment in code
Also a correction to the previous commit comment, patterns are:
ShapeName
ShapeName__FieldName
ShapeName__PartName
ShapeName__PartName__FieldName

The most specific, and first to match, are the ones later in the list

--HG--
branch : dev
2010-12-10 16:41:49 -08:00
Louis DeJardin 4e6d9566bf Updating file targets to match
--HG--
branch : dev
2010-12-10 16:35:05 -08:00
Louis DeJardin 58b29c79ad Field template alternates based on field name and content part/type name
When a ContentShape is returned from a ContentFieldDriver alternates are added automatically
Patterns include:
ShapeName
ShapeName__FieldName
ShapeName__PartName
ShapeName__FieldName__PartName

For content fields the part name is, essentially, always the same as the content type name
Field drivers must add a ContentPart property to the shape they return, or only the field name will be a valid alternate
Updated TextFieldDriver
Fixed a bug where a dash after a dot in a file name was preventing proper harvesting

--HG--
branch : dev
extra : rebase_source : cae3d8cf544628b5f35cfc584ebbedf4d505c8ce
2010-12-10 16:24:03 -08:00
Louis DeJardin c93f4d9985 Adjusting and annotating default logging configuration
--HG--
branch : dev
extra : rebase_source : 3edcb12b5515b24cf52f875f7f45163ffa9ea840
2010-12-10 16:14:05 -08:00
Louis DeJardin 8bf1511461 Merge
--HG--
branch : dev
2010-12-06 15:52:06 -08:00
Louis DeJardin 55389323b5 Merge perf -> dev
--HG--
branch : dev
2010-12-06 14:45:03 -08:00
Louis DeJardin 70e438a510 PERF: Cache role and permission
Fixes http://orchard.codeplex.com/workitem/16888

--HG--
branch : perf
2010-12-06 14:36:38 -08:00
Louis DeJardin fb82b122f8 Fixing unit tests
Registering WorkContextModule to allow it to register the components it will use internally

--HG--
branch : dev
extra : rebase_source : 82c6712e0b465f57d080f751e36f5cc41a2158b9
2010-12-02 12:42:12 -08:00
Louis DeJardin b88178b542 Avoiding the eager creation of certain proxies to optional records
cannot be done in fluent config
the IsSelectable = false prevents unused ContentPartRecord proxies from being created
for each ContentItemRecord or ContentItemVersionRecord.
done for perf reasons - has no other side-effect

--HG--
branch : perf
2010-12-01 19:37:10 -08:00
Louis DeJardin 733de4a166 Adding a component to experimental module to capture ioc costing
--HG--
branch : perf
extra : rebase_source : aa936df6717501a84fafce41f8130ced8217fa42
2010-11-30 13:46:13 -08:00
Louis DeJardin c89aeb635c Inverting Lazy and Meta to avoid instantiating controller to get it's type
--HG--
branch : perf
2010-11-24 20:51:35 -08:00
Louis DeJardin 493fb03afe PERF: CreateWorkContextScope shouldn't call InstancePerMatchingLifetimeScope
http://orchard.codeplex.com/workitem/16869
CreateWorkContextScope now creates a child container with no alteration to the component registry
WorkContextModule added to group the related set of component registrations
HttpContextBase still injectable, but it's exposed in a way that doesn't require updating the child container per request

--HG--
branch : perf
2010-11-24 18:57:42 -08:00
Louis DeJardin 540723d492 Perf - updating profiling specflow test
Doing 4 groups of 10, to see get a sense of variance

--HG--
branch : perf
2010-11-24 18:53:47 -08:00
Louis DeJardin 0ff15f262a Updating profiling build target
--HG--
branch : perf
2010-11-24 15:09:25 -08:00
Louis DeJardin 29f3c9ecff Merge dev => perf
--HG--
branch : perf
2010-11-24 13:58:53 -08:00
Louis DeJardin 3363d9448a Merge dev => perf
--HG--
branch : perf
2010-11-22 14:09:41 -08:00
Louis DeJardin 2f9b067e5a Small changes to NHibernate for startup performance
XmlSchemaSet used in a way that avoids recompilation for each mapping
XmlSerializer classes for this version compiled into the nhibernate assembly

--HG--
branch : perf
2010-11-21 19:29:50 -08:00
Louis DeJardin 8646db89c2 Perf - optimizing heavily called method
--HG--
branch : perf
2010-11-21 18:13:37 -08:00
Louis DeJardin c4fefc4a44 Fixing tests
Adding StubCacheManager and Signal to various test container setups
Also ignoring some tests in extensionmanagertests until the semantics can be cleared up

--HG--
branch : perf
2010-11-17 01:36:01 -08:00
Louis DeJardin a1c5dd646e Perf: making content type definitions cached
ContentTypeDefinition needed to fully resolve parts to avoid orphan record access
ContentDefinitionManager caches results incrementally
All cached definitions expire when any information is touched

--HG--
branch : perf
extra : rebase_source : b9779a86684aa652ed63360ab6558070e04600ee
2010-11-16 15:51:30 -08:00
Louis DeJardin 46d2821b8b Perf: moving the shape table manager to singleton scope
The shape descriptors and bindings are no longer created per request

--HG--
branch : perf
extra : rebase_source : c01a878a89763ddf80ec928b3e8d9581702ffd3a
2010-11-16 12:03:26 -08:00
Louis DeJardin e38ee53dbd Adjust to Default LocalizedStringManager to be singleton compatible
The dependency on the ICultureManager has been removed
As a side-effect, the translations are no longer limited to what has been configured in Orchard
But that is a harmless - the configured list is still used when choosing cultures
so doesn't need to be enforced at this level

--HG--
branch : perf
extra : rebase_source : fa086c6c1ed90bc0537fa4566e6be64047d7d62f
2010-11-16 12:02:40 -08:00
Louis DeJardin e25627db14 Adding an IUnitOfWorkDependency lifecycle
IUnitOfWork paints a component that it shared, but may only exist at per-request, -commandline, or -background task level
The TransactionManager is a prime example of a component that would restrict itself to unit of work only
This enables the ioc container to throw an exception when a singleton component depends directly or indirectly on something which it should not

--HG--
branch : perf
extra : rebase_source : bbe83ed7acc542e484c1b32ca81861dc07c1eb0e
2010-11-16 12:00:36 -08:00
Louis DeJardin 75257a4585 Changing the default IText implementation to support "shell" lifetime scope
Text depends on IWorkContextAccessor instead of ICultureManager
CurrentCulture string added to WorkContext
Enables Localizer T properties to be used by singleton per-shell components

--HG--
branch : perf
extra : rebase_source : cf262af29af17af8059ee7d0571e8c643a71d3ef
2010-11-15 18:03:38 -08:00
Louis DeJardin 30191928b5 Incremental improvement to extension manager
--HG--
branch : perf
extra : rebase_source : f2697bf60ab12c79e848e1794652e19ac5933d3a
2010-11-12 18:58:35 -08:00
Louis DeJardin 00f0653c63 Perf: more adjustments to scripting
Updating to v1.1.1
Reexecuting script to avoid overhead

--HG--
branch : perf
extra : rebase_source : 168eaa68ebfeb3c61405dc5151373eed5b774a63
2010-11-12 00:02:11 -08:00
Louis DeJardin 8c66ffac96 Patching NHibernate.Linq for performance
Avoids compiling expressions for constant or closure values

--HG--
branch : perf
extra : rebase_source : 0731ec817dc7daf37e651679177596c5ca97d580
2010-11-10 16:32:41 -08:00
Louis DeJardin 7dbaa5fda6 Getting the controller type and instance seperately 2010-11-09 20:31:37 -08:00
Louis DeJardin 8674ff9f56 Getting the controller type and instance seperately
--HG--
branch : dev
2010-11-09 20:31:37 -08:00
Louis DeJardin 5673576425 Roughing in Containers module
Container/containable editor templates appear
Container id settable via drop list
ContainerPathConstraint of higher priority providing list view

--HG--
branch : dev
2010-11-08 17:44:43 -08:00
Louis DeJardin fd61fd9334 Merge
--HG--
branch : dev
2010-11-08 15:42:52 -08:00
Louis DeJardin 7ec2fada05 Merge
--HG--
branch : dev
2010-11-08 15:41:04 -08:00
Louis DeJardin 63bfc96e82 Removing ContentQueries placeholder
This approach may return in the future, but is out of scope for v1

--HG--
branch : dev
2010-11-08 15:39:23 -08:00
Louis DeJardin 69a6078346 Adding experimental content types
Adds containable to "Page"
Create a basic "List Item" for testing Containers/Lists

--HG--
branch : dev
2010-11-08 15:37:24 -08:00
Louis DeJardin 2993f015a5 Adding Orchard.Lists module
Creates generic List content type as an out-of-box container
Will hold ListWidget when written

--HG--
branch : dev
2010-11-08 15:36:24 -08:00
Louis DeJardin 8d1b0a7be7 Adding core Containers module
Container part used for content types that group child items together
Containable part provides UI to select which item is ContainerId

--HG--
branch : dev
2010-11-08 15:33:56 -08:00
Louis DeJardin 7e9c27433b Updating experimental templates for name change
--HG--
branch : dev
2010-11-08 15:31:25 -08:00
Louis DeJardin 60259dad67 Setup needs to enable the theme it will assign as site default
--HG--
branch : perf
extra : transplant_source : 6%07%B8%E6%2A%0F%F5f%DB%0DFa%A5%A5X%3Ac%9C%DE%9B
2010-11-08 12:12:52 -08:00
Louis DeJardin 837010a418 Fixing reference to _contentManager in component
--HG--
branch : dev
2010-11-08 11:56:46 -08:00
Louis DeJardin 1d3813b9ab Merge
--HG--
branch : dev
2010-11-08 11:41:32 -08:00
Louis DeJardin 8160b8ab4b Fixing initial setup screen
Setup module hardcoded descriptor needs Location pointing to ~/Themes

--HG--
branch : perf
2010-11-08 11:29:22 -08:00
Louis DeJardin 57db7fb94d Merge
--HG--
branch : perf
2010-11-07 21:49:46 -08:00
Louis DeJardin 920924ddd7 Fixing warnings
--HG--
branch : perf
2010-11-07 21:47:11 -08:00
Louis DeJardin 5e7a6cdcb7 Unit tests passing
--HG--
branch : perf
2010-11-07 21:43:30 -08:00
Louis DeJardin 85b1276d68 Getting closer to restoring existing functionality
--HG--
branch : perf
2010-11-07 14:40:51 -08:00
Louis DeJardin d2960b2c1b Shifting more work out of framework
Framework ThemeManager now for getting request theme from selectors
Module interfaces entirely moved - now exist as orchard.modules implementation

--HG--
branch : perf
rename : src/Orchard.Web/Modules/Orchard.Modules/Models/ModuleFeature.cs => src/Orchard.Web/Modules/Orchard.Modules/ViewModels/ModuleFeature.cs
2010-11-06 20:27:45 -07:00
Louis DeJardin 1341b7f312 Additional intermediate state
--HG--
branch : perf
2010-11-05 16:33:24 -07:00
Louis DeJardin 452576b541 Merge
--HG--
branch : perf
2010-11-04 20:38:41 -07:00
Louis DeJardin 7b508d72d2 Consolidating redundant theme/module services
Breaking off site's "default theme" changing methods
Centralizing enable/disable functionality

--HG--
branch : perf
2010-11-04 20:37:35 -07:00
Louis DeJardin 04bb3d90dc Refactoring IModule and ITheme related services
Changing component layering to allow more efficient dependencies
Marking several interfaces and services obsolete to produce warnings
Changing ITheme to FeatureDescriptor as a first step

--HG--
branch : perf
extra : rebase_source : 905b69eb1cc6ed05750908e41a2d0846dde22001
2010-11-04 16:04:50 -07:00
Louis DeJardin d0cb69b805 Calling from clr to dlr without using dynamic callsite
Avoids callsite rule table - enables more memory to gc sooner

--HG--
branch : perf
2010-11-04 12:16:44 -07:00
Louis DeJardin 204bf60d18 Merge
--HG--
branch : nuget
2010-10-30 22:17:15 -07:00
Louis DeJardin 5193028884 Changing project and solution references to nuget subfolder
--HG--
branch : nuget
2010-10-30 20:23:22 -07:00
Louis DeJardin 695f70a6e3 Changing external repos reference to nuget codeplex project
--HG--
branch : nuget
extra : transplant_source : %08%F3%11%0F%ED%BC%05%A68%02%88K8%89%DE%B6%A3%24c%BF
2010-10-30 20:06:48 -07:00
Louis DeJardin f3181136f4 Missed a unit test file
--HG--
branch : nuget
extra : transplant_source : %B5B%F9%1A%87C%99%14%17%DB%0Bz%E8%D3%C7%B0%E9%DE%CB%BA
2010-10-30 20:00:28 -07:00
Louis DeJardin 36c1a85b7d Updating NuGet integration
Using latest version
Namespace change from NuPack to NuGet
Adding tests for package creation

--HG--
branch : nuget
extra : transplant_source : H%D0%91G%21%E4%22x%00%B6eX%8E%98%04%FE%2B%B57%28
2010-10-29 12:17:26 -07:00
Louis DeJardin 7b8deeb33c Changing system.io.packaging to nupack for packaging
PackageBuilder changed to produce opc binary through nupack
Affected code in PackageManager and PackageExpander disabled by #if REFACTORING

--HG--
branch : nuget
extra : transplant_source : %16%B0%AA%E7%24H/%D3%08%FBz%3D%83%94%26s%3F%99%B5%C8
2010-10-27 11:19:17 -07:00
Louis DeJardin 21837215d5 Adding nupack subrepository
temporary condition - easiest way to integrate a new class library reference
will change to lib binary when complete

--HG--
branch : nuget
extra : transplant_source : %D0%91%C0%21%0F%F5%E8%D8%D0%94%AD%A8%12%A6%2Cv%F0L%21%BF
2010-10-25 21:24:29 -07:00
Louis DeJardin c7e5e826cd nuget branch
--HG--
branch : nuget
2010-10-30 20:17:18 -07:00
Louis DeJardin b572c27804 Adding a disabled layer
For convenience, so widgets can be moved to disabled rather than deleted

--HG--
branch : dev
extra : rebase_source : 36d5a75b58182c593ec690a015d77296c7ca02c0
2010-10-19 15:56:02 -07:00
Louis DeJardin 299b2621f7 Fix: Exceptions in commands do cancel transactions (same thing in background tasks)
Components that control using() scope for work context will also indicate transaction cancelled when an exception passes out of that scope

See http://orchard.codeplex.com/workitem/16604

--HG--
branch : dev
extra : rebase_source : 2d53cdbea1e9dd7ceb022f781621b01bb1f95a87
2010-10-18 15:50:06 -07:00
Louis DeJardin 63a2356ecb Fixing an overloaded version of ContentShape
--HG--
branch : dev
extra : rebase_source : 99f13a351b9fd5ca3fc4fa294adc7994ae3a9ce7
2010-10-18 12:49:03 -07:00
Louis DeJardin e5eaf2f6c4 Merge
--HG--
branch : dev
2010-10-15 17:45:32 -07:00
Louis DeJardin c569eba5cd Merge
--HG--
branch : dev
2010-10-15 17:25:10 -07:00
Louis DeJardin 70426a89b9 Overloading ContentPart to optionally have new shape passed in
If lambda takes an argument, it is dynamic, and is an uninitialized shape of the named type
ShapeHelper and IShapeHelperFactory are obsolete - IShapeFactory itself is now dynamic

--HG--
branch : dev
2010-10-15 17:24:30 -07:00
Louis DeJardin cd6e1fb7c9 Merge
--HG--
branch : dev
2010-10-15 14:52:20 -07:00
Louis DeJardin 0a1ed98ac2 Files lost in translation
--HG--
branch : dev
2010-10-15 14:26:45 -07:00
Louis DeJardin 5cd048f30d Committing changes on content Items_ name change
--HG--
branch : dev
2010-10-15 12:47:47 -07:00
Louis DeJardin 03a82cbb11 Missed a file
--HG--
branch : dev
2010-10-15 11:56:30 -07:00
Louis DeJardin c308aa1fbd Refactoring some shape naming conventions
Items_Content* shapes types now Content*
Items_Widget* shape types now Widget*
*_Editor shapes now *_Edit

--HG--
branch : dev
2010-10-15 11:55:48 -07:00
Louis DeJardin bfd3fb1998 Merge
--HG--
branch : dev
2010-10-13 12:53:36 -07:00
Louis DeJardin 726bfc95bd Further embedding of Ruby as implementation detail
Interfaces themselves as language agnostic

--HG--
branch : dev
extra : rebase_source : d15b587bafec98d49b322ba2dd8ad0f493798563
2010-10-13 12:51:10 -07:00
Louis DeJardin 0adc7a6c9f Removing int Id properties from IContent descendants
Eliminates compiler warnings about hiding members of base class.

--HG--
branch : dev
2010-10-13 00:25:21 -07:00
Louis DeJardin 3e05d0473b Adding header to items_widget template for predictability
--HG--
branch : dev
2010-10-12 21:49:15 -07:00
Louis DeJardin 098eabe2be Updating widget editing
--HG--
branch : dev
2010-10-12 21:42:54 -07:00
Louis DeJardin a2b9d87967 Merge
--HG--
branch : dev
2010-10-12 21:08:51 -07:00
Louis DeJardin 945e41de1e Updating for part placement
Correcting several issues
Providing default placement info for body and tags
Fixing predicate logic

--HG--
branch : dev
2010-10-12 21:08:27 -07:00
Louis DeJardin f7748c3590 Updating to use module or theme folder Placement.info file
--HG--
branch : dev
2010-10-12 17:57:08 -07:00
Louis DeJardin 526d37f6e6 Missed one addtl csproj change.
If I had a nickel...

--HG--
branch : dev
2010-10-12 17:52:02 -07:00
Louis DeJardin b24d0742fc Merge
--HG--
branch : dev
2010-10-12 17:46:57 -07:00
Louis DeJardin 9e00c20a6e Merge - potentially bad merges in a place or two
--HG--
branch : composition
2010-10-12 17:43:49 -07:00
Louis DeJardin d57c44bcf2 Merge
--HG--
branch : composition
2010-10-12 17:38:59 -07:00
Louis DeJardin 7e84e73cae Placement.info support enabled
Enabled Module and Theme Placement.info files are parsed, and influence the location of certain shapes
This only applies to part or field shapes that are added by returning ContentShape(...) from a display/editor driver

--HG--
branch : composition
extra : transplant_source : %CF%B0%17%E1%18%C1%06o%B2%91a%23%A1%3D%872%BE%F8%01%F3
2010-10-12 17:33:11 -07:00
Louis DeJardin fd6f482295 Adding a ShapePlacementParsingStrategy
Built-in shape table provider to provide alterations based on placement files in modules and themes

--HG--
branch : composition
2010-10-12 11:18:00 -07:00
Louis DeJardin 0ce0dcb69b Preparing to put a content part placement subsystem in effect
ContentShapeResult.Apply calls through the context.FindPlacement to acquire placement location
DefaultContentDisplay component wires the FindPlacement onto the ShapeDescriptor.Placement
ShapeDescriptor.Placement func contains the chained per-theme rule stack for part shape placement
Next up - simple Placement.txt parser to convert rules into Placement chain

--HG--
branch : composition
2010-10-12 01:02:18 -07:00
Louis DeJardin 0d27bc794c Merge
--HG--
branch : composition
2010-10-11 16:14:07 -07:00
Louis DeJardin 097d936a83 Starting to transition onto different displaytype/location architecture
Introducing branch to avoid pushing a known broken state onto dev

--HG--
branch : composition
2010-10-11 16:13:22 -07:00
Louis DeJardin 925fd6b916 Merge
--HG--
branch : dev
2010-10-11 12:44:26 -07:00
Louis DeJardin 435471e80b Removing test-templates from classic theme
--HG--
branch : dev
2010-10-11 12:18:33 -07:00
Louis DeJardin aa4a80bf6d Merge
--HG--
branch : dev
2010-10-11 12:04:17 -07:00
Louis DeJardin 117a613715 Fixing some issues that showed up in testing
Built-in zones need to be created with names
Binding and shape dictionary is now compare-ordinal-case-insensive
ZoneName is quirky - because it is an actual property some of the inline assignment mechanisms don't work as expected.
Main content area is salmon

--HG--
branch : dev
2010-10-11 11:52:38 -07:00
Louis DeJardin 7021670529 Adding specializations for additional core shapes
MenuItem now has Parent and Menu back-pointer properties
Menu-{name} and MenuItem-{name} templates are added as specializations

--HG--
branch : dev
2010-10-11 11:24:55 -07:00
Louis DeJardin 7515f955fa Missed a file
--HG--
branch : dev
2010-10-08 18:29:37 -07:00
Louis DeJardin 9b67b6e165 Implementing a some fundamental alternate binding names for core shapes
--HG--
branch : dev
2010-10-08 18:29:11 -07:00
Louis DeJardin 58811958d6 Merge
--HG--
branch : dev
2010-10-07 16:56:29 -07:00
Louis DeJardin bdfe7b56b8 Merge
--HG--
branch : dev
2010-10-07 16:55:06 -07:00
Louis DeJardin d1fb5fe86a Shape alterations can provide displaying/displayed delegates
Enables components to add shapes binding alternates
Also provides a hook for the just-before-display preprocessing

--HG--
branch : dev
2010-10-07 16:10:36 -07:00
Louis DeJardin dc61c92f31 Introducing display-time events to shape rendering
Shape specific events can be hooked with ShapeDescriptor Displaying and Displayed delegate arrays
Events for every shape can be hooked with IShapeDisplayEvents Displaying and Displayed methods

--HG--
branch : dev
2010-10-07 13:08:31 -07:00
Louis DeJardin 48a615e597 Adding an array of alternate shapes to shapemetadata
ShapeMetadata.Alternates may be accumulated at any time after the shape is created
Most recently added alternate has highest priority
Alternates may target longer shape variations by appending something context specific to the base name
The alternate may match a shape binding name that is part of a different descriptor

--HG--
branch : dev
extra : rebase_source : 864892c019dbf2a7bd1c33c71bb01be3068b5081
2010-10-05 17:45:22 -07:00
Louis DeJardin e27571a8ae Removing older mvc project type guid from placeholder web app
--HG--
branch : dev
2010-10-05 14:58:18 -07:00