Page MenuHome

Expose BKE_report() to RNA Window Manager API
Needs ReviewPublic

Authored by mangostaniko on Aug 26 2016, 1:38 PM.

Details

Summary

For an addon i wanted to use BKE_report() without using self.report() within an operators class scope.
Therefore added a similar function to the RNA Window Manager API that can be accesses via bpy.context.window_manager.report() and that writes to the ReportList owned by the Window Manager.

I am not actually using this now as i had to pass back to the operator in any cases of error anyway via custom exception to be able to cancel it properly, but i read about this in this blender.stackexchange post and it seems to be listed as TODO in the wiki so maybe it is helpful.

Diff Detail

Repository
rB Blender

Event Timeline

mangostaniko retitled this revision from to Expose BKE_report() to RNA Window Manager API.
mangostaniko updated this object.
mangostaniko set the repository for this revision to rB Blender.
mangostaniko added a project: BF Blender.
mangostaniko updated this object.

There a reason this is still in limbo? It'd be very useful.

There a reason this is still in limbo?

i think no one trusted for such decision making has looked at it yet.

It's ten lines of code.. is there really nobody who can review this? It's been sitting in limbo for two and a half years. This would be very useful for addon developers....

TonyG (TonyG) added a subscriber: TonyG (TonyG).

+1 easy review for a useful patch