From: Stas Z. <sta...@us...> - 2005-08-10 14:42:56
|
Update of /cvsroot/gmailagent/GA-Qgcm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24607 Modified Files: Contrgcm.py Added Files: MakeTarBall.py README filelist folderlist version.py Log Message: Added files needed to create a release. --- NEW FILE: version.py --- # used by the maketarball script and the about dialog VERSION='0.2' Index: Contrgcm.py =================================================================== RCS file: /cvsroot/gmailagent/GA-Qgcm/Contrgcm.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Contrgcm.py 7 Aug 2005 19:08:46 -0000 1.1.1.1 --- Contrgcm.py 10 Aug 2005 14:42:47 -0000 1.2 *************** *** 73,82 **** class GC: ! def __init__(self,name,pas): """Create a object to control the access to Gmail contacts. @name and @pas are the account and password. A NoDBaseError is raised when the local database can't be created. """ ! self.ga = libgmail.GmailAccount(name,pas) try: self._DBase = self.setup_database(name) --- 73,89 ---- class GC: ! def __init__(self,name,pas,ga=None): """Create a object to control the access to Gmail contacts. @name and @pas are the account and password. + @ga is a libgmail.GmailAccount object. It's assumed that the login method + is called. @ga should only be used if this class is used by another + program. This program should get it's own login object and then pass it + to us. A NoDBaseError is raised when the local database can't be created. """ ! if ga: ! self.ga = ga ! else: ! self.ga = libgmail.GmailAccount(name,pas) try: self._DBase = self.setup_database(name) --- NEW FILE: MakeTarBall.py --- #!/usr/bin/env python # make tarball! from version import VERSION import os def cleanup(*args): """Used by os.path.walk to traverse the tree and remove CVS dirs""" if os.path.split(args[1])[1] == "CVS": print "Remove ",args[1] os.system('rm -r %s' % args[1]) filelist = open('filelist', 'r') folderlist = open('folderlist', 'r') myFiles = filelist.readlines() myFolders = folderlist.readlines() os.system('mkdir gcm-qt_%s' % VERSION) for file in myFiles: os.system('cp %s gcm-qt_%s' % (file[:-1], VERSION)) for folder in myFolders: os.system('mkdir gcm-qt_%s/%s' % (VERSION, folder[:-1])) os.system('cp -r %s gcm-qt_%s' % (folder[:-1], VERSION)) # removing the CVS stuff os.path.walk('gcm-qt_%s' % VERSION,cleanup,None) print "\nCreate a GNU/Linux tarball..." try: execString = 'tar -czf gcm-qt_%s.tgz gcm-qt_%s/' % (VERSION, VERSION) print execString os.system(execString) except Exception,info: print info,"\nYou must have the tar package installed" else: print "Done.\n" print "Create a Windows compatible zipfile..." try: execString = 'zip -rq gcm-qt_%s.zip ./gcm-qt_%s' % (VERSION, VERSION) print execString os.system(execString) except Exception,info: print info,"\nYou must have the zip package installed." else: print "Done\n" os.system('rm -rf gcm-qt_%s' % VERSION) --- NEW FILE: filelist --- AddressEditDialog_forms.py Contrgcm.py GuiQTgcm.py LoginDialog_forms.py MainWinContacts_forms.py ModalPopUpDialog_forms.py Observers.py QgcmDialogs.py Qgcm.py version.py README INSTALL.sh --- NEW FILE: folderlist --- docs --- NEW FILE: README --- gcm-qt is a GUI to manage Gmail contacts and is part of the gmailagent project. It uses the QT widgetset and libgmail, you must make sure you have installed libgmail and pyqt before using gcm. gmailagent: http://gmailagent.sf.net libgmail: http://libgmail.sf.net pyqt: http://www.riverbankcomputing.co.uk/pyqt To install gcm-qt do as root: ./INSTALL.sh [Enter] This will install gcm-qt in /usr/local/... You can change the installation path by editing the INSTALL.sh file. gcm-qt is licensed under the GPL. See the file named COPYING for more information. You can reach the author here: st...@li... |