#694: Translations scaffolding
------------------------+----------------------
  Reporter:  olemis     |      Owner:  olemis
      Type:  task       |     Status:  assigned
  Priority:  minor      |  Milestone:
 Component:  trac core  |    Version:  0.7.0
Resolution:             |   Keywords:  i18n
------------------------+----------------------

Comment (by SaintGermain):

 Strange because your error is:
 {{{Traceback (most recent call last):
   File "/path/to/bloodhound/trac/trac/loader.py", line 68, in _load_eggs
     entry.load(require=True)
   File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1994, in load
     entry = __import__(self.module_name, globals(),globals(),
 ['__name__'])
   File
 "/path/to/bloodhound/bloodhound_dashboard/bhdashboard/widgets/containers.py",
 line 31, in <module>
     from bhdashboard.util import WidgetBase, check_widget_name, \
 ImportError: cannot import name WidgetBase
 }}}

 And we can see in my patch bloodhound_i18n_circular_import.diff:
 {{{
 diff --git a/bloodhound_dashboard/bhdashboard/widgets/containers.py
 b/bloodhound_dashboard/bhdashboard/widgets/containers.py
         262     ---
 a/bloodhound_dashboard/bhdashboard/widgets/containers.py
         263     +++
 b/bloodhound_dashboard/bhdashboard/widgets/containers.py
         264     @@ -28,9 +28,9 @@
         265      from trac.core import implements, TracError
         266
         267      from bhdashboard.api import DashboardSystem,
 InvalidWidgetArgument, JsonField
         268     -from bhdashboard.util import WidgetBase,
 check_widget_name, \
         269     -                              dummy_request, merge_links,
 minmax, \
         270     +from bhdashboard.util import dummy_request, merge_links,
 minmax, \
         271                                    pretty_wrapper,
 trac_version, trac_tags
         272     +from bhdashboard.util.widgets import WidgetBase,
 check_widget_name
         273      from bhdashboard.web_ui import DashboardModule
         274
         275      class ContainerWidget(WidgetBase):
 }}}

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/694#comment:42>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Reply via email to