File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 56, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 50, in execute_cmd
is_whitelisted(method)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 72, in is_whitelisted
raise frappe.PermissionError(‘Not Allowed, {0}’.format(method))
PermissionError: Not Allowed, <function make_titulo at 0x7f78f09ca140>
Solved this, i forget to declare @frappe.whitelist()
I commented the lines to test the function and returned:
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 56, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 914, in call
return fn(*args, **newargs)
TypeError: make_titulo() takes at least 6 arguments (5 given)
Error:
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 56, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 914, in call
return fn(*args, **newargs)
TypeError: make_titulo() takes at least 6 arguments (6 given)