From 6b5125c4dfa1d143d2b66dfd54e94b474c003773 Mon Sep 17 00:00:00 2001 From: Victor Shnayder Date: Tue, 13 Nov 2012 18:07:59 -0500 Subject: [PATCH] fix typos, logger configs --- common/lib/xmodule/xmodule/seq_module.py | 2 +- lms/djangoapps/courseware/tabs.py | 2 +- lms/djangoapps/instructor/views.py | 2 +- lms/urls.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/lib/xmodule/xmodule/seq_module.py b/common/lib/xmodule/xmodule/seq_module.py index b625646e66..817ed9ab2e 100644 --- a/common/lib/xmodule/xmodule/seq_module.py +++ b/common/lib/xmodule/xmodule/seq_module.py @@ -10,7 +10,7 @@ from xmodule.progress import Progress from xmodule.exceptions import NotFoundError from pkg_resources import resource_string -log = logging.getLogger("mitx.common.lib.seq_module") +log = logging.getLogger(__name__) # HACK: This shouldn't be hard-coded to two types # OBSOLETE: This obsoletes 'type' diff --git a/lms/djangoapps/courseware/tabs.py b/lms/djangoapps/courseware/tabs.py index 980fedb947..4eaef20089 100644 --- a/lms/djangoapps/courseware/tabs.py +++ b/lms/djangoapps/courseware/tabs.py @@ -36,7 +36,7 @@ CourseTab = namedtuple('CourseTab', 'name link is_active') # wrong. (e.g. "is there a 'name' field?). Validators can assume # that the type field is valid. # -# - a function that takes a config, a user, and a course, and active_page and +# - a function that takes a config, a user, and a course, an active_page and # return a list of CourseTabs. (e.g. "return a CourseTab with specified # name, link to courseware, and is_active=True/False"). The function can # assume that it is only called with configs of the appropriate type that diff --git a/lms/djangoapps/instructor/views.py b/lms/djangoapps/instructor/views.py index f985cc43a0..fec7536151 100644 --- a/lms/djangoapps/instructor/views.py +++ b/lms/djangoapps/instructor/views.py @@ -27,7 +27,7 @@ from xmodule.modulestore.exceptions import InvalidLocationError, ItemNotFoundErr from xmodule.modulestore.search import path_to_location import track.views -log = logging.getLogger("mitx.courseware") +log = logging.getLogger(__name__) template_imports = {'urllib': urllib} diff --git a/lms/urls.py b/lms/urls.py index 529396c20e..62842ec5fe 100644 --- a/lms/urls.py +++ b/lms/urls.py @@ -161,7 +161,7 @@ if settings.COURSEWARE_ENABLED: # input types system so that previews can be context-specific. # Unfortunately, we don't have time to think through the right way to do # that (and implement it), and it's not a terrible thing to provide a - # generic chemican-equation rendering service. + # generic chemical-equation rendering service. url(r'^preview/chemcalc', 'courseware.module_render.preview_chemcalc', name='preview_chemcalc'),