Malex / FrozenFW

A web framework, written in python
http://malexprojects.ath.cx/?p=FrozenFW
GNU General Public License v3.0
1 stars 0 forks source link

Switch to __import__ #21

Open Malex opened 13 years ago

Malex commented 13 years ago

Use import (or some kind of that, using imp module) instead of exec for plugins, writing a standard package for plugins (to import, like import frozen.abstract-plugin) which contains basic functions to manage any kind of need: a register function to add something to dispatch (without having to pass that in global dictionary), some way to add and modify classes (need to use a ""namespace"" object?), and so on.

Malex commented 13 years ago

register function could be a class with a call method, andd could be usable as decorator