Am 17.07.2008 um 12:41 schrieb Laurence Rowe:

I'd be interested to hear what you are using this for (other than to redirect to the default view of the newly created object).

Not a lot if the truth be told apart from the fact that sometimes you might want to go to the metadata form, other times to an edit form and others straight to a public view.

This is the code in CMFDefault.formlib.form

    def nextURL(self):
        obj = self._added_obj
        fti = obj.getTypeInfo()

        message = translate(self.status, self.context)
        if isinstance(message, unicode):
            message = message.encode(self._getBrowserCharset())
        return '%s/%s?%s' % (obj.absolute_url(), fti.immediate_view,

I hope I'm not confusing "initial" and "immediate" views!

Charlie Clark
Helmholtzstr. 20
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226

Zope-CMF maillist  -

See for bug reports and feature requests

Reply via email to