This seems like a rather odd setup. With this setup, my application is stored under the web2py directory tree. But I want to put my application code in its own directory --- in particular, in its own repository. My application's code should be handled separately from the code of web2py itself.
Yes, I realize I can do that. The problem is that (if I understand right) unless I put it in the web2py folder, web2py won't know about it. I can symlink it (or directory-junction it, in windows), but that still seems quite awkward to me. I feel like it would make more sense if the information about where web2py looks for applications was part of web2py's own configuration, not so closely tied to the directory structure on disk.
On Wednesday, January 27, 2016 at 11:37:47 PM UTC-8, Brendan Barnwell wrote:Yes, I realize I can do that. The problem is that (if I understand right) unless I put it in the web2py folder, web2py won't know about it. I can symlink it (or directory-junction it, in windows), but that still seems quite awkward to me. I feel like it would make more sense if the information about where web2py looks for applications was part of web2py's own configuration, not so closely tied to the directory structure on disk.As a Mercurial user, I am quite comfortable having my repository in the applications/myapp directory.
Yes, I realize I can do that. The problem is that (if I understand right) unless I put it in the web2py folder, web2py won't know about it.
I can symlink it (or directory-junction it, in windows), but that still seems quite awkward to me. I feel like it would make more sense if the information about where web2py looks for applications was part of web2py's own configuration, not so closely tied to the directory structure on disk.
On Thursday, January 28, 2016 at 2:37:47 AM UTC-5, Brendan Barnwell wrote:Yes, I realize I can do that. The problem is that (if I understand right) unless I put it in the web2py folder, web2py won't know about it.
I'm not sure I follow. If you realize you can leave your application folder inside /web2py/applications and simply create a version control repository right there, then why is it a "problem" that it must be inside the web2p folder?
I can symlink it (or directory-junction it, in windows), but that still seems quite awkward to me. I feel like it would make more sense if the information about where web2py looks for applications was part of web2py's own configuration, not so closely tied to the directory structure on disk.
Well, you can already move the entire /applications folder somewhere else. And you can also create a separate version control repository for each application within the /applications folder. What additional benefit do you get by moving each application folder to some arbitrary place in the filesystem? In the rare cases where that is necessary, you can always use existing OS facilities, such as symlinking.
I suppose we could allow further configuration, but that would add complexity to the routing system and the functioning of the admin app. We tend to avoid additional complexity unless there is a compelling benefit. It's hard to see the compelling benefit here.
On Thursday, January 28, 2016 at 10:21:54 AM UTC-8, Anthony wrote:On Thursday, January 28, 2016 at 2:37:47 AM UTC-5, Brendan Barnwell wrote:Yes, I realize I can do that. The problem is that (if I understand right) unless I put it in the web2py folder, web2py won't know about it.
I'm not sure I follow. If you realize you can leave your application folder inside /web2py/applications and simply create a version control repository right there, then why is it a "problem" that it must be inside the web2p folder?
Basically because my web2py application is only one part of a larger project, other parts of which have nothing to do with web2py. (I write web apps for use as online experiments/surveys. The app collects the data, but the analysis is done offline, and then other things are done with that data/analysis that are unconnected with the web2py app that was used to collect it.) What I want is to have a directory for that project, and a subdirectory within that for the web2py app. But I can't do that now without symlinking my subdirectory into the web2py folder.
I suppose we could allow further configuration, but that would add complexity to the routing system and the functioning of the admin app. We tend to avoid additional complexity unless there is a compelling benefit. It's hard to see the compelling benefit here.
The compelling benefit I see is that it enables a web2py app to be one part of a larger project, rather than forcing that entire project to be stuffed under the web2py directory.
PS: didn't have time to read through all, but did you consider using web2py.py -f /path/to/applications_directory ? I just fixed a couple of issues in trunk but it works fine.
some things in web2py are not app-dependant so I guess it'll be quite not possible to have a per-app folder.