class GeoHash(metaclass=Object):
    name = "Geohash"
    geohash = Attribute("Geohash value", ValueType.String)
    geohash_size = Attribute("Geohash size", ValueType.Integer)
    IdentAttrs = [geohash]
    CaptionAttrs = [geohash, geohash_size]
    Image = Utils.base64string(r"C:\LampyreExamples\Googles\geohash_icon.png")
예제 #2
0
class ShareNFS(metaclass=Object):
    FilePath = Attributes.FilePath
    Filename = Attributes.System.Filename
    IdentAttrs = [FilePath]
    CaptionAttrs = [Filename]
    Image = Utils.base64string(
        join_path('../static/icons/common', 'directory.png'))
예제 #3
0
class NamecoinAddress(metaclass=Object):
    name = "Namecoin address"
    namecoint_address = Attribute("Namecoin address", ValueType.String)
    namecoint_address_short = Attribute("Namecoin address (short)", ValueType.String)
    IdentAttrs = [namecoint_address]
    CaptionAttrs = [namecoint_address_short]
    # some changes
    if exists_file(r"images\namecoin.png"):
        Image = Utils.base64string(r"images\namecoin.png")
    else:
        try:
            Image = requests.get(f"http://{SERVER_RESOURCE}/objects/ico/{namecoin_icon}", timeout=3).text
        except:
            pass
예제 #4
0
class NamecoinTXid(metaclass=Object):
    name = "Namecoin transaction"
    txid = Attribute("Transaction id", ValueType.String)
    txid_short = Attribute("Transaction id (short)", ValueType.String)
    IdentAttrs = [txid]
    CaptionAttrs = [txid_short]
    # some changes
    if exists_file(r"images\TX.png"):
        Image = Utils.base64string(r"images\TX.png")
    else:
        try:
            Image = requests.get(f"http://{SERVER_RESOURCE}/objects/ico/{tx_icon}", timeout=3).text
        except:
            pass