Suha Can
dbe908a717
Exception handling consolidation in command handlers.
...
Use Context.Output to write error messages when you handle an Exception or an error case. If you can't recover afterwards, just return.
Don't throw an exception from within the handler unless necessary.
-> If you want to throw due to an inner exception, throw an OrchardException. Add an error message and the exception as the innerexception of your OrchardException.
Your exception will be caught by the command executive, an error message will indicate which command failed, and the inner exceptions will be displayed.
Also, do not return values from commands, they are not services.
--HG--
branch : 1.x
extra : transplant_source : %5Ej%123%DA%E0%28%A7l%F5%F9%A4%B0z%05%EB%E4%21%FD%DC
2011-06-10 13:34:29 -07:00
Sebastien Ros
4420bc5ee4
Fixing code generation for modules
2011-10-03 13:23:05 -07:00
Sebastien Ros
807b7d1333
Removing MVC dependency on code generation
...
--HG--
branch : 1.x
2011-09-29 16:33:42 -07:00
LukeHertert@LukeHertert-BC
44ece7842e
Modified template module project to include mvc project type.
...
Modified module codegen command to include orchard controller t4 template.
--HG--
branch : contributions
2011-04-27 16:53:09 -04:00
Dave Reed
d69a22dc35
#17061 : Codegen'ing a theme should put the theme in the themes folder of the solution, not the modules folder.
...
--HG--
branch : 1.x
2011-03-28 12:35:45 -07:00
Andre Rodrigues
2d890f54a0
Removing codegen warning when solution is not present.
...
--HG--
branch : dev
2011-02-11 15:03:34 -08:00
Andre Rodrigues
f29a645d48
#17336 : Setting codegen command "IncludeInSolution" option default to true.
...
--HG--
branch : dev
2011-02-11 14:42:23 -08:00
Sebastien Ros
f7c2e49c72
Adding a placement.info file in TheThemeMachine, and in codegen
...
--HG--
branch : dev
2011-02-09 16:50:29 -08:00
Dave Reed
be99957432
#17252 : Adding web.configs too module roots, and codegen commands, to enable razor intellisense.
...
--HG--
branch : dev
2011-01-31 15:52:03 -08:00
Sebastien Ros
1e8ddda4cc
Removing Web.config file creation from "codegen module" command
...
--HG--
branch : 1.x
2011-01-10 18:12:05 -08:00
Andre Rodrigues
50058a5073
#17026 : Adding web.config to /content/ directory when scafolding a theme.
...
--HG--
branch : dev
2010-12-10 12:21:01 -08:00
Andre Rodrigues
18d1e80189
#16849 : Replacing strings and console.writelines by exception throwing.
...
--HG--
branch : dev
2010-12-08 18:18:52 -08:00
Suha Can
c793c322bd
Refactoring
...
--HG--
branch : dev
2010-12-07 18:10:29 -08:00
Dave Reed
eab448cb21
#16949 : Fixing scaffolded modules and themes when used in a non-source distribution
...
--HG--
branch : dev
2010-12-07 16:04:16 -08:00
Andre Rodrigues
d3eb21e8de
Adding IsTheme and IsModule static methods.
...
--HG--
branch : dev
2010-12-01 17:52:10 -08:00
Andre Rodrigues
f3f518b0db
Replacing Module/Theme/Core strings.
...
--HG--
branch : dev
2010-12-01 17:37:11 -08:00
Sebastien Ros
e9220fa517
Including Theme.png in theme scaffolding command
...
Work Item: 16682
--HG--
branch : dev
2010-11-24 18:05:02 -08:00
Dave Reed
67cb21d12b
Related to #16712 . Rename Feature/ExtensionDescriptor Name -> Id, and DisplayName -> Name.
...
--HG--
branch : dev
2010-11-18 15:37:47 -08:00
Dave Reed
e869a4f467
Fixing some basic fx cop warnings
...
--HG--
branch : dev
2010-11-12 12:47:06 -08:00
Sébastien Ros
1364a5fcd2
Correcting themes code generation
...
- "Touching" the solution when adding the theme to Themes.csproj also
--HG--
branch : dev
2010-11-02 22:31:43 -07:00
Sébastien Ros
5dfe86f80c
Correcting data migration code generation
...
- Changing class name to Migrations.cs for consistency
- Corrected project alteration to add the correct file path
- Added missing using for System.Data
--HG--
branch : dev
2010-11-02 21:47:55 -07:00
dareed
f0968a0c71
- root web.config removes all handlers and makes all paths a 404, except default.asp to support "/".
...
- content directories no opt-in to static files only.
- module web.configs no longer need to explicitly exclude cshtml, etc, paths.
--HG--
branch : dev
2010-11-02 18:12:44 -07:00
Dave Reed
5887ade4aa
Rename 'generate create' commands to 'codegen' commands. woohooo.
...
--HG--
branch : dev
2010-10-21 13:37:49 -07:00
Dave Reed
8b17372a99
Fixing path to Orchard Themes project for 'generate create theme' command
...
--HG--
branch : dev
2010-10-19 11:02:22 -07:00
Renaud Paquay
fb1240eb84
Don't pass "Localizer T" as parameter
...
T should only be used then injected as a property to avoid losing
context for translation tools.
--HG--
branch : dev
2010-10-18 20:07:45 -07:00
Dave Reed
245059a8e2
- create theme command now adds to the new Orchard.Themes project when /IncludeInSolution:true /CreateProject:false
...
- create theme command now sets BaseTheme in theme.txt when using /BasedOn option.
--HG--
branch : dev
2010-10-14 17:36:11 -07:00
Dave Reed
d142f8f93b
generate: dont ignore dlls when copying a theme
...
--HG--
branch : dev
2010-10-05 11:20:30 -07:00
Andre Rodrigues
9696efe4bb
Adjusting generation commands to new data migration path and file names
...
--HG--
branch : dev
2010-10-01 15:48:38 -07:00
Andre Rodrigues
5befbad6be
Converting database update page from webforms to razor
...
Adding routes on the migration module
Adding navigation item on the migration module
Fixing feature naming on codegeneration module
--HG--
branch : dev
2010-10-01 11:49:43 -07:00
Andre Rodrigues
788ca7d69f
Created migration module and moved controller and view from experimental.
...
--HG--
branch : dev
2010-09-30 16:29:29 -07:00
Dave Reed
f8e8aefcf0
Added ability to generate a theme as a csproj/module from the command line
...
--HG--
branch : dev
2010-09-30 15:52:44 -07:00
Dave Reed
e2bada7486
Added ability to generate a simple theme from the command line
...
--HG--
branch : dev
2010-09-30 12:19:26 -07:00
Andre Rodrigues
d0d60f2c1f
Added the codegeneration module.
...
--HG--
branch : dev
2010-09-29 15:56:18 -07:00