>class UnorderedOrdering(object): > """ This implementation provides no ordering. """ > implements(IOrdering) > adapts(IOrderableFolder)
> ...
> def getObjectPosition(self, id): > return None
>...end of file...
Indeed, there you are.
It shows that Plone's "nextprevious" has a weakness: it should automatically handle "unordered" folders -- and for the moment fails to do so. But you have already filed a bug report for this.
Note: an important issue with debugging is when to use "next" (step over call) and "step" (step into call). You use next to step over calls that are unlikely to contribute to the analysis of the current problem. Infrastructure calls (such as adapter lookups) fall under this category. You use "step" to find out about details in the called function. Often, you must step into a function ("getId" in your example) even when you do not really want to (e.g. when the uninteresting call is on the same line as an interesting one). In this case, you can use "return" to quickly leave the called function again. Things like this will get optimized with experience.
-- Dieter
--------------------------------------------------------------------------- --- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Plone-Users mailing list Plone-Us...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plone-users