Commits

Serge Makarov committed 1c62525

Fixes for django-cms 2.3.5

  • Participants
  • Parent commits 7605078

Comments (0)

Files changed (3)

cmsplugin_news/cms_app.py

+# -*- coding: UTF-8 -*-
+
+from cms.app_base import CMSApp
+from cms.apphook_pool import apphook_pool
+from django.utils.translation import ugettext_lazy as _
+
+
+class LatestNewsAppHook(CMSApp):
+    name = _(u'Latest news')
+    urls = ['cmsplugin_news.urls',]
+
+apphook_pool.register(LatestNewsAppHook)

cmsplugin_news/forms.py

         model = News
         
     def _get_widget(self):
-        plugins = plugin_pool.get_text_enabled_plugins(placeholder=None)
+        plugins = plugin_pool.get_text_enabled_plugins(placeholder=None, page=None)
         if USE_TINYMCE and "tinymce" in settings.INSTALLED_APPS:
             from cmsplugin_news.widgets.tinymce_widget import TinyMCEEditor
             return TinyMCEEditor(installed_plugins=plugins)
 
 setup(
     name='cmsplugin-news',
-    version='0.3b',
+    version='0.5a',
     description='This is a news app/plugin for the django-cms 2',
     author='Harro van der Klauw',
     author_email='hvdklauw@gmail.com',
-    url='http://bitbucket.org/MrOxiMoron/cmsplugin-news/',
-    packages=find_packages(),
+    url='https://bitbucket.org/redsnow/cmsplugin-news/src',
+    packages=find_packages().append('cmsplugin_news.templates'),
     classifiers=[
         'Development Status :: 4 - Beta',
         'Environment :: Web Environment',