Changeset 2592

Show
Ignore:
Timestamp:
08/24/07 02:32:29 (1 year ago)
Author:
mape
Message:

TimeVisualizerPlugin: new version: 0.3

  • fixed license file (From MIT to BDS which was already in init.py)
  • url to trac-hacks
  • Better NULL & empty string handling, should fix: re #1965
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • timevisualizerplugin/0.10/LICENSE.txt

    r2586 r2592  
    1 Copyright (c) 2007 Markus Pelkonen 
     1Copyright (C) 2007 Markus Pelkonen 
     2All rights reserved. 
    23 
    3 Permission is hereby granted, free of charge, to any person 
    4 obtaining a copy of this software and associated documentation 
    5 files (the "Software"), to deal in the Software without 
    6 restriction, including without limitation the rights to use, 
    7 copy, modify, merge, publish, distribute, sublicense, and/or sell 
    8 copies of the Software, and to permit persons to whom the 
    9 Software is furnished to do so, subject to the following 
    10 conditions: 
     4Redistribution and use in source and binary forms, with or without 
     5modification, are permitted provided that the following conditions 
     6are met: 
    117 
    12 The above copyright notice and this permission notice shall be 
    13 included in all copies or substantial portions of the Software. 
     8 1. Redistributions of source code must retain the above copyright 
     9    notice, this list of conditions and the following disclaimer. 
     10 2. Redistributions in binary form must reproduce the above copyright 
     11    notice, this list of conditions and the following disclaimer in 
     12    the documentation and/or other materials provided with the 
     13    distribution. 
     14 3. The name of the author may not be used to endorse or promote 
     15    products derived from this software without specific prior 
     16    written permission. 
    1417 
    15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
    16 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 
    17 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 
    18 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 
    19 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 
    20 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
    21 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 
    22 OTHER DEALINGS IN THE SOFTWARE. 
     18THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 
     19OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
     20WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
     21ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 
     22DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
     23DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 
     24GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
     25INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 
     26IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 
     27OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 
     28IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  • timevisualizerplugin/0.10/tractimevisualizerplugin/impl.py

    r2586 r2592  
    8484 
    8585    def tofloat(obj): 
    86         """Converts object to float even if comma is used instead of dot""" 
     86        """Converts object to float. Accepts bot dot and comma as decimal separator. If object is None or empty string, 0.0 is returned.""" 
    8787        if isinstance(obj,float): 
    8888            return obj 
     89        if not obj: # None or empty string 
     90            return 0.0 
    8991        if isinstance(obj,str) or isinstance(obj,unicode): 
    9092            return float(obj.replace(",",".")) 
  • timevisualizerplugin/0.10/tractimevisualizerplugin/__init__.py

    r2586 r2592  
    33from tractimevisualizerplugin import * 
    44 
    5 __version__ = '0.2
    6 __url__ = 'http://trac.edgewall.org/
     5__version__ = '0.3
     6__url__ = 'http://trac-hacks.org/wiki/TimeVisualizerPlugin
    77__author__ = 'Markus Pelkonen' 
    88__copyright__ = 'Copyright (C) 2007 Markus Pelkonen'