On Wed, Feb 13, 2013 at 09:38:05AM -0200, Lucas Meneghel Rodrigues wrote:
> With the end of (most) import hacks, now the frontend
> modules must use the full import path, rather than a
> relative path.
> 
> This patch fixes the scheduler, broken with the import
> changes.

Do you know where this code calls setup_modules? If the code is using ""
as the module name somewhere, we need to change or remove that call.

(But if this patch solves the problem you have seen, we can apply it
first and fix existing setup_modules calls later.)

> 
> CC: Eduardo Habkost <[email protected]>
> Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
> ---
>  frontend/settings.py | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/frontend/settings.py b/frontend/settings.py
> index 0a3381d..aab80c6 100644
> --- a/frontend/settings.py
> +++ b/frontend/settings.py
> @@ -92,13 +92,13 @@ MIDDLEWARE_CLASSES = (
>      'django.middleware.common.CommonMiddleware',
>      'django.contrib.sessions.middleware.SessionMiddleware',
>      'django.contrib.messages.middleware.MessageMiddleware',
> -    'frontend.apache_auth.ApacheAuthMiddleware',
> +    'autotest.frontend.apache_auth.ApacheAuthMiddleware',
>      'django.contrib.auth.middleware.AuthenticationMiddleware',
>      'django.middleware.doc.XViewMiddleware',
> -    'frontend.shared.json_html_formatter.JsonToHtmlMiddleware',
> +    'autotest.frontend.shared.json_html_formatter.JsonToHtmlMiddleware',
>  )
>  
> -ROOT_URLCONF = 'frontend.urls'
> +ROOT_URLCONF = 'autotest.frontend.urls'
>  
>  TEMPLATE_DIRS = (
>      # Put strings here, like "/home/html/django_templates" or 
> "C:/www/django/templates".
> @@ -109,8 +109,8 @@ TEMPLATE_DIRS = (
>  )
>  
>  INSTALLED_APPS = (
> -    'frontend.afe',
> -    'frontend.tko',
> +    'autotest.frontend.afe',
> +    'autotest.frontend.tko',
>      'django.contrib.admin',
>      'django.contrib.auth',
>      'django.contrib.contenttypes',
> @@ -119,5 +119,5 @@ INSTALLED_APPS = (
>  )
>  
>  AUTHENTICATION_BACKENDS = (
> -    'frontend.apache_auth.SimpleAuthBackend',
> +    'autotest.frontend.apache_auth.SimpleAuthBackend',
>  )
> -- 
> 1.8.1.2
> 

-- 
Eduardo

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to