On Wed, Jun 13, 2001 at 02:13:51PM +0200, pp wrote:
> > Look into repligard.xml, it has definitions for _all_ our tables.
> > 'Style' table was shown only because it is small and thus convinient
> to
> > examples. And you're miss a point: I'm saying about _relations_
> between
> > fields in tables, not only about fields in particular table!
> Repligard.xml
> > schema file holds these relations in simple format. You don't find
> this
> > information anywhere in Midgard, it's only here.
> 
> I drunk too much beer on sunday but today is wednesday, and I should
> have 
> clear mind. ;)) I stiil do not get it. What relations?
> 
>     <link name="owner" link="grp" reverse="no"/>
>     <link name="root" link="page" reverse="no"/>
>     <link name="style" link="style" reverse="no"/>
> 
> Do You mean this links? 
Yes. Re-read my message two levels above in this thread.

> Yes, repligard.xml is clear, but I do not know what I should pay
> attention on.
> What is this option reverse?
It is for Repligard itself, it means that this relation 
(host.owner -> grp.id) should be unidirectional. By default Repligard
makes automatically bidirectional links. For example, if host.owner points
to grp.id and link is bidirectional then Repligard will try to export host
when group is exported. It is not what exactly we want with all object types.

> Should I check if field name has correct type?
You should check that field value is correct regarding this link. For
example, if host.owner is 100 then check that record with id=100 exists in
grp table.

> Is repligard works only with xml files?
In what sense? It uses XML format for:
1) its own configuration file;
2) data transfer format.

> more questions soon! ;))))))
I hope I'll answer them :-) but till next Monday I'll have sporadic
Internet access so please be patient.

-- 
Sincerely yours, Alexander Bokovoy 
  The Midgard Project    | ALT  Linux  Team | Minsk Linux Users Group
 www.midgard-project.org | www.altlinux.ru  |    www.minsk-lug.net 
-- You won't skid if you stay in a rut.
                -- Frank Hubbard

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to