Hi Daniel,

* Daniel Herzig <daniel.her...@outlook.at> wrote:
> Karl Voit <devn...@karl-voit.at> writes:
>
> After some trying I found that the variables as set in the source-code
> header need standard values set:
>
> #+NAME: classificationfm
> #+BEGIN_SRC python :var prob="high" :var impact="high"
>   if prob == "high" and impact == "high":
>       return "A"
>   if prob == "low" and impact == "high":
>       return "B"
>   if prob == "high" and impact == "low":
>       return "C"
>   if prob == "low" and impact == "low":
>       return "D"
> #+END_SRC
>
> If I don't set them I get exactly the same errors as you. Like this I
> get the following:
>
>| prob | impact | class |
>|------+--------+-------|
>| high | high   | A     |
>| low  | high   | B     |
>| high | low    | C     |
>| low  | low    | D     |
> #+TBLFM: @2$3..@>$3='(org-sbe classificationfm (prob $$1) (impact $$2))
>
> Evaluation is being asked for each line then.

Thanks for the workaround to circumvent the bug. Now, it's working
with my older Org as well.

Is somebody fixing the bug in Org as well? (Or adding a statement to
the manual?)

-- 
get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <
Personal Information Management > http://Karl-Voit.at/tags/pim/
Emacs-related > http://Karl-Voit.at/tags/emacs/


Reply via email to