This are the steps that followed to mount a diferent storage
files for translations instances on gvSIG curren current Plone site.
The names used are specific to the gvSIG installation.
You may download file
storesitesWithTranslationsInstances-1.2.0.2-Version.tar.gz
from the files section of the forge for the gvSIG-i18n project.
contains:
3 storage files (one for each instance of translations and BPD)
a zope.conf file to mount them in the gvSIG plone site.
-----------------------------------------------------------------
------------------------------------
SUB-PROCESS 1: CREATE ADDITIONAL STORAGE FILE
Create a new blank storage file,
to be mounted later in the main plone site
by using an auxiliary plone instance for a few moments,
1) Create new zope/Plone instance
2) Start new zope/plone instance, verify that was correctly created, you
can login, see the default Plnoe site (just to make sure it works)
3) Shutdown zope/plone
4) Edit zope.conf
add at the bottom an entry:
path $INSTANCE/var/gvsig_desktop_i18nstore.fs
mount-point /gvsig_desktop_i18nstore
path $INSTANCE/var/gvsig_mobile_i18nstore.fs
mount-point /gvsig_mobile_i18nstore
path $INSTANCE/var/bpdstore.fs
mount-point /bpdstore
5) start zope/plone new instance
if it does not start, or there are startup warnings,
edit zope.conf:
6) login into zmi
7) At the root of the ZMI (i.e. NOT within any Plone site)
Add a ZODB Mount point, choosing from the menu of factory types
The /i18nstore mount poitn shall be visible, select it if not alrady,
select check box "Create new folders if the mounted objects don't yet
exist"
and click button "Create selected mount points"
- a file i18nstore.fs (and .lock, .index, .tmp,) appear in the
$INSTANCE/var folder in the filesystem
8) From ZMI, inside the i18nstore folder in the ZMI,
create a Plone Site by choosing from the factories menu:
id
gvsig_desktop_i18nstoresite
title
gvsig_desktop_i18nstoresite
id
gvsig_mobile_i18nstoresite
title
gvsig_mobile_i18nstoresite
id
gvsig_bpdstoresite
title
gvsig_bpdstoresite
9) Navigate the new Plone site i18nstoresite from a Plone view
i.e., navigate into the Plone site instance from ZMI, and
open new browser on the View ZMI tab of the Plone Site.
10) (optional) From Plone site root contents, You may delete the Welcome
page at the root of the i18nstoresite
11) Create in the root of the plone site a folder
id
gvsig_desktop_i18nstorefolder
title
gvsig_desktop_i18nstorefolder
id
gvsig_mobile_i18nstorefolder
title
gvsig_mobile_i18nstorefolder
id
gvsig_bpdstorefolder
title
gvsig_bpdstorefolder
12) Shut down zope/plone instance
-----------------------
At this point, we have a 3 files *.fs (gvsig_desktop_i18nstore.fs,
gvsig_mobile_i18nstore.fs, bpdstore.fs)
with a plone site (gvsig_desktop_i18nstoresite,
gvsig_mobile_i18nstoresite,
gvsig_bpdstoresite) and wihtin it a folder (gvsig_desktop_i18nstorefolder,
gvsig_mobile_i18nstorefolder, gvsig_bpdstorefolder)
complete path:
/gvsig_desktop_i18nstore/gvsig_desktop_i18nstoresite/gvsig_desktop_i18nstorefolder
/gvsig_mobile_i18nstore/gvsig_mobile_i18nstoresite/gvsig_mobile_i18nstorefolder
/gvsig_bpdstore/gvsig_bpdstoresite/gvsig_bpdstorefolder
that now we will use as secondary storage for our main plone instance and
site).
!!!! COPY A BACKUP OF *.fs FILES!!!!!
-----------------------------------------
SUBPROCESS 2: MOUNT ADDITIONAL STORAGE FILE ON MAIN PLONE SITE
suposing that the plone site where the store must be mounted into
has id
plone
and that the store must be mounted is in a folder named 'i18nmount'
at the root of site gvsigweb
1) Copy the file *.fs created in Subprocess 1
to the main zope/plone instance var folder (wherever the Data.fs file
is,
usually within a var directory)
2) Edit main zope/plone instance zope.conf
3) Add at the bottom an entry
path $INSTANCE/var/gvsig_desktop_i18nstore.fs
mount-point /plone/projects/gvsig-
desktop/gvsig_desktop_i18nstorefolder:/gvsig_desktop_i18nstore/gvsig_desktop_i18nstoresite/gvsig_desktop_i18nstorefolder
path $INSTANCE/var/gvsig_mobile_i18nstore.fs
mount-point /plone/projects/gvsig-
mobile/gvsig_mobile_i18nstorefolder:/gvsig_mobile_i18nstore/gvsig_mobile_i18nstoresite/gvsig_mobile_i18nstorefolder
path $INSTANCE/var/gvsig_bpdstore.fs
mount-point
/plone/gvsig_bpdstorefolder:/gvsig_bpdstore/gvsig_bpdstoresite/gvsig_bpdstorefolder
Important the name 'i18nstorefolder' of the mount point
must be the same of that of the mapped folder 'i18nstorefolder' created in
the i18nstoresite plone site storage file i18nstore.fs in Process 1 above.
4) Start (or restart) main zope/plone instance
if it does not start, or there are startup warnings,
edit zope.conf:
5) At the root of the ZMI (i.e. NOT within any Plone site)
Add a ZODB Mount point, choosing from the menu of factory types
The /gvsigweb/i18nmount mount poitn shall be visible, select it if not
alrady,
Select check box "Create new folders if the mounted objects don't yet
exist"
and click button "Create selected mount points"
-----
At this point, content created under the folder
/plone/projects/gvsig-desktop/gvsig_desktop_i18nstorefolder
/plone/projects/gvsig-mobile/gvsig_mobile_i18nstorefolder
/plone/gvsig_bpdstorefolder/
will be written in their respective storage file
gvsig_desktop_i18nstore.fs,
gvsig_mobile_i18nstore.fs, gvsig_bpdstore.fs