RE: [Zope-dev] Re: ANNOUNCE: Zope 2.2.1 released - breaks my zclass instances too.

2000-08-31 Thread Brian Lloyd

> I'm absolutely sure that NONE of the things which were broken in the
> original Data.fs had the slightest/faintest connection with any of the
> products I expunged. It was removing the cruft alone which fixed the
> problem. 
> 
> Doesn't this (and the other episode reported by Andy) raise 
> the issue of
> what we can do to ensure that a broken product or piece of a product
> doesn't stop a healthy product and its instances (completely 
> independent
> in the sense of not using any of the broken product's base classes or
> classes) from working? 

I havent been able to reproduce Andy's issue yet either (though 
we're working to figure it out). At this point the only common 
thread seems to be "nested ZClasses", though it is apparently 
not as simple as that. Anyone seeing this problem who can 
provide me with a zipped up Data.fs and a _complete_ description 
of what (Python) products are installed in the affected installation 
would help greatly in being able to reproduce the problem...

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



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




Re: [Zope-dev] Re: ANNOUNCE: Zope 2.2.1 released - breaks my zclass instances too.

2000-08-29 Thread Dr. Ross Lazarus

I'm a little confused - which is not unusual, so please bear with me.

I'm absolutely sure that NONE of the things which were broken in the
original Data.fs had the slightest/faintest connection with any of the
products I expunged. It was removing the cruft alone which fixed the
problem. 

Doesn't this (and the other episode reported by Andy) raise the issue of
what we can do to ensure that a broken product or piece of a product
doesn't stop a healthy product and its instances (completely independent
in the sense of not using any of the broken product's base classes or
classes) from working? 

The instances which were broken were multi-level zclasses which included
ObjectManager and CatalogAware in their base classes. The relevant
products were entirely healthy. The things I got rid of included two
broken things which I never tried to fix (ZDConfera, ZDiscussions) plus
some left over stuff (ZopePTK, PTKBase, PTKDemo, Wizard, Membership,
LoginManager and a few other bits and pieces which I didn't need
although they didn't appear broken..) - none of which had any connection
to the broken zclasses in terms that I can understand - other than
sharing/breaking an otherwise healthy ZODB.


Brian Lloyd wrote:

> >
> > Lesson may be that a Data.fs which works with an earlier zope version
> > may fail when upgrading to 2.2.1 - if so, try
> 
> No - thats not the lesson (at least not the right one)... It looks
> like something in the "cruft" didn't want to be unpickled in the
> new installation (most likely due to a missing piece - a required
> product or base class needed by a piece of cruft didn't get moved
> to the new install). A Data.fs from an earlier version should
> always work with a later version so long as all add-ons are
> replicated in the new installation.
> 
> Brian Lloyd[EMAIL PROTECTED]
> Software Engineer  540.371.6909
> Digital Creations  http://www.digicool.com

-- 

Dr Ross Lazarus
Associate Professor and Sub-Dean for Information Technology
Faculty of Medicine, Room 114, A27, University of Sydney,
Camperdown, NSW 2006, Australia
Tel: (+61 2) 93514429   Mobile: +61414872482  
Fax: (+61 2) 93516646   Email: [EMAIL PROTECTED]

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




RE: [Zope-dev] Re: ANNOUNCE: Zope 2.2.1 released - breaks my zclass instances too.

2000-08-29 Thread Brian Lloyd

> Brian, the tranalyser reported a clean (old) data.fs and I 
> don't use any
> python base classes for any of my zclasses - however, in the interests
> of my own sanity, I'm pleased to report success with an old recipe - I
> started with a fresh Data.fs and cleaned out some cruft from 
> my Products
> folder. After removing all the stuff I'm not using now (ZopePTK and
> ZDConfera/ZDiscussions products in particular), I was able to 
> import my
> zclasses and then the major application folder - everything looks fine
> now and seems to work.
> 
> Lesson may be that a Data.fs which works with an earlier zope version
> may fail when upgrading to 2.2.1 - if so, try 

No - thats not the lesson (at least not the right one)... It looks 
like something in the "cruft" didn't want to be unpickled in the 
new installation (most likely due to a missing piece - a required 
product or base class needed by a piece of cruft didn't get moved 
to the new install). A Data.fs from an earlier version should 
always work with a later version so long as all add-ons are 
replicated in the new installation.

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



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




Re: [Zope-dev] Re: ANNOUNCE: Zope 2.2.1 released - breaks my zclass instances too.

2000-08-28 Thread Dr. Ross Lazarus

Brian, the tranalyser reported a clean (old) data.fs and I don't use any
python base classes for any of my zclasses - however, in the interests
of my own sanity, I'm pleased to report success with an old recipe - I
started with a fresh Data.fs and cleaned out some cruft from my Products
folder. After removing all the stuff I'm not using now (ZopePTK and
ZDConfera/ZDiscussions products in particular), I was able to import my
zclasses and then the major application folder - everything looks fine
now and seems to work.

Lesson may be that a Data.fs which works with an earlier zope version
may fail when upgrading to 2.2.1 - if so, try 

1. Export everything you need (zclasses and data) from your current
working zope into the target zope /import directory
2. clear out all that old cruft which you don't use anymore from your
zinstancehome or other Products folder, 
3. start 2.2.1 with a copy of the distribution Data.fs (cp Data.fs.in
Data.fs)
4. import all your zclasses
5. import all your folders

worked for me.


Brian Lloyd wrote:
> 
> > 2000-08-26T06:03:27 ERROR(200) ZODB Couldn't load state for
> > '\000\000\000\000\000\000\016\204'
> > Traceback (innermost last):
> >   File /usr/local/zope/zope221/lib/python/ZODB/Connection.py,
> > line 447,
> > in setstate
> >   File /usr/local/zope/zope221/lib/python/ZODB/Connection.py,
> > line 213,
> > in _persistent_load
> > (Info:
> >   File /usr/local/zope/zope221/lib/python/ZODB/Connection.py,
> > line 154,
> > in __getitem__
> > (Info: ('\000\000\000\000\000\000*\252',
> > '(cExtensionClass\012ExtensionClass\012q\001(U\006ZDItemq\002(
> > cZClasses.ZClass\012PersistentCl$
> > Could not load oid
> >
> >
> > --- In [EMAIL PROTECTED], Andy Dustman <[EMAIL PROTECTED]> wrote:
> > > Sadly, 2.2.1 seems to break all my ZClass objects. The
> > Products themselves
> > > look fine, but any object made with them comes up as
> > broken. The Class ID
> > > (in the HTML source) looked like it had a * in front of it.
> > I retrograded
> > > to 2.2.0 and the problems went away.
> 
> Hi Ross -
> 
> I'm having trouble reproducing this here, so I wanted to see
> if I could try to rule out a few things:
> 
>   - Does this happen with _all_ of your custom ZClasses, or
> just certain ones?
> 
>   - They dont depend on a Python-level base class or something
> that maybe didn't get moved into the new installation do
> they?
> 
>   - Does tranalyzer.py give your database a clean bill of health?
> 
> If none of the above apply, would it be possible for you to
> send me an export file of one of the products so I can look
> into this further?
> 
> Thanks!
> 
> Brian Lloyd[EMAIL PROTECTED]
> Software Engineer  540.371.6909
> Digital Creations  http://www.digicool.com

-- 

Dr Ross Lazarus
Associate Professor and Sub-Dean for Information Technology
Faculty of Medicine, Room 114, A27, University of Sydney,
Camperdown, NSW 2006, Australia
Tel: (+61 2) 93514429   Mobile: +61414872482  
Fax: (+61 2) 93516646   Email: [EMAIL PROTECTED]

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