well, no, it would be field.titleString(null)... meaning that the
referenced object should be rendered in the context of no parent adapter.

I added this idea of a context for evaluating titles in ISIS-364 a week or
two ago.    It works rather well in the UI, ensuring that the title shown
in parented collections doesn't unnecessarily include the title component
of the parent itself.

I don't mind the titleString() being undeprecated, if you want, though.  As
I say...  it isn't the same as field.titleString(field), it's
field.titleString(null)

Cheers
Dan


On 25 March 2013 12:21, Robert Matthews <[email protected]> wrote:

> In the Mongo code there is a line that gets an object's title from the
> adapter using
>
>         field.titleString()
>
> but it is flagged as deprecated and the suggested new use (from line 58 in
> ObjectAdapter) would require me to say
>
>         field.titleString(field)
>
> which seems a bit silly to me. Has someone got a bit deprecation happy :-)?
>
> Rob
>

Reply via email to