r-bishop / bpbible

Automatically exported from code.google.com/p/bpbible
0 stars 0 forks source link

Can't add a new topic #125

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. go to Bible -> Manage Topics
2. click New Topic

What is the expected output? What do you see instead?
A new topic should be added. Instead I get this:

Traceback (most recent call last):
  File "/home/andreas/Apps/bpbible-0.4.5/manage_topics_frame.py", line 80,
in <lambda>
    handler = lambda event, tool=tool: self._perform_toolbar_action(event,
tool)
  File "/home/andreas/Apps/bpbible-0.4.5/manage_topics_frame.py", line 272,
in _perform_toolbar_action
    actions[tool_id]()
  File "/home/andreas/Apps/bpbible-0.4.5/manage_topics_frame.py", line 261,
in <lambda>
    "add_topic_tool": lambda: self._create_topic(self.selected_topic),
  File "/home/andreas/Apps/bpbible-0.4.5/manage_topics_frame.py", line 381,
in _create_topic
    new_topic = self._operations_manager.add_new_topic(creation_function)
  File "/home/andreas/Apps/bpbible-0.4.5/manage_topics_operations.py", line
25, in add_new_topic
    self._perform_action(action)
  File "/home/andreas/Apps/bpbible-0.4.5/manage_topics_operations.py", line
191, in _perform_action
    action.perform_action()
  File "/home/andreas/Apps/bpbible-0.4.5/manage_topics_operations.py", line
219, in perform_action
    self._perform_action()
  File "/home/andreas/Apps/bpbible-0.4.5/manage_topics_operations.py", line
306, in _perform_action
    self.parent_topic.add_subtopic(self.topic)
AttributeError: 'NoneType' object has no attribute 'add_subtopic'

What version of the product are you using? On what operating system?
bpbible v0.4.5, Linux Debian Lenny/Sid

Original issue reported on code.google.com by war...@gmail.com on 18 Feb 2010 at 5:23

GoogleCodeExporter commented 9 years ago
OK, I can reproduce this and I don't know how it missed our testing.  Thanks 
for the 
report.  As a workaround, please select the "Topics" entry in the tree on the 
left of 
the Manage Topics window before clicking "New Topic".  If you are wanting to 
associate 
verses with a new topic, it is also possible to create it by selecting the 
verses, 
choose "Tag verses", and then typing the new topic name into the text box where 
the tag 
name is entered.  This may be useful to you.

Original comment by jonmmor...@gmail.com on 19 Feb 2010 at 11:14

GoogleCodeExporter commented 9 years ago

Original comment by jonmmor...@gmail.com on 19 Feb 2010 at 11:14

GoogleCodeExporter commented 9 years ago
Thanks for your response. It's probably the same bug, but just for the record: 
If I
right click in the "Passage and Comment" frame in the Manage Topics window, I 
get this:

Traceback (most recent call last):
  File "/home/andreas/Apps/bpbible-0.4.5/manage_topics_frame.py", line 572, in
_show_passage_context_menu
    self._change_selected_passages()
  File "/home/andreas/Apps/bpbible-0.4.5/manage_topics_frame.py", line 506, in
_change_selected_passages
    self.selected_passages = self._find_selected_passages()
  File "/home/andreas/Apps/bpbible-0.4.5/manage_topics_frame.py", line 510, in
_find_selected_passages
    topic_passages = self._passage_list_topic.passages
AttributeError: 'NoneType' object has no attribute 'passages'

Original comment by war...@gmail.com on 19 Feb 2010 at 12:34

GoogleCodeExporter commented 9 years ago
Fixed in r970.

Original comment by jonmmor...@gmail.com on 9 Mar 2010 at 1:06