[Zope-CMF] Re: How to translate CMF, first summary
Jens Vagelpohl
jens@zope.com
Thu, 27 Sep 2001 08:11:22 -0400
andreas,
simply delete all *.pyc files and restart your zope.
find . -name "*.pyc" | xargs rm -f
jens
On Wednesday, September 26, 2001, at 10:42 , Tille, Andreas wrote:
> On Sat, 30 Jun 2001, Robert Rottermann wrote:
>
>> cvs -d :pserver:IloveZope@suse1.aemmenet.ch:/home/redman login
>> password: Ireallydo
>> cvs -d :pserver:IloveZope@suse1.aemmenet.ch:/home/redman co CMF_int
> I did so and tried to follow the instructions to copy the files into
> the apropriate places.
>
> After this I restarted Zope which normally should compile the included
> Python files into *.pyc files, right? But it did not and all Python
> files remain uncompiled. Perhaps this is the reason why I get the
> following error, when I set my Properties to generic_int:
> ceback (innermost last):
> File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 223, in=20
> publish_module
> File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 187, in=20
> publish
> File /usr/lib/zope/lib/python/Zope/__init__.py, line 221, in=20
> zpublisher_exception_hook
> (Object: SkinsContainer)
> File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 171, in=20
> publish
> File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in =
mapply
> (Object: index_html)
> File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 112, in=20
> call_object
> (Object: index_html)
> File /usr/lib/zope/lib/python/Products/CMFCore/FSDTMLMethod.py, line=20=
> 180, in __call__
> (Object: index_html)
> File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line =
540,=20
> in __call__
> (Object: index_html)
> File /usr/lib/zope/lib/python/Products/CMFCore/FSDTMLMethod.py, line=20=
> 175, in __call__
> (Object: standard_html_header)
> File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line =
540,=20
> in __call__
> (Object: standard_html_header)
> File /usr/lib/zope/lib/python/Products/CMFCore/FSDTMLMethod.py, line=20=
> 175, in __call__
> (Object: actions_box)
> File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line =
540,=20
> in __call__
> (Object: actions_box)
> File /usr/lib/zope/lib/python/DocumentTemplate/DT_Let.py, line 149, =
in=20
> render
> (Object: isAnon=3D"portal_membership.isAnonymousUser()"
> AuthClass=3D"isAnon and 'GuestActions' or=20
> 'MemberActions'"
> uname=3D"isAnon and menuTranslator('Guest')
> or=20
> portal_membership.getAuthenticatedMember().getUserName()"
> obj=3D"this()"
> =
actions=3D"portal_actions.listFilteredActionsFor(obj)"
> user_actions=3D"actions['user']"
> folder_actions=3D"actions['folder']"
> object_actions=3D"actions['object'] +=20
> actions['workflow']"
> global_actions=3D"actions['global']")
> File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 719, =
in=20
> renderwob
> (Object: user_actions)
> File /usr/lib/zope/lib/python/DocumentTemplate/DT_Util.py, line 339, =
in=20
> eval
> (Object: menuTranslator(name))
> (Info: name)
> File <string>, line 0, in ?
> NameError: menuTranslator
>
> -->
>
> There is a file
>
> =20
> =
/usr/lib/zope/lib/python/Products/CMFDefault/skins/content_int/menuTransla=
tor.
> py
>
> but I=B4m afraid it isn=B4t found because a menuTranslator.pyc is =
searched.
>
> Is this presumption right? How to get the sources compiled?
>
> I=B4m using the Packages from Debian/Woody (zope 2.3.3 and zope-cmf =
1.1).
>
> Kind regards
>
> Andreas.
>
> _______________________________________________
> 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=20
> requests