[Bps-public-commit] App-Changeloggr branch, master, updated. bd878a06e10e3ef7c4de1ce8f80e25bfa0addba0
sartak at bestpractical.com
sartak at bestpractical.com
Tue May 19 10:26:28 EDT 2009
The branch, master has been updated
via bd878a06e10e3ef7c4de1ce8f80e25bfa0addba0 (commit)
from 686113622fd9863ec032079cfff623fbe07c48b4 (commit)
Summary of changes:
etc/config.yml | 3 +++
lib/App/Changeloggr/Action/AddChanges.pm | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit bd878a06e10e3ef7c4de1ce8f80e25bfa0addba0
Author: Shawn M Moore <sartak at gmail.com>
Date: Tue May 19 10:26:13 2009 -0400
Config for turning off pubsub (background import)
diff --git a/etc/config.yml b/etc/config.yml
index ce6d5a1..06adbb9 100644
--- a/etc/config.yml
+++ b/etc/config.yml
@@ -44,3 +44,6 @@ framework:
ServeStaticFiles: 1
StaticRoot: share/web/static
TemplateRoot: share/web/templates
+application:
+ BackgroundImport: 1
+
diff --git a/lib/App/Changeloggr/Action/AddChanges.pm b/lib/App/Changeloggr/Action/AddChanges.pm
index a487895..6f363ed 100644
--- a/lib/App/Changeloggr/Action/AddChanges.pm
+++ b/lib/App/Changeloggr/Action/AddChanges.pm
@@ -25,7 +25,7 @@ sub take_action {
my $changelog = $self->get_changelog;
- if ($parser->take_offline) {
+ if (Jifty->config->app('BackgroundImport') && $parser->take_offline) {
Jifty->background( sub { $changelog->add_changes( parser => $parser, events => 2 ) } );
$self->result->message(_("Importing your changes in the background."));
} else {
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list