app/soc/logic/system.py
changeset 578 0f34318f5693
parent 114 9998e95ce609
child 1307 091a21cf3627
equal deleted inserted replaced
577:e7cb5819f7e9 578:0f34318f5693
    20 __authors__ = [
    20 __authors__ = [
    21   '"Todd Larsen" <tlarsen@google.com>',
    21   '"Todd Larsen" <tlarsen@google.com>',
    22   ]
    22   ]
    23 
    23 
    24 
    24 
       
    25 import os
    25 import settings
    26 import settings
    26 
    27 
    27 
    28 
    28 def isDebug():
    29 def isDebug():
    29   """Returns True if Melange application is running in "debug mode".
    30   """Returns True if Melange application is running in "debug mode".
    30   
    31   
    31   "Debug mode" is currently determined from settings.DEBUG but may become
    32   "Debug mode" is currently determined from settings.DEBUG but may become
    32   more sophisticated in the future.
    33   more sophisticated in the future.
    33   """
    34   """
    34   return settings.DEBUG
    35   return settings.DEBUG
       
    36 
       
    37 def getAppVersion():
       
    38   """Returns the Google App Engine "version" of the running instance.
       
    39   """
       
    40   return os.environ.get('CURRENT_VERSION_ID')
       
    41