[Pkg-zope-developers] Products path
Encolpe DEGOUTE
ed@nuxeo.com
Wed, 21 Jul 2004 15:12:35 +0200
This is a multi-part message in MIME format.
--Multipart=_Wed__21_Jul_2004_15_12_35_+0200_1uLIo.W4KU7LpVKd
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Igor Stroh écrivit:
> Encolpe DEGOUTE wrote:
> [...]
> >>>b) /usr/share/zope/Products
> >>>
> >>>You cannot use /usr/lib/zope/lib/python/Products if your Zope
> >>>instances use incompatible products.
> >>
> >>What do you mean by incompatible? If I'd like to install Products
> >that>don't "like"
> >>each other, I'd put them into the Products/ dir of the appropriate
> >>instance, like
> >>/var/lib/zope[]2.7/instance/<instance name>/Products, right? Anyway,
> >>if a Product
> >>is incompatible with another Product then it's package should use
> >the >appropriate
> >>"Conflicts: [..]".
> >
> >
> > That's why default installation path for Zope products have to be
> > '/usr/share/zope/Products'. It permits to remove conflicts between
> > Plone and CPS packages for example.
> > With Zope 2.6 and abive there's no reason to use something else that
> > /var/lib/zope(|2.7)/instance/<instance name>/Products to install any
> > products but specific one like DirectoryStorage or ZopeTestCase.
>
> Ok, sounds reasonable. Now what about the old packages using
> a) /usr/lib/zope/lib/python/Products? Should they move to
> b) /usr/share/zope/Products ASAP? If so, what's the best way to do it?
> I mean one definitely has to purge a) before an update, but is it safe
> to just remove those files? What if they were locally modified?
I have made it for several packages some months ago, but they was no
upload.
I do not think that we have to remove old installation: we can break
sites already used.
If there were locally change, a good admin will create a patch to
maintain his local change. We can add a message to remember this to
users.
We can create a zopeutils package with our administration scripts for
zope and products. I have began to work on it... but it stalled since
one month. You can see the specifications in attachment.
Regards,
--
Encolpe DEGOUTE
--Multipart=_Wed__21_Jul_2004_15_12_35_+0200_1uLIo.W4KU7LpVKd
Content-Type: text/plain;
name="Functions.txt"
Content-Disposition: attachment;
filename="Functions.txt"
Content-Transfer-Encoding: base64
VGhpcyBmaWxlIGdpdmVzIGFsbCB0aGUgZGVzY3JpcHRpb24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hdXN0aXZlLCAKICAgICAgICAgICAgICAgYnV0IGl0J3MgdmVyeSBwcmFj
dGljYWwgYmVmb3JlIG1ham9yIHJlbGVhc2UgdG8gcmV2ZWFsIHR5cG8gYnVncy4KCnp1LXVuaXR0
ZXN0CiAgcGFyYW1ldGVyczogcHJvZHVjdAogIGRlc2NyaXB0aW9uOiBSdW4gdW5pdCB0ZXN0cyBm
b3IgYSBwcm9kdWN0LiBKdXN0IHdyaXRlIHRoZW0uCgp6dS11bml0dGVzdGd1aQogIHBhcmFtZXRl
cnM6IHByb2R1Y3QKICBkZXNjcmlwdGlvbjogTGF1bmNoIGEgZ3VpIHdoaWNoIHJ1biB1bml0IHRl
c3RzIGZvciBhIHByb2R1Y3QuIEp1c3Qgd3JpdGUgdGhlbS4KCnp1LWVweWRvYwogIHBhcmFtZXRl
cnM6IHByb2R1Y3QKICBkZXNjcmlwdGlvbjogTWFrZSB0aGUgQVBJIGRvY3VtZW50YXRpb24gZnJv
bSBFcHlkb2MgdGFncy4K
--Multipart=_Wed__21_Jul_2004_15_12_35_+0200_1uLIo.W4KU7LpVKd
Content-Type: text/plain;
name="Configuration_option.txt"
Content-Disposition: attachment;
filename="Configuration_option.txt"
Content-Transfer-Encoding: 7bit
This file describes what are the options available in the configuration file.
We try to keep this up to date.
The configuration files follow the .ini schema with section and value.
Base Configuration
The base configuration section begin with the [base_config] flag.
config_version
Version of the config file for future incompatibility between version.
zope_available
Dictionnary of Zope version available on the system.
It accept that schema for an entry:
'X.Y.Z': {
'system_path': 'system path to accede at zope binary'
'options': [list Zope compilation options but prefix]
'version_plugin': 'override standard plugin for this Zope's version'
}
Every zope version must have a plugin or a plugin equivalence.
zope_default
Default version of Zope use to create an instance.
product_path
List of path where source products can be found on the filesystem.
Products can be packaged or not. default: '/usr/share/zope/products'.
zope_version_plugins
Dictionnary. Values follow this schema: Zope version as id and list of Zope's
version compatible with this one.
Instance Configuration
The instance configuration section begin with the [instance] flag.
It contains only dictonnary values. The value's name is the instance's
identifiant and the dictionary contains these values:
name
Instance name. If it's empty, use the id instead.
port
Base port use by the instance. Add 80 for HTTP port and 21 for FTP port.
status
Status of the instance. The status determine if an instance is to run at
server startup, or if it will be archive in next cleaning. Status availables
are:
test be runned manually.
dev: be runned up by developpers. Data can be criticals.
demo: up at every sever startup, but it can be stopped. Data are criticals.
prod: up, always. Send mail to instance's administrator if down (cronjob).
All data are criticals.
obsolete: down, will be packed and archived during next cleaning
email
The email of the administrator of this instance. Mail will be send on every
product upgrade and when instance configuration is being modified.
product_list (name, version)
It is the list of the products installed with the actual version. Version
will help to know what are the instances to update or if we have to keep
backward compatibility during major refactoring.
owner
user id of the sytem owner. Alternative option to zope.conf owner to run the
instance.
zope_version
Version of Zope used to run the instance.
instance_path
Instance'ss root on filesystem. Used to find zopectl and zope.conf file.
--Multipart=_Wed__21_Jul_2004_15_12_35_+0200_1uLIo.W4KU7LpVKd--