Show
Ignore:
Timestamp:
04/02/09 00:09:16 (4 years ago)
Author:
rezoo
Message:

テスト。エラーした箇所を修正。今日はここまで

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/python/tremolo/indications/foundation.py

    r31792 r31794  
    11#!/usr/bin/env python 
    22#-*- coding:utf-8 -*- 
     3 
     4import sys 
     5if "../" not in sys.path: sys.path.append("../") 
     6from assets.foundation import Asset 
    37 
    48class Indication (object): 
     
    2428                """コンストラクタです""" 
    2529                self.parent = parent 
    26                 self.asset  = asset 
     30                if issubclass(asset.__class__, Asset): 
     31                        self.asset  = asset 
     32                else: raise TypeError("value 'asset' is not valid.") 
    2733         
    2834        def getDescription(self): 
     
    4652        """ 
    4753        @classmethod 
    48         def isRealIndication(cls): return False 
     54        def isRealIndication(cls): return True 
    4955        @classmethod 
    5056        def getType(cls): return float 
     
    5359                """コンストラクタです。""" 
    5460                Indication.__init__(self, self, asset) 
    55                 self.children = self.[] 
     61                self.children = [] 
    5662                 
    5763        def evaluate(self, t=-1):