Bug 226734 - Type error in fc4.py commands
Type error in fc4.py commands
Product: Fedora
Classification: Fedora
Component: pykickstart (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Chris Lumens
Depends On:
  Show dependency treegraph
Reported: 2007-02-01 06:00 EST by Tomo Vuckovic
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-02-01 09:51:01 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Tomo Vuckovic 2007-02-01 06:00:08 EST
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
    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

change line 97 in fc4.py to :

retval = FC3Handler.PartData.__str__(self).strip()
Comment 1 Chris Lumens 2007-02-01 09:51:01 EST
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.