{% set title = "Coding Guidelines" %} {% set description = "Coding guidelines for Tryton" %} {% set keywords = ["development", "coding", "guidelines", "python", "xml"] %} {% set toc = [ ("Code Style", 'code-style', [ ("Python", 'python', None), ("XML", 'xml', None), ]), ("Best Practices", 'best-practices', [ ("Naming of modules, classes, variables", 'naming', None), ]), ] %} {% extends "layout-toc.html" %} {% from "utils.html" import background with context %} {% block style %} {{ super() }} {{ background('banner-develop') }} {% endblock %} {% block content %}

{{ title }}

{{ super() }} {% endblock content %} {% block main %}

Code Style

The Tryton Project strongly recommends the following code style:

Python

Code style, in general, follows PEP 8 and PEP 257:

XML

Best Practices

These best practices help keep the code consistent:

Naming of modules, classes, variables

{% endblock main %}