Great.  Thats what I need. Is there an example source code to look at.
On 9 Sep 2013 16:02, "Cédric Krier" <[email protected]> wrote:

> On 09/09/13 03:18 -0700, Kaushik S wrote:
> > Hi,
> >         I need to add some entries to the party.party table right at the
> > beginning of the installation of GNU Health.  We have a list persons with
> > their details. We want them to be added right at the start.  How should
> we
> > do this?
> >
> > I need to do something like this -
> > def initialiseParties(partyList):
> >         partyTable= Pool.get('party.party')
> >         for i in partyList:
> >             partyTable.create(i)
> >
> >
> > We have out own module. Is there a startup event where we can call this
> > code.    Perhaps there is some place where such initialising database is
> > done.
>
> No but you can just run a proteus script just after the database
> creation.
>
> --
> Cédric Krier
>
> B2CK SPRL
> Rue de Rotterdam, 4
> 4000 Liège
> Belgium
> Tel: +32 472 54 46 59
> Email/Jabber: [email protected]
> Website: http://www.b2ck.com/
>

Reply via email to