startling/cytoplasm-blog-controller — Issue #4: pagination broken?
Author: pjv
Created: 2012-01-26 20:41:12+00:00
State: open

if i have more posts than the posts_per_page defined in the Blog_Controller class, i get the following traceback:

~~~~
=>cytoplasm serve -r
======================================================================
Serving your site on port 8080...
======================================================================
Traceback (most recent call last):
File "/Volumes/hd/Users/paul/development/virtualenvs/cyto/bin/cytoplasm", line 7, in
execfile(__file__)
File "/Volumes/hd/Users/paul/development/virtualenvs/cyto/cytoplasm/scripts/cytoplasm", line 108, in
args.func(**vars(args))
File "/Volumes/hd/Users/paul/development/virtualenvs/cyto/cytoplasm/scripts/cytoplasm", line 36, in serve_site
cytoplasm.server.serve(port, rebuild)
File "/Volumes/hd/Users/paul/development/virtualenvs/cyto/cytoplasm/cytoplasm/server.py", line 27, in serve
cytoplasm.build()
File "/Volumes/hd/Users/paul/development/virtualenvs/cyto/cytoplasm/cytoplasm/build.py", line 50, in build
controller_object()
File "_controllers/blog/__init__.py", line 137, in __call__
name = os.path.join("%s", "%d.html" % (directory, n))
TypeError: %d format: a number is required, not str
~~~~

and while we are talking about posts_per_page, should that be a parameter in _config.py?