> To dup (eg like you may dup an existing vhost as a start for
> new one in apache) a whole host or|and style, are there
> functions for this or should repligard do it, if so could
> the single-way version work or do or is 2 way required. (is
> http://www.midgard-project.org/file/7919/repligard-1.4-beta3.tar.gz
> save for one way). Is there a list or demo of the fuctions
> that it provides?
This is an interesting point. Repligard has been set up to do
replication, which means you want to keep two information sources in
sync. Duplication would not be handled by repligard as it is designed
now. You could probably fudge it by changing IDs and dates in the dump
but that can hardly be called a feature; hack is more like it.
I'm not entirely sure, but to copy a host I _think_ this would work:
$org = mgd_get_host(....);
$newhostid = $org->create();
There are copy functions that may help you to copy style and page
records, but I'm not sure whether these are deep or shallow copies.
These will of course copy these resources into the current sitegroup.
Otherwise I can probably whip up a perl script to do the copying. But
copying pages brings an interesting dilemma: if IDs are referenced in
the pages, do you want them to point to the originals or the copies?
It would depend on your situation. Deep vs shallow copying can lead to
some pretty interesting debates.
Emile
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]