[Zope] Re: I am getting crazy...
Peter Bengtsson
mail@peterbe.com
Tue, 14 Aug 2001 17:18:57 +0200
(you're still not CC'ing the mailinglist.)
Why do you name the init file __init.py?
Since your traceback mentions __init__.py
Does your file at all have 57 lines?
If so, what's on that line?
This is a SyntaxError and has little to do with Zope. It's a python problem
for you and you might just have made a little typo somewhere.
----- Original Message -----
From: "Frederic Quin" <fquin@profile4u.com>
To: <mail@peterbe.com>
Sent: Tuesday, August 14, 2001 5:25 PM
Subject: I am getting crazy...
> In fact, the problem I have is very different...
> Here is the __init.py of my new python product and bellow, the error
message I have when Zope start up...
>
>
> ######################################
> doc__ = 'Knowledge Definition Product.'
> version__ = '1.0.0'
>
> import Globals
> from Globals import ImageFile
>
> import KnowledgeDefinition
>
>
> def initialize( context ):
> """Initialize the product. This function is automatcly called by Zope
at start-up.
> It means for preparing and registering product in Zope"""
>
> context.registerClass(
> KnowledgeDefinition.KnowledgeDefinition,
> constructors = (
KnowledgeDefinition.manage_addKnowledgeDefinitionForm,
KnowledgeDefinition.manage_addKnowledgeDefinition ),
> icon='icons/KnowledgeDefinition.gif',
> )
>
>
> ######################################
> 2001-08-14T15:17:18 ERROR(200) Zope Couldn't import
Products.KnowledgeDefinition
> Traceback (innermost last):
> File /usr/local/Zope-2.3.2-linux2-x86/lib/python/OFS/Application.py,
line 528, in import_products
> (Object: string)
> File
/usr/local/Zope/lib/python/Products/KnowledgeDefinition/__init__.py, line 7,
in ?
> SyntaxError: non-default argument follows default argument (line 57)
>
>
>
>