Alternatively, one could drop

>>   Resource
>>     +get_resource_manager( env ) : IResourceManager // new method

and simply call env.get_resource_manager( <ResourceInstance>.realm
).does_resource_exist( <ResourceInstance> )

This would make the api even less redundant.



>
>
> I must correct myself. Somewhere in between thinking and writing this down
> must have been a loophole...
>
> Resource.exists actually needs an instance of the environment, therefore,
> the property cannot exist. Instead one would have to use
>
>>   IResourceManager
>>     +does_resource_exist( resource_or_resource_id ) : boolean //new
>> method
>
>>   Resource
>>     +get_resource_manager( env ) : IResourceManager // new method
>
> so that, upon <ResourceInstance>.get_resource_manager( env
> ).does_resource_exist( <ResourceInstance> )
>
>
> Regards,
>
> Carsten
>
>
> --
>
> Carsten Klein
> Mobil +491 577 666 256 5
> [email protected]
>
> axn software UG (haftungsbeschränkt)
> Wipperfürther Str. 278, 51515 Kürten
>
> Geschäftsführung Carsten Klein
> HRB 66732, Gerichtsstand Amtsgericht Bergisch Gladbach
> Steuernr. 204/5740/0835, USt-IdNr. DE 266 540 939
>
> Telefon +492 268 801 285, Telefax +492 268 801 285
> www.axn-software.de, [email protected]
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Development" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/trac-dev?hl=en.
>
>


--

Carsten Klein
Mobil +491 577 666 256 5
[email protected]

axn software UG (haftungsbeschränkt)
Wipperfürther Str. 278, 51515 Kürten

Geschäftsführung Carsten Klein
HRB 66732, Gerichtsstand Amtsgericht Bergisch Gladbach
Steuernr. 204/5740/0835, USt-IdNr. DE 266 540 939

Telefon +492 268 801 285, Telefax +492 268 801 285
www.axn-software.de, [email protected]


-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to