handlers.py 文件源码

python
阅读 57 收藏 0 点赞 0 评论 0

项目:trax 作者: EliotBerriot 项目源码 文件源码
def handle(self, arguments, user, **kwargs):
        tz = user.preferences['global__timezone']
        if arguments:
            if arguments not in pytz.all_timezones:
                raise HandleError('Invalid timezone', code='invalid_arg')
            tz = arguments

        return {
            'current': timezone.now(),
            'timezone': tz,
        }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号