Commit graph

10 commits

Author SHA1 Message Date
Emil Stenström
cbe2bcc9c9 Use six to allow metaclass usage in both Python 2 and 3. 2019-11-24 10:57:55 +01:00
Emil Stenström
096057b33d Use built-in django form assets instead of custom logic. 2019-11-24 10:31:23 +01:00
Emil Stenström
ebb180c540 Use list instead of tuple to avoid errors with missing comma. 2019-11-23 19:26:16 +01:00
Emil Stenström
33b1930ed5 Dependencies are the same for all instances, so convert to classmethod. 2015-06-14 14:28:43 +02:00
Emil Stenström
6492081b64 Add render() and render_dependencies() to Compoent. 2015-06-12 22:15:09 +02:00
Emil Stenström
31261ece08 Add a basic Component class. 2015-06-11 21:14:21 +02:00
Emil Stenström
df22a4049f Move registry to separate file. 2015-06-11 21:11:13 +02:00
Emil Stenström
ebf4ac1d20 Add way to unregister components. 2015-06-11 20:52:46 +02:00
Emil Stenström
00bd40aaaf Don't allow registering the same component twice. 2015-06-11 20:47:35 +02:00
Emil Stenström
313852ce21 A simple ComponentRegistry to store components. 2015-06-11 20:42:16 +02:00