Hi again,

On Wednesday, 18 July 2012 10:35:11 UTC+10, Massimo Di Pierro wrote:
>
> I would be very much interested in a web2py war file! We can distribute it 
> directly from the web2py.com
>
>
It would be great, wouldn't it? There would probably have to be some 
caveats -- probably just some usage guidelines like the GAE implementation 
notes.

At the moment I have a few small issues: 

   1. The web2py applications directory is working, but out of the 
   top-level Tomcat directory. So I'll need to work out how to get the context 
   to work relative to the WEB-INF folder before I can pack it into a war file.
   2. sqlite connections work (once I added a jdbc driver to the Tomcat 
   Lib), but there is an issue with 'No such method create_function' which is 
   either a problem of partially implemented drivers (i tried two variants), 
   or a problem with regex handling. Not sure at the moment.
   3. Postgres JDBC support in the gluon dal.py seems only partially 
   complete (am I correct?), and in any case we'd need a way to set a 
   configuration from outside the war for the connection details.
   4. Various little issues which highlight the subtle differences between 
   Jython & Python.

Some questions for people to consider -- feedback very welcome:

   - Should we attempt to fix or work-around Jython issues in web2py 
   version 2.0+?... or work from 1.85, which I believe was the last working 
   version for Jython? I'd suggest a small virtual working group to see how 
   much is currently held up from using Jython/modjy. Any takers? Experts out 
   there?
   - Should the web2py.war reference an external applications directory, or 
   should we encourage people to 'roll their own' baked .war file with their 
   own applications? I'd probably recommend we provide a 'baking recipe' since 
   nothing beats a nice, self-contained .war file.
   - What is the best method to allow people to feed in their own 
   configuration variables? A method that works across multiple servlet 
   containers. (Is there such a thing?)

Thanks again for any advice or tips out there. I'm not expecting this to be 
trouble-free. :) But a worthwhile pursuit. With the added advantage of 
probably sorting through some Jython issues, too. In the end it might not 
be possible. But impossible is where all the fun lies, right? ;)

Cheers,
Duncan.
 

-- 



Reply via email to