Exemplo n.º 1
0
    def _process(self):
        if redis_write_client:
            suggestions.schedule_check(self.user)

        tz = timezone(DisplayTZ().getDisplayTZ())
        hours, minutes = timedelta_split(tz.utcoffset(datetime.now()))[:2]
        return WPUserDashboard.render_template('dashboard.html', redis_enabled=bool(redis_client), timezone=unicode(tz),
                                               offset='{:+03d}:{:02d}'.format(hours, minutes), user=self.user,
                                               categories=get_related_categories(self.user),
                                               suggested_categories=get_suggested_categories(self.user))
Exemplo n.º 2
0
    def _process(self):
        if redis_write_client:
            suggestions.schedule_check(self.user)

        tz = timezone(DisplayTZ().getDisplayTZ())
        hours, minutes = timedelta_split(tz.utcoffset(datetime.now()))[:2]
        return WPUserDashboard.render_template('dashboard.html', redis_enabled=bool(redis_client), timezone=unicode(tz),
                                               offset='{:+03d}:{:02d}'.format(hours, minutes), user=self.user,
                                               categories=get_related_categories(self.user),
                                               suggested_categories=get_suggested_categories(self.user))
Exemplo n.º 3
0
Arquivo: users.py Projeto: Ictp/indico
 def _process(self):
     p = adminPages.WPUserDashboard(self, self._avatar)
     if redis_write_client:
         suggestions.schedule_check(self._avatar)
     return p.display()
Exemplo n.º 4
0
 def _process(self):
     p = adminPages.WPUserDashboard(self, self._avatar)
     if redis_write_client:
         suggestions.schedule_check(self._avatar)
     return p.display()