Hi all,

I have some questions about repligard's working. I have read Henri's
notes.

1.
---------
<type name="person">
   <field type="text" name="username" />
   <field type="password" name="password" />
   <link link="topic" name="department" />
</type>

Besides field, we also have an element called link, that links objects
to each other. After parsing the XML schema file, Repligard creates a
graph noting relations between different objects. If the person has a
link
for a topic, then when exporting the person, the topic should also be
exported and vise versa.
----------

Now, this linking is recursive, right? E.g., the linked object's
dependencies also satisfied...

Here is an example from repligard.xml:

  <type name="topic">
[...]
    <link name="up" link="topic"/>
  </type>

So, if I export a topic, it exports its upper topic, until it reaches
the upper topic 0, which doesn't exist, so doesn't exported. BUT! Then
the dependency tree starts to the other direction, and every topic (and
article) is exported below this root topic? Graphically:


                  []               []
                 /  \             /  \
             -> []  []           []  []
               /   /  \
              []  []  []*

If I put the topic marked with arrow into the repligard.conf, then the
whole first tree will be exported (including the one marked with *),
with all articles attached to it, not only _its_ subtopics and articles?
If not, then I don't understand this bidirectional dependency.


2.
-----------
Selective replication
[...]
<exportHook type="article">
<![CDATA[
   if (object["approved"]) {
         return 0;
   }
   return 1;
]]>
</exportHook>
-------------

When it will be implemented? And why S-Lang? That language has no
useable documentation, and not so popular. (I know it as I used jed for
a while...) Tcl, or perl would not be a better choice? Ok, ok, it's just
my personal desire, 10 people would say 10 langs... :)


3.
--------------
When importing, Repligard will check for all referenced GUIDs. If the
object specified by the GUID is not found in the database, and empty
object will be created. This did not function properly in older
versions, so many Midgard databases were in inconsistent state.
--------------

But if this GUID is in the actual XML file, the empty record will be
replaced?


If I overwrite some things in the nadmin, for example fixing some bugs,
is it safe that I replicate the whole nadmin pages and snippetdirs etc.,
and only my modifications will be included in the xml? Anyway, how can I
upgrade nadmin then?

Thx:
Circum

PS: This last thought was inspired on that the 'nforum_is_banip'
function is missing (so I commented out) from the hklc_forum/nforum
snippet. :-P

PS/2: It is a computer manufactured by IBM.

PS/3: Does somebody have a solution implementing ctags-like
functionality for a php-app in midgard? Even for the whole php content
for midgard?

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

Reply via email to