Message5205

Author jsamsa
Recipients jsamsa
Date 2009-09-29.16:28:21
SpamBayes Score 2.2037927e-14
Marked as misclassified No
Message-id <1254241702.22.0.703492550009.issue1481@psf.upfronthosting.co.za>
In-reply-to
Content
C:\>jython
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_15
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.strptime('09/01/2009', 'm')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
        at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:783)
        at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:576)
        at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:501)
        at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:476)
        at org.python.modules.time.Time.strptime(Time.java:705)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)

java.lang.IllegalArgumentException: java.lang.IllegalArgumentException:
Unterminated quote
>>> exit()

C:\>python
Python 2.5.2 (r252:60911, Dec  2 2008, 09:26:14)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.strptime('09/01/2009', 'm')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/_strptime.py", line 330, in strptime
    (data_string, format))
ValueError: time data did not match format:  data=09/01/2009  fmt=m
>>> exit()


the above is causing some issues with date validation in django.forms
(Django version 1.1)
History
Date User Action Args
2009-09-29 16:28:22jsamsasetrecipients: + jsamsa
2009-09-29 16:28:22jsamsasetmessageid: <1254241702.22.0.703492550009.issue1481@psf.upfronthosting.co.za>
2009-09-29 16:28:22jsamsalinkissue1481 messages
2009-09-29 16:28:21jsamsacreate