Пример #1
0
 def __init__(self, worldtalker):
     self.__wt = worldtalker
     self.__stats = tuct.tuct({
                     "armor"   : 1,
                     "attack"  : 1,
                     "sight"   : 1,
                     "energy"  : 1,
                     "speed"   : 5
                    })
Пример #2
0
 def __init__(self, worldtalker):
     self.__wt = worldtalker
     self.__stats = tuct.tuct({
         "armor": 1,
         "attack": 1,
         "sight": 1,
         "energy": 1,
         "speed": 5
     })
Пример #3
0
logger.debug("Installed: %s" %INSTALLED)
logger.debug("CURR_DIR: %s" %CURR_DIR)

WKCMOD_DIR = os.path.join(BASE_DIR, 'WKCmod')

DESCRIPTION="""wikicaptcha is a CAPTCHA implementation for Wikisource"""

EPILOG = """Copyright 2010 - Alex Brollo and Cristian Consonni (see AUTHORS file for details).
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version. 
This program has absolutely no warranty."""

WIKICAPTCHA = tuct.tuct(APPNAME = APPNAME,

    VERSION = VERSION,

    BASE_DIR = BASE_DIR,

    CURR_DIR = CURR_DIR,

    WKCMOD_DIR = WKCMOD_DIR,

    INSTALLED = INSTALLED,

    DESCRIPTION = DESCRIPTION,

    EPILOG = EPILOG 
           )

# ----- END application (meta)data -----
Пример #4
0
        if os.path.exists(installed):
            BASE_DIR = os.path.abspath(
                os.path.normpath(os.path.join(installed, '../')))
            INSTALLED = True

#if INSTALLED == None: raise IOError("Non sono riuscito a trovare la cartella di configurazione di %s" %APPNAME)

logger.debug("BASE_DIR: %s" % BASE_DIR)
logger.debug("Installed: %s" % INSTALLED)
logger.debug("CURR_DIR: %s" % CURR_DIR)

WKCMOD_DIR = os.path.join(BASE_DIR, 'WKCmod')

DESCRIPTION = """wikicaptcha is a CAPTCHA implementation for Wikisource"""

EPILOG = """Copyright 2010 - Alex Brollo and Cristian Consonni (see AUTHORS file for details).
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version. 
This program has absolutely no warranty."""

WIKICAPTCHA = tuct.tuct(APPNAME=APPNAME,
                        VERSION=VERSION,
                        BASE_DIR=BASE_DIR,
                        CURR_DIR=CURR_DIR,
                        WKCMOD_DIR=WKCMOD_DIR,
                        INSTALLED=INSTALLED,
                        DESCRIPTION=DESCRIPTION,
                        EPILOG=EPILOG)

# ----- END application (meta)data -----