[PATCH 02 of 52 Narval cube] [new style] use new style for cube import

Nsukami Patrick ptrck at nskm.xyz
Wed Apr 1 11:34:02 CEST 2020


# HG changeset patch
# User Nsukami Patrick <ptrck at nskm dot xyz>
# Date 1585406027 0
#      Sat Mar 28 14:33:47 2020 +0000
# Node ID daeb22255d9c55be7d4a135925a679ba63240cc3
# Parent  b8fd17bf3a732aa9e094b9c9763f43d4d151d3d3
[new style] use new style for cube import

diff --git a/cubicweb_narval/schema.py b/cubicweb_narval/schema.py
--- a/cubicweb_narval/schema.py
+++ b/cubicweb_narval/schema.py
@@ -21,7 +21,7 @@
 from yams.buildobjs import (DEFAULT_ATTRPERMS, EntityType, RelationDefinition,
                             String, Datetime, Int)
 from cubicweb.schema import PUB_SYSTEM_ENTITY_PERMS, make_workflowable
-from cubes.file.schema import File
+from cubicweb_file.schema import File
 
 IMMUTABLE_ATTR_PERMS = DEFAULT_ATTRPERMS.copy()
 IMMUTABLE_ATTR_PERMS['update'] = ()
diff --git a/testutils.py b/cubicweb_narval/testutils.py
rename from testutils.py
rename to cubicweb_narval/testutils.py
diff --git a/cubicweb_narval/views/__init__.py b/cubicweb_narval/views/__init__.py
--- a/cubicweb_narval/views/__init__.py
+++ b/cubicweb_narval/views/__init__.py
@@ -1,7 +1,7 @@
 from cubicweb.view import EntityView, NOINDEX, NOFOLLOW
 from cubicweb.predicates import is_instance, has_related_entities
 from cubicweb.web.views import uicfg
-from cubes.narval.logformat import log_to_html
+from cubicweb_narval.logformat import log_to_html
 
 def no_robot_index(self):
     return [NOINDEX, NOFOLLOW]
diff --git a/cubicweb_narval/views/plan.py b/cubicweb_narval/views/plan.py
--- a/cubicweb_narval/views/plan.py
+++ b/cubicweb_narval/views/plan.py
@@ -28,7 +28,7 @@
 from cubicweb.web import RequestError
 from cubicweb.web.views import tabs, navigation, ibreadcrumbs, json, uicfg
 
-from cubes.narval.views import no_robot_index
+from cubicweb_narval.views import no_robot_index
 
 from cubicweb.web.views import forms
 from cubicweb.web import controller, formwidgets, formfields, Redirect
diff --git a/cubicweb_narval/views/recipe.py b/cubicweb_narval/views/recipe.py
--- a/cubicweb_narval/views/recipe.py
+++ b/cubicweb_narval/views/recipe.py
@@ -27,7 +27,7 @@
 from cubicweb.view import EntityView
 from cubicweb.web.views import tabs, tableview, uicfg
 
-from cubes.narval.views import no_robot_index
+from cubicweb_narval.views import no_robot_index
 
 _pvs = uicfg.primaryview_section
 _pvdc = uicfg.primaryview_display_ctrl
diff --git a/cubicweb_narval/views/startup.py b/cubicweb_narval/views/startup.py
--- a/cubicweb_narval/views/startup.py
+++ b/cubicweb_narval/views/startup.py
@@ -20,7 +20,7 @@
 from cubicweb.predicates import is_instance, none_rset
 from cubicweb.web.views import tableview
 
-from cubes.narval.views import no_robot_index
+from cubicweb_narval.views import no_robot_index
 
 class PlanSummaryTable(tableview.EntityTableView):
     __regid__ = 'narval.plan.summarytable'
diff --git a/test/test_functional.py b/test/test_functional.py
--- a/test/test_functional.py
+++ b/test/test_functional.py
@@ -21,7 +21,7 @@
 
 from cubicweb import ValidationError, devtools
 
-from cubes.narval.testutils import NarvalBaseTC
+from cubicweb_narval.testutils import NarvalBaseTC
 
 import narvalbot
 
diff --git a/test/unittest_views.py b/test/unittest_views.py
--- a/test/unittest_views.py
+++ b/test/unittest_views.py
@@ -20,7 +20,7 @@
 
 from cubicweb import devtools
 
-from cubes.narval.testutils import NarvalBaseTC
+from cubicweb_narval.testutils import NarvalBaseTC
 
 import narvalbot
 




More information about the cubicweb-devel mailing list