Remove prototype init from evennia init
This commit is contained in:
parent
498a031662
commit
1593a92d46
5 changed files with 18 additions and 11 deletions
|
|
@ -363,9 +363,9 @@ def _init():
|
||||||
# delayed starts - important so as to not back-access evennia before it has
|
# delayed starts - important so as to not back-access evennia before it has
|
||||||
# finished initializing
|
# finished initializing
|
||||||
GLOBAL_SCRIPTS.start()
|
GLOBAL_SCRIPTS.start()
|
||||||
from .prototypes import prototypes
|
# from .prototypes import prototypes
|
||||||
prototypes.load_module_prototypes()
|
# prototypes.load_module_prototypes()
|
||||||
del prototypes
|
# del prototypes
|
||||||
|
|
||||||
|
|
||||||
def set_trace(term_size=(140, 80), debugger="auto"):
|
def set_trace(term_size=(140, 80), debugger="auto"):
|
||||||
|
|
|
||||||
|
|
@ -1669,8 +1669,8 @@ class TestBuilding(EvenniaCommandTest):
|
||||||
self.call(building.CmdScripts(), "Obj", "No scripts defined on Obj")
|
self.call(building.CmdScripts(), "Obj", "No scripts defined on Obj")
|
||||||
self.call(
|
self.call(
|
||||||
building.CmdScripts(),
|
building.CmdScripts(),
|
||||||
"Obj = scripts.Script",
|
"Obj = scripts.scripts.DefaultScript",
|
||||||
"Script scripts.Script successfully added"
|
"Script scripts.scripts.DefaultScript successfully added"
|
||||||
)
|
)
|
||||||
self.call(
|
self.call(
|
||||||
building.CmdScripts(),
|
building.CmdScripts(),
|
||||||
|
|
@ -1690,25 +1690,25 @@ class TestBuilding(EvenniaCommandTest):
|
||||||
self.call(building.CmdScripts(), "/stop Obj", "Script on Obj Stopped - ")
|
self.call(building.CmdScripts(), "/stop Obj", "Script on Obj Stopped - ")
|
||||||
|
|
||||||
self.call(
|
self.call(
|
||||||
building.CmdScripts(), "Obj = scripts.Script",
|
building.CmdScripts(), "Obj = scripts.scripts.DefaultScript",
|
||||||
"Script scripts.Script successfully added",
|
"Script scripts.scripts.DefaultScript successfully added",
|
||||||
inputs=["Y"]
|
inputs=["Y"]
|
||||||
)
|
)
|
||||||
self.call(
|
self.call(
|
||||||
building.CmdScripts(),
|
building.CmdScripts(),
|
||||||
"/start Obj = scripts.Script",
|
"/start Obj = scripts.scripts.DefaultScript",
|
||||||
"Script on Obj Started ",
|
"Script on Obj Started ",
|
||||||
inputs=["Y"]
|
inputs=["Y"]
|
||||||
)
|
)
|
||||||
self.call(
|
self.call(
|
||||||
building.CmdScripts(),
|
building.CmdScripts(),
|
||||||
"/stop Obj = scripts.Script",
|
"/stop Obj = scripts.scripts.DefaultScript",
|
||||||
"Script on Obj Stopped ",
|
"Script on Obj Stopped ",
|
||||||
inputs=["Y"]
|
inputs=["Y"]
|
||||||
)
|
)
|
||||||
self.call(
|
self.call(
|
||||||
building.CmdScripts(),
|
building.CmdScripts(),
|
||||||
"/delete Obj = scripts.Script",
|
"/delete Obj = scripts.scripts.DefaultScript",
|
||||||
"Script on Obj Deleted ",
|
"Script on Obj Deleted ",
|
||||||
inputs=["Y"]
|
inputs=["Y"]
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -244,7 +244,7 @@ class CmdUnloggedinLook(Command):
|
||||||
"""
|
"""
|
||||||
EvMenu(
|
EvMenu(
|
||||||
self.caller,
|
self.caller,
|
||||||
"evennia.contrib.base_systems.menu_login",
|
"evennia.contrib.base_systems.menu_login.menu_login",
|
||||||
startnode="node_enter_username",
|
startnode="node_enter_username",
|
||||||
auto_look=False,
|
auto_look=False,
|
||||||
auto_quit=False,
|
auto_quit=False,
|
||||||
|
|
|
||||||
|
|
@ -5,3 +5,6 @@ FieldFill contrib - Tim Ashley Jenkins 2018
|
||||||
|
|
||||||
from .fieldfill import FieldEvMenu # noqa
|
from .fieldfill import FieldEvMenu # noqa
|
||||||
from .fieldfill import CmdTestMenu # noqa
|
from .fieldfill import CmdTestMenu # noqa
|
||||||
|
from .fieldfill import init_fill_field # noqa
|
||||||
|
from .fieldfill import form_template_to_dict # noqa
|
||||||
|
from .fieldfill import display_formdata # noqa
|
||||||
|
|
|
||||||
|
|
@ -1335,6 +1335,9 @@ def list_node(option_generator, select=None, pagesize=10):
|
||||||
```python
|
```python
|
||||||
def select(caller, selection, available_choices=None, **kwargs):
|
def select(caller, selection, available_choices=None, **kwargs):
|
||||||
'''
|
'''
|
||||||
|
This will be called by all auto-generated options except any 'extra_options'
|
||||||
|
you return from the node (those you need to handle normally).
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
caller (Object or Account): User of the menu.
|
caller (Object or Account): User of the menu.
|
||||||
selection (str): What caller chose in the menu
|
selection (str): What caller chose in the menu
|
||||||
|
|
@ -1344,6 +1347,7 @@ def list_node(option_generator, select=None, pagesize=10):
|
||||||
Returns:
|
Returns:
|
||||||
tuple, str or None: A tuple (nextnodename, **kwargs) or just nextnodename. Return
|
tuple, str or None: A tuple (nextnodename, **kwargs) or just nextnodename. Return
|
||||||
`None` to go back to the listnode.
|
`None` to go back to the listnode.
|
||||||
|
'''
|
||||||
|
|
||||||
# (do something with `selection` here)
|
# (do something with `selection` here)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue