Page MenuHome

Auto-Registration as utility function.
Closed, ArchivedPublicPATCH

Description

This patch makes class registration an opt-in function, in most cases 1 line in the existing register() function is enough.

- removes registration as an automatic action.
- adds a convenience function to register classes from a module (rather then registering all classes in a list as was done before).
- fixes bug [#24132]

Note:
- Applies to svn r34490
- Only updated addons: netrender and Renderfarm.fi, all other addons will be updated too if committed.

Event Timeline

Attaching new patch, this is much like the first except a metaclass is kept for collecting classes.
and the line the class is defined on is included in the exception (from a patch Martin made).

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Unknown Status.Aug 3 2011, 5:25 PM