Uwe Grauer wrote:
> Bob Sysero llc Dev wrote:
>   
>> You were right I when I started to look inside the cnx file created by 
>> the CnxEditor I also started to realized that two thing happened. First 
>> CnxEditor did not fill in the file connection name <name></name> and the 
>> <database>../syseroAppEngine.sqlite</database> didn't work so I added 
>> the path <database>$HOME/syseroProject/syseroAppEngine.sqlite</database>.
>> I remeber in the early summer the SQLite was creating a problem because 
>> it is a single local database.
>>     
>
> I would be surprised if environment variable substitution would be done
> within Dabo code. It's a shell level mechanism.
>
> Try yourself:
> u...@athlon28:~/tmp> ls > l.txt
> u...@athlon28:~/tmp> python
> Python 2.5.2 (r252:60911, Dec  1 2008, 17:47:46)
> [GCC 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036]] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>   
>>>> fd = open("$HOME/tmp/l.txt", "r")
>>>>         
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> IOError: [Errno 2] No such file or directory: '$HOME/tmp/l.txt'
>   
>
> Uwe
>   
b...@sysero-rkm1laptop:~$ ls > l.txt
b...@sysero-rkm1laptop:~$ python
Python 2.5.2 (r252:60911, Oct 5 2008, 19:29:17)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> fd =open("$HOME/tmp/l.txt", "r" )
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '$HOME/tmp/l.txt'
 >>>

Everything is running as expected. What I am trying to do is first 
create a draft that the Dabo users can correct before I add it to the 
Dabo Wiki on "How To use Class Designer" series. I want to cover the 
basic first then in the series add more subjects on "How To CD", like on 
adding menu, Status Bar Fields, Database and so on in the Class 
Designer. By doing this I hope to understand Dabo using the CD and hand 
coding special needs with in the CD. I am also explaining in the "How To 
CD" where added information in the Dabo Documentation and the Wiki for 
more detail info and examples. In turn I hope this will help new user 
and myself in getting more out of Dabo. I must split my time because I 
have my project that I need to complete using Dabo.

The problem I had was with my "How To use Class Designer" on making 
changes to the main.py so that the user can click on main to run the 
application. What happened was when I clicked on main.py the terminal 
window appeared and the closed. I sent to ED this part of the Emai.

Ed Leafe wrote:
 > On Jan 31, 2009, at 7:58 AM, Bob Sysero llc Dev wrote:
 >
 >
 >> Everything ran without a problem when I did a $ cd $HOME/temp/ 
HelloWorld
 >> and then
 >> python main.py. The Form came right up without any errors. I even moved
 >> the main into the ui directory and was able to click on the main and run
 >> the Form.
 >>
 >> Any ideas why dabo can't find ui directory where "HelloWorld.cdxml" when
 >> I click on the main.py from my current directory?
 >>
 >
 >
 > I don't know why it's not seeing the main.py location as your 
HomeDirectory. I just tried several variations, and they all worked as 
expected.
 >
 > If you want to dig a little deeper, modify the resolvePathAndUpdate() 
method in dabo/ui.uiwx/__init__.py. The second line of that method 
reads: "hd = app.HomeDirectory". Right after that add a line to display 
the value:
 >
 > dabo.ui.info("HomeDirectory = %s" % hd)
 >
 > Since you're running from the ui, use the dialog instead of 'print'.
 >
 >
 > -- Ed Leaf
Today I ran on my Ubuntu 8.04:

cd $HOME/src/dabo; svn up

Which has solved the problem.

The new version is:

Platform: GTK
Python Version: 2.5.2 on linux2
Dabo Version: Version 0.9.1; Revision 5009M
UI Version: 2.8.8.0 on wxGTK (gtk2)

Past News
The output was:
HomeDirectory = 
/home/bobsysero/temp/HelloWorld/home/bobsysero/temp/HelloWorld

The Home directory should be: /home/bobsysero/temp/HelloWorld

Ubuntu 8.04 and Ubuntu 8.10
Gnome

Platform: GTK
Python Version: 2.5.2 on linux2
Dabo Version: Version 0.9.0; Revision 4915M
UI Version: 2.8.8.0 on wxGTK (gtk2)

I decided to rerun cd $HOME/src/dabo; svn up

and the new version is:
Dabo Version: Version 0.9.1; Revision 5009M

This corrected the problem and I will get back to the How To CD and my 
project.

Thank You
Bob



_______________________________________________
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