Hi,
today I tried to put all my web2py projects under a common directory called
web2py_projects with a "application" directory within it, in which I kept
all my web2py projects.
I cloned web2py trunk at web2py_projects/web2py
Then soft linked admin, welcome and example applications from within cloned
repo to web2py_projects/applications.
I started web2py with "--folder" argument.
It all wen't well, until an error occurred in one of my projects.
I can't view error tickets, when I click on ticket link, I'll get another
ticket on "admin" app.
Reason is an error in calculating ticket path in gluon/restricted.py
Which doesn't take into account, --folder option and possibility of soft
linking applications.
I don't know about any such problems in other parts of the framework, but
herewith I'm attaching a patch for this problem.
Apply to gluon/restricted.py
@massimo: Is there anybody else with write access to the repository?
Arun.K.R
_________________________________________________
{ Man can be Destroyed but cannot be Defeated.}
{ As you live your days, so you craft your life. }
{ In this world of no walls or fences, we don't need windows or gates! }
http://www.google.com/profiles/ <http://goog_1117901676>*the1.arun*
Registered Gnu\Linux User: #470196
Registered Ubuntu User: #25827
_________________________________________________
65c65
< errors_folder = os.path.join(root, 'errors') #.replace('\\', '/')
---
> errors_folder = os.path.abspath(os.path.join(root, 'errors'))#.replace('\\', '/')