oo... by known bug you mean that there is a ticket for it ? On Sat, May 19, 2012 at 5:43 PM, Niphlod <[email protected]> wrote:
> it's a known issue with the custom importer.... > > you could after all debug in "the old way" inserting print statements here > and there in your module to see where execution stops. > > Il giorno sabato 19 maggio 2012 12:00:45 UTC+2, sebastian ha scritto: > >> Hi All, >> >> In my controller I'm importing my own module class with >> >> from messaging import Msg >> >> If my class has any error (say a typo for example), then web2py opens >> the usual ticket, but it doesn't show the line where the actual error >> occurred. It shows the line where the *controller imported the module*.... >> which is not very clarifying.... >> >> Is it working as expected ? >> >> thanks >> >> >> 1. >> 2. >> 3. >> 4. >> 5. >> 6. >> 7. >> 8. >> 9. >> 10. >> 11. >> 12. >> 13. >> 14. >> >> >> Traceback (most recent call last): >> >> >> >> File "/home/sebas/dev/web2py/**peerservices/gluon/restricted.**py", line >> 205, in restricted >> >> >> >> exec ccode in environment >> >> >> >> File >> "/home/sebas/dev/web2py/**peerservices/applications/**peerservices/controllers/**default.py" >> >> <http://localhost:8000/admin/default/edit/peerservices/controllers/default.py>, >> line 376, in <module> >> >> >> >> File "/home/sebas/dev/web2py/**peerservices/gluon/globals.py"**, line 173, >> in <lambda> >> >> >> >> self._caller = lambda f: f() >> >> >> >> File >> "/home/sebas/dev/web2py/**peerservices/applications/**peerservices/controllers/**default.py" >> >> <http://localhost:8000/admin/default/edit/peerservices/controllers/default.py>, >> line 289, in send_suggestion >> >> >> >> from messaging import Msg >> >> >> >> File "/home/sebas/dev/web2py/**peerservices/gluon/custom_**import.py", >> line 289, in __call__ >> >> >> >> globals, locals, fromlist, level) >> >> >> >> File "/home/sebas/dev/web2py/**peerservices/gluon/custom_**import.py", >> line 132, in __call__ >> >> >> >> raise e # Don't hide something that went wrong >> >> >> AttributeError: 'dict' object has no attribute 'auth' >> >> >> >> 289. from messaging import Msg >> >> -- >> Sebastian E. Ovide >> >> >> >> >> -- Sebastian E. Ovide

