Roger Ineichen writes:
I have a problem with to port a PythonScript to Python. How can I use this in a Python Method the Python The ZPT looks like: _________________
<div tal:define="sort request/sort|string:id; reverse request/reverse|python:0; files python:here.getFiles(sort, reverse); start request/start|python:0; batch python:modules['ZTUtils'].Batch(files, size=8, start=start); previous python:batch.previous; next python:batch.next"> _________________
Python Script looks like: getFiles(self, sort='id', reverse=0) You did not pass an argument for "self".
Either remove the "self" from the "parameters" list or pass "here". Dieter