# Based on devtools.commands.quickstart.py by TurboGears Team 2008
# Used under the MIT License
#
import os

from bazstart.quickstart import BazstartCommand

class GamestartCommand(BazstartCommand):
    """Create a new Gameki project.

Create a new Gameki project with this command.

Example usage::

    $ paster gamestart yourproject
    """
    bazkitype = 'gameki'
    extra_db = os.path.join(os.path.dirname(__file__), 'extra_db')
    remove_db = 'Object/User'
    admin_path = 'Object/Owner/Sheet/Character/GM'
    admin = 'GM'
    extra_imports = ['from gameki import admin']
    extra_controllers = ['prod = gameki.ProdGetter("/prod")',
                         'print_ = gameki.Printer()',
                         'packet = gameki.Packet()',
                         'restricted = gameki.Restricted()',
                         'admin = admin.Admin()',
                         'gameki = gameki.Static()']
    statics = BazstartCommand.statics + ['gameki']
