Skip to content

Commit

Permalink
Fix view
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed Jun 25, 2018
1 parent 0d26f7b commit ebc8834
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/brasil/gov/agenda/browser/agenda.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class AgendaView(BrowserView, AgendaMixin):
"""Visao padrao da agenda."""

def update(self):
def setup(self):
plone_tools = getMultiAdapter((self.context, self.request),
name='plone_tools')
context_state = getMultiAdapter((self.context, self.request),
Expand All @@ -51,6 +51,7 @@ def results(self, b_size=16):
return results

def __call__(self):
self.setup()
agenda_recente = self.agenda_recente()
if agenda_recente and not self.editable:
response = self.request.response
Expand Down

0 comments on commit ebc8834

Please sign in to comment.