Bug 771080

Summary: Unable to edit recipe
Product: [Fedora] Fedora Reporter: Sean Sheedy <redhat>
Component: gourmetAssignee: Jef Spaleta <jspaleta>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 15CC: jeff.raber, jspaleta
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-02 22:24:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sean Sheedy 2011-12-31 21:50:27 UTC
Description of problem:
I imported a new recipe from the web.  The import was successful, but any attempts to edit the description fail.  I can navigate between editing sections, but I'm unable to save any of the changes.  When started from the command line, numerous errors are reported when entering edit mode and when attempting to save a change.

Version-Release number of selected component (if applicable):
0.15.9-1

How reproducible:
Always

Steps to Reproduce:
1. Start gourmet from the command line.
2. Edit a recipe.
3. Change the type to, e.g., "Appetizer".
  
Actual results:
Change cannot be saved.

When opening the recipe for editing, the following errors are reported:

/usr/lib/python2.7/site-packages/gourmet/reccard.py:959: GtkWarning: UnitConverter: missing action UnitConverter
  main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
/usr/lib/python2.7/site-packages/gourmet/reccard.py:959: GtkWarning: Undo: missing action Undo
  main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
/usr/lib/python2.7/site-packages/gourmet/reccard.py:959: GtkWarning: Redo: missing action Redo
  main_vb.pack_start(self.ui_manager.get_widget('/RecipeEditorMenuBar'),expand=False,fill=False)
/usr/lib/python2.7/site-packages/gourmet/GourmetRecipeManager.py:726: GtkWarning: Cut: missing action Cut
  gtk.main()
/usr/lib/python2.7/site-packages/gourmet/GourmetRecipeManager.py:726: GtkWarning: Copy: missing action Copy
  gtk.main()
/usr/lib/python2.7/site-packages/gourmet/GourmetRecipeManager.py:726: GtkWarning: Paste: missing action Paste
  gtk.main()

When attempting to save, the following errors are reported:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gourmet/reccard.py", line 1029, in save_cb
    newdict = m.save(newdict)
  File "/usr/lib/python2.7/site-packages/gourmet/reccard.py", line 1231, in save
    self.ingtree_ui.ingController.commit_ingredients()
  File "/usr/lib/python2.7/site-packages/gourmet/reccard.py", line 2132, in commit_ingredients
    n = commit_iter(iter,n)
  File "/usr/lib/python2.7/site-packages/gourmet/reccard.py", line 2103, in commit_iter
    if getattr(ing,att)==d[att]: del d[att]
KeyError: 'ingkey'


Expected results:
Edit and save recipe.

Additional info:

Comment 1 Sean Sheedy 2012-01-02 22:23:39 UTC
The appears to already be opened as bug 717042.

Comment 2 Sean Sheedy 2012-01-02 22:24:01 UTC

*** This bug has been marked as a duplicate of bug 717042 ***