Author: Bob Sysero llc Dev
Posted: 2008-11-12 10:14:07 Link
I am trying to run the Dabo HowTo in Wiki Create a OpenOffice
SpreadSheet to learn how to use in dabo Sqlite in memory with the
BizObj. I am getting a Syntax Error message when I try to run the
script that I created by pasting the example into the script. The sytax
error points to { memory: }. Any ideas about the correct form and I
will correct it in the Wiki.
con = dabo.db.dConnection(DbType="sqlite<a href="memory:">,
Database=</a>")
Bob
Author: Ed Leafe
Posted: 2008-11-12 10:22:51 Link
On Nov 12, 2008, at 9:14 AM, Bob Sysero llc Dev wrote:
> con = dabo.db.dConnection(DbType="sqlite<a href="memory:">,
> Database=</a>")
It should be:
dabo.db.dConnection(DbType="SQLite", DataBase=":memory:")
-- Ed Leafe
Author: Ed Leafe
Posted: 2008-11-12 10:28:10 Link
On Nov 12, 2008, at 9:14 AM, Bob Sysero llc Dev wrote:
> I am trying to run the Dabo HowTo in Wiki Create a OpenOffice
> SpreadSheet to learn how to use in dabo Sqlite in memory with the
> BizObj. I am getting a Syntax Error message when I try to run the
> script that I created by pasting the example into the script. The
> sytax
> error points to { memory: }. Any ideas about the correct form and I
> will correct it in the Wiki.
>
> con = dabo.db.dConnection(DbType="sqlite<a href="memory:">,
> Database=</a>")
The source for the page is fine, but apparently the pycode formatting
is getting confused by the ":memory:" text. Let me see if I can fix it.
-- Ed Leafe
Author: Ed Leafe
Posted: 2008-11-12 10:36:05 Link
On Nov 12, 2008, at 9:28 AM, Ed Leafe wrote:
> The source for the page is fine, but apparently the pycode formatting
> is getting confused by the ":memory:" text. Let me see if I can fix
> it.
Fixed.
-- Ed Leafe
Author: Bob Sysero llc Dev
Posted: 2008-11-12 10:51:34 Link
Ed Leafe wrote:
> On Nov 12, 2008, at 9:14 AM, Bob Sysero llc Dev wrote:
>
>
>> I am trying to run the Dabo HowTo in Wiki Create a OpenOffice
>> SpreadSheet to learn how to use in dabo Sqlite in memory with the
>> BizObj. I am getting a Syntax Error message when I try to run the
>> script that I created by pasting the example into the script. The
>> sytax
>> error points to { memory: }. Any ideas about the correct form and I
>> will correct it in the Wiki.
>>
>> con = dabo.db.dConnection(DbType="sqlite<a href="memory:">,
>> Database=</a>")
>>
>
>
> The source for the page is fine, but apparently the pycode formatting
> is getting confused by the ":memory:" text. Let me see if I can fix it.
>
>
> -- Ed Leafe
I wish I could help here because your time is more important on the
complex problems, but right now my knowledge with python is very limited
and down the road I will add my time into problems with dabo.
I did find a way to use winpdb in dabo by adding the line:
import rpdb2; rpdb2.start_embedded_debugger('password')
in my dabo script where my onHit methods are located I can then fire up winpdb to debugger.
I ran winpdb selected password to enter the word password. The last step was to select
attach to select my client rpdb.
The dabo.trace() is simpler to use because you go right into the pfb debugger.
iteam on my list is to learn how to use unit testing that is explained in the dabo wiki.
My objective is to try my best to keep my support time down.
Would you like to have me add to dabo wiki winpdb about what I learned?
Thank you
Bob
Thank you
Bob
Author: Ed Leafe
Posted: 2008-11-12 11:17:54 Link
On Nov 12, 2008, at 9:51 AM, Bob Sysero llc Dev wrote:
> Would you like to have me add to dabo wiki winpdb about what I
> learned?
Yes! You should feel free to update the wiki with whatever tidbits of
knowledge you pick up. That's the way wikis are supposed to work!
-- Ed Leafe
Author: Bob Sysero llc Dev
Posted: 2008-11-12 11:21:39 Link
Ed Leafe wrote:
> On Nov 12, 2008, at 9:51 AM, Bob Sysero llc Dev wrote:
>
>
>> Would you like to have me add to dabo wiki winpdb about what I
>> learned?
>>
>
> Yes! You should feel free to update the wiki with whatever tidbits of
> knowledge you pick up. That's the way wikis are supposed to work!
>
>
> -- Ed Leafe
I make the changes to the wiki.
Bob
Author: Uwe Grauer
Posted: 2008-11-12 11:54:43 Link
Bob Sysero llc Dev wrote:
>
> I did find a way to use winpdb in dabo by adding the line:
>
> import rpdb2; rpdb2.start_embedded_debugger('password')
>
> in my dabo script where my onHit methods are located I can then fire up winpdb to debugger.
> I ran winpdb selected password to enter the word password. The last step was to select
> attach to select my client rpdb.
>
> The dabo.trace() is simpler to use because you go right into the pfb debugger.
> iteam on my list is to learn how to use unit testing that is explained in the dabo wiki.
> My objective is to try my best to keep my support time down.
>
> Would you like to have me add to dabo wiki winpdb about what I learned?
>
> Thank you
> Bob
You can even start your script which you want to debug like this:
"winpdb script2debug.py"
When the debugger window is up you can set a breakpoint where you want
to stop execution. Then press the "Go"-button.
Uwe
Author: Bob Sysero llc Dev
Posted: 2008-11-12 12:49:47 Link
Uwe Grauer wrote:
> Bob Sysero llc Dev wrote:
>
>> I did find a way to use winpdb in dabo by adding the line:
>>
>> import rpdb2; rpdb2.start_embedded_debugger('password')
>>
>> in my dabo script where my onHit methods are located I can then fire up winpdb to debugger.
>> I ran winpdb selected password to enter the word password. The last step was to select
>> attach to select my client rpdb.
>>
>> The dabo.trace() is simpler to use because you go right into the pfb debugger.
>> iteam on my list is to learn how to use unit testing that is explained in the dabo wiki.
>> My objective is to try my best to keep my support time down.
>>
>> Would you like to have me add to dabo wiki winpdb about what I learned?
>>
>> Thank you
>> Bob
>>
>
> You can even start your script which you want to debug like this:
> "winpdb script2debug.py"
>
> When the debugger window is up you can set a breakpoint where you want
> to stop execution. Then press the "Go"-button.
>
> Uwe
Want me to add to the wiki:
You can even start your script which you want to debug like this:
"winpdb script2debug.py"
When the debugger window is up you can set a breakpoint where you want
to stop execution. Then press the "Go"-button.
Thank you
Bob
Author: Uwe Grauer
Posted: 2008-11-12 13:01:29 Link
Bob Sysero llc Dev wrote:
> Want me to add to the wiki:
>
> You can even start your script which you want to debug like this:
> "winpdb script2debug.py"
>
> When the debugger window is up you can set a breakpoint where you want
> to stop execution. Then press the "Go"-button.
You don't have to add this to the wiki.
I just wanted to show a way to debug in winpdb without all the
hassle to set up client server debugging.
Uwe