How to manipulate list of dictionary

2008-08-26 Thread ajak_yahoo
Hi, Need some help, I have a list of dictionary as below, table = [{"Part #":"Washer","Po #":"AE00128","qty":100}, {"Part #":"Brake Pad","Po #":"AE00154","qty":150}, {"Part #":"Mesh","Po #":"AE00025","qty":320}, {"Part #":"Mouse","Po #":"AE00207","qty":120}, {"

Read dbf file as read only

2008-08-25 Thread ajak_yahoo
Hi, How can I access a foxpro dbf file from my python program. I just want to read it as a read only file. Regards, -- http://mail.python.org/mailman/listinfo/python-list

how to used pyodbc to connect foxpro table

2008-07-01 Thread ajak_yahoo
Good Morning to All, Can anyone help me to connect pyodbc to foxpro table. Below code can't works. import pyodbc cnxn = pyodbc.connect("DSN=sls_detl") Traceback (most recent call last): File "", line 1, in cnxn = pyodbc.connect("DSN=sls_detl") Error: ('S1000', "[S1000] [Microsoft][ODBC V

Send output to printer

2008-06-24 Thread ajak_yahoo
Need some help from you all, I already manage to write a program to print a packaging label. The output on screen is as below, Part Number : PWEEAA Quantity : 100 pcs Lot Number : 10A2008 Customer: ABC Pte. Ltd. My questions is how can I send this output to my Pa