Whatever you have this should not happening. RestrictedError is an
internal web2py error that means an error has been caught. Web2py
should catch RestrictedError and display the traceback therein.

Would you, confidentially, send me your app so that I can look at what
may be causing this?

Massimo

On Dec 5, 4:22 pm, michal niklas <[EMAIL PROTECTED]> wrote:
> Hello,
>
> While trying web2py I imported app done by other developer.
> We use PostgreSQL so I pg_dumped whole database
> and imported it on my machine, then I zipped whole
> app directory (web2py\applications\Archiwum) and restored
> it on my machine. I restarted web2py. Now from admin interface
> I can edit sources, but when I entered design/database administration
> I got:
>
> Internal error
> Ticket issued: Archiwum/
> 127.0.0.1.2008-12-05.22-22-07.31ae0c48-9041-481c-8dbc-1aa62173c0f6
>
> There is no stack nor other info.
> Console do not show any error.
> I checked last modified files, but found only session file and
> httpserver.log.
> If I click on this ticket I got:
>
> Internal error
> Ticket issued: admin/127.0.0.1.2008-12-05.22-23-26.fe233399-e3d7-41da-
> a831-714504fd44b2
>
> (notice that now ticket shows 'admin' app and not my app 'Archiwum'.)
>
> The same error shows if I click on this error and on my 3rd trial I
> got
> "normal" ticket that states:
> ...
>   File "F:\tmp\web2py\applications\admin/controllers/
> default.py:ticket", line 509, in ticket
>   File "F:\tmp\web2py\gluon\restricted.py", line 47, in load
>     d=cPickle.load(open(file,'rb'))
> IOError: [Errno 2] No such file or directory: 'F:/tmp/web2py/
> applications/admin/errors/
> 127.0.0.1.2008-12-05.22-26-51.319a4f77-6ee4-4ddd-b25d-95042d519a87'
>
> So I started console with hope to see more:
>
> F:\tmp\web2py>web2py.py -M -S Archiwum
> default applications appear to be installed already
> web2py Enterprise Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2008
> Version 1.52 (2008-12-02 16:14:02)
> Database drivers available: SQLite3, Postgre
> Traceback (most recent call last):
>   File "F:\tmp\web2py\web2py.py", line 5, in <module>
>     start()
>   File "F:\tmp\web2py\gluon\widget.py", line 383, in start
>     import_models=options.import_models, startfile=options.run)
>   File "F:\tmp\web2py\gluon\shell.py", line 104, in run
>     _env = env(a, c=c, import_models=import_models)
>   File "F:\tmp\web2py\gluon\shell.py", line 74, in env
>     run_models_in(environment)
>   File "F:\tmp\web2py\gluon\compileapp.py", line 163, in run_models_in
>     restricted(code,environment,layer)
>   File "F:\tmp\web2py\gluon\restricted.py", line 66, in restricted
>     raise RestrictedError(layer,code,'',environment)
> gluon.restricted.RestrictedError: <gluon.restricted.RestrictedError
> instance at
> 0x0197D990>
>
> I thought there was problem with model-database incomptatibility.
> I droped whole db, recreated it using web2py and imported data via
> pg_dump.
> Now console runs without error, but design/database administration
> do not work :(
>
> Any idea what went wrong?
>
> Regards,
> MichaƂ Niklas
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to