Quote:
Originally Posted by Terisa de morgan
I have found a problem with templates and functions. You can see the message at the screen:
Attachment 156660
TEMPLATE ERROR Formatter: unknown function obt_reaf near obt_reaf... But books 50 and 51 have the same template... and it works in 2.84.
This is the code, I suppose it is not necessary but...
Spoiler:
Code:
def evaluate(self, formatter, kwargs, mi, locals):
res = ''
perc = formatter.get_value('#ple', [], kwargs)
leic = formatter.get_value('#lec', [], kwargs)
haySer = formatter.get_value('#cos', [], kwargs)
noti = formatter.get_value('#noti', [], kwargs)
res = '1'
if (haySer == ''):
if (perc == '100'):
res = '1'
else:
if (leic == 'Sí'):
res = '1'
else:
if (noti == 'Sí'):
res = '1'
else:
res = ''
return res
|
And it works now. There is something strange.