From: Kevin A. <al...@se...> - 2001-08-23 00:40:18
|
The addresses sample can now import Outlook contacts. I have no idea what kinds of errors will occur when 'addresses' is run on a box without the win32 and COM extensions (*nix), nor do I know what happens when Outlook is not installed on a machine, so please let me know and I'll add more try/except blocks. I added a menubar derived from the textIndexer sample, New Card, and Delete Card options. I haven't done "Find" yet. Data is automatically saved as you move from card to card and written to disk when you quit! I'm saving to a userdata.txt file in order to avoid trashing the original data.txt file. I think that 'addresses' and 'textIndexer' will be nice samples for us to experiment on data storage models for the framework. Given how quickly I did this, I'm sure there are logic bugs. I know there are some import problems with the Outlook data, but it works reasonably well. Enjoy, ka ps. Importing Outlook data is pretty slow and it eats up all your CPU while it is working, so be patient. Also, if you've installed the Microsoft Outlook virus patches, you'll have to grant Python access to your contacts or the import will fail. > -----Original Message----- > From: pyt...@li... > [mailto:pyt...@li...]On Behalf Of Kevin > Altis > Sent: Wednesday, August 22, 2001 11:57 AM > To: pythoncard-Users > Subject: [Pythoncard-users] addresses sample > > > I've checked in the initial port of the addresses sample > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pythoncard/PythonCa > rdPrototyp > e/samples/addresses/ > > I included the HyperTalk script used for the conversion (script.txt), the > output of the layout information (fields.txt), the data from the fields > (data.txt), a readme.txt describing the purpose of this sample, and a > notes.txt describing the conversion process in detail. > > When the addresses sample starts up it automatically imports the list in > data.txt and you can move back and forth between the two "cards" of data. > > Later today I plan to hook up the New Card, Delete Card, and Find buttons, > and a menubar. The first thing I need to do is get the > transparent saves of > the data going so that as you go to the previous and next records > ('cards') > and quit the application the data is saved for you. I'll add support for > importing Outlook data at some point, since I use Outlook and have a data > set to test against. > > I realize the telephone fields are a bit small given the default font. I'm > gonna leave them as is until we have font support hooked up. > > If you have developer cvs access, please work on a copy of the addresses > sample, so that you don't end up accidentally checking in a modified > data.txt file. > > ka > > > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > http://lists.sourceforge.net/lists/listinfo/pythoncard-users > |