[Zope-dev] Re: [zope.testing.doctest] a nasty surprise

2008-04-11 Thread Balazs Ree
On Thu, 10 Apr 2008 11:50:35 -0400, Benji York wrote:

 Dieter Maurer wrote:
 As the community (apparently) strongly favors doctest over
 unittest, I wrote my first test based on zope.testing.doctest. And
 promptly, I was badly surprised
 
 In order to analyse a difficult problem, I added from dm.pdb import
 zpdb; zpdb.set_trace() in the doctest (dm.pdb.zpdb is my Zope aware
 PDB extension)
 
 The standard PDB works fine.  I'm sure you're extended version can be
 tweaked to as well.

I have similar issues with ipdb. - similar in sense that I cannot use it 
when running from doctests.

ipdb is a lightweight component that enables entering ipython when 
import ipdb; ipdb.set_trace() is called. Those of you that use ipython 
and also develop with doctests a lot, will understand why it would be a 
nice to have also from doctests.

In case of ipdb I had no parameters problem like Dieter encountered with 
zpdb, however I observed that the doctest runner needs to redirect input 
and output while running tests, which are specifically routed back to 
stdin and stdout while pdb.set_trace is entered, to enable interactivity. 
This is done by monkeypatching pdb if I remember well. But the same does 
not happen with ipdb, of course.

So, my conclusion is that while doctests work well with the standard pdb, 
any alternate debugger must be supported explicitely (by changing the 
doctest code). As with ipdb, this may be the case with zpdb as well.

Best wishes


-- 
Balazs Ree

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-11 Thread Martin Aspeli

Martijn Faassen wrote:

Andreas Jung wrote:
--On 10. April 2008 19:10:49 +0200 Brian Sutherland 
[EMAIL PROTECTED] wrote:

Just adding my few requirements:
- Integration into the component architecture in such a way that I
  can specify the db connection parameters in ZCML and that database
  reflection still works. I want to be able to get a handle on
SQLAlchemy   things by calling getUtility.
Please *NO* database specific configurations within ZCML. We're running 
applications in up three or four different environments and I don't want 
to maintain instance specific configurations within ZCML. Either we pass
such informations through environment variables or the database 
connections parameters are read from a configuration within the instance 
configuration.


As long as it can also be specified in the code, that way people can 
build UIs to set up the connection. Perhaps that's what you mean by a 
configuration within the instance configuration.


The way I use collective.lead in my book is to have it look up the 
database settings in a local utility. That utility is editable via a 
control panel page in Plone. I suspect that it'd be quite easy to do 
something similar where the settings were deferred to a global utility 
configured with ZCML or looked up in a config file of some sort.


Once the config is available, it's all about calling getUtility() to get 
hold of a database connection/session.


Martin

--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-11 Thread Brian Sutherland
On Fri, Apr 11, 2008 at 05:07:56AM +0200, Andreas Jung wrote:
 --On 10. April 2008 21:29:43 +0200 Brian Sutherland 
 [EMAIL PROTECTED] wrote:
 What defines if something is the instance configuration?

 Isn't ZCML just another format of configuration file? I agree it's evil
 to hardcode database connections in the application as they must be
 under the control of the sysadmin. But that doesn't preclude them from
 being expressed in zcml.

 The point is: we don't need yet another configuration language for the 
 configuration of a site. ZCML should be used for the purpose it has been 
 intended for: for the configuration of the components of your site (easily 
 spoken). This kind of configuration is static if you setup a site for 
 project X. But settings like ports, paths etc. often differ between dev, 
 test and production environments.
 
 We already have ZConfig as standard cofniguration language for instance 
 specific configuration aspects. In addition: we often do use environment 
 variables and .ini files for additional configurations. Introducing another 
 configuration language is stupid. Especially because system administrators 
 or co-workers know little or nothing about ZCML. This is an unnecessary 
 introduction of complexity. Setting an environment variable with a DSN is 
 much easier then having to fiddle around with ZCML and XML...totally 
 unnecessary overheadkeep it simple ...using ZCML in this configuration 
 context is only for XML masochists.

Unfortunately, it doesn't seem an option, right now, to avoid using ZCML
to setup database connections. So I'm not sure how you want to implement
your ideas?

In general, I think if you want your configuration expressed in ZConfig
and available as a utility, you have a problem.

I'm not sure of:
* How do I register a utility in ZConfig?
* How will the above registration work properly in functional tests
  (especially with tearing down and setting up layers)?

-- 
Brian Sutherland
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Zope Tests: 5 OK

2008-04-11 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Thu Apr 10 11:00:00 2008 UTC to Fri Apr 11 11:00:00 2008 UTC.
There were 5 messages: 5 from Zope Tests.


Tests passed OK
---

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Tests
Date: Thu Apr 10 20:57:43 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-April/009385.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Tests
Date: Thu Apr 10 20:59:14 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-April/009386.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Tests
Date: Thu Apr 10 21:00:44 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-April/009387.html

Subject: OK : Zope-2.11 Python-2.4.4 : Linux
From: Zope Tests
Date: Thu Apr 10 21:02:14 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-April/009388.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Tests
Date: Thu Apr 10 21:03:44 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-April/009389.html

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-11 Thread Andreas Jung



--On 11. April 2008 10:09:16 +0200 Brian Sutherland 
[EMAIL PROTECTED] wrote:



On Fri, Apr 11, 2008 at 05:07:56AM +0200, Andreas Jung wrote:

--On 10. April 2008 21:29:43 +0200 Brian Sutherland
[EMAIL PROTECTED] wrote:

What defines if something is the instance configuration?

Isn't ZCML just another format of configuration file? I agree it's evil
to hardcode database connections in the application as they must be
under the control of the sysadmin. But that doesn't preclude them from
being expressed in zcml.


The point is: we don't need yet another configuration language for the
configuration of a site. ZCML should be used for the purpose it has been
intended for: for the configuration of the components of your site
(easily  spoken). This kind of configuration is static if you setup a
site for  project X. But settings like ports, paths etc. often differ
between dev,  test and production environments.

We already have ZConfig as standard cofniguration language for instance
specific configuration aspects. In addition: we often do use environment
variables and .ini files for additional configurations. Introducing
another  configuration language is stupid. Especially because system
administrators  or co-workers know little or nothing about ZCML. This is
an unnecessary  introduction of complexity. Setting an environment
variable with a DSN is  much easier then having to fiddle around with
ZCML and XML...totally  unnecessary overheadkeep it simple ...using
ZCML in this configuration  context is only for XML masochists.


Unfortunately, it doesn't seem an option, right now, to avoid using ZCML
to setup database connections. So I'm not sure how you want to implement
your ideas?



I have no need for ideas to be implemented. We're using SA within in 
several large projects based on z3c.sqlalchemy. And nothing beats the 
simplicity

of of an .ini file or an environment variable.


In general, I think if you want your configuration expressed in ZConfig
and available as a utility, you have a problem.

I'm not sure of:
* How do I register a utility in ZConfig?


z3c.sqlalchemy provides a method for registering a SA connection as a named 
utility. This code is usually called during the startup phase of Zope 
within the related initialize() methds of our products. The DSN are 
acquired from well-known environment variables...this just works - easy, 
simple, reliable.



* How will the above registration work properly in functional tests
  (especially with tearing down and setting up layers)?


Functional tests in our company are tests done by humans. Why? Our 
applications are very complex with lots of dependencies. Not speaking of 
lots of involved databases, big storages..


Andreas



pgp98vhOQjdEm.pgp
Description: PGP signature
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-11 Thread Andreas Jung



--On 11. April 2008 08:36:43 +0100 Martin Aspeli [EMAIL PROTECTED] wrote:


Martijn Faassen wrote:

Andreas Jung wrote:

--On 10. April 2008 19:10:49 +0200 Brian Sutherland
[EMAIL PROTECTED] wrote:

Just adding my few requirements:
- Integration into the component architecture in such a way that I
  can specify the db connection parameters in ZCML and that
  database reflection still works. I want to be able to get a
  handle on
SQLAlchemy   things by calling getUtility.

Please *NO* database specific configurations within ZCML. We're running
applications in up three or four different environments and I don't
want  to maintain instance specific configurations within ZCML. Either
we pass such informations through environment variables or the database
connections parameters are read from a configuration within the
instance  configuration.


As long as it can also be specified in the code, that way people can
build UIs to set up the connection. Perhaps that's what you mean by a
configuration within the instance configuration.


The way I use collective.lead in my book is to have it look up the
database settings in a local utility. That utility is editable via a
control panel page in Plone. I suspect that it'd be quite easy to do
something similar where the settings were deferred to a global utility
configured with ZCML or looked up in a config file of some sort.

Once the config is available, it's all about calling getUtility() to get
hold of a database connection/session.



Possibly a sane and clean solution but way of over-designed. I am 
interested in simple and robust solutions that work and not in a solution 
that adds more and more unnecessary layers just the sake of having them :-)


Andreas

pgpZS98rSgYnq.pgp
Description: PGP signature
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-11 Thread Martin Aspeli
Andreas Jung lists at zopyx.com writes:

  The way I use collective.lead in my book is to have it look up the
  database settings in a local utility. That utility is editable via a
  control panel page in Plone. I suspect that it'd be quite easy to do
  something similar where the settings were deferred to a global utility
  configured with ZCML or looked up in a config file of some sort.
 
  Once the config is available, it's all about calling getUtility() to get
  hold of a database connection/session.
 
 Possibly a sane and clean solution but way of over-designed. I am 
 interested in simple and robust solutions that work and not in a solution 
 that adds more and more unnecessary layers just the sake of having them 

collective.lead doesn't enforce this style at all. If you want TTW configurable
connections, though, it's a good pattern to use.

All collective.lead does is:

 - Set up database connections and engines properly
 - Hook into transaction machinery so you don't need to do your own transaction
management
 - Let you look up a database session/connection as a utility

You need to register that utility, of course. Lead has a base class that means
you just fill in a few template methods (database url, and some callbacks for
configuring tables and orm classes).

If you want some kind of config-file based or ZCML based version, you'd just
construct an appropriate class and register it as a utility on startup. Lead
doesn't want to enforce one particular connection parameter configuration model
or config file format. That should be the job of a higher level package that is
concerned only with getting these parameters, not with the database setup 
itself.

However, you probably still need some imperative code to set up the tables and
mappers.

Martin

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-11 Thread Martijn Faassen

Brian Sutherland wrote:
[snip]

Unfortunately, it doesn't seem an option, right now, to avoid using ZCML
to setup database connections. So I'm not sure how you want to implement
your ideas?


collective.lead can do it without ZCML; you set up the right connection 
by implementing a 'url' property on a (global) utility. This to me seems 
to be flexible, as the code could get the connection from anywhere.


Regards,

Martijn

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-11 Thread Martijn Faassen

Andreas Jung wrote:
[snip]
Possibly a sane and clean solution but way of over-designed. I am 
interested in simple and robust solutions that work and not in a 
solution that adds more and more unnecessary layers just the sake of 
having them :-)


It's a 1 liner to set up the connection in this story if you want to 
hard-code it in Python, and by implementing it as a property, you can 
get the connection string from any place you want, including environment 
variables or whatever else your Python code can get to. This cuts the 
whole debate about where the connection string should come from short, 
as you can code whatever you want yourself.


This has an example of the utility setup:

http://faassen.n--tree.net/blog/view/weblog/2008/04/08/0

Regards,

Martijn

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-11 Thread Reinout van Rees

Brian Sutherland schreef:


Unfortunately, it doesn't seem an option, right now, to avoid using ZCML
to setup database connections. So I'm not sure how you want to implement
your ideas?


Something we did for an LDAP connection that needed the same kind of 
server-dependent config: put an ldapconfig.py file in zope's etc/ dir 
and load that if available from the code that configures ldap.



Not the best of solutions, probably, but it worked. What I wanted to 
say: this *is* a way to avoid using zcml!


Reinout

--
Reinout van Rees  Blog: http://vanrees.org/weblog/
[EMAIL PROTECTED]  Work: http://zestsoftware.nl/
http://vanrees.org  Video: http://reinout.blip.tv/

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: What happened to the infrae.subversion and py eggs?

2008-04-11 Thread Reinout van Rees

Wichert Akkerman schreef:

Previously Reinout van Rees wrote:

Tres Seaver schreef:

Daniel Nouri wrote:

1.0dev-r27844 seems to be gone from PyPI.

Such a version should *never* have been released to PyPI (any egg /
source dist with an SVN revision number in its filename is *not*
suitable for sharing with the wider world).
I've made it a habit *not* to enable the option in setup.cfg that adds 
those svn revision numbers to the version. It is enabled by default in 
all/most of the ZopeSkel-generated packages that I use.


I recently started adding that option again for some of my projects. For
a few frequently updated sites I do a lot of updates  installs without
making full releases and it is extremely convenient to be able to see
which exact revision number I'm currently using.


Those are probably private and not on pypi, I guess? Or do you do that 
for a few pypi'ed packages, too? I basically don't trust myself enough 
to enable it for public packages :-)


Reinout

--
Reinout van Rees  Blog: http://vanrees.org/weblog/
[EMAIL PROTECTED]  Work: http://zestsoftware.nl/
http://vanrees.org  Video: http://reinout.blip.tv/

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-11 Thread Bernd Dorn


On 11.04.2008, at 10:09, Brian Sutherland wrote:
Unfortunately, it doesn't seem an option, right now, to avoid using  
ZCML
to setup database connections. So I'm not sure how you want to  
implement

your ideas?


+1

k, i didn't read the whole thread, but we (lovely systems) use  
zope.storm but i think its the same story somehow and we do all  
instance specific configuration in zcml - also database uris.
we have a base.zcml config for all instances and include this it and  
do all instance specific configuration in an instance specific zcml  
file. this file is then used with the site-definition otpion in  
zope.conf. i can see no reason why we should avoid zcml except in  
environments where there is no zcml at all.


although it is a few lines of code to get db uris from somewhere else,  
and this could also be application code


regards, bernd





smime.p7s
Description: S/MIME cryptographic signature
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: What happened to the infrae.subversion and py eggs?

2008-04-11 Thread Wichert Akkerman
Previously Reinout van Rees wrote:
 Wichert Akkerman schreef:
 Previously Reinout van Rees wrote:
 Tres Seaver schreef:
 Daniel Nouri wrote:
 1.0dev-r27844 seems to be gone from PyPI.
 Such a version should *never* have been released to PyPI (any egg /
 source dist with an SVN revision number in its filename is *not*
 suitable for sharing with the wider world).
 I've made it a habit *not* to enable the option in setup.cfg that adds 
 those svn revision numbers to the version. It is enabled by default in 
 all/most of the ZopeSkel-generated packages that I use.
 
 I recently started adding that option again for some of my projects. For
 a few frequently updated sites I do a lot of updates  installs without
 making full releases and it is extremely convenient to be able to see
 which exact revision number I'm currently using.
 
 Those are probably private and not on pypi, I guess? Or do you do that 
 for a few pypi'ed packages, too? I basically don't trust myself enough 
 to enable it for public packages :-)

I do that frequently for packages which are also on pypi. We do it for
all plone.* and plone.app.* packages for example. I just don't upload
those dev revisions to pypi. 

Wichert.

-- 
Wichert Akkerman [EMAIL PROTECTED]It is simple to make things.
http://www.wiggy.net/   It is hard to make things simple.
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: [zope.testing.doctest] a nasty surprise

2008-04-11 Thread Dieter Maurer
Balazs Ree wrote at 2008-4-11 09:19 +0200:
 ...
 In order to analyse a difficult problem, I added from dm.pdb import
 zpdb; zpdb.set_trace() in the doctest (dm.pdb.zpdb is my Zope aware
 PDB extension)
 
 The standard PDB works fine.  I'm sure you're extended version can be
 tweaked to as well.

I have similar issues with ipdb. - similar in sense that I cannot use it 
when running from doctests.

Any any other debugger, too, will have problems.


Usually, I am no fan of explicit is better than implicit.
But, in this case, I think it would give a much better solution.

Apparently, the debugger integration works by wrapping
some class (_OutputRedirectingPdb) around a given debugger
and then use this debugger instead of the wrapped on.

How about documenting this wrapping class.
Then any debugger author can use the class to wrap his
debugger and use it.


For this special case, we do not need monkey patching.

import myWrappedDebugger; myWrappedDebugger.set_trace()

(or for the standard debugger:
from zope.testing import pdb; pdb.set_trace())

is only slightly more complex than

import pdb; pdb.set_trace()



-- 
Dieter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-11 Thread Martijn Faassen

Bernd Dorn wrote:
[whether configuration should be in ZCML]
although it is a few lines of code to get db uris from somewhere else, 
and this could also be application code.


I'm not against ZCML, as long as those lines of code to get the db URI 
from application code also exist. A good API to configure things without 
ZCML is necessary (that the ZCML can then turn around and use - this is 
a good way to create ZCML directives anyway).


A nice thing about collective.lead is that it doesn't introduce custom 
ZCML directives, so in Grok, using it means there's no ZCML at all and 
no need to write any grokkers for it either. If it did introduce custom 
directives to do the same thing, that's fine, as long the original way 
isn't damaged by it.


Regards,

Martijn

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-11 Thread Stephan Richter
On Friday 11 April 2008, Bernd Dorn wrote:
 although it is a few lines of code to get db uris from somewhere else,  
 and this could also be application code

if you use paster, you can stick options into your pater ini script. We are 
currently doing this for a setting in our app.

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. Zope Stephan Richter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: straighting out the SQLAlchemy integration mess

2008-04-11 Thread Brian Sutherland
On Fri, Apr 11, 2008 at 01:21:45PM +0200, Andreas Jung wrote:
 Unfortunately, it doesn't seem an option, right now, to avoid using ZCML
 to setup database connections. So I'm not sure how you want to implement
 your ideas?


 I have no need for ideas to be implemented. We're using SA within in 
 several large projects based on z3c.sqlalchemy. And nothing beats the 
 simplicity
 of of an .ini file or an environment variable.

I see. I suppose you could also write a zcml declaration to pluck out
the database config from an environment variable and register a utility.

 In general, I think if you want your configuration expressed in ZConfig
 and available as a utility, you have a problem.

 I'm not sure of:
 * How do I register a utility in ZConfig?

 z3c.sqlalchemy provides a method for registering a SA connection as a named 
 utility. This code is usually called during the startup phase of Zope 
 within the related initialize() methds of our products. The DSN are 
 acquired from well-known environment variables...this just works - easy, 
 simple, reliable.

 * How will the above registration work properly in functional tests
   (especially with tearing down and setting up layers)?

 Functional tests in our company are tests done by humans. Why? Our 
 applications are very complex with lots of dependencies. Not speaking of 
 lots of involved databases, big storages..

I try do what I can... which is relatively minimal.

At least some components are thoroughly tested with the parts of the db
schema they depend on. 

-- 
Brian Sutherland
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[ZWeb] zope.org member registration temporary disabled

2008-04-11 Thread Michael Haubenwallner

FYI, i've just disabled the member registration on zope.org.

This is a temporary measure against the current creation of arbitray 
accounts. I'll open registration after the weekend again, lets hope the 
spammers have moved on then.


If you realy need an account now, drop me a mail.

Michael

--
http://www.zope.org/Members/d2m
http:/planetzope.org

___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


Re: [Zope] Re: i18n/L10n support in zope2

2008-04-11 Thread harshad behere

Maurits van Rees wrote:


After making change  and updating sample page template - (English as 
primary language for both browsers)


html
body
English -
span i18n:domain=English i18n:translate=
Reload this catalog
/span
br
German -
span i18n:domain=Germany i18n:translate=
Reload this catalog
/span
br
Czech -
span i18n:domain=Czech i18n:translate=
Reload this catalog
/span
br
/body
/html



Huh? You now state languages in the i18n domain.  Don't you mean to
make this three times the same domain and then perhaps add the
i18n:target en/de/cs?

  


Yes..using i18n:target (not in Zope 2.9.7 at least as no support there 
:) ) with single domain can be much better approach. But honestly I am 
just beginner in this i18n/L10n arena, so need to work on i18n/L10n 
rules/standards.


Thank you,
Harshad.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: the grand reunion

2008-04-11 Thread Raphael Ritz

Yuri wrote:

Hi!



Hi Yuri,

[..]



I would like to have an easy way to develop without having to be subject 
to dependencies from other envinroment, minimize the effort to mantain 
it and focus on doing things :)




Maybe not exactly what you are asking for but I recommend you play
with buildout a bit - I'm sure you'll appreciate the ease with which
you can manage independent installations in a repeatable and easily
modifiable way.

Is one big zope installation, with multiple instances, well suited for 
this tasks? Or is better different zope versions? What about the various 
Data.fs, is better to have them separated by application or by zope 
envinroment? I mean all the Plone in a single Data.fs or each one in a 
separated Data.fs?




Without further knowing how these sites might be related or not
this is hard to answer but often times I prefer to have separate
Zope instances (- different ZODBs) for different Plone sites.
Even if they share substantial configuration/add-ons etc.
Again, using buildout makes it a snap to create and maintain
as many Zope instances as you want. And using a common buildout
cache they can also mostly share the basic installation.

Just my 2 cents,

Raphael


So, what is the best approach to migrate the three servers?
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-11 Thread Chris Withers

Tom Von Lahndorff wrote:

How is dtml more error-prone than python? I'd imagine that all depends on
who's authoring it.


In this particular example, python's email package has a very OO 
approach to generating emails.


The DTML approach relies on you remembering to put in the right 
statements for the right constituent email parts in the right places.
It's easy to make mistakes and generate emails that won't work with most 
clients.


It's also harder to generate emails with the correct headers (Date, 
Message-ID, etc) than it should be, so you're more likely to pump out 
email that mtas consider to be spam.


The DTML approach also makes attaching files a living hell...

cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ExternalMethod - add new parameter

2008-04-11 Thread Chris Withers

rishi pathak wrote:

  We have a portal using which users use our compute resources.
  In zope we use NIS authentication for validating a user.We
have many things that requires root/logged in user privledeges.One example
is of a 'file system explorer'.In this I have used ZFSpath product.This
explorer is used by users to navigate through their home areas and select
what ever file they want.As of now I have changed some functions of ZFSpath
class which I was using so that they can be executed as the logged in
user(since zope does not have rwx permissions on other user's
directory).This is just one case.Hope I have cleared myself well.


You are playing a mind numbingly dangerous game.

Good luck to you, but I hope people on this list refrain from further 
helping you point that large canon at your left toe...


Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ExternalMethod - add new parameter

2008-04-11 Thread rishi pathak
hi again,
  Let me clarify what I am doing and what is my approach till
now.
  We have a portal using which users use our compute resources.
  In zope we use NIS authentication for validating a user.We
have many things that requires root/logged in user privledeges.One example
is of a 'file system explorer'.In this I have used ZFSpath product.This
explorer is used by users to navigate through their home areas and select
what ever file they want.As of now I have changed some functions of ZFSpath
class which I was using so that they can be executed as the logged in
user(since zope does not have rwx permissions on other user's
directory).This is just one case.Hope I have cleared myself well.

On Wed, Apr 9, 2008 at 11:44 PM, Dieter Maurer [EMAIL PROTECTED] wrote:

 rishi pathak wrote at 2008-4-8 18:03 +0530:
  I dont have a need to run all the external method as root,
 only
 some of them.

 I did understand this *BUT* you do not have a choice.

  While a single ExternalMethod runs as root, the complete
  Zope process runs as root -- and this applies to all
  requests which are run in parallel with your ExternalMethod.

 Please reread my former message.

 If you have touble to understand the terms thread and/or process,
 consult Wikipedia to get some insight.

  ...
 On Tue, Apr 8, 2008 at 12:50 AM, Dieter Maurer [EMAIL PROTECTED]
 wrote:
 
  rishi pathak wrote at 2008-4-7 17:46 +0530:
  There is a requirement for running some external methods as super
 user.
  For this I thought of adding a new parameter.If set the code would be
  executed with effective uid of root.
 
  This is extremely dangerous.
 
  To run code as super user, you need to change the effective user id.
  Changing the effective user id affects the whole process -- not just
  the thread executing your external method.
  These things are very difficult to handle in a multi threaded
 environment,
  in general.
  Moreover, running internet driven code uncontrolled as super user
  is likely to be a big security risk.
 
 
  Let your application write some command to a queue and process
  the queue asynchronously. The processing can be performed as
  super user.
 
  If this is not possible, let your application communicate
  with another process which runs as super user -- and pass on
  synchronous commands from your application to this process.
 
  In both cases, it is ensured that only the restricted command
  set can be used to run something as super user -- and
  not some arbitrary code



 --
 Dieter




-- 
Regards--
Rishi Pathak
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Conditional dtml-boundary in dtml-sendmail

2008-04-11 Thread Chris Withers

Tom Von Lahndorff wrote:

The email library should be available to use with a Script (Python) and can
be done all within the ZMI.


Yes, I wish it was. I believe that was one of the things I did in the 
MailTemplates product: just make the standard python email package bits 
available in Zope protected code.


Still, if Josef can't get products installed, he's limited to a world of 
suck when it comes to email :-(


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] the grand reunion

2008-04-11 Thread Yuri

Hi!

Actually I've two Plone working envinronment and one zope, each in a 
different machine:


- one, with two zope 2.9 istances (one for developing), running both 
multiple Plone 2.5 instances

- one, with zope 2.9, running multiple Plone 2.5 instances
- one, with zope 2.7.9, running zope only applications

We have bought big iron hardware now, where I can do almost 
everything (with a fiber channel network storage, multiple rack servers).


tipically, I use one instance to develop, and one to deploy. This mean 
different zope instances which shares only the base, and having 
different products.


I would like to have an easy way to develop without having to be subject 
to dependencies from other envinroment, minimize the effort to mantain 
it and focus on doing things :)


Is one big zope installation, with multiple instances, well suited for 
this tasks? Or is better different zope versions? What about the various 
Data.fs, is better to have them separated by application or by zope 
envinroment? I mean all the Plone in a single Data.fs or each one in a 
separated Data.fs?


So, what is the best approach to migrate the three servers?
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Upgrade to 2.7.2 results in all content unavailable

2008-04-11 Thread Jonathan


- Original Message - 
From: Wes Modes [EMAIL PROTECTED]

To: zope@zope.org
Sent: Friday, April 11, 2008 12:04 AM
Subject: [Zope] Upgrade to 2.7.2 results in all content unavailable


I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope.  
Honestly I'm not sure what the previous version I was running was (nor 
am I sure how to find out).


Now, every page results in

Site Error
An error was encountered while publishing this resource.
Resource not found
Sorry, the requested resource does not exist.
Check the URL and try again.
Resource: Zope GET


What version of zope did you upgrade from?
What happens when you try to access any of the problem objects via the ZMI?


Jonathan

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Help writing test where bobobase_modification_time changes

2008-04-11 Thread Peter Bengtsson
Thanks for the tips Chris and Dieter, I actually solved it in a very simple way:


from OFS.Image import File
from time import time
class MockFile(File):
 This file works the same as a normal File expect that
in manage_edit() the internal modification time is set immediately.
Normally Zope objects get their internal modification set when
the transaction manager commits.


def manage_edit(self, title, content_type, precondition='',
filedata=None, REQUEST=None):
# here's the mock hack, we set the _p_mtime NOW instead of letting
# the transaction manager do it at the end.
self._p_mtime = time()
return File.manage_edit(self, title, content_type,
precondition=precondition,
filedata=filedata, REQUEST=REQUEST)

This worked beautifully in the integration test. I'm happy.

On 10/04/2008, Chris Withers [EMAIL PROTECTED] wrote:
 Peter Bengtsson wrote:

  How can I solve this? Make one big transaction two without having to
  use transaction.get().commit() which I don't think I can use in unit
  tests as per Dieter's advice.
 

  I'd suggest monkeypatching bobobase_modification_time on the objects you're
 testing with. You're testing your cache code, not the implementation of
 those objects, so replacing them with (partially) dummy objects is great for
 avoiding this kind of problem and is a pattern I've used frequently...

  cheers,

  Chris

  --
  Simplistix - Content Management, Zope  Python Consulting
- http://www.simplistix.co.uk



-- 
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Conditional dtml-boundary in dtml-sendmail

2008-04-11 Thread Josef Meile

Tom Von Lahndorff wrote:
How is dtml more error-prone than python? I'd imagine that all 
depends on

who's authoring it.


In this particular example, python's email package has a very OO 
approach to generating emails.

Yes, that's what I hate from the dtml thing; it looks ugly :-(

The DTML approach relies on you remembering to put in the right 
statements for the right constituent email parts in the right places.
It's easy to make mistakes and generate emails that won't work with most 
clients.


It's also harder to generate emails with the correct headers (Date, 
Message-ID, etc) than it should be, so you're more likely to pump out 
email that mtas consider to be spam.

Actually, I did several mistakes: first, if you include a blank line
just after finishing defining the email settings, ie: To, From,
Content-Type, etc, you will get your email, but in a format that you
can't read.

The second problem was with the unicode: first I got the characters
wrong on the email subject, but on the mail's body were ok, then I
change something and got them good on the subject, but on the
body non-ascii characters were dropped. After lots of testing, I
finally saw that you have to define content-type everywhere: on the
mail headers and also on the text-mime contents. Then you have to
encode all your strings to utf-8.


The DTML approach also makes attaching files a living hell...

Yep, I agree on this. You can't dynamically set the number of
attachments and even if you don't submit a file on your form, zope
will send an empty file with a strange name.


Well, I guess I will do an external method on my own server and then try
to convince the people owning the machine where the page is hosted to
include it. Otherwise, my last resouce would be to embebbed the content
on a iframe or call an external link to my server.

Thanks anyways for your replies.

Best regards
Josef
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Upgrade to 2.7.2 results in all content unavailable

2008-04-11 Thread Martijn Jacobs
And do you see any errors when starting zope with zopectl fg ? (or do 
you see any errors in the log/event.log file?)





- Original Message - From: Wes Modes [EMAIL PROTECTED]
To: zope@zope.org
Sent: Friday, April 11, 2008 12:04 AM
Subject: [Zope] Upgrade to 2.7.2 results in all content unavailable


I upgraded to Zope 2.7.2 and all of my content can't be seen by 
Zope.  Honestly I'm not sure what the previous version I was running 
was (nor am I sure how to find out).


Now, every page results in

Site Error
An error was encountered while publishing this resource.
Resource not found
Sorry, the requested resource does not exist.
Check the URL and try again.
Resource: Zope GET


What version of zope did you upgrade from?
What happens when you try to access any of the problem objects via the 
ZMI?



Jonathan

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )



--
Martijn Jacobs
Four Digits, Internet Solutions

a: Willemsplein 15-1 6811 KB Arnhem NL 
kvk: 09162137 | btw: 8161.22.234.B01

e-mail: [EMAIL PROTECTED] | web: http://www.fourdigits.nl
tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117 


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Conditional dtml-boundary in dtml-sendmail

2008-04-11 Thread Josef Meile
The email library should be available to use with a Script (Python) and 
can be done all within the ZMI. Otherwise maybe use dtml-try?

Well, I should have mentioned this: the zope installed on the server is
2.8.x. Yes, it is old, but it is because all the page uses an own CMS
based on silva, which isn't compatible with newer versions.

I tried this:

import email

and it worked; however, as soon as I tried this:

from email.MIMEText import MIMEText
msg = MIMEText('Sending mail through python module')

or

import email
msg = email.MIMEText.MIMEText('Sending mail through python module')

An Unauthorized exception comes. So, I guess MIMEText is protected at
least on 2.8.x. But I guess in 2.11.x is protected as well, or am I
wrong?

Thanks for your reply. I guess there is no way of achieving what I want
on dtml, so, I will try to do it an external method and try to convince
people there to store it on the server or I will have to do it on my
own server and embebbed it on an iframe or call an external link.

Best regards
Josef
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [Plone-developers] the grand reunion

2008-04-11 Thread robert rottermann

hi yuri,

when setting up a zope/zeo task and everything was still a bit of a 
challenge (at least to me) we tended to have everything in one big 
instance that served some 20 low traffic sites.
since then setting up a site with all the tools it needs has become a 
trivially easy and quick to execute task. we have converted nearly all 
these sites to have their own instance.


I would not do it differently anymore ..

robert

Yuri schrieb:

Hi!

 Actually I've two Plone working envinronment and one zope, each in a 
different machine:


 - one, with two zope 2.9 istances (one for developing), running both 
multiple Plone 2.5 instances

 - one, with zope 2.9, running multiple Plone 2.5 instances
 - one, with zope 2.7.9, running zope only applications

 We have bought big iron hardware now, where I can do almost 
everything (with a fiber channel network storage, multiple rack servers).


tipically, I use one instance to develop, and one to deploy. This mean 
different zope instances which shares only the base, and having 
different products.


I would like to have an easy way to develop without having to be subject 
to dependencies from other envinroment, minimize the effort to mantain 
it and focus on doing things :)


 Is one big zope installation, with multiple instances, well suited for 
this tasks? Or is better different zope versions? What about the various 
Data.fs, is better to have them separated by application or by zope 
envinroment? I mean all the Plone in a single Data.fs or each one in a 
separated Data.fs?


 So, what is the best approach to migrate the three servers?

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

___
Plone-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/plone-developers




___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] retrieving a single column from database and giving it as hyper link fetching respective data

2008-04-11 Thread Thomas Bennett
On Friday 11 April 2008 01:02, member madhangc wrote:
 Dear all,

 I'm developing a biological database using Zope 2.6 and pgsql. Let me
 explain my issue with an example. There is a menu called Drug in my
 homepage, by clicking the menu the drug names along with their type in two
 different columns get displayed in the body. I can do things till that. My
 problem is , lets say there is a link called Isoniazid   with all other
 links(drug names) in it. When a user clicks one of the links as i said
 before as isoniazid only the information about isoniazid has to be
 retreived and displayed , likewise to all the other drug links.  I have no
 idea how to capture the click event and the data to be retrieved. Can
 someone help. Thanks in advance.

From your description I can't tell if you are already populating the 
two column page from a database or if it is a static html page.  If 
I understand your issue correctly you can do all this with your 
database.  You may have to add more columns to provide the 
interaction you need.

I have a similar situation with a three column subjects page 
where clicking on each subject brings up a page with a list of
 online databases and descriptions for each.  Within each 
description is a link to the online database.

Again, if I understand your issue, have your two column page be 
created from a db that contains the a record number and the drug 
name.  That template can build a link based on the record number 
to another template and the second template would query the 
database for a description field or whatever.

so the first page would build its contents sorta like this.

dtml-in get_drug _names
   a href=http:/link/to/my/description/template/?my_recnum=dtml-var 
drug_name_recnumdtml-var my_drug_name/a
/dtml-in

same thing can be done in pagetemplates.  You can see my example at

 http://www.library.appstate.edu/vdb/subjectgeneral05.html

The list of subjects comes from a database and there are three select 
statements to make the three columns, select the first third, second third,
and then the last third and use css.  Each subject link to another template 
that selects data from the main table based on subject table's related field.  
And, on that second page you can narrow down the results by media type 
such as book, newspaper, audio, etc. which is a field in the database title 
table.

Let me know if I misinterpreted your request, as I get older this becomes 
more frequent ;-)


 And another query, how can i select text from a dropdown box. I just need
 the data which is selected in the dropdown box and sent as query.

 Thanks again.

If you click on a letter at the top you will see a list box on the right which 
uses 
a javascript called jumpmenu and OnChange which should work or be close to 
what you want.  There is not an action attribute for the list box and no 
button, the
Javascript takes care of it.


Thomas


-- 

Thomas McMillan Grant Bennett   Appalachian State University
Operations  Systems AnalystP O Box 32026
University Library  Boone, North Carolina 28608
(828) 262 6587

... using OpenOffice.org, and save them back to disk automatically,
in MS Word format.  They surf the Web, check e-mail, do instant 
messsaging, view YouTube videos, visit their Facebook pages, learn 
touch-typing skills and lots more.  Our public library has been 
offering these Linux public stations for the past three years.
 - Phil Shapiro Linux Journal January 2008

Library Systems Help Desk: https://www.library.appstate.edu/help/

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Critical system hosed (was: Upgrade to 2.7.2 results in all content unavailable)

2008-04-11 Thread Wes Modes
Nope.  No errors, with zopectl or in event.log.  Starts happily, though 
clearly not pointing at my old content.  Though it would seem 
/var/lib/zope/etc/zope.conf has the following correctly defined:


   %define INSTANCE /var/lib/zope
   %define ZOPE /usr/lib/zope
   instancehome $INSTANCE

And my data files appear to be at

   /var/lib/zope/var/Data.fs

with appropriate permissions and ownership.  The file hasn't been 
touched since the time I did the upgrade, though the lock file in the 
same directory has.


Still though, I get the Resource not found screen from every page I 
attempt to access.  The university library relies on zope, so getting 
this fixed is the highest priority.


As for why version 2.7.2?  Well, I didn't intend to update at all, but 
an errant up2date, the RHEL rpm updater, did it for me.  And since the 
previous sysadmin built it from source and possibly put some things in 
non-standard places, disaster strikes.  And 2.7.2 was apparently the 
highest version for which rpms were available. 

I am concerned that an upgrade to the latest version would take days 
(maybe weeks) of work to reconcile differences, and resolve problems and 
dependencies.  And worse case, it might never see all our zope data 
again.  The highest priority here is to get it working ASAP.


W.

Martijn Jacobs wrote:
And do you see any errors when starting zope with zopectl fg ? (or do 
you see any errors in the log/event.log file?)





- Original Message - From: Wes Modes [EMAIL PROTECTED]
To: zope@zope.org
Sent: Friday, April 11, 2008 12:04 AM
Subject: [Zope] Upgrade to 2.7.2 results in all content unavailable


I upgraded to Zope 2.7.2 and all of my content can't be seen by 
Zope.  Honestly I'm not sure what the previous version I was running 
was (nor am I sure how to find out).


Now, every page results in

Site Error
An error was encountered while publishing this resource.
Resource not found
Sorry, the requested resource does not exist.
Check the URL and try again.
Resource: Zope GET


What version of zope did you upgrade from?
What happens when you try to access any of the problem objects via 
the ZMI?



Jonathan

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )





--

Wes Modes
Server Administrator  Programmer Analyst
McHenry Library
Computing  Network Services
Information and Technology Services
459-5208
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Upgrade to 2.7.2 results in all content unavailable

2008-04-11 Thread Jonathan


- Original Message - 
From: Wes Modes [EMAIL PROTECTED]

To: Jonathan [EMAIL PROTECTED]
Sent: Friday, April 11, 2008 12:52 PM
Subject: Re: [Zope] Upgrade to 2.7.2 results in all content unavailable



Jonathan, thanks for writing.  Please pardon my zope ignorance.

What happens when you try to access any of the problem objects via the
ZMI? 

How would I do this?

Wes


You typically access the Zope Management Interface (ZMI) by going the url 
for your zope-based web site with '/manage'. eg.  www.myzopesite.com/manage


You will then be asked for a username and password (if you don't have this 
information, you need to use the 'emergency user' - google for 'zope 
emergency user').


You may also want to look at the Zope Book... 
http://www.plope.com/Books/2_7Edition - i don't know if this is the most 
recent version, but it is a good starting point.



Jonathan


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Upgrade to 2.7.2 results in all content unavailable

2008-04-11 Thread Dieter Maurer
Wes Modes wrote at 2008-4-10 21:04 -0700:
I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope.  
Honestly I'm not sure what the previous version I was running was (nor 
am I sure how to find out).

Now, every page results in

Site Error
An error was encountered while publishing this resource.
Resource not found
Sorry, the requested resource does not exist.
Check the URL and try again.
Resource: Zope GET

Difficult problems can be analyzed in interactive Python 
sessions.

Under *nix, you start such a session with bin/zopectl debug
(under Windows, this does not work but there are alternatives).

from request import getRequest
request = getRequest()
obj = request.traverse('pathpart_of_your_url')
obj()

If authentication is required, you use

from request import getAuthRequest
request = getAuthRequest(user, password)


If there are problems, you use pdb.pm() (or dm.pdb.zpbd.pm()
for better Zope support) to analyse them.



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Upgrade to 2.7.2 results in all content unavailable

2008-04-11 Thread Dieter Maurer
Dieter Maurer wrote at 2008-4-11 19:13 +0200:
Wes Modes wrote at 2008-4-10 21:04 -0700:
I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope.  
Honestly I'm not sure what the previous version I was running was (nor 
am I sure how to find out).

Now, every page results in

Site Error
An error was encountered while publishing this resource.
Resource not found
Sorry, the requested resource does not exist.
Check the URL and try again.
Resource: Zope GET

Difficult problems can be analyzed in interactive Python 
sessions.

Under *nix, you start such a session with bin/zopectl debug
(under Windows, this does not work but there are alternatives).

from request import getRequest
request = getRequest()
obj = request.traverse('pathpart_of_your_url')
obj()

If authentication is required, you use

from request import getAuthRequest
request = getAuthRequest(user, password)


If there are problems, you use pdb.pm() (or dm.pdb.zpbd.pm()
for better Zope support) to analyse them.

I forgot. You can download request.py from

  http://www.dieter.handshake.de/pyprojects/zope/request.py


In order to get rid of a deprecation warning, you must replace Zope
with Zope2.


-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Upgrade to 2.7.2 results in all content unavailable

2008-04-11 Thread Wes Modes
Yeah, so when I said all content, I really meant it.  There is nothing 
through the web interface that does not result in


*Site Error *
An error was encountered while publishing this resource.
*Resource not found*
Sorry, the requested resource does not exist.
Check the URL and try again.
*Resource:* Zope GET

Including the ZMI. 

I imagine this is something simple, but I can't imagine what it is.   I 
can sysadmin my way out of a paper bag, but when it comes to Zope I'm a 
n00b.


W.



Jonathan wrote:


- Original Message - From: Wes Modes [EMAIL PROTECTED]
To: Jonathan [EMAIL PROTECTED]
Sent: Friday, April 11, 2008 12:52 PM
Subject: Re: [Zope] Upgrade to 2.7.2 results in all content unavailable



Jonathan, thanks for writing.  Please pardon my zope ignorance.

What happens when you try to access any of the problem objects via the
ZMI? 

How would I do this?

Wes


You typically access the Zope Management Interface (ZMI) by going the 
url for your zope-based web site with '/manage'. eg.  
www.myzopesite.com/manage


You will then be asked for a username and password (if you don't have 
this information, you need to use the 'emergency user' - google for 
'zope emergency user').


You may also want to look at the Zope Book... 
http://www.plope.com/Books/2_7Edition - i don't know if this is the 
most recent version, but it is a good starting point.



Jonathan





--

Wes Modes
Server Administrator  Programmer Analyst
McHenry Library
Computing  Network Services
Information and Technology Services
459-5208
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Upgrade to 2.7.2 results in all content unavailable

2008-04-11 Thread Wes Modes
Here's what I get in interactive python.  I tried this earlier thanks to 
http://www.zope.org/Documentation/Books/ZDG/current/TestingAndDebugging.stx


   [EMAIL PROTECTED] zope]# bin/zopectl debug*
   Starting debugger (the name app is bound to the top-level Zope object)
   2008-04-11 10:36:53 WARNING Init Class
   Products.HappySession.HappySession.HappySession has a security
   declaration for nonexistent method 'manage_menu'
   /usr/lib/python2.3/xmllib.py:9: DeprecationWarning: The xmllib
   module is obsolete.  Use xml.sax instead.
 warnings.warn(The xmllib module is obsolete.  Use xml.sax
   instead., DeprecationWarning)
   /usr/lib/zope/lib/python/Products/ZPyGreSQLDA/db.py:89:
   DeprecationWarning: the regex module is deprecated; please use the
   re module
 import _pg, regex, sys, types
   /usr/lib/zope/lib/python/Products/ZpdfDocument/ZpdfDocument.py:52:
   DeprecationWarning: Non-ASCII character '\xe2' in file
   /usr/lib/zope/lib/python/Products/ZpdfDocument/pdflib.py on line
   355, but no encoding declared; see
   http://www.python.org/peps/pep-0263.html for details
 import pdflib,elements
   2008-04-11 10:36:54 WARNING Init Ambiguous name for method of
   Products.ZpdfDocument.ZpdfDocument.ZpdfDocument: 'manage' !=
   'manage_main'
   2008-04-11 10:36:54 WARNING Init Ambiguous name for method of
   Products.ZpdfDocument.ZpdfDocument.ZpdfDocument: 'manage' !=
   'manage_editDocument'
   2008-04-11 10:36:54 WARNING Init Ambiguous name for method of
   Products.ZpdfDocument.ZpdfDocument.ZpdfDocument: 'manage' !=
   'manage_editForm'
   2008-04-11 10:36:54 ERROR ZODB.lock_file Error locking file
   /var/lib/zope/var/Data.fs.lock
   Traceback (most recent call last):
 File /usr/lib/zope/lib/python/ZODB/lock_file.py, line 63, in
   __init__
   lock_file(self._fp)
 File /usr/lib/zope/lib/python/ZODB/lock_file.py, line 42, in
   lock_file
   fcntl.flock(file.fileno(), _flags)
   IOError: [Errno 11] Resource temporarily unavailable
   Traceback (most recent call last):
 File string, line 1, in ?
 File /usr/lib/zope/lib/python/Zope2/__init__.py, line 51, in app
   startup()
 File /usr/lib/zope/lib/python/Zope2/__init__.py, line 47, in startup
   _startup()
 File /usr/lib/zope/lib/python/Zope2/App/startup.py, line 57, in
   startup
   DB = configuration.dbtab.getDatabase('/', is_root=1)
 File /usr/lib/zope/lib/python/DBTab/DBTab.py, line 96, in
   getDatabase
   db = self._createDatabase(name, is_root)
 File /usr/lib/zope/lib/python/DBTab/DBTab.py, line 113, in
   _createDatabase
   db = factory.open()
 File /usr/lib/zope/lib/python/Zope2/Startup/datatypes.py, line
   163, in open
   DB = self.createDB()
 File /usr/lib/zope/lib/python/Zope2/Startup/datatypes.py, line
   160, in createDB
   return ZODBDatabase.open(self)
 File /usr/lib/zope/lib/python/ZODB/config.py, line 97, in open
   storage = section.storage.open()
 File /usr/lib/zope/lib/python/ZODB/config.py, line 133, in open
   quota=self.config.quota)
 File /usr/lib/zope/lib/python/ZODB/FileStorage/FileStorage.py,
   line 112, in __init__
   self._lock_file = LockFile(file_name + '.lock')
 File /usr/lib/zope/lib/python/ZODB/lock_file.py, line 63, in
   __init__
   lock_file(self._fp)
 File /usr/lib/zope/lib/python/ZODB/lock_file.py, line 42, in
   lock_file
   fcntl.flock(file.fileno(), _flags)
   IOError: [Errno 11] Resource temporarily unavailable
 from request import getRequest
   Traceback (most recent call last):
 File stdin, line 1, in ?
   ImportError: No module named request

   * import Zope2, ZPublisher*

   * ZPublisher.Zope('/')*
   /usr/lib/zope/lib/python/ZPublisher/Publish.py:247:
   DeprecationWarning: The Zope package has been renamed to Zope2.
   Import of a package named 'Zope' is deprecated and will be disabled
   starting in Zope 2.11.
 module=__import__(module_name, g, g, ('__doc__',))
   Status: 200 OK
   X-Powered-By: Zope (www.zope.org), Python (www.python.org)
   Content-Length: 0
   

   * ZPublisher.Zope('/manage')*
   Status: 404 Not Found
   X-Powered-By: Zope (www.zope.org), Python (www.python.org)
   Bobo-Exception-Line: 644
   Content-Length: 868
   Bobo-Exception-Value: See the server error log for details
   Content-Type: text/html
   Bobo-Exception-Type: zExceptions.NotFound
   Bobo-Exception-File: HTTPResponse.py
   table border=0 width=100%
   tr valign=top
   td width=10% align=center
   nbsp;
   /td
   td width=90%
 h2Site Error/h2
 pAn error was encountered while publishing this resource.
 /p
 pstrongResource not found/strong/p
 Sorry, the requested resource does not exist.pCheck the URL and
   try again./ppbResource:/b http://127.0.0.1/Zope/manage/p
 hr noshade=noshade/
 pTroubleshooting Suggestions/p
 ul
 liThe URL may be incorrect./li
 liThe parameters passed to 

Re: [Zope] Upgrade to 2.7.2 results in all content unavailable

2008-04-11 Thread Jonathan


- Original Message - 
From: Wes Modes [EMAIL PROTECTED]

To: Dieter Maurer [EMAIL PROTECTED]; zope@zope.org
Sent: Friday, April 11, 2008 1:44 PM
Subject: Re: [Zope] Upgrade to 2.7.2 results in all content unavailable



   2008-04-11 10:36:54 ERROR ZODB.lock_file Error locking file
   /var/lib/zope/var/Data.fs.lock
   Traceback (most recent call last):
 File /usr/lib/zope/lib/python/ZODB/lock_file.py, line 63, in
   __init__
   lock_file(self._fp)
 File /usr/lib/zope/lib/python/ZODB/lock_file.py, line 42, in
   lock_file
   fcntl.flock(file.fileno(), _flags)
   IOError: [Errno 11] Resource temporarily unavailable


Make sure you have read/write access to the /var/lib/zope/var directory and 
that is 'owned' by 'zope'



Jonathan

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Upgrade to 2.7.2 results in all content unavailable

2008-04-11 Thread Wes Modes
Better yet, here's a more informative debug output.  It tells me that 
zope thinks this is a new instance.  Though the old database is it place 
right where it should expect to see it.


   [EMAIL PROTECTED] zope]# bin/zopectl debug*
   Starting debugger (the name app is bound to the top-level Zope object)
   2008-04-11 12:04:05 WARNING Init Class
   Products.HappySession.HappySession.HappySession has a security
   declaration for nonexistent method 'manage_menu'
   [snipped a bunch of warnings...]

   * import Zope, ZPublisher*

   * ZPublisher.Zope('')*

   Status: 200 OK
   X-Powered-By: Zope (www.zope.org), Python (www.python.org)
   Content-Length: 4066
   Content-Type: text/html

   [snipped a bunch of html and helpful info]
   Zope Quick Start
   You have not created any users in this Zope instance.  In order to
   log in and manage this Zope instance, you'll need to add an
   adminstrative
   user account.

   If you're running Zope on UNIX or Linux, you can create an
   administrative
   user account via the zopectl adduser command from a shell. 
   bNote: You'll
   need to shut Zope itself down before zopectl adduser will work. 
   Restart

   Zope after executing this command in order to log in./b

   WARNING: you are running Zope 2.8.X with python 2.4.X, this is not a
   supported
   combination. Don't file bugreports or ask for support on zope.org.
   



And apparently, I'm running 2.8.7 not 2.7.2 as I thought.  And I'm not 
supposted to ask you for help.  Help!


W.






Dieter Maurer wrote:

Dieter Maurer wrote at 2008-4-11 19:13 +0200:
  

Wes Modes wrote at 2008-4-10 21:04 -0700:

I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope.  
Honestly I'm not sure what the previous version I was running was (nor 
am I sure how to find out).


Now, every page results in

Site Error
An error was encountered while publishing this resource.
Resource not found
Sorry, the requested resource does not exist.
Check the URL and try again.
Resource: Zope GET
  
Difficult problems can be analyzed in interactive Python 
sessions.


Under *nix, you start such a session with bin/zopectl debug
(under Windows, this does not work but there are alternatives).

   from request import getRequest
   request = getRequest()
   obj = request.traverse('pathpart_of_your_url')
   obj()

If authentication is required, you use

   from request import getAuthRequest
   request = getAuthRequest(user, password)
   

If there are problems, you use pdb.pm() (or dm.pdb.zpbd.pm()
for better Zope support) to analyse them.



I forgot. You can download request.py from

  http://www.dieter.handshake.de/pyprojects/zope/request.py


In order to get rid of a deprecation warning, you must replace Zope
with Zope2.


  


--

Wes Modes
Server Administrator  Programmer Analyst
McHenry Library
Computing  Network Services
Information and Technology Services
459-5208


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce

 http://mail.zope.org/mailman/listinfo/zope-dev )
  


--

Wes Modes
Server Administrator  Programmer Analyst
McHenry Library
Computing  Network Services
Information and Technology Services
459-5208
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Upgrade to 2.7.2 results in all content unavailable

2008-04-11 Thread Thomas Bennett
have you used locate or any other utility to make sure you only have one Zope 
installed, like locate zope.conf ?

Thomas

On Friday 11 April 2008 15:14, Wes Modes wrote:
 Better yet, here's a more informative debug output.  It tells me that
 zope thinks this is a new instance.  Though the old database is it place
 right where it should expect to see it.

 [EMAIL PROTECTED] zope]# bin/zopectl debug*
 Starting debugger (the name app is bound to the top-level Zope
 object) 2008-04-11 12:04:05 WARNING Init Class
 Products.HappySession.HappySession.HappySession has a security
 declaration for nonexistent method 'manage_menu'
 [snipped a bunch of warnings...]

 * import Zope, ZPublisher*

 * ZPublisher.Zope('')*

 Status: 200 OK
 X-Powered-By: Zope (www.zope.org), Python (www.python.org)
 Content-Length: 4066
 Content-Type: text/html

 [snipped a bunch of html and helpful info]
 Zope Quick Start
 You have not created any users in this Zope instance.  In order to
 log in and manage this Zope instance, you'll need to add an
 adminstrative
 user account.

 If you're running Zope on UNIX or Linux, you can create an
 administrative
 user account via the zopectl adduser command from a shell.
 bNote: You'll
 need to shut Zope itself down before zopectl adduser will work.
 Restart
 Zope after executing this command in order to log in./b

 WARNING: you are running Zope 2.8.X with python 2.4.X, this is not a
 supported
 combination. Don't file bugreports or ask for support on zope.org.
 



 And apparently, I'm running 2.8.7 not 2.7.2 as I thought.  And I'm not
 supposted to ask you for help.  Help!

 W.

  Dieter Maurer wrote:
  Dieter Maurer wrote at 2008-4-11 19:13 +0200:
  Wes Modes wrote at 2008-4-10 21:04 -0700:
  I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope.
  Honestly I'm not sure what the previous version I was running was (nor
  am I sure how to find out).
 
  Now, every page results in
 
  Site Error
  An error was encountered while publishing this resource.
  Resource not found
  Sorry, the requested resource does not exist.
  Check the URL and try again.
  Resource: Zope GET
 
  Difficult problems can be analyzed in interactive Python
  sessions.
 
  Under *nix, you start such a session with bin/zopectl debug
  (under Windows, this does not work but there are alternatives).
 
 from request import getRequest
 request = getRequest()
 obj = request.traverse('pathpart_of_your_url')
 obj()
 
  If authentication is required, you use
 
 from request import getAuthRequest
 request = getAuthRequest(user, password)
 
 
  If there are problems, you use pdb.pm() (or dm.pdb.zpbd.pm()
  for better Zope support) to analyse them.
 
  I forgot. You can download request.py from
 
http://www.dieter.handshake.de/pyprojects/zope/request.py
 
 
  In order to get rid of a deprecation warning, you must replace Zope
  with Zope2.
 
  --
 
  Wes Modes
  Server Administrator  Programmer Analyst
  McHenry Library
  Computing  Network Services
  Information and Technology Services
  459-5208
  
 
  ___
  Zope maillist  -  Zope@zope.org
  http://mail.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://mail.zope.org/mailman/listinfo/zope-announce
   http://mail.zope.org/mailman/listinfo/zope-dev )

-- 

Thomas McMillan Grant Bennett   Appalachian State University
Operations  Systems AnalystP O Box 32026
University Library  Boone, North Carolina 28608
(828) 262 6587

... using OpenOffice.org, and save them back to disk automatically,
in MS Word format.  They surf the Web, check e-mail, do instant 
messsaging, view YouTube videos, visit their Facebook pages, learn 
touch-typing skills and lots more.  Our public library has been 
offering these Linux public stations for the past three years.
 - Phil Shapiro Linux Journal January 2008

Library Systems Help Desk: https://www.library.appstate.edu/help/

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Critical System Hosed, Plan B - upgrade zope, convert db

2008-04-11 Thread Wes Modes
Okay, I accept that Zope is a mysterious god that requires sacrifice.  
And I wasn't able to solve the mysteries of how to get it up and running 
again with my old data after an unintentional upgrade.


However...  I can upgrade Python from 2.4.2 to 2.4.4 and upgrade Zope 
from 2.7.2 to 2.10.5, get that working, and then hopefully convert my 
old data.


I can handle the python and zope upgrades, but have no idea how to take 
my old zope database and use it with my brand new zope installation.


Any ideas?

Wes

--

Wes Modes
Server Administrator  Programmer Analyst
McHenry Library
Computing  Network Services
Information and Technology Services
459-5208
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Database conversion

2008-04-11 Thread Wes Modes

I am running Zope 2.10.5  I've just upgraded from Zope 2.7

I would like to move my database to the newly created instance.

I followed the very reasonable and clear instructions here, 
http://svn.zope.org/*checkout*/Zope/trunk/doc/FAQ.txt  (esentially, just 
moving the Data.fs file)


However, the old data does not come up when I bring up the server again.

Perhaps the old objects need conversion or some other juju?

Any suggestions?

W.




--

Wes Modes
Server Administrator  Programmer Analyst
McHenry Library
Computing  Network Services
Information and Technology Services
459-5208
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Database conversion

2008-04-11 Thread Andreas Jung



--On 11. April 2008 17:12:07 -0700 Wes Modes [EMAIL PROTECTED] wrote:


I am running Zope 2.10.5  I've just upgraded from Zope 2.7

I would like to move my database to the newly created instance.

I followed the very reasonable and clear instructions here,
http://svn.zope.org/*checkout*/Zope/trunk/doc/FAQ.txt  (esentially, just
moving the Data.fs file)

However, the old data does not come up when I bring up the server again.

Perhaps the old objects need conversion or some other juju?


Even within the third new thread on this issue you have not told us about
your old application. Is it core Zope?  Using any third party-products?
Please provide details about the things you  have installed. We're not good 
in problem-solving-by-guessing.


And please: don't create a new mail thread for followups. You have one issue
and one mail thread is enough. We don't need three.

Andreas

pgpUteSHucpkF.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )