Permalink
Browse files

Move lib/ to kitsune/lib

  • Loading branch information...
1 parent 54ddbae commit c2348e14ac1aff2d1a48a474aa792dbcfcc62d4f @rlr rlr committed Jun 6, 2013
@@ -6,12 +6,12 @@
from kitsune.announcements.models import Announcement
from kitsune.announcements.forms import AnnouncementForm
from kitsune.dashboards import ACTIONS_PER_PAGE
+from kitsune.lib.sumo_locales import LOCALES
from kitsune.products.models import Product
from kitsune.sumo.utils import paginate
from kitsune.wiki.events import (
ApproveRevisionInLocaleEvent, ReadyRevisionEvent,
ReviewableRevisionInLocaleEvent)
-from sumo_locales import LOCALES
def model_actions(model_class, request):
View
@@ -5,9 +5,10 @@
from tower import ugettext_lazy as _lazy, ugettext as _
from kitsune.gallery.models import Image, Video
+from kitsune.lib.sumo_locales import LOCALES
from kitsune.sumo.form_fields import StrippedCharField
from kitsune.upload.forms import clean_image_extension
-from sumo_locales import LOCALES
+
# Error messages
MSG_TITLE_REQUIRED = _lazy(u'Please provide a title.')
@@ -17,11 +17,11 @@
from kitsune.kbforums.forms import (ReplyForm, NewThreadForm,
EditThreadForm, EditPostForm)
from kitsune.kbforums.models import Thread, Post
+from kitsune.lib.sumo_locales import LOCALES
from kitsune.sumo.urlresolvers import reverse
from kitsune.sumo.utils import paginate, get_next_url, user_or_ip
from kitsune.users.models import Setting
from kitsune.wiki.models import Document
-from sumo_locales import LOCALES
log = logging.getLogger('k.kbforums')
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -8,11 +8,11 @@
from kitsune import search as constants
from kitsune.forums.models import Forum as DiscussionForum
+from kitsune.lib.sumo_locales import LOCALES
from kitsune.products.models import Product
from kitsune.sumo.form_fields import TypedMultipleChoiceField
from kitsune.topics.models import Topic
from kitsune.wiki.config import CATEGORIES
-from sumo_locales import LOCALES
SEARCH_LANGUAGES = [(k, LOCALES[k].native) for
View
@@ -6,7 +6,7 @@
import bleach
-from sumo_locales import LOCALES
+from kitsune.lib.sumo_locales import LOCALES
call = lambda x: subprocess.Popen(x, stdout=subprocess.PIPE).communicate()
View
@@ -5,7 +5,7 @@
import platform
from bundles import MINIFY_BUNDLES
-from sumo_locales import LOCALES
+from kitsune.lib.sumo_locales import LOCALES
DEBUG = True
TEMPLATE_DEBUG = DEBUG
View
@@ -16,7 +16,7 @@
from tower import ugettext as _
from tower import ugettext_lazy as _lazy
-from countries import COUNTRIES
+from kitsune.lib.countries import COUNTRIES
from kitsune.sumo import email_utils
from kitsune.sumo.models import ModelBase, LocaleField
from kitsune.sumo.urlresolvers import reverse
View
@@ -9,7 +9,6 @@
prev_sys_path = list(sys.path)
-site.addsitedir(path('lib'))
site.addsitedir(path('vendor'))
# Move the new items to the front of sys.path.
View
@@ -26,7 +26,7 @@ site.addsitedir(os.path.abspath(os.path.join(wsgidir, '../')))
# For django-celery
os.environ['CELERY_LOADER'] = 'django'
-# manage adds /apps, /lib, and /vendor to the Python path.
+# manage /vendor to the Python path.
import manage
import django.conf

0 comments on commit c2348e1

Please sign in to comment.