El 08/08/11 21:47, Ximo Nadal escribió:
> El 08/08/11 21:08, Ed Leafe escribió:
>> On Aug 8, 2011, at 2:01 PM, Ximo Nadal wrote:
>>
>>> - When I run self.Application.HomeDirectory on the ClassDessigner
>>> Command Window I get '/home/ximo/dabo/pycon_hours/ui'. Is that fine or
>>> should it be without /ui?
>>
>>      Depends on where you were when you ran the Class Designer. You should 
>> be in your app's root directory, and then edit the file with: python 
>> /path/to/ClassDesigner.py ui/hours.cdxml
>>
>>      Sounds like you were in the 'ui' directory when you ran the Class 
>> Designer. Since the code that automagically loads bizobj class info assumes 
>> you are in the app's root directory, it looks for a 'biz' directory off of 
>> that. If you're in the ui directory, it won't find a 'biz' directory, and 
>> won't be able to load the bizobj classes.
>>
>>
>>
>> -- Ed Leafe
>>

Hello,

This are the installed versions:
Platform: GTK
Python Version: 2.6.6 on linux2
Dabo Version: Version 0.9.3; Revision 6778
UI Version: 2.8.10.1 on wxGTK (gtk2)

And I've downloaded Revision 13 of the tutorial by svn 
https://svn.paulmcnett.com/pycon2010

When I run the recipes application from its directory it works fine and 
I get the right directory when I run self.Application.HomeDirectory on 
its Command Window.

Otherwise, I changed the HomeDirectory value in ui/hours.cdxml to the 
pycon_hours full path on my computer and run the pycon_hours application 
and get 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/tmpRXIyEs.py", line 16, in __init__
     super(dForm_99270, 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 
192, in __init__
     self._setNameAndProperties(properties, **kwargs)
   File 
"/usr/local/lib/python2.6/dist-packages/dabo/ui/uiwx/dPemMixin.py", line 
230, in _setNameAndProperties
     self._setProperties(properties)
   File 
"/usr/local/lib/python2.6/dist-packages/dabo/ui/uiwx/dPemMixin.py", line 
243, in _setProperties
     self.setProperties(properties)
   File 
"/usr/local/lib/python2.6/dist-packages/dabo/lib/propertyHelperMixin.py", line 
219, in setProperties
     _setProps(propDict)
   File 
"/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.

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]

Reply via email to