[Zope] How to get batch size variable in ZPT

bding bding@usc.edu
Wed, 26 Jun 2002 14:05:05 -0700 (PDT)

I have tried the following, but it always give me an error:
exceptions.TypeError on unsupported operand types for + in ""

"ssize" is a variable in the form.
Can anybody give me an explanation?

========== code code code =================
<body tal:define="results python:here.objectValues('File');
    start request/start | python:0;
    batch_size request/ssize | python:5;
    batch python:modules['ZTUtils'].Batch(results, size=batch_size,
start=start, orphan=0);
    previous python:batch.previous;
    next python:batch.next">