Commit a32157ec authored by Nsukami Patrick's avatar Nsukami Patrick
Browse files

New style: update package config & use new style import

- update MANIFEST.in
- update cubicweb min version inside __pkginfo__.py
- use new style import
parent 8dfb6930c966
include setup.py
include README
recursive-include cubicweb_blog *
recursive-include cubicweb_blog/data *.gif *.jpg *.png *.css external_resources
include *.py
include */*.py
recursive-include cubicweb_blog *.py
recursive-include cubicweb_blog/data *.gif *.png *.ico *.css *.js
recursive-include cubicweb_blog/i18n *.po
recursive-include cubicweb_blog/migration *.py
recursive-include test/data bootstrap_cubes *.py
recursive-include debian changelog compat control copyright rules
include cubicweb-blog.spec
......@@ -20,7 +20,7 @@ classifiers = [
'Programming Language :: JavaScript',
]
__depends__ = {'cubicweb': '>= 3.19.0',
__depends__ = {'cubicweb': '>= 3.26.0',
'six': '>= 1.4.0', }
__recommends__ = {'cubicweb-tag': None,
'cubicweb-preview': None,
......
......@@ -21,7 +21,7 @@ else:
DCTERMS = rdflib.Namespace('http://purl.org/dc/terms/')
try:
from cubes.datafeed.sobjects import DataFeedParser
from cubicweb_datafeed.sobjects import DataFeedParser
except ImportError:
DataFeedParser = None
......
......@@ -46,7 +46,7 @@ def registration_callback(vreg):
loaded_cubes = vreg.config.cubes()
if 'seo' in loaded_cubes:
from cubes.seo.views import SitemapRule
from cubicweb_seo.views import SitemapRule
class BlogEntrySitemapRule(SitemapRule):
__regid__ = 'blogentry'
......@@ -64,7 +64,7 @@ def registration_callback(vreg):
vreg.register(MicroBlogEntrySitemapRule)
if 'preview' in loaded_cubes:
from cubes.preview.views.forms import PreviewFormMixin
from cubicweb_preview.views.forms import PreviewFormMixin
class PreviewAutomaticEntityForm(PreviewFormMixin, AutomaticEntityForm):
preview_mode = 'inline'
......
......@@ -180,7 +180,7 @@ class BlogEntryPostMetaData(EntityView):
schema = self._cw.vreg.schema
if 'comments' in schema and \
'BlogEntry' in schema.rschema('comments').objects():
from cubes.comment.entities import subcomments_count
from cubicweb_comment.entities import subcomments_count
count = subcomments_count(entity)
if count:
url = xml_escape(entity.absolute_url())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment