* Maxime Richez [2017-12-12 13:52 +0100]:
During TUL2017, i could see the structure of Jurassic Fruit website
using tryton.
All the content was in one directory with the customization of the
different modules in sub-directories...

Could we have a small example of such structure and what should be
written in tryton.cfg, __init__.py files ?

directory structure:

   trytond
       + modules
           + …
           + my_client_name
               - __init__.py
               - tryton.cfg
               + my_feature
                   - __init__.py
                     …
               + another_feature
                   - __init__.py
                   - …

tryton.cfg:

   The usual tryton.cfg file except for the [xml] section

   [xml]
   my_feature/blabla.xml
   another_feature/brol.xml

__init__.py:

   from . import my_feature
   from . import another_feature
def register():
       Pool.register(…)

       my_feature.register('my_client_name')
       another_feature('my_client_name')

Into each feature there is a __init__.py which does the importation
and registration of the Tryton models. The register method takes an
argument (that way a directory could be copied somewhere else and
called with another name).

Is there only one repository for the whole project? Or has any
subdirectory his own repository ? (and some exclusion in the parent
repository not to include the sub-directory)

We use only one repository.

I saw also some files or directory named "issuexxx". Could you
explain this way of working ?

It's used when we backport some features / fixes from a specific issue
on the tryton bug tracker.

--
Nicolas Évrard - B2CK SPRL
E-mail/Jabber: nicolas.evr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

--
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/20171212131308.3pkmpbrmz5gqyo36%40localhost.localdomain.

Reply via email to