home · contact · privacy
Server: Refactor thingproliferation plugin hooks.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 27 Feb 2016 11:06:22 +0000 (12:06 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 27 Feb 2016 11:06:22 +0000 (12:06 +0100)
server/config/thingproliferation.py
server/thingproliferation_helpers.py

index 6074f36a112c66778bcf19c35cb917aa5e9c9435..a8382d683718cf3e00977ff903b3d5bfffa23af3 100644 (file)
@@ -7,7 +7,5 @@ import server.thingproliferation_helpers
 
 
 field_spreadable = server.thingproliferation_helpers.field_spreadable
-thingprol_plugin_conditions = \
-    server.thingproliferation_helpers.thingprol_plugin_conditions
-thingprol_plugin_post_create_hook = \
-    server.thingproliferation_helpers.thingprol_plugin_post_create_hook
+thingprol_plugin_conditions = lambda x: True
+thingprol_plugin_post_create_hook = lambda x: None
index f784340d43620aad3b0d831b031b56813956c6fc..df0231397c8c8715641027e11c6f18fd458f7c58 100644 (file)
@@ -8,9 +8,3 @@ from server.config.world_data import symbols_passable
 
 def field_spreadable(field_type, ignore):
     return field_type in symbols_passable
-
-def thingprol_plugin_conditions(ignore):
-    return True
-
-def thingprol_plugin_post_create_hook(ignore):
-    pass