Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 226734 - Type error in fc4.py commands
Summary: Type error in fc4.py commands
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pykickstart
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Chris Lumens
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-02-01 11:00 UTC by Tomo Vuckovic
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-02-01 14:51:01 UTC


Attachments (Terms of Use)

Description Tomo Vuckovic 2007-02-01 11:00:08 UTC
Description of problem:

pykickstart type error.

Version :
pykickstart 0.93

How reproducible:

Traceback (most recent call last):
  File "/usr/share/system-config-kickstart/kickstartGui.py", line 323, in
on_activate_preview_options
    previewDialog = savefile.saveFile (self.ksHandler.__str__(),
  File "/usr/lib/python2.4/site-packages/pykickstart/commands/base.py", line
197, in __str__
    retval += obj.__str__()
  File "/usr/lib/python2.4/site-packages/pykickstart/commands/fc3.py", line 945,
in __str__
    retval += part.__str__()
  File "/usr/lib/python2.4/site-packages/pykickstart/commands/fc4.py", line 97,
in __str__
    retval = FC3Handler.PartData.__str__().strip()
TypeError: unbound method __str__() must be called with PartData instance as
first argument (got nothing instead)


Steps to  Reproduce: always

Solutions:
change line 97 in fc4.py to :

retval = FC3Handler.PartData.__str__(self).strip()

Comment 1 Chris Lumens 2007-02-01 14:51:01 UTC
Thanks for the bug report.  I've fixed this one and several others that I found
when searching.  It will be in the next build of pykickstart.


Note You need to log in before you can comment on or make changes to this bug.