I can't see the other email but glad the problem is solved on the scheduler 
side.

On Monday, October 22, 2012 10:00:40 PM UTC+2, mweissen wrote:
>
> Sorry, yesterday it has been very late. Of course some code is necessary 
> for analyzing. I thought it could be helpful it there is a simple problem.
>
> Yes, a function calls the the scheduler. Now I have changed the code and 
> did not get the message again. But now there is another problem - see other 
> mail.
>
> Regards, Martin
>
> 2012/10/21 Niphlod <[email protected] <javascript:>>
>
>> Without code to reproduce it's hard to give you any clue on how to fix 
>> this....What is the web2py version? Can we see the function ? Seems that 
>> the result of the function is calling scheduler code again....can you tell 
>> us more about what are you trying to do ?
>>
>> are you doing in some places in your models 
>>
>> from datetime import datetime ?
>>
>>
>> On Sunday, October 21, 2012 11:36:23 PM UTC+2, mweissen wrote:
>>>
>>> I get this error message:
>>>
>>> Traceback (most recent call last):
>>>   File "/users/www-data/web2py/gluon/**scheduler.py", line 232, in 
>>> executor
>>>     result = dumps(_function(*args, **vars))
>>>   File "applications/secure/models/**schedule.py", line 742, in 
>>> redirect_email
>>>     message=str(rueckmeldung)+'\n'**+str(T('Ihre E-Mail mit dem 
>>> folgenden Text kann nicht weiter geleitet werden:'))+'\n\n'+empfangene_*
>>> *email['body'],
>>>   File "applications/secure/models/**schedule.py", line 174, in 
>>> queue_email
>>>     timeout=120,
>>>   File "/users/www-data/web2py/gluon/**dal.py", line 7806, in insert
>>>     ret =  self._db._adapter.insert(self,**self._listify(fields))
>>>   File "/users/www-data/web2py/gluon/**dal.py", line 1155, in insert
>>>     query = self._insert(table,fields)
>>>   File "/users/www-data/web2py/gluon/**dal.py", line 1151, in _insert
>>>     values = ','.join(self.expand(v,f.type) for f,v in fields)
>>>   File "/users/www-data/web2py/gluon/**dal.py", line 1151, in <genexpr>
>>>     values = ','.join(self.expand(v,f.type) for f,v in fields)
>>>   File "/users/www-data/web2py/gluon/**dal.py", line 1306, in expand
>>>     return str(self.represent(expression,**field_type))
>>>   File "/users/www-data/web2py/gluon/**dal.py", line 1699, in represent
>>>     obj = obj()
>>>   File "/users/www-data/web2py/gluon/**scheduler.py", line 455, in now
>>>     return self.utc_time and datetime.datetime.utcnow() or 
>>> datetime.datetime.now()
>>> AttributeError: type object 'datetime.datetime' has no attribute 
>>> 'datetime'
>>>
>>>
>>>  -- 
>>
>

-- 



Reply via email to