You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by Apache Bloodhound <de...@bloodhound.apache.org> on 2013/06/02 06:10:37 UTC

[Apache Bloodhound] #540: Error in timeline widget if timeline module is disabled

#540: Error in timeline widget if timeline module is disabled
---------------------+---------------
  Reporter:  olemis  |    Owner:
      Type:  defect  |   Status:  new
  Priority:  major   |  Version:
Resolution:          |
---------------------+---------------
 Noticed this entry in the log

 {{{
 2013-05-30 18:17:32,746 Trac[web_ui] ERROR: - e45cbdab-
 d57b-4563-9297-d2f770862b82 - Error rendering widget Timeline with options
 {'args': {}}
 }}}

 ... and this traceback

 {{{#!py

 Traceback (most recent call last):
   File "/path/to/bloodhound/bloodhound_dashboard/bhdashboard/web_ui.py",
 line 269, in _render_widget
     return wp.render_widget(name, ctx, options)
   File "/path/to/bloodhound/bloodhound_dashboard/bhdashboard/util.py",
 line 132, in widget_name_checker
     return f(self, name, *args, **kwargs)
   File
 "/path/to/bloodhound/bloodhound_dashboard/bhdashboard/widgets/timeline.py",
 line 144, in render_widget
     raise TracError('Timeline module not available (disabled?)')
 TracError: Timeline module not available (disabled?)
 }}}

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/540>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker

Re: [Apache Bloodhound] #540: Error in timeline widget if timeline module is disabled

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#540: Error in timeline widget if timeline module is disabled
------------------------+-----------------------------
  Reporter:  olemis     |      Owner:  olemis
      Type:  defect     |     Status:  closed
  Priority:  major      |  Milestone:  Release 6
 Component:  dashboard  |    Version:
Resolution:  fixed      |   Keywords:  timeline widget
------------------------+-----------------------------

Comment (by olemis):

 looks ok to me

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

Re: [Apache Bloodhound] #540: Error in timeline widget if timeline module is disabled

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#540: Error in timeline widget if timeline module is disabled
------------------------+-----------------------------
  Reporter:  olemis     |      Owner:  olemis
      Type:  defect     |     Status:  closed
  Priority:  major      |  Milestone:  Release 6
 Component:  dashboard  |    Version:
Resolution:  fixed      |   Keywords:  timeline widget
------------------------+-----------------------------
Changes (by rjollos):

 * status:  review => closed
 * resolution:   => fixed


Comment:

 (In [1499517])

 Improve message to help user resolve Timeline widget error, Fixes #540.

 The warning message for the Timeline widget that displays when the
 Timeline component is disabled now includes a link to the plugin
 administration page.

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

Re: [Apache Bloodhound] #540: Error in timeline widget if timeline module is disabled

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#540: Error in timeline widget if timeline module is disabled
------------------------+-----------------------------
  Reporter:  olemis     |      Owner:  rjollos
      Type:  defect     |     Status:  accepted
  Priority:  major      |  Milestone:
 Component:  dashboard  |    Version:
Resolution:             |   Keywords:  timeline widget
------------------------+-----------------------------
Changes (by rjollos):

 * status:  new => accepted
 * owner:  nobody => rjollos


Comment:

 The commit that follows will change the message to:

 [[Image(NewMessage.png,100%)]]

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

Re: [Apache Bloodhound] #540: Error in timeline widget if timeline module is disabled

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#540: Error in timeline widget if timeline module is disabled
------------------------+-----------------------------
  Reporter:  olemis     |      Owner:  olemis
      Type:  defect     |     Status:  review
  Priority:  major      |  Milestone:  Release 6
 Component:  dashboard  |    Version:
Resolution:             |   Keywords:  timeline widget
------------------------+-----------------------------

Comment (by rjollos):

 [http://trac.edgewall.org/browser/tags/trac-1.0.1/trac/web/auth.py?marks=147-153#L130
 Here] is an example of a link embedded in a translatable string.

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

Re: [Apache Bloodhound] #540: Error in timeline widget if timeline module is disabled

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#540: Error in timeline widget if timeline module is disabled
------------------------+-----------------------------
  Reporter:  olemis     |      Owner:  olemis
      Type:  defect     |     Status:  review
  Priority:  major      |  Milestone:  Release 6
 Component:  dashboard  |    Version:
Resolution:             |   Keywords:  timeline widget
------------------------+-----------------------------

Comment (by rjollos):

 It should be possible to link to the web administration plugin page, and
 only show the message for users with `TRAC_ADMIN` permission. I suppose we
 should also add an entry to the log.

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

Re: [Apache Bloodhound] #540: Error in timeline widget if timeline module is disabled

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#540: Error in timeline widget if timeline module is disabled
------------------------+-----------------------------
  Reporter:  olemis     |      Owner:  olemis
      Type:  defect     |     Status:  review
  Priority:  major      |  Milestone:  Release 6
 Component:  dashboard  |    Version:
Resolution:             |   Keywords:  timeline widget
------------------------+-----------------------------

Comment (by rjollos):

 Slightly modified to,

 [[Image(WithLink2.png)]]

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

Re: [Apache Bloodhound] #540: Error in timeline widget if timeline module is disabled

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#540: Error in timeline widget if timeline module is disabled
------------------------+-----------------------------
  Reporter:  olemis     |      Owner:  olemis
      Type:  defect     |     Status:  review
  Priority:  major      |  Milestone:  Release 6
 Component:  dashboard  |    Version:
Resolution:             |   Keywords:  timeline widget
------------------------+-----------------------------

Comment (by jdreimann):

 @rjollos: I think you could improved by linking to either the setting that
 disables the timeline so the user can check (not possible here because
 it's in trac.ini if I remember correctly), or to documentation around
 disabling/enabling components.

 To the novice Bloodhound administrator this message is a dead end
 otherwise (= frustrating).

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

Re: [Apache Bloodhound] #540: Error in timeline widget if timeline module is disabled

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#540: Error in timeline widget if timeline module is disabled
------------------------+-----------------------------
  Reporter:  olemis     |      Owner:  nobody
      Type:  defect     |     Status:  new
  Priority:  major      |  Milestone:
 Component:  dashboard  |    Version:
Resolution:             |   Keywords:  timeline widget
------------------------+-----------------------------
Changes (by olemis):

 * keywords:   => timeline widget
 * owner:   => nobody
 * component:   => dashboard


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

Re: [Apache Bloodhound] #540: Error in timeline widget if timeline module is disabled

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#540: Error in timeline widget if timeline module is disabled
------------------------+-----------------------------
  Reporter:  olemis     |      Owner:  olemis
      Type:  defect     |     Status:  review
  Priority:  major      |  Milestone:  Release 6
 Component:  dashboard  |    Version:
Resolution:             |   Keywords:  timeline widget
------------------------+-----------------------------

Comment (by rjollos):

 We could do something like this,

 [[Image(WithLink.png)]]

 However, I'm not sure the code is very friendly to translators. I'll have
 to see if there's a better way.

 {{{#!python
 tag(_("TimelineWidget is disabled because the "
           "Timeline component is not available. Is "
           "the component disabled? ")) +
 tag(_("You can enable it ")) +
 tag.a(_("here."), href=req.href.admin('general/plugin')),
 }}}

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

Re: [Apache Bloodhound] #540: Error in timeline widget if timeline module is disabled

Posted by Apache Bloodhound <de...@bloodhound.apache.org>.
#540: Error in timeline widget if timeline module is disabled
------------------------+-----------------------------
  Reporter:  olemis     |      Owner:  olemis
      Type:  defect     |     Status:  review
  Priority:  major      |  Milestone:  Release 6
 Component:  dashboard  |    Version:
Resolution:             |   Keywords:  timeline widget
------------------------+-----------------------------
Changes (by rjollos):

 * owner:  rjollos => olemis
 * status:  accepted => review
 * milestone:   => Release 6


Comment:

 (In [1488750]) Refs #540: Show a warning rather than an error when
 attempting to display the `TimelineWidget` when the Timeline component is
 disabled.

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