taking out the -M works great, but i am now getting the following in
the traceback:
global name 'db' is not defined
this is my revised module:
import time
try:
while 1:
time.sleep(60)
print db.tables
except Exception,e:
print e
thanks again!
On Nov 20, 9:44 pm, mdipierro <[EMAIL PROTECTED]> wrote:
> Can you please try without -M perhaps there is an error in there.
> If without -M works, then you need you debug your model first using
> the administrative interface.
> The error you are getting is very generic from a catch-all except. Not
> very informative.
>
> Massimo
>
> On Nov 20, 8:26 pm, shlo <[EMAIL PROTECTED]> wrote:
>
> > yes, the output i received was with 1.51.
>
> > On Nov 20, 6:33 pm, mdipierro <[EMAIL PROTECTED]> wrote:
>
> > > Do you have 1.51. 1.51 should write the taceback instread of the
> > > RestrictedError.
>
> > > On Nov 20, 6:14 pm, shlo <[EMAIL PROTECTED]> wrote:
>
> > > > so I wrote a module (test.py):
> > > > import time
>
> > > > try:
> > > > while 1:
> > > > time.sleep(60)
> > > > except Exception, e:
> > > > print e
>
> > > > and tried to run it:
> > > > web2py1.51> web2py.exe -S myapp -M -R applications\myapp\modules
> > > > \test.py
>
> > > > and got this error:
> > > > default applications appear to be installed already
> > > > web2py Enterprise Web Framework
> > > > Created by Massimo Di Pierro, Copyright 2007-2008
> > > > Version 1.51 (2008-11-19 14:48:02)
> > > > Database drivers available: SQLite3, MySQL
> > > > Traceback (most recent call last):
> > > > File "web2py.py", line 5, in <module>
> > > > File "gluon\widget.pyc", line 383, in start
> > > > File "gluon\shell.pyc", line 104, in run
> > > > File "gluon\shell.pyc", line 74, in env
> > > > File "gluon\compileapp.pyc", line 139, in run_models_in
> > > > File "gluon\restricted.pyc", line 66, in restricted
> > > > gluon.restricted.RestrictedError: <gluon.restricted.RestrictedError
> > > > instance at
> > > > 0x016160A8>
>
> > > > could someone let me know what i am doing wrong?
> > > > thanks in advance for your help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---