El 11/08/11 22:30, Ed Leafe escribió:
> On Aug 11, 2011, at 3:22 PM, Ximo Nadal wrote:
>
>> "/usr/local/lib/python2.6/dist-packages/dabo/lib/propertyHelperMixin.py",
>> line
>> 200, in _setProps
>> propRef = eval("self.__class__.%s" % prop)
>> File "<string>", line 1, in<module>
>> AttributeError: type object 'dForm_99270' has no attribute 'HomeDirectory'
>>
>>
>> Something is going wrong with the directory in pycon_hours but I can't
>> find out what is it.
>
> Actually, that's a different bug that has nothing to do with the
> directory. There is a property for the form that is in the cdxml file that
> shouldn't be there. Open up that file in any text editor, and look for the
> tag (near the top) beginning with '<dForm '. There are several attributes in
> that tag; one of them is 'HomeDirectory'. Delete that attribute and its
> value, save, and try running the app again.
>
> E.g.:
>
> Original:
> <dForm Name="dForm" Caption="Billable Hours"
> HomeDirectory="/home/ed/apps/pycon_hours" SaveRestorePosition="False" ...>
>
> Change to:
> <dForm Name="dForm" Caption="Billable Hours"
> SaveRestorePosition="False" ...>
>
>
> -- Ed Leafe
>
After deleting. I got this:
Traceback (most recent call last):
File "./main.py", line 8, in <module>
app.start()
File "/usr/local/lib/python2.6/dist-packages/dabo/dApp.py", line 395,
in start
self.setup()
File "/usr/local/lib/python2.6/dist-packages/dabo/dApp.py", line 347,
in setup
self.initUIApp()
File "/usr/local/lib/python2.6/dist-packages/dabo/dApp.py", line 387,
in initUIApp
self.uiApp.setup()
File "/usr/local/lib/python2.6/dist-packages/dabo/ui/uiwx/uiApp.py",
line 418, in setup
frm = self.dApp.MainForm = dabo.ui.createForm(mfc)
File
"/usr/local/lib/python2.6/dist-packages/dabo/ui/uiwx/__init__.py", line
1342, in createForm
frm = cls(*args, **kwargs)
File "/tmp/tmpY0mLQj.py", line 16, in __init__
super(dForm_20884, self).__init__(parent=parent,
attProperties=attProperties, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/dabo/ui/uiwx/dForm.py",
line 957, in __init__
*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/dabo/ui/uiwx/dForm.py",
line 48, in __init__
attProperties=attProperties, *args, **kwargs)
File
"/usr/local/lib/python2.6/dist-packages/dabo/ui/uiwx/dFormMixin.py",
line 75, in __init__
attProperties=attProperties, *args, **kwargs)
File
"/usr/local/lib/python2.6/dist-packages/dabo/ui/uiwx/dPemMixin.py", line
195, in __init__
self._afterInit()
File "/usr/local/lib/python2.6/dist-packages/dabo/ui/uiwx/dForm.py",
line 75, in _afterInit
super(BaseForm, self)._afterInit()
File
"/usr/local/lib/python2.6/dist-packages/dabo/ui/uiwx/dFormMixin.py",
line 129, in _afterInit
super(dFormMixin, self)._afterInit()
File
"/usr/local/lib/python2.6/dist-packages/dabo/ui/uiwx/dPemMixin.py", line
333, in _afterInit
self.afterInit()
File "/tmp/tmpY0mLQj.py", line 237, in afterInit
fm.prependSeparator()
AttributeError: 'NoneType' object has no attribute 'prependSeparator'
Thanks,
--
[email protected]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]