Hi everybody!
I need to setup preferences of a space (created by my code). I can create
WebPreferences page and after this - add related object, when fill in
properties ... 

But, is it possible to use $xwiki.copy(oldSpace.WebPreferences,
newSpace.WebPreferences)? In fact, I have a "typical" WebPreferences, and I
want to simple make a copy of it.

I tried $xwiki.copy(typicalSpace.WebPreferences, newSpace.WebPreferences),
page created, but unfortunatelly, properties of XWiki.XWikiPreferences
doesn't fill in (object, attached in a page - exists).

Whats may be a problem? Or maybe in this situation (WebPreferences - is a
special page) - I shouldn't use $xwiki.copy method?

--
Thanks beforehand!
Eugen Colesnicov

--
View this message in context: 
http://xwiki.475771.n2.nabble.com/copying-WebPreferences-from-space-to-space-tp7118738p7118738.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to