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