Package: kotti_paster
kotti_pasterkotti_paster provides “starter” scaffolding for creating a projekt or an addon for Kotti.
See theKotti documentationfor detailed documentation.Warningkotti_paster hasbobtemplates.kottias successor and will not be developed any further. If you are new to Kotti development and interested in developing a theme or an addon you probably want usemr.bobin conjunction withbobtemplates.kotti. However, if you want explicitly use templer or looking for a scaffold to create yourself a buildout structure for your kotti addon you are on the right place.InstallationYou just install the package from PyPi with easy_install. This will install PasteScript and Cheetah.
So you may want to create a new virtualenv to install it there:$ easy_install kotti_pasterAfter the installation you have two more paster templates:kotti_projectandkotti_addon.Create a projectThekotti_projectscaffold allows you to easily generate a buildout based project for Kotti. You do this with the “paster create” command in your virtualenv:$ paster create -t kotti_project my_project_nameThis will create amy_project_namebuildout with amy_project_namedevelopment package.To run the buildout project bootstrap, run buildout and start your project withpserve:$ cd my_project_name
$ python boostrap.py
$ ./bin/buildout
$ ./bin/pserve development.iniThe server will be start on port 6543 on default. Visithttp://localhost:6543to see Kotti with your addon in  action.The addon contains example code - change it and add your fancy stuff. See theKotti documentationfor further informations.There are some parameters to adjust the project to your needs. Some of the options are only available with theexpertmode on the interactive prompt, so choose this if you want to overwrite the defaults of the optionsomelette,codeintelandsupervisor.If you usegitas versioning control system a.gitignorefile is usefull in your project. By default
this file will be created. If you don’t need it, set the optiongitignore=false:$ paster create -t kotti_project my_project_name --no-interactive gitignore=falseIf you plan to host your project ongithubtravisis a handy way to set up continuous integration
with almost no effort. Add the parametertravis=trueto the command line and a file named.travis.ymlwill be integrated in your project. This option defaults tofalse:$ paster create -t kotti_project my_project_name  --no-interactive travis=trueomeletteis a recipe that sets up a directory structure that mirrors the actual python namespaces, with
symlinks to the egg contents. If you won’t have this in your buildout, you can exclude it:$ paster create -t kotti_project my_project_name --no-interactive omelette=falseThecodeintelrecipe generates a configuration file for SublimeCodeIntel, a SublimeText plugin, what is
extremely usefull, but only if you use SublimeText as your editor and have the plugin installed. Use the
command line optioncodeintelto activate this option:$ paster create -t kotti_project my_project_name --no-interactive codeintel=trueThesupervisorrecipe integrates supervisor section to your buildout. Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems. Read more about it in thesupervisor documentation. Setsupervisor=trueon the command line to get this section in your buildout:$ paster create -t kotti_project my_project_name --no-interactive supervisor=trueCreate a addonThe primary job of kotti_paster is to provide a scaffold which allows you to easily generate an addon for Kotti. You do this with thepcreatecommand in your virtualenv.The kotti_addon scaffold allows you to create an AddOn for Kotti:$ paster create -t kotti_addon my_addon_nameThis will create amy_addon_namepackage in the current directory. You can use this package alone inside an own virtualenv for development purposes or you can add it to your buildout.cfg:[sources]
...
my_addon_name = fs my_addon_name

[application]
...
eggs =
    my_addon_nameand your development.ini:kotti.configurators =
    ...
    my_addon_name.kotti_configureYou can include an example for a Kotti content type, see thesection for content types in the Kotti developer manualfor more info:$ paster create -t kotti_addon my_addon_name --no-interactive content_type=trueThe addon contains example code - change it and add your fancy stuff. See theKotti documentationfor further informations. In the documentation you will find atutorialwhere you get more information how to start an addon with kotti_paster.Changelog0.2 (2013-10-18)Update to use Kotti 9.2.0. [j23d]Fixing domain for translation. [jon1012]0.1 (2012-12-12)Use the development requirements directly from Kotti itself. [j23d]Rename static.py to fanstatic.py for consistency. [j23d]Added example for a test that uses pytest fixtures from Kotti. [j23d]Added a ini file for addons. [j23d]0.1a3 (2012-11-08)Change imports to PEP8 style. [disko]Change entry_points to dict style. [disko]Fix bug in gitignore template. [disko]Update to Kotti >= 0.8:Use fanstatic include in kotti_configure.Use form classes instead of generic form functions.0.1a2 (2012-09-25)Pin Cheetah to meet the requirements of templer.core.0.1a1 (2012-09-25)First public release.