Thanks a lot for testing !!! I just got it. When I use :
return dict(message="Testing RRule", recur = recur)
... its working fine, but when I returned (just for testing) 'return recur'
only, it freezed the Rocket ...
Thanks again!
Dne sobota, 22. června 2013 4:17:29 UTC+2 Brian M napsal(a):
>
> I too use relativedelta a lot but hadn't tried rrule() before. However, I
> just gave it a try and it appeared to work OK. (Tested with current web2py
> trunk running via rocket)
>
> def index():
> from dateutil.rrule import *
> from dateutil.parser import *
> from datetime import *
> recur = list(rrule(MONTHLY, count=10,
> dtstart=parse('2013-6-21')))
> return dict(message="Testing RRule", recur = recur)
>
> This is the rrule/index.html template
> message:Testing RRulerecur:datetime.datetime(2013, 6, 21, 0,
> 0)datetime.datetime(2013,
> 7, 21, 0, 0)datetime.datetime(2013, 8, 21, 0, 0)datetime.datetime(2013,
> 9, 21, 0, 0)datetime.datetime(2013, 10, 21, 0, 0)datetime.datetime(2013,
> 11, 21, 0, 0)datetime.datetime(2013, 12, 21, 0, 0)datetime.datetime(2014,
> 1, 21, 0, 0)datetime.datetime(2014, 2, 21, 0, 0)datetime.datetime(2014,
> 3, 21, 0, 0)
>
> On Friday, June 21, 2013 3:16:06 PM UTC-5, David Marko wrote:
>>
>> timedeltas are fine, but I need rrules, which contains great
>> functionality ...
>>
>>
>> Dne pátek, 21. června 2013 22:12:53 UTC+2 Jim S napsal(a):
>>>
>>> I use dateutil extensively but not rrule().
>>>
>>> -Jim
>>>
>>>
>>> On Friday, June 21, 2013 1:52:16 PM UTC-5, David Marko wrote:
>>>>
>>>> I have to use 'rrule' part of python-dateutil library see here
>>>> http://labix.org/python-dateutil<http://labix.org/python-dateutil#head-470fa22b2db72000d7abe698a5783a46b0731b57>
>>>> But
>>>> I cant get it to work under web2py. It freezes the Rocket server. Its
>>>> working fine as standalone in Python, but in web2py app the rrule()
>>>> method
>>>> freezes the server. I found the 'import thread' at the beginning of this
>>>> library, but its not used with default parameters. So I even commented
>>>> this
>>>> import but still doesnt work under web2py.
>>>>
>>>> Anyone there have been successfull with this?
>>>>
>>>>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.