Message5171

Author asnama
Recipients asnama
Date 2009-09-17.03:38:30
SpamBayes Score 0.00023046027
Marked as misclassified No
Message-id <1253158711.76.0.0704040061402.issue1471@psf.upfronthosting.co.za>
In-reply-to
Content
When I use the Google Calendar APIs and Tools, I test this function.

# \gdata\calendar\service.py, line 490
  def _SetOrderBy(self, val):
    if val is not 'lastmodified' and val is not 'starttime':
      raise Error, "Order By must be either 'lastmodified' or 'starttime'"
    self['orderby'] = val

I got error no matter what I passed to it.


Jython 2.5.0 (Release_2_5_0:6476, Jun 16 2009, 13:33:26)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_14
Type "help", "copyright", "credits" or "license" for more information.
>>> def t(v):
...   if v is not 'a' and v is not 'b': return 'e'
...   return 't'
...
>>> t('a')
'e'
>>> t('b')
'e'
>>> t('c')
'e'
>>>
History
Date User Action Args
2009-09-17 03:38:32asnamasetrecipients: + asnama
2009-09-17 03:38:31asnamasetmessageid: <1253158711.76.0.0704040061402.issue1471@psf.upfronthosting.co.za>
2009-09-17 03:38:31asnamalinkissue1471 messages
2009-09-17 03:38:31asnamacreate