[Zope-CMF] NameError using CMFPhotoAlbum on win32 w/latest
jimbo
jimbo@tacomaplace.com
Sun, 27 May 2001 23:05:57 -0700
here is the full zdebug info
An exception occurred in a DTML method or document.
Error type: NameError
Error value: CMFPhotoAlbum
Innermost method: /tacomaplace/CMFPhotoAlbum_add
Name not found or not allowed: CMFPhotoAlbum
Namespace Stack (innermost entry at top)
ID Type Contains name?
(N/A) mapping with keys: ['document_id', 'document_title'] No
? InstanceDict No
Source of /tacomaplace/CMFPhotoAlbum_add with fault:
<HTML>
<HEAD><TITLE>Add CMFPhotoAlbum</TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<dtml-comment> We add the new object by calling the class in
a with tag. Not only does this get the thing
added, it adds the new thing's attributes to
the DTML name space, so we can call methods
to initialize the object.
</dtml-comment>
<dtml-with "CMFPhotoAlbum.createInObjectManager(REQUEST['id'], REQUEST)">
<dtml-comment>
You can add code that modifies the new instance here.
For example, if you have a property sheet that you want to update
from form values, you can call it here:
<dtml-call "propertysheets.Basic.manage_editProperties(
REQUEST)">
</dtml-comment>
</dtml-with>
<dtml-comment> Now we need to return something. We do this via
a redirect so that the URL is correct.
Unfortunately, the way we do this depends on
whether we live in a product or in a class.
If we live in a product, we need to use DestinationURL
to decide where to go. If we live in a class,
DestinationURL won't be available, so we use URL2.
</dtml-comment>
<dtml-if DestinationURL>
<dtml-call "RESPONSE.redirect(
DestinationURL+'/manage_workspace')">
<dtml-else>
<dtml-call "RESPONSE.redirect(
URL2+'/manage_workspace')">
</dtml-if>
</body></html>
Call stack (security context)
/tacomaplace/CMFPhotoAlbum_add
---------- Original Message ----------------------------------
From: marc lindahl <marc@bowery.com>
Date: Sat, 26 May 2001 03:25:31 -0400
>Did you check out the readme, and follow the directions to add a PhotoAlbum
>portal_type?
>
>also, can you send me the entire error output?
>
>> From: "jimbo" <jimbo@tacomaplace.com>
>> Reply-To: <jimbo@tacomaplace.com>
>> Date: Fri, 25 May 2001 18:45:17 -0700
>> To: marc lindahl <marc@bowery.com>
>> Cc: <zope-cmf@zope.org>
>> Subject: Re: [Zope-CMF] NameError using CMFPhotoAlbum on win32 w/latest
>>
>> Here are some parts
>>
>> Innermost method: /testportal/CMFPhotoAlbum_add
>> Name not found or not allowed: CMFPhotoAlbum
>>
>>
>> This is the problem line right here. I'm not sure why the CMF is not finding
>> it?
>>
>> <dtml-with "CMFPhotoAlbum.createInObjectManager(REQUEST['id'], REQUEST)">
>>
>>
>>
>> -JImbo
>>
>>
>>
>>
>>
>> ---------- Original Message ----------------------------------
>> From: marc lindahl <marc@bowery.com>
>> Date: Fri, 25 May 2001 18:45:24 -0400
>>
>>> Do you have ZDebug installed? (highly recommended).
>>> email me the whole error page, let me look.
>>>
>>> I had Zphotoalbum installed on my machine when I wrote it, so I'm not sure
>>> if it'll work without it. It should... but also, there might be a problem
>>> creating a CMFPhotoAlbum outside a portal, since it's dependant on
>>> (inherits) some portal stuff.
>>>
>>>> From: "jimbo" <jimbo@tacomaplace.com>
>>>> Reply-To: <jimbo@tacomaplace.com>
>>>> Date: Fri, 25 May 2001 13:48:46 -0700
>>>> To: <zope-cmf@zope.org>
>>>> Subject: [Zope-CMF] NameError using CMFPhotoAlbum on win32 w/latest builds
>>>>
>>>> Hello,
>>>> I get a NameError on CMFPhotoAlbum using zope 2.3.2 and CMF 1.0. I can
>>>> create
>>>> an instance in a folder outside the portal. Do I need to have the
>>>> zphotoalbum
>>>> product installed?
>>>>
>>>> P.S On a side note any time frame on the next alpha/beta/preview of the next
>>>> CMF? I'm itching to checkout some of the new workflow stuff and I don't have
>>>> access to CVS.
>>>>
>>>> TIA,
>>>> -Jimbo
>>>>
>>>> _______________________________________________
>>>> Zope-CMF maillist - Zope-CMF@zope.org
>>>> http://lists.zope.org/mailman/listinfo/zope-cmf
>>>>
>>>> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
>>>> requests
>>>
>>>
>
>