[Zope] context is not defined

Andreas Jung lists at andreas-jung.com
Tue Dec 7 11:44:00 EST 2004


First step: upgrade to the *latest* 2.7.X release. 2.7.0-pre-something are 
rather old and buggy.
Then try again and report back.

-aj

--On Dienstag, 7. Dezember 2004 17:37 Uhr +0100 baptiste Ancey 
<baptiste.ancey at derivexperts.com> wrote:

>
> ======================================
>          Description
> ======================================
> on the server A : Mandrake 10.1
>                               Zope-2.7.0-rc2-2mdk
>                               Python 2.3.4
>
> on the server B: Mandrake 9.2
>                              Zope-2.7.0b1-2mdk
>                              Python 2.3
>
> It work fine on the server A but when I export from A to import in B:
> I've got the following error.
>
> ======================================
>          FULL TRACEBACK
> ======================================
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 98, in publish
>   Module ZPublisher.mapply, line 88, in mapply
>   Module ZPublisher.Publish, line 39, in call_object
>   Module Shared.DC.Scripts.Bindings, line 252, in __call__
>   Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec
>   Module Products.PageTemplates.ZopePageTemplate, line 220, in _exec
>   Module Products.PageTemplates.PageTemplate, line 95, in pt_render
>    - <ZopePageTemplate at /New/dmz/market/marketer/index_html>
>   Module TAL.TALInterpreter, line 200, in __call__
>   Module TAL.TALInterpreter, line 244, in interpret
>   Module TAL.TALInterpreter, line 672, in do_useMacro
>   Module TAL.TALInterpreter, line 244, in interpret
>   Module TAL.TALInterpreter, line 637, in do_condition
>   Module Products.PageTemplates.TALES, line 220, in evaluate
>    - URL: /New/dmz/template_private
>    - Line 19, Column 5
>    - Expression: <PythonExpr context.check_folder(user.getUserName(),
> container.REQUEST.URL1) == 'false'>
>    - Names:
>       {'container': <Folder instance at 419a9dd0>,
>        'default': <Products.PageTemplates.TALES.Default instance at
> 0x40c49bec>,
>        'here': <Folder instance at 419a9dd0>,
>        'loop': <SafeMapping instance at 40fde6f0>,
>        'modules':
> <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter  instance at
> 0x40c49ccc>,
>        'nothing': None,
>        'options': {'args': ()},
>        'repeat': <SafeMapping instance at 40fde6f0>,
>        'request': <HTTPRequest,
> URL=http://www.derivexperts.com/New/dmz/market/marketer/index_html>,
>        'root': <Application instance at 40f91e00>,
>        'template': <ZopePageTemplate at
> /New/dmz/market/marketer/index_html>,        'traverse_subpath': [],
>        'user': francis}
>   Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__
>    - __traceback_info__: context.check_folder(user.getUserName(),
> container.REQUEST.URL1) == 'false'
>   Module Python expression "context.check_folder(user.getUserName(),
> container.REQUEST.URL1) == 'false'", line 1, in <expression>
> NameError: name 'context' is not defined
>
>
>
> Thx for your help.
>
>
> On Tuesday 07 Dec 2004 17:11, Andreas Jung wrote:
>> --On Dienstag, 7. Dezember 2004 16:36 Uhr +0100 baptiste Ancey
>>
>> <baptiste.ancey at derivexperts.com> wrote:
>> > I have realized my website on a dev computer and it work well but now
>> > when i  try to put my website on the Production computer i have the
>> > error
>> >
>> > : context  is not defined.
>> >
>> > the both have the same Zope version.
>>
>> Please provide a full description what you have done + a full traceback.
>>
>> -aj
>
> --
> Derivexperts
> Paris Cyber Village
> 101-103 Boulevard Mac Donald
> 75019 Paris
> 01 44 89 47 49






More information about the Zope mailing list