How to debug asyncio.exceptions.CancelledError?

2019-10-24 Thread Joshua Gardner
I'm using a library for Django Channels that I've somehow misconfigured
and is causing asyncio.exceptions.CancelledError when trying to connect
a websocket. Because of how the stack isn't particularly straightforward
with asyncio I'm at a loss to debug this.

Any tips to find out what's going on?

Reference to other questions in other fora that are related:

GitHub issue: https://github.com/datadvance/DjangoChannelsGraphqlWs/issues/28
Django-Users: https://groups.google.com/forum/#!topic/django-users/lSBYzKZ3sFE
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Is It Bug?

2013-12-07 Thread Joshua Gardner
If I'm having to deal with incessant backslashes in a string I'll often
use the r'\' (raw string literal) syntax. Simplifies things quite a bit.
-- 
https://mail.python.org/mailman/listinfo/python-list


Using vObject

2008-09-22 Thread Joshua Gardner
I'm brand new to USENET so please bear with me.

I'm writing a specialized to-do list app. I'm using Django but this is
not a question about Django. It has to have recurring tasks set by the
managers for the employees to then check off.

I've got pretty much everything in the app worked out, except for one
thing: the repeating tasks. I want to have it so that the manager puts
in a repeating task with a description and a repeat rule. This rule then
generates simpler one-time tasks. These one-time tasks have a
description, a time (a datetime.datetime object) and completed boolean.

I've looked around and think I have these options:
1. Manually put it all together with another Django model that
implements the repeat rules.
2. Do the same thing but use dateutil.rrule to help.
3. Use the icalendar (http://codespeak.net/icalendar/) module to access
ICS files.
4. vObject (http://vobject.skyhouseconsulting.com/) to do the same.

I think I want to use vObject because it uses dateutil and the
management can easily manage tasks from a desktop app.

Only thing is that I find vObject's documentation very cryptic and was
wondering if anybody here could shed some light on how to use vObject. A
simple getting-started tutorial or something similar would be nice.

Thanks all!

-Josh
--
http://mail.python.org/mailman/listinfo/python-list