You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by ru...@apache.org on 2003/05/02 03:31:10 UTC

cvs commit: jakarta-gump/python/gump __init__.py

rubys       2003/05/01 18:31:10

  Modified:    python/gump __init__.py
  Log:
  Respect .timestamp file
  
  Revision  Changes    Path
  1.6       +8 -3      jakarta-gump/python/gump/__init__.py
  
  Index: __init__.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/__init__.py,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- __init__.py	28 Apr 2003 23:43:52 -0000	1.5
  +++ __init__.py	2 May 2003 01:31:10 -0000	1.6
  @@ -159,6 +159,11 @@
   # elements of the GOM should extend GumpBase or a subclass of GumpBase.
   ###############################################################################
   
  +timestamp=os.path.join(dir.base,'.timestamp')
  +if os.path.exists(timestamp):
  +  mtime=time.localtime(os.path.getmtime(timestamp))
  +  default.date = time.strftime('%Y%m%d',mtime)
  +
   class GumpBase(object):
     """Base class for the entire Gump object model.