[Zope] Ape, UnmanagedJar has no attributes errors

Chris Kratz chris.kratz at vistashare.com
Wed Oct 20 17:05:54 EDT 2004


Wondering if anyone has come across this particular problem.  We are testing 
Zope 2.7.2 with Ape 1.0 set up to use the file system mapping and is mounted 
at the root. ie

%import Products.Ape
<ape-db main>
  <ape-storage>
    mapper-variation filesystem
    <ape-fs-connection fs>
      basepath $INSTANCE/var/fs
    </ape-fs-connection>
  </ape-storage>
  mount-point /
  scan-interval 1
</ape-db>

Most things work fine, but when we go to a product in the Products folder and 
click on the Refresh tab, we get::

Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module App.Product, line 341, in manage_refresh
  Module App.RefreshFuncs, line 57, in isAutoRefreshEnabled
  Module App.RefreshFuncs, line 47, in _getCentralRefreshData
AttributeError: UnmanagedJar instance has no attribute 'root'

Also, in the same area, if we click on the undo tab, we get::

Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module App.special_dtml, line 175, in _exec
  Module App.Undo, line 100, in undoable_transactions
AttributeError: UnmanagedJar instance has no attribute 'db'

And finally, we were testing ZClasses (adding them), we get:

Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module ZClasses.ZClass, line 150, in manage_addZClass
  Module OFS.ObjectManager, line 276, in _setObject
  Module ZClasses.ZClass, line 422, in manage_afterAdd
  Module ZClasses.ZClass, line 374, in _register
AttributeError: UnmanagedJar instance has no attribute 'root'

Google does not find anything and a cursory look at the class definition of 
UnmanagedJar in connection.py doesn't reveal anything obvious.  Has anyone 
else run into a similiar problem or have any suggestions.

Thanks for your time,

-Chris


More information about the Zope mailing list