pombreda / gcalcli

Automatically exported from code.google.com/p/gcalcli
0 stars 0 forks source link

calw fails at empty event description #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a quick Google Calendar entry with a blank description. Here's
text I used to do that, copying from a web page and pasting it into the
Terminal:
+-(11:41:%)--- "MyCompanyName-OurTown
--(dquote)-- April 17, 2008
--(dquote)-- 
--(dquote)-- Date: April 17, 2008
--(dquote)-- Time: 10:00 AM"

2. try to get a calendar to see how it is entered: "gcalcli calw 9"

What is the expected output? What do you see instead?
Expected:
+-----------------+-----------------+-----------------+-----------------+-------
----------+-----------------+-----------------+
|13 Apr           |14 Apr           |15 Apr           |16 Apr           |17
Apr           |18 Apr           |19 Apr           |
|                 |                 |                 |                 | 
               |                 |                 |
|                 |                 |                 |                
|10:00am myEvent  |                 |                 |

Actual:

+-----------------+-----------------+-----------------+-----------------+-------
----------+-----------------+-----------------+
|13 Apr           |14 Apr           |15 Apr           |16 Apr           |17
Apr           |18 Apr           |19 Apr           |
Traceback (most recent call last):
  File "/usr/local/bin/gcalcli", line 1114, in ?
    DoooooItHippieMonster()
  File "/usr/local/bin/gcalcli", line 1064, in DoooooItHippieMonster
    gcal.CalQuery(args[0], count=int(args[1]))
  File "/usr/local/bin/gcalcli", line 819, in CalQuery
    self._GraphEvents(cmd, start, count, eventList)
  File "/usr/local/bin/gcalcli", line 543, in _GraphEvents
    eventList)
  File "/usr/local/bin/gcalcli", line 393, in _GetWeekEventStrings
    weekEventStrings[dayNum] += \
AttributeError: 'NoneType' object has no attribute 'strip'

What version of the product are you using? On what operating system?
# $Id: gcalcli 61 2007-10-13 18:44:46Z insanum $
Mac OS X 10.4.11
zsh shell

Please provide any additional information below.
I edited the event using Google Calendar, and the description was empty.
When I fixed the description, it showed up as expected.

Original issue reported on code.google.com by daz-goo...@zzzurn.com on 10 Mar 2008 at 6:18

GoogleCodeExporter commented 9 years ago
The invocation line, 11:41, should show a "q" which I have aliased to "gcalcli 
quick"

Original comment by daz-goo...@zzzurn.com on 10 Mar 2008 at 6:20

GoogleCodeExporter commented 9 years ago
Fixed.  Using the title "(No title)" for events with no titles.  Google 
Calendar web client does the same.

Original comment by eda...@insanum.com on 25 Jul 2011 at 6:51

GoogleCodeExporter commented 9 years ago

Original comment by eda...@insanum.com on 27 Jul 2011 at 4:59