mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 07:29:39 +00:00
Do not use self._conf
This commit is contained in:
parent
5e966645d6
commit
c8fe6eebdc
@ -34,5 +34,5 @@ class RHChatEventPage(RHDisplayEventBase):
|
||||
cols.add('description')
|
||||
if any(c.chatroom.password for c in chatrooms):
|
||||
cols.add('password')
|
||||
return WPChatEventPage.render_template('event_page.html', self._conf, event_chatrooms=chatrooms, cols=cols,
|
||||
return WPChatEventPage.render_template('event_page.html', self.event, event_chatrooms=chatrooms, cols=cols,
|
||||
chat_links=current_plugin.settings.get('chat_links'))
|
||||
|
||||
@ -34,7 +34,6 @@ class RHSearch(RH):
|
||||
def _process_args(self):
|
||||
if 'confId' in request.view_args:
|
||||
self.obj = Event.get_one(request.view_args['confId'], is_deleted=False)
|
||||
self._conf = self.obj.as_legacy
|
||||
self.obj_type = 'event'
|
||||
elif 'category_id' in request.view_args:
|
||||
self.obj = Category.get_one(request.view_args['category_id'], is_deleted=False)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user