On Sun, Mar 7, 2010 at 12:56, Thomas Mortagne <thomas.mortagne(a)xwiki.com> wrote:
On Sat, Mar 6, 2010 at 20:55, Niels Mayer
<nielsmayer(a)gmail.com> wrote:
On Sat, Mar 6, 2010 at 9:23 AM, Thomas
Mortagne <thomas.mortagne(a)xwiki.com> wrote:
Another way is to log with superadmin before importing the xar (but it
means all the pages will have superadmin as author).
I thought that was de rigueur in Xwiki. If you didn't import as superadmin
into a multiwiki, how could you get working any documents containing scripts
that require programming rights? If you don't import this way,
for example, you won't be able to control the openoffice importer (last I
checked, a lot has changed since too) or other such prog-right-needing
script-documents.
When you import as backup pack (liek it used to be before the new
importer) all the other of the document are the same than the authors
you have in the xar and in a default XE all documents
have XWiki.Admin
as author who has programming right in a default XE.
I wish there was a way of having a multiwiki
refer to the "root" wiki's Xar
file contents, or even better, that there was a "template wiki" containing a
shared copy of the Xar for all wikis. Having the document in the local wiki
would override the template wiki's "application documents and general wiki
config". That way a new wiki would be populated immediately, by the contents
of the template wiki; overrides would be modified local copies of the
template, or whole new applications that might reside in a subwiki but not
the template wiki.
Well you can configure template wiki the way you want and when you
create a new wiki it's used to populate the new wiki if you choose it
as template in the create wiki UI.
This would also alleviate the need to give or use
superadmin in a subwiki.
Any superadmin-needing documents would reside in the template wiki and
would be inherited into the subwiki and granted programming rights there.
That way, one could tightly control the use of programming rights in a
subwiki, where a set of safe programming rights scripts would only reside
in the template wiki, and subwiki's could only reference prog-right-having
documents deemed safe enough to use in the "template wiki". (unless the
subwiki admin got superadmin rights to add extra programing-rights
script/documents to a specific subwiki).
Niels
http://nielsmayer.com
--
Thomas Mortagne