On Nov 11, 2006, at 2:50 PM, Carl Karsten wrote:

> I have a feeling I will be venturing into framework development.
>
> Talk to Feltman's - fear me!!

        Oh, I do!  ;-)

        That's why I think that learning Python is Step One. It's hard to do  
complex stuff like framework dev until you can think and code  
fluently in the language. Fortunately, Python is probably the  
quickest language to become proficient in.

> I want to have some clue how to do this:
>
> "Next step is to use pure python (probably at
> the interactive console) to connect to the driver, get a cursor,  
> execute
> the select statement, and view the results."

        Have you looked at the grid populating example on the wiki? That's a  
good example of how to do it in Dabo.

        In pure Python, it would be more like:

import MySQLdb
conn = MySQLdb.connect(<connect info>)
curs = conn.cursor()
count = curs.execute("select first, last, mi from people")
# Show the results
print "%s records returned" % count
print curs.fetchall()

> For instance, how would you do these 2 things in a debugging  
> session (so only
> using 'standard' python, no suspicious stuff:
>
> 1. select iid, ccity from zipcodes where cstateprov = 'za' and  
> print the 2
> values to the console, much like issuing that at the mysql> prompt.
>
> 2. hook a UI to a variable, or whatever UI's edit.  I have no idea  
> what this
> entails.  If it is more then 10 lines, forget I asked.
>
> This is a bit more complex than what I expect for #2, but here is  
> some code I
> just wrote to help debug a VFP grid problem:
> http://fox.wikis.com/wc.dll?Wiki~SampleGridPrg

        Check out the Wiki example first, and let me know if that helps.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to