in a fresh mercurial checkout i commented out
jn = os.path.join in one of my models and the error messages were
normal again

in version 1.95.1 i commented out #mail = Mail()
and i had normal error messges again, complaining that mail is unknow
so i changed
auth.settings.mailer = mail
to
auth.settings.mailer = None

and the error messages are unknown again and only appear in the shell

On Apr 28, 11:32 am, selecta <[email protected]> wrote:
> ok this cant be correct
> so i started importing things that were missing
>
> from gluon.tools import Auth #ok
> from gluon.tools import Crud #ok
> from gluon.tools import Service #ok
> from gluon.tools import Mail<-here it starts creating corrupt error
> tickets again
>
> On Apr 28, 11:11 am, selecta <[email protected]> wrote:
>
>
>
> > after deleting my app step by step i found it
> > i had
>
> > from gluon.tools import *
>
> > in one of my model files
> > this breaks the ticket generation!
>
> > On Apr 28, 11:06 am, selecta <[email protected]> wrote:
>
> > > I get an unkown error for every ticket that is created by my
> > > application
> > > I can see the print out of the error trackeback in the shell i started
> > > web2py in
> > > also the ticked pickle files are broken, when i open the admin to view
> > > the tickets i get
> > > Traceback (most recent call last):
> > >   File "/home/fkrause/Downloads/tmp/wp/web2py/gluon/restricted.py",
> > > line 181, in restricted
> > >     exec ccode in environment
> > >   File "/home/fkrause/Downloads/tmp/wp/web2py/applications/admin/
> > > controllers/default.py", line 1188, in <module>
> > >   File "/home/fkrause/Downloads/tmp/wp/web2py/gluon/globals.py", line
> > > 133, in <lambda>
> > >     self._caller = lambda f: f()
> > >   File "/home/fkrause/Downloads/tmp/wp/web2py/applications/admin/
> > > controllers/default.py", line 1033, in errors
> > >     error = pickle.load(open(fullpath, 'r'))
> > >   File "/usr/lib/python2.6/pickle.py", line 1370, in load
> > >     return Unpickler(file).load()
> > >   File "/usr/lib/python2.6/pickle.py", line 858, in load
> > >     dispatch[key](self)
> > >   File "/usr/lib/python2.6/pickle.py", line 880, in load_eof
> > >     raise EOFError
> > > EOFError
>
> > > this only is the case for my older applications, i cannot reproduce it
> > > with a newly created application

Reply via email to