View Single Post
Old 01-01-2024, 08:19 AM   #1
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,643
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Problem with defined function in templates

Hello,

I think I've already had this problem but I don't remember where to look at for solving it.

I've got some functions defined in bbdd to use in templates. However, they don't appear now when I query the defined functions, only the standard ones appear. The debug log shows the following information (obt_lei is one of my functions):

Spoiler:
Traceback (most recent call last):
File "calibre\utils\formatter.py", line 1966, in safe_format
File "calibre\utils\formatter.py", line 1844, in evaluate
File "calibre\utils\formatter.py", line 1684, in _eval_program
File "calibre\utils\formatter.py", line 460, in program
File "calibre\utils\formatter.py", line 473, in expression_list
File "calibre\utils\formatter.py", line 614, in top_expr
File "calibre\utils\formatter.py", line 617, in or_expr
File "calibre\utils\formatter.py", line 625, in and_expr
File "calibre\utils\formatter.py", line 636, in not_expr
File "calibre\utils\formatter.py", line 639, in string_binary_expr
File "calibre\utils\formatter.py", line 647, in compare_expr
File "calibre\utils\formatter.py", line 658, in add_subtract_expr
File "calibre\utils\formatter.py", line 666, in times_divide_expr
File "calibre\utils\formatter.py", line 680, in unary_plus_minus_expr
File "calibre\utils\formatter.py", line 767, in expr
File "calibre\utils\formatter.py", line 473, in expression_list
File "calibre\utils\formatter.py", line 614, in top_expr
File "calibre\utils\formatter.py", line 617, in or_expr
File "calibre\utils\formatter.py", line 625, in and_expr
File "calibre\utils\formatter.py", line 636, in not_expr
File "calibre\utils\formatter.py", line 639, in string_binary_expr
File "calibre\utils\formatter.py", line 647, in compare_expr
File "calibre\utils\formatter.py", line 658, in add_subtract_expr
File "calibre\utils\formatter.py", line 666, in times_divide_expr
File "calibre\utils\formatter.py", line 680, in unary_plus_minus_expr
File "calibre\utils\formatter.py", line 760, in expr
File "calibre\utils\formatter.py", line 358, in error
ValueError: Formatter: Función desconocida obt_lei cerca de 'obt_lei' en la línea 2


Where can I check to try to debug the error?

Thanks in advance.
Terisa de morgan is offline   Reply With Quote