def getAllPages(referenceable, methodName, *args, **kw):
 d = defer.Deferred()
 referenceable.callRemote(methodName, CallbackPageCollector(d.callback), *args, **kw)
 return d

def getAllPages ( referenceable , methodName , * args , ** kw ) : d = defer . Deferred ( ) referenceable . callRemote ( methodName , CallbackPageCollector ( d . callback ) , * args , ** kw ) return d
a utility method that will call a remote method which expects a pagecollector as the first argument .