Jonah Crawford <jonah(at)newuses4.info> wrote:Alex I think you're right
on point because I have this line commented out because as it keeps the product
from loading up...
#registerDirectory(SKINS_DIR, GLOBALS)
here is the traceback from that:
Traceback (most recent call last):
File "/Applications/zope28/lib/python/App/RefreshFuncs.py", line 183, in
performSafeRefresh
if not performRefresh(jar, productid):
File "/Applications/zope28/lib/python/App/RefreshFuncs.py", line 172, in
performRefresh
Application.reinstall_product(app, productid)
File "/Applications/zope28/lib/python/OFS/Application.py", line 885, in
reinstall_product
folder_permissions, raise_exc=1, log_exc=0)
File "/Applications/zope28/lib/python/OFS/Application.py", line 773, in
install_product
initmethod(context)
File "/Applications/instance1/Products/EntryType/__init__.py", line 10, in
initialize
import Entry
File "/Applications/instance1/Products/EntryType/Entry.py", line 38, in ?
registerDirectory(SKINS_DIR, GLOBALS)
NameError: name 'registerDirectory' is not defined
Jonah Crawford
co-founder NewUses4.info
jonah(at)newuses4.info
202.487.9109
On Oct 16, 2005, at 10:08 AM, Alex Clark wrote:
Is anything in that skins directory available ?
Try running zope in debug mode, create foo.pt in the skins dir, then go to your
browser and ask for /instance/foo.pt.
If nothing in that skins dir is available then it's probably something with
the way you registered the skins dir in your product.
If foo.pt is availabe, then... I'd have to think more about it :-)
On Sun, Oct 16, 2005 at 09:13:03AM -0400, Jonah Crawford wrote:
Hi folks. I'm having problems with a custom view on an archetype. I've included
the part of the archetype that calls the view as well as the traceback. I'm
pretty sure it's not finding the .pt as the traceback mentions traversal. The
view is named EntryView.pt and is inside the skins directory within the same
product.
Any suggestions are appreciated.
jonah
###############################################
class Entry(BaseContent):
"""Basic Entry"""
schema = EntrySchema
default_view = 'EntryView'
actions = (
{ 'id': 'view',
'name': 'EntryView',
'action': 'string:${object_url}/EntryView',
'permissions': (CMFCorePermissions.View,)
},)
###############################################
Traceback (innermost last):
Module ZPublisher.Publish, line 113, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 40, in call_object
Module Products.CMFCore.PortalContent, line 104, in __call__
Module Products.CMFCore.utils, line 201, in _getViewFor
- __traceback_info__: ('Entry', 'EntryView')
Module OFS.Traversable, line 233, in restrictedTraverse
Module OFS.Traversable, line 182, in unrestrictedTraverse
- __traceback_info__: ([], 'EntryView')
Module Products.Archetypes.BaseObject, line 1025, in __bobo_traverse__
AttributeError: EntryView
Jonah Crawford
co-founder NewUses4.info
jonah(at)newuses4.info
202.487.9109
[...]
|