View Single Post
Old 05-11-2017, 01:46 PM   #117
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
I have found a problem with templates and functions. You can see the message at the screen:
Click image for larger version

Name:	Error.JPG
Views:	307
Size:	34.3 KB
ID:	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

Last edited by Terisa de morgan; 05-11-2017 at 01:50 PM.
Terisa de morgan is offline   Reply With Quote