Restructure our python module. A lot.

This commit is contained in:
Raphael Michel
2015-02-14 17:55:13 +01:00
parent cf18f3e200
commit 077413f41c
117 changed files with 193 additions and 163 deletions

View File

@@ -0,0 +1,17 @@
from django.apps import AppConfig
from pretix.base.plugins import PluginType
class TestDummyApp(AppConfig):
name = 'pretix.plugins.testdummy'
verbose_name = '.testdummy'
class PretixPluginMeta:
type = PluginType.RESTRICTION
name = '.testdummy'
version = '1.0.0'
def ready(self):
from . import signals # NOQA
default_app_config = 'pretix.plugins.testdummy.TestDummyApp'

View File

View File

@@ -0,0 +1,9 @@
from django.dispatch import receiver
from pretix.base.signals import determine_availability
@receiver(determine_availability)
def availability_handler(sender, **kwargs):
kwargs['sender'] = sender
return kwargs