IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 23, 2010, 3:38:03 PM (16 years ago)
Author:
Serge CHASTEL
Message:

Test report / product

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/sc_branches/psps_testing/psi/web01_configuration.py

    r29115 r29227  
    1 class Configuration:
     1from utilities.psps_logger import PsPsLogger
     2
     3class PsiConfiguration:
    24    """
    35    The configuration described as a class...
    46    """
    57    server = 'http://web01.psps.ifa.hawaii.edu/'
    6     authUrl = server + 'DFetch/WSDL/AuthService.php.wsdl'
    78    userID = 'schastel'
    89    password = 'd1str1ct13'
    910    schemaGroup = 'PS1_SCHEMA';
    1011    context     = 'PS1 3PI';
     12    authUrl = server + 'DFetch/WSDL/AuthService.php.wsdl'
    1113    jobsUrl = server + 'DFetch/WSDL/JobsService.php.wsdl'
     14
     15    @staticmethod
     16    def str():
     17        """
     18        >>> print PsiConfiguration.str()
     19        PsiConfiguration
     20          Server: http://web01.psps.ifa.hawaii.edu/
     21          User: schastel
     22          Password: d1str1ct13
     23          SchemaGroup: PS1_SCHEMA
     24          Context: PS1 3PI
     25          AuthUrl: http://web01.psps.ifa.hawaii.edu/DFetch/WSDL/AuthService.php.wsdl
     26          JobsUrl: http://web01.psps.ifa.hawaii.edu/DFetch/WSDL/JobsService.php.wsdl
     27        """
     28        return """Configuration
     29  Server: %s
     30  User: %s
     31  Password: %s
     32  SchemaGroup: %s
     33  Context: %s
     34  AuthUrl: %s
     35  JobsUrl: %s""" % (PsiConfiguration.server,
     36                    PsiConfiguration.userID,
     37                    PsiConfiguration.password,
     38                    PsiConfiguration.schemaGroup,
     39                    PsiConfiguration.context,
     40                    PsiConfiguration.authUrl,
     41                    PsiConfiguration.jobsUrl)
Note: See TracChangeset for help on using the changeset viewer.