[Zope-CMF] Newbie: first CMF product, skins problem

Raphael Ritz r.ritz@biologie.hu-berlin.de
Wed, 19 Mar 2003 09:24:29 +0100


Rob Boyd wrote:

>Hello,
>
>I'm writing my first CMF filesystem product,
>subclassed from SkinnedFolder.  I'm using various
>howto's and products such as CMFCollector as a guide. 
>Everything worked fine at first - as long as I had no
>Python files in my skins directory, only page
>templates.  As soon as I add any Python file (for use
>as a Python script) into my skins, if I install my new
>product and try to view its skins directory in
>portal_skins, I get the error: "IndexError: list index
>out of range."  This even happens if I put a Python
>file that works with another product into my product. 
>I can't see where my product files diverge from other
>working products to get this error.  What am I
>missing?
>
Does it look somehow like this (if called 'yourscript.py'):

## Script (Python) "yourscript"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=file=''
##title=
##
request = container.REQUEST
RESPONSE =  request.RESPONSE
...

Raphael

>
>TIA,
>Rob
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
>http://platinum.yahoo.com
>
>_______________________________________________
>Zope-CMF maillist  -  Zope-CMF@zope.org
>http://mail.zope.org/mailman/listinfo/zope-cmf
>
>See http://collector.zope.org/CMF for bug reports and feature requests
>
>  
>