Changeset 8355 for mauRepo/HPFos


Ignore:
Timestamp:
17/06/12 09:44:57 (7 years ago)
Author:
mnagni
Message:

retrieve the hostURL from the request
minimal home page

Location:
mauRepo/HPFos/trunk/src
Files:
1 added
11 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/HPFos/trunk/src/HPFos/molesSessionMiddleware.py

    r8348 r8355  
    11''' 
     2BSD Licence 
     3Copyright (c) 2012, Science & Technology Facilities Council (STFC) 
     4All rights reserved. 
     5 
     6Redistribution and use in source and binary forms, with or without modification,  
     7are permitted provided that the following conditions are met: 
     8 
     9    * Redistributions of source code must retain the above copyright notice,  
     10        this list of conditions and the following disclaimer. 
     11    * Redistributions in binary form must reproduce the above copyright notice, 
     12        this list of conditions and the following disclaimer in the documentation 
     13        and/or other materials provided with the distribution. 
     14    * Neither the name of the Science & Technology Facilities Council (STFC)  
     15        nor the names of its contributors may be used to endorse or promote  
     16        products derived from this software without specific prior written permission. 
     17 
     18THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"  
     19AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,  
     20THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR  
     21PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 
     22BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,  
     23OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF  
     24SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
     25HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
     26OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE  
     27OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
     28 
    229Created on 9 Jan 2012 
    330 
    4 @author: mnagni 
     31@author: Maurizio Nagni 
    532''' 
    633from libs.commons_db import DbManager 
  • mauRepo/HPFos/trunk/src/HPFos/osImpl/hpfos_conf.py

    r8354 r8355  
    4141    os_short_name = "Web Search" 
    4242    os_description = "A default description" 
    43     os = OpenSearchRequest(query, [atomResponse], os_short_name, \ 
    44                            os_description) 
    45     return OSEngine(os, 'http://localhost:8000')    
     43    os = OpenSearchRequest(query, [atomResponse], os_short_name, os_description) 
     44    return OSEngine(os)    
  • mauRepo/HPFos/trunk/src/HPFos/osImpl/myimpl.py

    r8354 r8355  
    7474         
    7575                         
    76     def generateResponse(self, result, queries, ospath, **kwargs): 
     76    def generateResponse(self, result, queries, osHostURL, **kwargs): 
    7777        """ 
    7878            @param result: a Result instance 
    7979            @param queries: 
    80             @param ospath 
     80            @param osHostURL 
    8181            @param kwargs:  
    8282        """ 
    8383        id = "" 
    84         ospath = self.generateLinkHref(ospath, result.id, self.extension, rel = None) 
     84        ospath = self.generateLinkHref(osHostURL, result.id, self.extension, rel = None) 
    8585         
    8686        #Generates the ATOM document 
  • mauRepo/HPFos/trunk/src/HPFos/urls.py

    r8352 r8355  
    1919) 
    2020 
    21 urlpatterns += patterns('HPFos.view.testview', 
    22     (r'test$', 'doSearch'), 
     21urlpatterns += patterns('HPFos.view.view', 
     22    (r'$', 'getHome'), 
    2323) 
    2424 
  • mauRepo/HPFos/trunk/src/HPFos/view/view.py

    r8352 r8355  
    11''' 
     2BSD Licence 
     3Copyright (c) 2012, Science & Technology Facilities Council (STFC) 
     4All rights reserved. 
     5 
     6Redistribution and use in source and binary forms, with or without modification,  
     7are permitted provided that the following conditions are met: 
     8 
     9    * Redistributions of source code must retain the above copyright notice,  
     10        this list of conditions and the following disclaimer. 
     11    * Redistributions in binary form must reproduce the above copyright notice, 
     12        this list of conditions and the following disclaimer in the documentation 
     13        and/or other materials provided with the distribution. 
     14    * Neither the name of the Science & Technology Facilities Council (STFC)  
     15        nor the names of its contributors may be used to endorse or promote  
     16        products derived from this software without specific prior written permission. 
     17 
     18THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"  
     19AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,  
     20THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR  
     21PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 
     22BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,  
     23OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF  
     24SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
     25HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
     26OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE  
     27OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
     28 
    229Created on 1 Nov 2011 
    330 
    4 @author: mnagni 
     31@author: Maurizio Nagni 
    532''' 
    633from django.shortcuts import render_to_response 
    734from django.core.context_processors import csrf 
    835from django.utils.safestring import mark_safe 
    9 from osImpl.myimpl import COLLECTION, OBSERVATION, RESULT 
    10 from settings import os_engine 
     36from HPFos.settings import os_engine 
     37from HPFos.osImpl.myimpl import COLLECTION, OBSERVATION, RESULT 
     38 
     39hostURL = 'http://localhost:8000' 
     40 
     41def _buildHostURL(request): 
     42    if request.is_secure(): 
     43        return 'https://%s' % (request.get_host()) 
     44    else: 
     45        return 'http://%s' % (request.get_host()) 
     46 
     47def getHome(request): 
     48    context = {} 
     49    context['hostURL'] = _buildHostURL(request) 
     50    return _dispatchResponse(request, 'homeTemplate', context) 
    1151 
    1252def getDescription(request, collection_guid = None, observation_guid = None, result_guid = None): 
    1353    ospath = _buildDescriptionOsPath(collection_guid, observation_guid, result_guid) 
    1454    response = os_engine.getDescription(ospath) 
    15     return _dispatchResponse(request, response) 
     55    context = {} 
     56    context['response'] = mark_safe(response) 
     57    return _dispatchResponse(request, 'responseTemplate', context) 
    1658 
    17 def _doSearch(request, format, collection_guid = None, observation_guid = None, result_guid = None):     
     59def _doSearch(request, iformat, collection_guid = None, observation_guid = None, result_guid = None): 
     60    host = _buildHostURL(request)    
    1861    #params = {'q': ['ice', 'snow']} 
    1962    params = request.GET.copy() 
     
    2568        params[RESULT] = result_guid                 
    2669     
    27     response = os_engine.doSearch(format, params_values = params, moles3EPB = request.moles3EPB) 
    28     return _dispatchResponse(request, response) 
     70    response = os_engine.doSearch(hostURL, iformat, params_values = params, moles3EPB = request.moles3EPB) 
     71    context = {} 
     72    context['response'] = mark_safe(response) 
     73    return _dispatchResponse(request, 'responseTemplate', context) 
    2974 
    30 def doSearchL0(request, format): 
    31     #params = {'q': ['ice', 'snow']} 
    32     return _doSearch(request, format) 
     75def doSearchL0(request, iformat): 
     76    return _doSearch(request, iformat) 
    3377 
    34 def doSearchL1(request, collection_guid, format): 
    35     return _doSearch(request, format, collection_guid) 
     78def doSearchL1(request, collection_guid, iformat): 
     79    return _doSearch(request, iformat, collection_guid) 
    3680 
    37 def doSearchL2(request, collection_guid, observation_guid, format): 
    38     return _doSearch(request, format, collection_guid, observation_guid) 
     81def doSearchL2(request, collection_guid, observation_guid, iformat): 
     82    return _doSearch(request, iformat, collection_guid, observation_guid) 
    3983 
    40 def doSearchL3(request, collection_guid, observation_guid, result_guid, format): 
    41     return _doSearch(request, format, collection_guid, observation_guid, result_guid)    
     84def doSearchL3(request, collection_guid, observation_guid, result_guid, iformat): 
     85    return _doSearch(request, iformat, collection_guid, observation_guid, result_guid)    
    4286 
    4387def _buildDescriptionOsPath(collection_guid = None, observation_guid = None, result_guid = None): 
    44     ospath = "%s/search/" % (os_engine.ospath) 
     88    ospath = "%s/search/" % (hostURL) 
    4589    if collection_guid: 
    4690        ospath = "%s%s/" % (ospath, collection_guid) 
     
    5195    return ospath         
    5296         
    53 def _dispatchResponse(request, response): 
    54     c = {} 
    55     c['response'] = mark_safe(response) 
    56     c.update(csrf(request)) 
    57     return render_to_response('responseTemplate', c)     
     97def _dispatchResponse(request, template, context): 
     98    context.update(csrf(request)) 
     99    return render_to_response(template, context)     
  • mauRepo/HPFos/trunk/src/libs/commons_db.py

    r8353 r8355  
    11''' 
     2BSD Licence 
     3Copyright (c) 2012, Science & Technology Facilities Council (STFC) 
     4All rights reserved. 
     5 
     6Redistribution and use in source and binary forms, with or without modification,  
     7are permitted provided that the following conditions are met: 
     8 
     9    * Redistributions of source code must retain the above copyright notice,  
     10        this list of conditions and the following disclaimer. 
     11    * Redistributions in binary form must reproduce the above copyright notice, 
     12        this list of conditions and the following disclaimer in the documentation 
     13        and/or other materials provided with the distribution. 
     14    * Neither the name of the Science & Technology Facilities Council (STFC)  
     15        nor the names of its contributors may be used to endorse or promote  
     16        products derived from this software without specific prior written permission. 
     17 
     18THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"  
     19AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,  
     20THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR  
     21PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 
     22BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,  
     23OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF  
     24SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
     25HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
     26OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE  
     27OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
     28 
    229Created on 17 Nov 2011 
    330 
    4 @author: mnagni 
     31@author: Maurizio Nagni 
    532''' 
    633from sqlalchemy import MetaData, create_engine 
  • mauRepo/HPFos/trunk/src/libs/epb.py

    r8346 r8355  
    11''' 
     2BSD Licence 
     3Copyright (c) 2012, Science & Technology Facilities Council (STFC) 
     4All rights reserved. 
     5 
     6Redistribution and use in source and binary forms, with or without modification,  
     7are permitted provided that the following conditions are met: 
     8 
     9    * Redistributions of source code must retain the above copyright notice,  
     10        this list of conditions and the following disclaimer. 
     11    * Redistributions in binary form must reproduce the above copyright notice, 
     12        this list of conditions and the following disclaimer in the documentation 
     13        and/or other materials provided with the distribution. 
     14    * Neither the name of the Science & Technology Facilities Council (STFC)  
     15        nor the names of its contributors may be used to endorse or promote  
     16        products derived from this software without specific prior written permission. 
     17 
     18THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"  
     19AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,  
     20THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR  
     21PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 
     22BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,  
     23OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF  
     24SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
     25HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
     26OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE  
     27OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
     28 
    229Created on 10 Jan 2012 
    330 
    4 @author: mnagni 
     31@author: Maurizio Nagni 
    532''' 
    633from sqlalchemy.orm import subqueryload 
  • mauRepo/HPFos/trunk/src/markup/opensearch/os_engine.py

    r8352 r8355  
    11''' 
     2BSD Licence 
     3Copyright (c) 2012, Science & Technology Facilities Council (STFC) 
     4All rights reserved. 
     5 
     6Redistribution and use in source and binary forms, with or without modification,  
     7are permitted provided that the following conditions are met: 
     8 
     9    * Redistributions of source code must retain the above copyright notice,  
     10        this list of conditions and the following disclaimer. 
     11    * Redistributions in binary form must reproduce the above copyright notice, 
     12        this list of conditions and the following disclaimer in the documentation 
     13        and/or other materials provided with the distribution. 
     14    * Neither the name of the Science & Technology Facilities Council (STFC)  
     15        nor the names of its contributors may be used to endorse or promote  
     16        products derived from this software without specific prior written permission. 
     17 
     18THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"  
     19AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,  
     20THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR  
     21PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 
     22BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,  
     23OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF  
     24SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
     25HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
     26OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE  
     27OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
     28 
    229Created on 24 May 2012 
    330 
    4 @author: kusanagi 
     31@author: Maurizio Nagni 
    532''' 
    633 
     
    2350    ''' 
    2451 
    25     def __init__(self, osRequest, ospath, osEngineHelper = OSEngineHelper()): 
     52    def __init__(self, osRequest, osEngineHelper = OSEngineHelper()): 
    2653        ''' 
    2754        Constructor 
     
    3158        ''' 
    3259        self.osRequest = osRequest 
    33         self.ospath = ospath 
    34         self.osEngineHelper = osEngineHelper                 
     60        self.osEngineHelper = osEngineHelper 
     61        self.osHostURL = 'http://localhost'              
    3562         
    36     def doSearch(self, mimetype, params_values, **kwargs): 
     63    def doSearch(self, hostURL, mimetype, params_values, **kwargs): 
     64        self.osHostURL = hostURL 
    3765        response = None 
    3866        for item in self.osRequest.responses: 
     
    4270            kwargs['params_values'] = params_values 
    4371            queries = QueryTag.queryWithRoleRequest(mimetype, self.osRequest.query.params_model, params_values) 
    44             return response.generateResponse(self.osRequest.query.doSearch(**kwargs), [queries], self.ospath, **kwargs) 
     72            return response.generateResponse(self.osRequest.query.doSearch(**kwargs), [queries], self.osHostURL, **kwargs) 
    4573        return None                 
    4674     
  • mauRepo/HPFos/trunk/src/markup/opensearch/query.py

    r8346 r8355  
    11''' 
     2BSD Licence 
     3Copyright (c) 2012, Science & Technology Facilities Council (STFC) 
     4All rights reserved. 
     5 
     6Redistribution and use in source and binary forms, with or without modification,  
     7are permitted provided that the following conditions are met: 
     8 
     9    * Redistributions of source code must retain the above copyright notice,  
     10        this list of conditions and the following disclaimer. 
     11    * Redistributions in binary form must reproduce the above copyright notice, 
     12        this list of conditions and the following disclaimer in the documentation 
     13        and/or other materials provided with the distribution. 
     14    * Neither the name of the Science & Technology Facilities Council (STFC)  
     15        nor the names of its contributors may be used to endorse or promote  
     16        products derived from this software without specific prior written permission. 
     17 
     18THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"  
     19AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,  
     20THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR  
     21PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 
     22BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,  
     23OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF  
     24SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
     25HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
     26OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE  
     27OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
     28 
    229Created on 24 May 2012 
    330 
    4 @author: kusanagi 
     31@author: Maurizio Nagni 
    532''' 
    633from xml.etree.ElementTree import Element 
  • mauRepo/HPFos/trunk/src/markup/template/atom.py

    r8346 r8355  
    11''' 
     2BSD Licence 
     3Copyright (c) 2012, Science & Technology Facilities Council (STFC) 
     4All rights reserved. 
     5 
     6Redistribution and use in source and binary forms, with or without modification,  
     7are permitted provided that the following conditions are met: 
     8 
     9    * Redistributions of source code must retain the above copyright notice,  
     10        this list of conditions and the following disclaimer. 
     11    * Redistributions in binary form must reproduce the above copyright notice, 
     12        this list of conditions and the following disclaimer in the documentation 
     13        and/or other materials provided with the distribution. 
     14    * Neither the name of the Science & Technology Facilities Council (STFC)  
     15        nor the names of its contributors may be used to endorse or promote  
     16        products derived from this software without specific prior written permission. 
     17 
     18THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"  
     19AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,  
     20THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR  
     21PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 
     22BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,  
     23OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF  
     24SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
     25HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
     26OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE  
     27OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
     28 
    229Created on 5 May 2012 
    330 
    4 @author: kusanagi 
     31@author: Maurizio Nagni 
    532''' 
    633from markup.template.osresponse import OSResponse 
  • mauRepo/HPFos/trunk/src/markup/template/osresponse.py

    r8352 r8355  
    11''' 
     2BSD Licence 
     3Copyright (c) 2012, Science & Technology Facilities Council (STFC) 
     4All rights reserved. 
     5 
     6Redistribution and use in source and binary forms, with or without modification,  
     7are permitted provided that the following conditions are met: 
     8 
     9    * Redistributions of source code must retain the above copyright notice,  
     10        this list of conditions and the following disclaimer. 
     11    * Redistributions in binary form must reproduce the above copyright notice, 
     12        this list of conditions and the following disclaimer in the documentation 
     13        and/or other materials provided with the distribution. 
     14    * Neither the name of the Science & Technology Facilities Council (STFC)  
     15        nor the names of its contributors may be used to endorse or promote  
     16        products derived from this software without specific prior written permission. 
     17 
     18THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"  
     19AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,  
     20THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR  
     21PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 
     22BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,  
     23OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF  
     24SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
     25HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
     26OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE  
     27OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
     28 
    229Created on 21 May 2012 
    330 
    4 @author: kusanagi 
     31@author: Maurizio Nagni 
    532''' 
    633from abc import abstractmethod 
Note: See TracChangeset for help on using the changeset viewer.