On 2011-01-27 23:02, Kurt Miebach wrote:
> Hi,
> 
> after doing some configuration it would be nice to store the current
> configured state (like invoice types, taxes, assigned accounts for
> customers) and be able to restore it at a later point in time, or at a
> different installation.
> 
> Is there such a thing built in?

pg_dump is your friend. But that doesn't cover what you need perhaps.

> 
> If not, what would you recommend and how do you handle this?
> 
> I wonder if it could be don writing my own server side python script
> to save and restore the settings using trytond.backend

Doing policy configurations like this can be done by writing a script.
I've used proteus with great results for just what you describe: taking
a bare database, install modules, define users, a company, chart of
accounts, parties, etc...

I remember seeing extensive doctest scripts on rietveld, and wrote my
own migration scripts based on them. I don't know if they are still
around somewhere.

But the test code in proteus should also get you going:

http://hg.tryton.org/proteus/file/ddd2c1be2ef1/proteus/tests/test_model.py


-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl

-- 
[email protected] mailing list

Reply via email to