Please ignore my previous email.  I now think the problem is in my  
model code.

Apologies for the fault alarm.

-KIRBY


On Mar 16, 2009, at 4:26 PM, Kirby Turner wrote:

>
> When I try to run my app through the shell when the -M (--
> import_models) flag I get the following error:
>
> python web2py.py -S orders --import_models
>
> WARNING:root:URL rewrite is on. configuration in route.py
> default applications appear to be installed already
> web2py Enterprise Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2009
> Version 1.56.4 (2009-02-23 09:43:44)
> Database drivers available: SQLite3
> Traceback (most recent call last):
>   File "web2py.py", line 21, in <module>
>     start()
>   File 
> "/Users/kirbyt/Documents/Source/www.whitepeaksoftware.com/gluon/widget.py
> ", line 740, in start
>     import_models=options.import_models, startfile=options.run)
>   File 
> "/Users/kirbyt/Documents/Source/www.whitepeaksoftware.com/gluon/shell.py
> ", line 144, in run
>     _env = env(a, c=c, import_models=import_models)
>   File 
> "/Users/kirbyt/Documents/Source/www.whitepeaksoftware.com/gluon/shell.py
> ", line 102, in env
>     run_models_in(environment)
>   File 
> "/Users/kirbyt/Documents/Source/www.whitepeaksoftware.com/gluon/compileapp.py
> ", line 216, in run_models_in
>     restricted(code, environment, layer)
>   File 
> "/Users/kirbyt/Documents/Source/www.whitepeaksoftware.com/gluon/restricted.py
> ", line 102, in restricted
>     raise RestrictedError(layer, code, '', environment)
> gluon.restricted.RestrictedError: <gluon.restricted.RestrictedError
> instance at 0x2352f30>
>
>
> The error is raised only when I use -M or --import_models.  It does
> not happen when I leave off the import models option.
>
> Note, I am running on a Mac (OS X 10.5.6) using Python 2.6.1.  Hmmm,
> does web2py support Python 2.6.1 yet?
>
> Thanks,
> -KIRBY
>
>
> >



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to