[Oxfam KARL] AttributeError: 'PageTemplateFile' object has no attribute 'navigation'

Bug #1059559 reported by Alexander Bittner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Low
Paul Everitt

Bug Description

* reported by Oxfam to our support, also see https://karl.oxfam.org.uk/communities/karl-offices-project/blog/help...-urgent...-unable-to-edit-reference-manuals/

* Error monitor output for when Helen tried to edit the manual:

AttributeError: 'PageTemplateFile' object has no attribute 'navigation'

 - Expression: "old_layout.navigation"
 - Filename: /srv/multikarl/production/11/eggs/karl-3.98-py2.6.egg/karl/content/views/templates/intranet_layout.pt
 - Location: (40:39)

 - Source: ... tal:content="structure old_layout.navigation"/>
                                          ^^^^^^^^^^^^^^^^^^^^^
 - Arguments: user_can_edit: True
               repeat: {...} (0)
               renderer_name: templates/show_referencemanual.pt
               next_entry: <NoneType - at 0xb770a340L>
               head_data: <script type="text/javascript">\nwindow._karl_clien...
               actions: <list - at 0xc59646c>
               context_tools: <list - at 0x16c9466c>
               renderer_info: <RendererHelper - at 0x11760a8c>
               api: <TemplateAPI - at 0x1176098c>
               backto: {...} (2)
               panel: <instancemethod render_panel at 0x1833be8c>
               layout: <Layout - at 0x1176088c>
               request: <Request - at 0x18134d0c>
               tree: <list - at 0x117608ac>
               old_layout: <PageTemplateFile - at 0xed0624c>
               main_template: <PageTemplateFile - at 0xc13836c>
               context: <ReferenceManual human-resources-starting-or-leaving-oxfam at 0x1cc0ab6c>
               previous_entry: <NoneType - at 0xb770a340L>
               view: <NoneType - at 0xb770a340L>
Exception when processing https://karl.oxfam.org.uk/intranets/files/essential-resources/support-and-resources/human-resources/human-resources-starting-or-leaving-oxfam/
Referer: https://karl.oxfam.org.uk/intranets/files/essential-resources/support-and-resources/human-resources/

Traceback (most recent call last):
  File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/tweens.py", line 17, in excview_tween
    response = handler(request)
  File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 107, in tm_tween
    return response
  File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 75, in __exit__
    return self._retry_or_raise(t, v, tb)
  File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 60, in _retry_or_raise
    reraise(t, v, tb) # otherwise reraise the exception
  File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 100, in tm_tween
    response = handler(request)
  File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/router.py", line 153, in handle_request
    response = view_callable(context, request)
  File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 186, in _secured_view
    return view(context, request)
  File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 319, in viewresult_to_response
    result = view(context, request)
  File "/srv/multikarl/production/11/eggs/karl-3.98-py2.6.egg/karl/content/views/references.py", line 222, in reference_outline_view
    request=request,
  File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/renderers.py", line 114, in render_to_response
    return helper.render_to_response(value, None, request=request)
  File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/renderers.py", line 422, in render_to_response
    result = self.render(value, system_values, request=request)
  File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/renderers.py", line 418, in render
    result = renderer(value, system_values)
  File "/srv/multikarl/production/11/eggs/karl-3.98-py2.6.egg/karl/application.py", line 224, in metarenderer
    return classic_renderer(value, system)
  File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/chameleon_zpt.py", line 49, in __call__
    result = self.template(**system)
  File "/srv/multikarl/production/11/eggs/Chameleon-2.8.2-py2.6.egg/chameleon/template.py", line 125, in __call__
    return self.render(**kwargs)
  File "/srv/multikarl/production/11/eggs/Chameleon-2.8.2-py2.6.egg/chameleon/zpt/template.py", line 258, in render
    return super(PageTemplate, self).render(**vars)
  File "/srv/multikarl/production/11/eggs/Chameleon-2.8.2-py2.6.egg/chameleon/template.py", line 191, in render
    raise_with_traceback(exc, tb)
  File "/srv/multikarl/production/11/eggs/Chameleon-2.8.2-py2.6.egg/chameleon/template.py", line 172, in render
    self._render(stream, econtext, rcontext)
  File "show_referencemanual_92190d1208a71b351d275cda320ae8a47b425758.py", line 330, in render
  File "/srv/multikarl/production/11/eggs/Chameleon-2.8.2-py2.6.egg/chameleon/zpt/template.py", line 262, in include
    self._render(*args, **kwargs)
  File "intranet_layout_e41bd21825d60c4e6a156605f9520ac088e10349.py", line 525, in render
  File "/srv/multikarl/production/11/eggs/Chameleon-2.8.2-py2.6.egg/chameleon/py26.py", line 12, in lookup_attr
    raise exc
AttributeError: 'PageTemplateFile' object has no attribute 'navigation'

 - Expression: "old_layout.navigation"
 - Filename: /srv/multikarl/production/11/eggs/karl-3.98-py2.6.egg/karl/content/views/templates/intranet_layout.pt
 - Location: (40:39)

 - Source: ... tal:content="structure old_layout.navigation"/>
                                          ^^^^^^^^^^^^^^^^^^^^^
 - Arguments: user_can_edit: True
               repeat: {...} (0)
               renderer_name: templates/show_referencemanual.pt
               next_entry: <NoneType - at 0xb770a340L>
               head_data: <script type="text/javascript">\nwindow._karl_clien...
               actions: <list - at 0xc59646c>
               context_tools: <list - at 0x16c9466c>
               renderer_info: <RendererHelper - at 0x11760a8c>
               api: <TemplateAPI - at 0x1176098c>
               backto: {...} (2)
               panel: <instancemethod render_panel at 0x1833be8c>
               layout: <Layout - at 0x1176088c>
               request: <Request - at 0x18134d0c>
               tree: <list - at 0x117608ac>
               old_layout: <PageTemplateFile - at 0xed0624c>
               main_template: <PageTemplateFile - at 0xc13836c>
               context: <ReferenceManual human-resources-starting-or-leaving-oxfam at 0x1cc0ab6c>
               previous_entry: <NoneType - at 0xb770a340L>
               view: <NoneType - at 0xb770a340L>

* Paul said in his comment that there's a bug report in the html source. Unfortunately, we are unable to reproduce the problem. We see no error when trying to edit the manual. Therefore we're able to add the report here.

Best regards,
Alex

Tags: tested r3.101
Revision history for this message
Paul Everitt (paul-agendaless) wrote : Re: [Bug 1059559] [NEW] [Oxfam KARL] AttributeError: 'PageTemplateFile' object has no attribute 'navigation'
Download full text (14.7 KiB)

Good bug report Alex, thanks! When was the last time you updated them, or stated differently do you know what version they are running?

--Paul

On Oct 1, 2012, at 8:40 AM, Alexander Bittner <email address hidden> wrote:

> Public bug reported:
>
> * reported by Oxfam to our support, also see
> https://karl.oxfam.org.uk/communities/karl-offices-
> project/blog/help...-urgent...-unable-to-edit-reference-manuals/
>
> * Error monitor output for when Helen tried to edit the manual:
>
> AttributeError: 'PageTemplateFile' object has no attribute 'navigation'
>
> - Expression: "old_layout.navigation"
> - Filename: /srv/multikarl/production/11/eggs/karl-3.98-py2.6.egg/karl/content/views/templates/intranet_layout.pt
> - Location: (40:39)
>
> - Source: ... tal:content="structure old_layout.navigation"/>
> ^^^^^^^^^^^^^^^^^^^^^
> - Arguments: user_can_edit: True
> repeat: {...} (0)
> renderer_name: templates/show_referencemanual.pt
> next_entry: <NoneType - at 0xb770a340L>
> head_data: <script type="text/javascript">\nwindow._karl_clien...
> actions: <list - at 0xc59646c>
> context_tools: <list - at 0x16c9466c>
> renderer_info: <RendererHelper - at 0x11760a8c>
> api: <TemplateAPI - at 0x1176098c>
> backto: {...} (2)
> panel: <instancemethod render_panel at 0x1833be8c>
> layout: <Layout - at 0x1176088c>
> request: <Request - at 0x18134d0c>
> tree: <list - at 0x117608ac>
> old_layout: <PageTemplateFile - at 0xed0624c>
> main_template: <PageTemplateFile - at 0xc13836c>
> context: <ReferenceManual human-resources-starting-or-leaving-oxfam at 0x1cc0ab6c>
> previous_entry: <NoneType - at 0xb770a340L>
> view: <NoneType - at 0xb770a340L>
> Exception when processing https://karl.oxfam.org.uk/intranets/files/essential-resources/support-and-resources/human-resources/human-resources-starting-or-leaving-oxfam/
> Referer: https://karl.oxfam.org.uk/intranets/files/essential-resources/support-and-resources/human-resources/
>
> Traceback (most recent call last):
> File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/tweens.py", line 17, in excview_tween
> response = handler(request)
> File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 107, in tm_tween
> return response
> File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 75, in __exit__
> return self._retry_or_raise(t, v, tb)
> File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 60, in _retry_or_raise
> reraise(t, v, tb) # otherwise reraise the exception
> File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 100, in tm_tween
> response = handler(request)
> File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/router.py", line 153, in handle_request
> response = view_callable(context, request)
>...

Revision history for this message
Alexander Bittner (yb) wrote :

Hi!

Fyi: we just got report from the customer that - for some reason - it works again. We didn't change anything :-/ This may also be the reason why we couldn't reproduce the problem.

So you may either consider this one closed or treat it with lower priority, respectively.

@Paul:
We updated yesterday to karl-3.98. Before that they were running 3.90.

Best regards,
Alex

Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Oxfam reported that it is no longer a problem.

Changed in karl3:
status: New → Invalid
Revision history for this message
Alexander Bittner (yb) wrote :
Download full text (6.3 KiB)

Sorry, but Oxfam contacted us again that the problem still persists.

The last occurrence of this problem we have seen was at 11:59:01 BST:

AttributeError: 'PageTemplateFile' object has no attribute 'navigation'

 - Expression: "old_layout.navigation"
 - Filename: /srv/multikarl/production/11/eggs/karl-3.98-py2.6.egg/karl/content/views/templates/intranet_layout.pt
 - Location: (40:39)

 - Source: ... tal:content="structure old_layout.navigation"/>
                                          ^^^^^^^^^^^^^^^^^^^^^
 - Arguments: user_can_edit: True
               repeat: {...} (0)
               renderer_name: templates/show_referencemanual.pt
               next_entry: <NoneType - at 0xb7779340L>
               head_data: <script type="text/javascript">\nwindow._karl_clien...
               actions: <list - at 0x137050ac>
               context_tools: <list - at 0xd24bb8c>
               renderer_info: <RendererHelper - at 0xd24bc0c>
               api: <TemplateAPI - at 0xcc6a54c>
               backto: {...} (2)
               panel: <instancemethod render_panel at 0xc5445cc>
               layout: <Layout - at 0xd8972ac>
               request: <Request - at 0x10b23f4c>
               tree: <list - at 0x13705d2c>
               old_layout: <PageTemplateFile - at 0xf216d6c>
               main_template: <PageTemplateFile - at 0xba9e74c>
               context: <ReferenceManual human-resources-pay at 0xdf70c2c>
               previous_entry: <NoneType - at 0xb7779340L>
               view: <NoneType - at 0xb7779340L>
Exception when processing https://karl.oxfam.org.uk/intranets/files/essential-resources/support-and-resources/human-resources/human-resources-pay/
Referer: https://karl.oxfam.org.uk/intranets/oxfamgb/

Traceback (most recent call last):
  File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/tweens.py", line 17, in excview_tween
    response = handler(request)
  File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 107, in tm_tween
    return response
  File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 75, in __exit__
    return self._retry_or_raise(t, v, tb)
  File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 60, in _retry_or_raise
    reraise(t, v, tb) # otherwise reraise the exception
  File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 100, in tm_tween
    response = handler(request)
  File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/router.py", line 153, in handle_request
    response = view_callable(context, request)
  File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 186, in _secured_view
    return view(context, request)
  File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 319, in viewresult_to_response
    result = view(context, request)
  File "/srv/multikarl/production/11/eggs/karl-3.98-py2.6.egg/karl/content/views/references.py", line 222, in reference_outline_view
    request=request,
  File "/srv/multikarl/p...

Read more...

Revision history for this message
Alexander Bittner (yb) wrote :

We have just been able to reproduce the problem when trying to access [1]. However, we can't find the error message in the error pages' HTML source that Paul mentioned.

[1] https://karl.oxfam.org.uk/intranets/files/essential-resources/support-and-resources/human-resources/human-resources-starting-or-leaving-oxfam/

Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Carlos, perhaps you can decipher what's wrong in the Oxfam customization on this.

Changed in karl3:
assignee: nobody → Carlos de la Guardia (cguardia)
importance: Undecided → Low
milestone: none → m120
status: Invalid → Confirmed
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Carlos, can you look at this one this week?

Revision history for this message
Carlos de la Guardia (cguardia) wrote :

The only way that I was able to reproduce this error is by taking a reference manual folder and removing the reference manual marker, so I'm betting someone did that in Oxfam and then corrected it, which is why the error stopped appearing.

In any case, I changed the intranet layout to just ignore the navigation if it doesn't exist, so no error will be thrown anymore, even if this is not exactly what happened.

Deployed to cguardia-1059559-oxfam-error, but note that this is a general karl bug, so it's fixed in the karl package (that is, the oxfam package is not needed to test this).

Changed in karl3:
status: Confirmed → Fix Committed
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Good diagnosis Carlos, thanks. Jim, note how you'll have to recreate the error for testing.

Revision history for this message
JimPGlenn (jpglenn09) wrote :

I could not generate an error.

tags: added: manual tested
tags: removed: manual
Revision history for this message
Carlos de la Guardia (cguardia) wrote :

You won't be able to generate the error in my branch, because that's just what I fixed ;) Maybe you can try to generate in some other branch and compare results?

Revision history for this message
Paul Everitt (paul-agendaless) wrote : Re: [Bug 1059559] [Oxfam KARL] AttributeError: 'PageTemplateFile' object has no attribute 'navigation'
Download full text (7.8 KiB)

Or, Jim can generate it on the oxfamstaging server.

--Paul

On Oct 15, 2012, at 12:45 PM, Carlos de la Guardia <email address hidden> wrote:

> You won't be able to generate the error in my branch, because that's
> just what I fixed ;) Maybe you can try to generate in some other branch
> and compare results?
>
> --
> You received this bug notification because you are subscribed to KARL3.
> https://bugs.launchpad.net/bugs/1059559
>
> Title:
> [Oxfam KARL] AttributeError: 'PageTemplateFile' object has no
> attribute 'navigation'
>
> Status in KARL3:
> Fix Committed
>
> Bug description:
> * reported by Oxfam to our support, also see
> https://karl.oxfam.org.uk/communities/karl-offices-
> project/blog/help...-urgent...-unable-to-edit-reference-manuals/
>
> * Error monitor output for when Helen tried to edit the manual:
>
> AttributeError: 'PageTemplateFile' object has no attribute
> 'navigation'
>
> - Expression: "old_layout.navigation"
> - Filename: /srv/multikarl/production/11/eggs/karl-3.98-py2.6.egg/karl/content/views/templates/intranet_layout.pt
> - Location: (40:39)
>
> - Source: ... tal:content="structure old_layout.navigation"/>
> ^^^^^^^^^^^^^^^^^^^^^
> - Arguments: user_can_edit: True
> repeat: {...} (0)
> renderer_name: templates/show_referencemanual.pt
> next_entry: <NoneType - at 0xb770a340L>
> head_data: <script type="text/javascript">\nwindow._karl_clien...
> actions: <list - at 0xc59646c>
> context_tools: <list - at 0x16c9466c>
> renderer_info: <RendererHelper - at 0x11760a8c>
> api: <TemplateAPI - at 0x1176098c>
> backto: {...} (2)
> panel: <instancemethod render_panel at 0x1833be8c>
> layout: <Layout - at 0x1176088c>
> request: <Request - at 0x18134d0c>
> tree: <list - at 0x117608ac>
> old_layout: <PageTemplateFile - at 0xed0624c>
> main_template: <PageTemplateFile - at 0xc13836c>
> context: <ReferenceManual human-resources-starting-or-leaving-oxfam at 0x1cc0ab6c>
> previous_entry: <NoneType - at 0xb770a340L>
> view: <NoneType - at 0xb770a340L>
> Exception when processing https://karl.oxfam.org.uk/intranets/files/essential-resources/support-and-resources/human-resources/human-resources-starting-or-leaving-oxfam/
> Referer: https://karl.oxfam.org.uk/intranets/files/essential-resources/support-and-resources/human-resources/
>
> Traceback (most recent call last):
> File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/tweens.py", line 17, in excview_tween
> response = handler(request)
> File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 107, in tm_tween
> return response
> File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 75, in __exit__
> return self._retry_or_raise(t, v, tb)
> File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py...

Read more...

Revision history for this message
JimPGlenn (jpglenn09) wrote :

Paul,

I have tried to generate an error on oxfamstaging and I have not been successful. I am not sure how to take a reference manual and remove the reference manual marker?. jim

Revision history for this message
Carlos de la Guardia (cguardia) wrote :

On the reference manual page, click on the 'advanced' button and you will see a 'marker' radio choice. It should show that 'Reference Manual' is selected. Change it to 'No Marker' and you should be able to generate the error after that.

Revision history for this message
Paul Everitt (paul-agendaless) wrote :
Download full text (7.8 KiB)

Go to the references manual folder and click "Advanced".

--Paul

On Oct 16, 2012, at 11:10 AM, JimPGlenn <email address hidden> wrote:

> Paul,
>
> I have tried to generate an error on oxfamstaging and I have not been
> successful. I am not sure how to take a reference manual and remove the
> reference manual marker?. jim
>
> --
> You received this bug notification because you are subscribed to KARL3.
> https://bugs.launchpad.net/bugs/1059559
>
> Title:
> [Oxfam KARL] AttributeError: 'PageTemplateFile' object has no
> attribute 'navigation'
>
> Status in KARL3:
> Fix Committed
>
> Bug description:
> * reported by Oxfam to our support, also see
> https://karl.oxfam.org.uk/communities/karl-offices-
> project/blog/help...-urgent...-unable-to-edit-reference-manuals/
>
> * Error monitor output for when Helen tried to edit the manual:
>
> AttributeError: 'PageTemplateFile' object has no attribute
> 'navigation'
>
> - Expression: "old_layout.navigation"
> - Filename: /srv/multikarl/production/11/eggs/karl-3.98-py2.6.egg/karl/content/views/templates/intranet_layout.pt
> - Location: (40:39)
>
> - Source: ... tal:content="structure old_layout.navigation"/>
> ^^^^^^^^^^^^^^^^^^^^^
> - Arguments: user_can_edit: True
> repeat: {...} (0)
> renderer_name: templates/show_referencemanual.pt
> next_entry: <NoneType - at 0xb770a340L>
> head_data: <script type="text/javascript">\nwindow._karl_clien...
> actions: <list - at 0xc59646c>
> context_tools: <list - at 0x16c9466c>
> renderer_info: <RendererHelper - at 0x11760a8c>
> api: <TemplateAPI - at 0x1176098c>
> backto: {...} (2)
> panel: <instancemethod render_panel at 0x1833be8c>
> layout: <Layout - at 0x1176088c>
> request: <Request - at 0x18134d0c>
> tree: <list - at 0x117608ac>
> old_layout: <PageTemplateFile - at 0xed0624c>
> main_template: <PageTemplateFile - at 0xc13836c>
> context: <ReferenceManual human-resources-starting-or-leaving-oxfam at 0x1cc0ab6c>
> previous_entry: <NoneType - at 0xb770a340L>
> view: <NoneType - at 0xb770a340L>
> Exception when processing https://karl.oxfam.org.uk/intranets/files/essential-resources/support-and-resources/human-resources/human-resources-starting-or-leaving-oxfam/
> Referer: https://karl.oxfam.org.uk/intranets/files/essential-resources/support-and-resources/human-resources/
>
> Traceback (most recent call last):
> File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/tweens.py", line 17, in excview_tween
> response = handler(request)
> File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 107, in tm_tween
> return response
> File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 75, in __exit__
> return self._retry_or_raise(t, v, tb)
> File "/srv/multikarl/production/11/e...

Read more...

Revision history for this message
JimPGlenn (jpglenn09) wrote :

Thanks I found the screen changed the item to "No Marker" and then proceeded to look at reference manuals. I edited reference manuals, i moved reference manuals but received no errors. I then went to admin screen and noticed that I did not have an error monitor button to check to see if any were recorded. What now? jim

Revision history for this message
Paul Everitt (paul-agendaless) wrote :
Download full text (8.0 KiB)

Did you do that on an Oxfam site?

--Paul

On Oct 16, 2012, at 12:26 PM, JimPGlenn <email address hidden> wrote:

> Thanks I found the screen changed the item to "No Marker" and then
> proceeded to look at reference manuals. I edited reference manuals, i
> moved reference manuals but received no errors. I then went to admin
> screen and noticed that I did not have an error monitor button to check
> to see if any were recorded. What now? jim
>
> --
> You received this bug notification because you are subscribed to KARL3.
> https://bugs.launchpad.net/bugs/1059559
>
> Title:
> [Oxfam KARL] AttributeError: 'PageTemplateFile' object has no
> attribute 'navigation'
>
> Status in KARL3:
> Fix Committed
>
> Bug description:
> * reported by Oxfam to our support, also see
> https://karl.oxfam.org.uk/communities/karl-offices-
> project/blog/help...-urgent...-unable-to-edit-reference-manuals/
>
> * Error monitor output for when Helen tried to edit the manual:
>
> AttributeError: 'PageTemplateFile' object has no attribute
> 'navigation'
>
> - Expression: "old_layout.navigation"
> - Filename: /srv/multikarl/production/11/eggs/karl-3.98-py2.6.egg/karl/content/views/templates/intranet_layout.pt
> - Location: (40:39)
>
> - Source: ... tal:content="structure old_layout.navigation"/>
> ^^^^^^^^^^^^^^^^^^^^^
> - Arguments: user_can_edit: True
> repeat: {...} (0)
> renderer_name: templates/show_referencemanual.pt
> next_entry: <NoneType - at 0xb770a340L>
> head_data: <script type="text/javascript">\nwindow._karl_clien...
> actions: <list - at 0xc59646c>
> context_tools: <list - at 0x16c9466c>
> renderer_info: <RendererHelper - at 0x11760a8c>
> api: <TemplateAPI - at 0x1176098c>
> backto: {...} (2)
> panel: <instancemethod render_panel at 0x1833be8c>
> layout: <Layout - at 0x1176088c>
> request: <Request - at 0x18134d0c>
> tree: <list - at 0x117608ac>
> old_layout: <PageTemplateFile - at 0xed0624c>
> main_template: <PageTemplateFile - at 0xc13836c>
> context: <ReferenceManual human-resources-starting-or-leaving-oxfam at 0x1cc0ab6c>
> previous_entry: <NoneType - at 0xb770a340L>
> view: <NoneType - at 0xb770a340L>
> Exception when processing https://karl.oxfam.org.uk/intranets/files/essential-resources/support-and-resources/human-resources/human-resources-starting-or-leaving-oxfam/
> Referer: https://karl.oxfam.org.uk/intranets/files/essential-resources/support-and-resources/human-resources/
>
> Traceback (most recent call last):
> File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/tweens.py", line 17, in excview_tween
> response = handler(request)
> File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py", line 107, in tm_tween
> return response
> File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__in...

Read more...

Revision history for this message
JimPGlenn (jpglenn09) wrote :

I am sorry ...I should have said where I did the testing. It was all on oxfamstaging.gocept.com. jim

Revision history for this message
Paul Everitt (paul-agendaless) wrote :
Download full text (8.2 KiB)

I was able to recreate it. Was a little tricky.

As a note, this is all UX1.

1) Go to https://oxfamstaging.gocept.com/intranets/files

2) Make a folder "x" (or something)

3) Click "Advanced" and make that a reference manual folder.

4) In "x", make a reference manual "y".

5) In "y" make a reference section "z".

6) Go back to "x" (the reference manual folder).

7) Click "Advanced" and set to No Marker.

8) In the folder listing, click on "y".

You then get the error.

Try this on Carlos's branch and see if you can prevent the error.

--Paul

On Oct 16, 2012, at 12:48 PM, JimPGlenn <email address hidden> wrote:

> I am sorry ...I should have said where I did the testing. It was all on
> oxfamstaging.gocept.com. jim
>
> --
> You received this bug notification because you are subscribed to KARL3.
> https://bugs.launchpad.net/bugs/1059559
>
> Title:
> [Oxfam KARL] AttributeError: 'PageTemplateFile' object has no
> attribute 'navigation'
>
> Status in KARL3:
> Fix Committed
>
> Bug description:
> * reported by Oxfam to our support, also see
> https://karl.oxfam.org.uk/communities/karl-offices-
> project/blog/help...-urgent...-unable-to-edit-reference-manuals/
>
> * Error monitor output for when Helen tried to edit the manual:
>
> AttributeError: 'PageTemplateFile' object has no attribute
> 'navigation'
>
> - Expression: "old_layout.navigation"
> - Filename: /srv/multikarl/production/11/eggs/karl-3.98-py2.6.egg/karl/content/views/templates/intranet_layout.pt
> - Location: (40:39)
>
> - Source: ... tal:content="structure old_layout.navigation"/>
> ^^^^^^^^^^^^^^^^^^^^^
> - Arguments: user_can_edit: True
> repeat: {...} (0)
> renderer_name: templates/show_referencemanual.pt
> next_entry: <NoneType - at 0xb770a340L>
> head_data: <script type="text/javascript">\nwindow._karl_clien...
> actions: <list - at 0xc59646c>
> context_tools: <list - at 0x16c9466c>
> renderer_info: <RendererHelper - at 0x11760a8c>
> api: <TemplateAPI - at 0x1176098c>
> backto: {...} (2)
> panel: <instancemethod render_panel at 0x1833be8c>
> layout: <Layout - at 0x1176088c>
> request: <Request - at 0x18134d0c>
> tree: <list - at 0x117608ac>
> old_layout: <PageTemplateFile - at 0xed0624c>
> main_template: <PageTemplateFile - at 0xc13836c>
> context: <ReferenceManual human-resources-starting-or-leaving-oxfam at 0x1cc0ab6c>
> previous_entry: <NoneType - at 0xb770a340L>
> view: <NoneType - at 0xb770a340L>
> Exception when processing https://karl.oxfam.org.uk/intranets/files/essential-resources/support-and-resources/human-resources/human-resources-starting-or-leaving-oxfam/
> Referer: https://karl.oxfam.org.uk/intranets/files/essential-resources/support-and-resources/human-resources/
>
> Traceback (most recent call last):
> File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/tweens.py", lin...

Read more...

Revision history for this message
Alexander Bittner (yb) wrote :

Hi Paul,

Oxfam has contacted us at gocept and inquired about the progress in resolving this bug. We had a KARL upgrade on last Thursday but it looks like the fix didn't make it into the last release.

I was still able to reproduce the error according to your check list on oxfamstaging just a few minutes ago.

We'd like to know what to tell the folks at Oxfam. Did Carlos' actually made it into the last release?

Best regards,
Alex

Revision history for this message
Paul Everitt (paul-agendaless) wrote :
Download full text (8.1 KiB)

I'll check on recreating this.

--Paul

On Nov 12, 2012, at 10:07 AM, Alexander Bittner <email address hidden> wrote:

> Hi Paul,
>
> Oxfam has contacted us at gocept and inquired about the progress in
> resolving this bug. We had a KARL upgrade on last Thursday but it looks
> like the fix didn't make it into the last release.
>
> I was still able to reproduce the error according to your check list on
> oxfamstaging just a few minutes ago.
>
> We'd like to know what to tell the folks at Oxfam. Did Carlos' actually
> made it into the last release?
>
>
> Best regards,
> Alex
>
> --
> You received this bug notification because you are subscribed to KARL3.
> https://bugs.launchpad.net/bugs/1059559
>
> Title:
> [Oxfam KARL] AttributeError: 'PageTemplateFile' object has no
> attribute 'navigation'
>
> Status in KARL3:
> Fix Committed
>
> Bug description:
> * reported by Oxfam to our support, also see
> https://karl.oxfam.org.uk/communities/karl-offices-
> project/blog/help...-urgent...-unable-to-edit-reference-manuals/
>
> * Error monitor output for when Helen tried to edit the manual:
>
> AttributeError: 'PageTemplateFile' object has no attribute
> 'navigation'
>
> - Expression: "old_layout.navigation"
> - Filename: /srv/multikarl/production/11/eggs/karl-3.98-py2.6.egg/karl/content/views/templates/intranet_layout.pt
> - Location: (40:39)
>
> - Source: ... tal:content="structure old_layout.navigation"/>
> ^^^^^^^^^^^^^^^^^^^^^
> - Arguments: user_can_edit: True
> repeat: {...} (0)
> renderer_name: templates/show_referencemanual.pt
> next_entry: <NoneType - at 0xb770a340L>
> head_data: <script type="text/javascript">\nwindow._karl_clien...
> actions: <list - at 0xc59646c>
> context_tools: <list - at 0x16c9466c>
> renderer_info: <RendererHelper - at 0x11760a8c>
> api: <TemplateAPI - at 0x1176098c>
> backto: {...} (2)
> panel: <instancemethod render_panel at 0x1833be8c>
> layout: <Layout - at 0x1176088c>
> request: <Request - at 0x18134d0c>
> tree: <list - at 0x117608ac>
> old_layout: <PageTemplateFile - at 0xed0624c>
> main_template: <PageTemplateFile - at 0xc13836c>
> context: <ReferenceManual human-resources-starting-or-leaving-oxfam at 0x1cc0ab6c>
> previous_entry: <NoneType - at 0xb770a340L>
> view: <NoneType - at 0xb770a340L>
> Exception when processing https://karl.oxfam.org.uk/intranets/files/essential-resources/support-and-resources/human-resources/human-resources-starting-or-leaving-oxfam/
> Referer: https://karl.oxfam.org.uk/intranets/files/essential-resources/support-and-resources/human-resources/
>
> Traceback (most recent call last):
> File "/srv/multikarl/production/11/eggs/pyramid-1.2.1-py2.6.egg/pyramid/tweens.py", line 17, in excview_tween
> response = handler(request)
> File "/srv/multikarl/production/11/eggs/pyramid_tm-0.5-py2.6.egg/pyramid_tm/__init__.py",...

Read more...

Changed in karl3:
status: Fix Committed → In Progress
assignee: Carlos de la Guardia (cguardia) → Paul Everitt (paul-agendaless)
milestone: m120 → m122
Revision history for this message
Carlos de la Guardia (cguardia) wrote :

Seems like this change was never actually merged. Made a pull request to change that.

Revision history for this message
Carlos de la Guardia (cguardia) wrote :

Merged by Chris Rossi on 11-16.

Changed in karl3:
status: In Progress → Fix Committed
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

Indeed, it didn't get merged. This is now merged so Oxfam will need a redeploy.

tags: added: r3.101
Revision history for this message
Paul Everitt (paul-agendaless) wrote :

I *think* this has been fixed.

Changed in karl3:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.