On 12/13/05, Fat <[EMAIL PROTECTED]> wrote: > I add a FieldPathFiled in my code > fp = meta.FilePathField(path="c:/windows", match="*.gif", recursive=True) > but in admin mode , I got error message. > > ..... > File "C:\Python24\lib\pprint.py", line 291, in _safe_repr > rep = repr(object) > > File "C:\Python24\Lib\site-packages\django\core\formfields.py", line > 273, in __repr__ > return 'FormField "%s"' % self.field_name > > AttributeError: FilePathField instance has no attribute 'field_name'
FilePathField extends SelectField and not FormField, however, SelectField extends FormField and has a field_name, but I am not sure if this sort of daisy chaining objects and their __repr__() functions is allowed in Python. -- Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai Free Tibet! http://www.savetibet.org/ | Je maintiendrai! http://www.in-nomine.org/ | [EMAIL PROTECTED] One from many...

