[xwiki-users] package export/import

Duke Tantiprasut duketantiprasut at gmail.com
Thu Jul 6 22:25:57 CEST 2006


Looks like I was right the first time. It does create two different
PackageAPI objects for:

$xwiki.package.addAllWikiDocuments()
$xwiki.package.exportToDir()

However if you do the following, it will refer to the same object:

#set ($package = $xwiki.package)
$package.addAllWikiDocuments()
$package.exportToDir()


On 7/6/06, Duke Tantiprasut <duketantiprasut at gmail.com> wrote:
>
> My bad. Looks like I was looking at Package and PackageAPI doh!
>
> Still curious why the methods are still evaluated on "edit" and not just
> "view".
>
> Thanks
> Duke
>
>
> On 7/6/06, Duke Tantiprasut <duketantiprasut at gmail.com> wrote:
> >
> > Hi,
> >
> > I'm currently trying to extend the PackageAPI so that I can call the
> > addAllWikiDocuments()  and exportToDir() methods from xwiki itself rather
> > than an external tool.
> >
> > I ran into an interesting situation where the two following calls plugin
> > calls in the wiki doc refers to two different objects:
> >
> > $xwiki.package.addAllWikiDocuments()
> > $xwiki.package.exportToDir()
> >
> > Do ALL plugin method calls create their own object?
> >
> > Also I noticed, that the methods are also called when I "edit" the wiki
> > doc and not only when I view it. Is that normal?
> >
> > Thanks
> > Duke
> >
> >
> > On 7/5/06, jeremi joslin <jeremi23 at gmail.com> wrote:
> >
> > >  Hi,
> > here is a backup tool made with it.
> > http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/xwiki/xwiki-tools/backup/?rev=1085
> >
> >
> > It's working with the svn version. It's not working with
> > the  xwiki-0-9-840.
> >
> > Jérémi
> >
> >
> > On 7/5/06, Robin Fernandes < rewbs.soal at gmail.com> wrote:
> > > Just thought I'd register my interest in this too. Last I heard,
> > > packaging is being developed and will be available in 1.0b1, as
> > > mentioned at the bottom here:
> > > http://mail-archive.objectweb.org/xwiki-dev/2006-05/msg00029.html
> > >
> > > Regards,
> > > Robin
> > >
> > > On 05/07/06, Duke Tantiprasut < duketantiprasut at gmail.com > wrote:
> > > > I'm looking for this as well. I'll let you know if I find something
> > more
> > > > definitive.
> > > >
> > > > Duke
> > > >
> > > >
> > > > On 7/3/06, THOMAS, BRIAN M (SBCSI) < bt0008 at att.com> wrote:
> > > > >
> > > > I've seen some references to this, and even an XML package file for
> > one
> > > > application project, but no clear idea of how to create or consume a
> >
> > > > package of XWiki documents for export.
> > > >
> > > > Has a publicly available script been built to accomplish this?  I'm
> > sure
> > > > that it wouldn't be a monstrous effort, but would of course like to
> > have
> > > > a common tool to use.
> > > >
> > > > Brian M. Thomas - Senior Technical Architect
> > > > AT&T Services, Inc.
> > > > One SBC Center, Room 24D3
> > > > St. Louis, MO 63101
> > > > 314 235 3141
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > You receive this message as a subscriber of the
> > xwiki-users at objectweb.org
> > > > mailing list.
> > > > To unsubscribe:
> > > > mailto:xwiki-users-unsubscribe at objectweb.org
> > > > For general help: mailto: sympa at objectweb.org?subject=help
> > > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > You receive this message as a subscriber of the
> > xwiki-users at objectweb.org
> > > > mailing list.
> > > > To unsubscribe:
> > > > mailto: xwiki-users-unsubscribe at objectweb.org
> > > > For general help: mailto: sympa at objectweb.org?subject=help
> > > > ObjectWeb mailing lists service home page:
> > http://www.objectweb.org/wws
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > --
> > > You receive this message as a subscriber of the
> > xwiki-users at objectweb.org mailing list.
> > > To unsubscribe: mailto:xwiki-users-unsubscribe at objectweb.org
> > > For general help: mailto: sympa at objectweb.org?subject=help
> > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >
> > >
> > >
> > >
> >
> >
> > --
> > jeremi
> >
> >
> > --
> >
> > You receive this message as a subscriber of the
> > xwiki-users at objectweb.org mailing list.
> > To unsubscribe: mailto:xwiki-users-unsubscribe at objectweb.org
> > For general help: mailto:sympa at objectweb.org?subject=help
> > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
> >
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/users/attachments/20060706/2673577a/attachment-0001.html 


More information about the users mailing list