[Zope-CMF] can not add topic (no entries in skin)

marc lindahl marc@bowery.com
Sat, 19 May 2001 11:25:26 -0400


yikes!  THat's a little beyond me....  I'm putting it on this list, maybe
someone can see what's up.

> From: "Robert Rottermann" <robert@rocad.ch>
> Date: Sat, 19 May 2001 15:18:51 +0200
> To: "marc lindahl" <marc@bowery.com>
> Subject: Re: [Zope-CMF] can not add topic (no entries in skin)
> 
> Marc,
> 
> thanks again
> 
> looking at the traceback, and debuging to where it happens I isolated the
> following
> info:
> 
> locals[38].src = "def f():
> context.addCriteria(field=field, criteria_type=criteria_type)
> 
> 
> 
> RESPONSE.redirect('%s/topic_criteria_form' % context.absolute_url())
> "
> ----
> body of python script as passed to exec in
> zbytecodehacks.CodeBlock._init()
> called from FSPythonScript._write()
> -------
> def f():
> context.addCriteria(field=field, criteria_type=criteria_type)
> 
> 
> 
> RESPONSE.redirect('%s/topic_criteria_form' % context.absolute_url())
> ----end body of python script -------
> 
> I do not see anything that was wrong with that code.
> 
> As one can see, Topy fails to start in a python script located in the topic
> skins directoy
> 
> Here the traceback:
> Traceback (innermost last):
> File "K:\Programme\zope\lib\python\Products\CMFCore\DirectoryView.py",
> line 19
> 8, in getContents
> register_subdirs=changed)
> File "K:\Programme\zope\lib\python\Products\CMFCore\DirectoryView.py",
> line 26
> 4, in prepareContents
> ob = t(name, e_filepath, fullname=entry)
> File "K:\Programme\zope\lib\python\Products\CMFCore\FSPythonScript.py",
> line 1
> 25, in __init__
> FSObject.__init__(self, id, filepath, fullname, properties)
> File "K:\Programme\zope\lib\python\Products\CMFCore\FSObject.py", line
> 127, in
> __init__
> self._readFile(0)
> File "K:\Programme\zope\lib\python\Products\CMFCore\FSPythonScript.py",
> line 1
> 47, in _readFile
> self._write(data)
> File "K:\Programme\zope\lib\python\Products\CMFCore\FSPythonScript.py",
> line 2
> 32, in _write
> ps._editedBindings()
> File
> "K:\Programme\zope\lib\python\Products\PythonScripts\PythonScript.py", li
> ne 296, in _editedBindings
> self._makeFunction(1)
> File
> "K:\Programme\zope\lib\python\Products\PythonScripts\PythonScript.py", li
> ne 284, in _makeFunction
> raise "Python Script Error", ('<pre>%s</pre>' %
> Python Script Error: <pre>  File "<string>", line 2
> 
> context.addCriteria(field=field, criteria_type=criteria_type)
> 
> ^
> 
> SyntaxError: invalid syntax
> </pre>
> 
> ----- Original Message -----
> From: "marc lindahl" <marc@bowery.com>
> To: "robert at rocad" <robert@rocad.ch>
> Sent: Friday, May 18, 2001 10:10 PM
> Subject: Re: [Zope-CMF] can not add topic (no entries in skin)
> 
> 
>> At least, install the ZDebug product, it gives you better tracebacks.
>> 
>>> From: "robert at rocad" <robert@rocad.ch>
>>> Date: Fri, 18 May 2001 22:02:59 +0200
>>> To: "marc lindahl" <marc@bowery.com>
>>> Subject: Re: [Zope-CMF] can not add topic (no entries in skin)
>>> 
>>> Marc,
>>> 
>>> thank you
>>> 
>>> actually I was running 2.3.1. But I now updated to 2.3.2.
>>> I created a new site, had the install and update running.
>>> Same effect.
>>> Here the traceback (of which I could gather no hint)
>>> 
>>> Cannot locate object at: http://localhost:8080/alice/kk/topic_edit_form
>>> 
>>> 
>> 
>> --------------------------------------------------------------------------
> --
>>> ----
>>> 
>>> Troubleshooting Suggestions
>>> 
>>> a.. The URL may be incorrect.
>>> b.. The parameters passed to this resource may be incorrect.
>>> c.. A resource that this resource relies on may be encountering an
> error.
>>> For more detailed information about the error, please refer to the HTML
>>> source for this page.
>>> 
>>> If the error persists please contact the site maintainer. Thank you for
> your
>>> patience.
>>> 
>>> Traceback (innermost last):
>>> File C:\Programme\zope\lib\python\ZPublisher\Publish.py, line 223, in
>>> publish_module
>>> File C:\Programme\zope\lib\python\ZPublisher\Publish.py, line 187, in
>>> publish
>>> File C:\Programme\zope\lib\python\Zope\__init__.py, line 221, in
>>> zpublisher_exception_hook
>>> (Object: Traversable)
>>> File C:\Programme\zope\lib\python\ZPublisher\Publish.py, line 162, in
>>> publish
>>> File C:\Programme\zope\lib\python\ZPublisher\BaseRequest.py, line 369,
> in
>>> traverse
>>> File C:\Programme\zope\lib\python\ZPublisher\HTTPResponse.py, line 557,
> in
>>> debugError
>>> NotFound: (see above)
>>> 
>>> ----- Original Message -----
>>> From: "marc lindahl" <marc@bowery.com>
>>> To: "robert at rocad" <robert@rocad.ch>; "Gitte Wange"
> <gitte@mmmanager.org>
>>> Sent: Friday, May 18, 2001 5:49 PM
>>> Subject: Re: [Zope-CMF] can not add topic (no entries in skin)
>>> 
>>> 
>>>> I'm tipped out!
>>>> Are you running 2.3.2 final?
>>>> 
>>>> 
>>>> 
>>>> 
>>>>> From: "robert at rocad" <robert@rocad.ch>
>>>>> Date: Fri, 18 May 2001 11:37:40 +0200
>>>>> To: "Gitte Wange" <gitte@mmmanager.org>
>>>>> Cc: <zope-cmf@zope.org>
>>>>> Subject: Re: [Zope-CMF] can not add topic (no entries in skin)
>>>>> 
>>>>> Hi Gite and Marc,
>>>>> thank you for your answers. Unfortunately I still have the same
> Problem.
>>>>> 
>>>>> First I cant have the fileview point to l
>>>>> ib/python/Products/CMFTopic/skins/topic/skins
>>>>> only to
>>>>> lib/python/Products/CMFTopic/skins/topic
>>>>> 
>>>>> second the topic skin when clicked in the portal_skin folder is still
>>>>> empty.
>>>>> 
>>>>> the install script did not ammeliorate things.
>>>>> 
>>>>> Any more tips ??
>>>>> 
>>>>> Robert
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ----- Original Message -----
>>>>> From: "Gitte Wange" <gitte@mmmanager.org>
>>>>> To: "robert at rocad" <robert@rocad.ch>
>>>>> Cc: <zope-cmf@zope.org>
>>>>> Sent: Thursday, May 17, 2001 4:01 PM
>>>>> Subject: Re: [Zope-CMF] can not add topic (no entries in skin)
>>>>> 
>>>>> 
>>>>>> On Thursday 17 May 2001 12:18, you wrote:
>>>>>>> Hi there,
>>>>>>> 
>>>>>>> Today I downloded CMF from the CVS-tree
>>>>>>> I added topics to a new portal. as follows:
>>>>>>> 
>>>>>>> I added a new portal_type: Factory based, CMFTopic: Portal topic,
>>> named
>>>>> it
>>>>>>> Topic
>>>>>>> 
>>>>>>> I added a new skin, Filesystem Directory View, points to:
>>>>>>> lib\python\products\CMFTopic\skins\topic. named it topic
>>>>>>> The new skin is empty, however there are a couple of dtml-files in
> the
>>>>>>> directory skin points to !!!!!!
>>>>>> 
>>>>>> [snip]
>>>>>> 
>>>>>> You need to point the Filesystem Directory View to:
>>>>>> lib/python/Products/CMFTopic/skins/topic/skins
>>>>>> 
>>>>>> Regards
>>>>>> Gitte Wange
>>>>>> 
>>>>>> _______________________________________________
>>>>>> 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
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> 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
>>>> 
>>> 
>> 
>