From 5cc571172b576bf851acb9b59367ae03684b60eb Mon Sep 17 00:00:00 2001 From: John Chilton <jmchilton@gmail.com> Date: Wed, 18 Jun 2014 14:31:24 -0500 Subject: [PATCH] Rename LwrApp. --- pulsar/client/interface.py | 2 +- pulsar/core.py | 4 ++-- pulsar/daemon.py | 2 +- pulsar/web/wsgi.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pulsar/client/interface.py b/pulsar/client/interface.py index 40ea4e6b..1dc98fc6 100644 --- a/pulsar/client/interface.py +++ b/pulsar/client/interface.py @@ -117,7 +117,7 @@ class LocalPulsarInterface(PulsarInterface): self.object_store = object_store def __app_args(self): - # Arguments that would be specified from LwrApp if running + # Arguments that would be specified from PulsarApp if running # in web server. return { 'manager': self.job_manager, diff --git a/pulsar/core.py b/pulsar/core.py index c07fcf71..ef7751e2 100644 --- a/pulsar/core.py +++ b/pulsar/core.py @@ -26,7 +26,7 @@ NOT_WHITELIST_WARNING = "Starting the LWR without a toolbox to white-list." + \ "Ensure this application is protected by firewall or a configured private token." -class LwrApp(object): +class PulsarApp(object): def __init__(self, **conf): if conf is None: @@ -86,7 +86,7 @@ class LwrApp(object): def __setup_private_key(self, private_key): self.private_key = private_key if private_key: - log.info("Securing LWR web app with private key, please verify you are using HTTPS so key cannot be obtained by monitoring traffic.") + log.info("Securing Pulsar web app with private key, please verify you are using HTTPS so key cannot be obtained by monitoring traffic.") def __setup_persistence_directory(self, persistence_directory): self.persistence_directory = persistence_directory or DEFAULT_PERSISTENCE_DIRECTORY diff --git a/pulsar/daemon.py b/pulsar/daemon.py index 77692169..7c4154c1 100644 --- a/pulsar/daemon.py +++ b/pulsar/daemon.py @@ -73,7 +73,7 @@ def load_pulsar_app( config.update(kwds) import pulsar.core - pulsar_app = pulsar.core.LwrApp(**config) + pulsar_app = pulsar.core.PulsarApp(**config) return pulsar_app diff --git a/pulsar/web/wsgi.py b/pulsar/web/wsgi.py index d164882a..061126df 100644 --- a/pulsar/web/wsgi.py +++ b/pulsar/web/wsgi.py @@ -1,7 +1,7 @@ import atexit import inspect -from pulsar.core import LwrApp +from pulsar.core import PulsarApp from pulsar.web.framework import RoutingApp import pulsar.web.routes @@ -11,7 +11,7 @@ def app_factory(global_conf, **local_conf): """ Returns the LWR WSGI application. """ - pulsar_app = LwrApp(global_conf=global_conf, **local_conf) + pulsar_app = PulsarApp(global_conf=global_conf, **local_conf) webapp = LwrWebApp(pulsar_app=pulsar_app) atexit.register(webapp.shutdown) return webapp -- GitLab