[Zapp-cvs-commit] ZApp ZApp_CMFBase.py,1.27,1.28 ZApp_LOG.py,1.5,1.6
Brought to you by:
sspickle
|
From: <ssp...@us...> - 2004-02-05 17:30:08
|
Update of /cvsroot/zapp/ZApp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6560 Modified Files: ZApp_CMFBase.py ZApp_LOG.py Log Message: add some docs... clean up Index: ZApp_CMFBase.py =================================================================== RCS file: /cvsroot/zapp/ZApp/ZApp_CMFBase.py,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** ZApp_CMFBase.py 25 Jan 2004 20:58:44 -0000 1.27 --- ZApp_CMFBase.py 5 Feb 2004 17:27:32 -0000 1.28 *************** *** 46,49 **** --- 46,53 ---- class ZApp_CMFBase(FreeRangeDS, SkinnedFolder, ZApp_Base, ZApp_DublinCoreMixin, ZApp_MiscDataUser, ZApp_RelatedObject, ZApp_Replicator): + """ + Base class for ZApp objects stored in a CMF. + """ + meta_type = 'ZApp CMF Content' Index: ZApp_LOG.py =================================================================== RCS file: /cvsroot/zapp/ZApp/ZApp_LOG.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ZApp_LOG.py 6 Nov 2003 18:20:14 -0000 1.5 --- ZApp_LOG.py 5 Feb 2004 17:27:32 -0000 1.6 *************** *** 3,6 **** --- 3,7 ---- from zLOG import register_subsystem, LOG, INFO + ZAPP_PRINT_LOG=os.environ.get('ZAPP_PRINT_LOG',None) is not None ZAPP_DEBUG=os.environ.get('ZAPP_DEBUG',None) is not None ZAPP_DEBUG_BREAK=os.environ.get('ZAPP_DEBUG_BREAK',0) *************** *** 14,18 **** def ZApp_LOG(message, priority = INFO): ! if ZAPP_DEBUG or (priority > INFO): ! LOG('ZApp', priority, message) ! --- 15,21 ---- def ZApp_LOG(message, priority = INFO): ! if priority>INFO: ! if ZAPP_PRINT_LOG: ! print message ! elif ZAPP_DEBUG or (priority > INFO): ! LOG('ZApp', priority, message) |