Beiträge von stevchen99

    hallo,

    ich habe 3 files, 2 html und 1 python.

    die erste ID:Input

    und dann die python, ID:Calculated

    Code
    n = first + second
    return n

    zum letzt, ID:Result

    HTML
    <html> 
     <body> 
    
      <span tal:content="first:int"></span> +
      <span tal:content="second:int"></span> 
      Result:
     <span tal:content="python: here.Calculated(first,second)" ></span> [/b] </span> </body> </html>

    leider wenn ich ausfuhre bekomme ich diese error:
    Error Type: NameError
    Error Value: global name 'first' is not defined

    ich habe doch definiert first:int

    mfg,
    Stevchen