Re: [web2py] Write Inline query

2014-12-03 Thread Niphlod
not_in = db(db.table2.id>0)._select(db.table2.column2) query = db(~db.table1.column1.belongs(not_in)).select() On Tuesday, December 2, 2014 12:06:42 PM UTC+1, vijay@agnicient.com wrote: > > > Hi All, > > I really need help with a query? > > this is my query: > > > Select * from Table1 whe

Re: [web2py] Re: Web2py's included connection pooling VS external pooling software

2014-12-03 Thread Lisandro Rostagno
Actually I was referring to max-procs parameter of the fastcgi server that is setup in lighttpd virtual host configuration. I don't know if you mean that. In my virtual host configuration, I setup the fastcgi server like this: fastcgi.server = ( ".fcgi" => ("localhost" => (

Re: [web2py] using a requirements file with a web2py application

2014-12-03 Thread Vinicius Assef
The correct approach is using virtualenv and installing dependencies inside your virtualenv. On Mon, Dec 1, 2014 at 11:49 AM, Jason Solack wrote: > Hello, i'm deploying some sites to apache and i'm wondering if there's built > in support for a "requirements" file to ensure my project is using the

Re: [web2py] Re: Web2py's included connection pooling VS external pooling software

2014-12-03 Thread Michele Comitini
why not flup? - not event based. Event based servers are usually more responsive under load. - seems pretty unmantained. - misses some tuning options. max-procs in lighttpd configuration: - leave it to 1 - work with the following options in your script: WSGIServer(application, minSpare=1, maxSpar

[web2py] Re: Dynamic Upload Uploadfolder

2014-12-03 Thread James Burke
Final solution was this: _tables.py def store_file(file, filename=None, path=None): path = path #"applications/init/uploads" if not os.path.exists(path): os.makedirs(path) pathfilename = os.path.join(path, filename) dest_file = open(pathfilename, 'wb') try:

[web2py] Code that must run only once

2014-12-03 Thread Alan Evangelista
Where should I put code that should run only once at web server startup (not once per http request) (eg application initialization) ? Thanks in advance! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.goog

[web2py] Re: UPDATED AGENDA! Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-12-03 Thread Matjaz P
I'll be there. Matjaz -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-u

[web2py] A newbe needs help

2014-12-03 Thread paul_eieio via web2py-users
I really want to learn Web2py and get it working on my P.C. I have LinuxMint17 (a Ubuntu derivative); Python2.7 was installed; I installed python-web2py. Trying to follow the documentation. When I type *python web2py.py -S welcome* into my terminal I get: python: can't open file 'web2py.py

[web2py] Modules and controllers running in processes - global variables

2014-12-03 Thread Alan Evangelista
Most of my application code is running in Python modules in the modules directory. In the modules directory, I have a few singletons which are implemented as variables defined in the main body of a globals module. However, it seems that web2py runs my modules and the controller in different pro

[web2py] Widget in custom FORM

2014-12-03 Thread Jean-François Milants
Hi, I would like to apply a widget (ckeditor) to an INPUT field of a custom FORM (not a SQLFORM). When using SQLFORM and FIELD(...,widget=ckeditor.widget), the widget is correctly applied to the field of the FORM. Can I do the same thing with a custom FORM? The data I'm manipulating in the FO

[web2py] Deploying web2py website

2014-12-03 Thread PZ R
Hi , I'm fairly new to web development so this may be a silly question but how do I deploy a website I made in web2py? Thank you :) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/is

[web2py] Re: UPDATED AGENDA! Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-12-03 Thread Chris Sears
I'll go. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group.

[web2py] Re: UPDATED AGENDA! Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-12-03 Thread Juan Shishido
So glad I came across this. I'll be there. Thanks! Looking forward to it. J On Wednesday, November 5, 2014 11:48:14 PM UTC-8, weheh wrote: > > *Massimo Di Pietro, web2py's originator, will attend our own Bay Area* > *web2py > meetup* to meet, greet and present. Additional talks by Dexter Hadley

[web2py] Re: UPDATED AGENDA! Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-12-03 Thread Geoffrey Wakeling
I will attend, will there be WiFi access? On Wednesday, November 5, 2014 11:48:14 PM UTC-8, weheh wrote: > > *Massimo Di Pietro, web2py's originator, will attend our own Bay Area* > *web2py > meetup* to meet, greet and present. Additional talks by Dexter Hadley, of > Stanford University and Ric

[web2py] web2py and pylint

2014-12-03 Thread Alan Evangelista
pylint checks fail on web2py controllers and models because web2py automatically imports several modules/classes/variables at runtime. I assume this is a known issue and there is no workaround? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

[web2py] Re: UPDATED AGENDA! Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-12-03 Thread tajalliji
See you Friday. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users"

[web2py] Re: Dynamically change highlighted class for response.menu

2014-12-03 Thread Moises Roth
if you need a simple menu you can use this code on "MODELS" > "menu.py" def _(): # shortcuts app = request.application ctr = request.controller # flags pesquisa_h = 'highlighted' if ctr=='pesquisa' else '' relatorios_h = 'highlighted' if ctr=='relatorios' else '' res

[web2py] Re: UPDATED AGENDA! Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-12-03 Thread Daniel Roesler
I would like to attend! Thanks! -Daniel Roesler On Wednesday, November 5, 2014 11:48:14 PM UTC-8, weheh wrote: > > *Massimo Di Pietro, web2py's originator, will attend our own Bay Area* > *web2py > meetup* to meet, greet and present. Additional talks by Dexter Hadley, of > Stanford University a

[web2py] Re: Deploying web2py website

2014-12-03 Thread Massimo Di Pierro
You can use any web hosting service but this one is the easiest: https://www.pythonanywhere.com/try-web2py/ On Wednesday, 3 December 2014 10:37:44 UTC-6, PZ R wrote: > > Hi , > > I'm fairly new to web development so this may be a silly question but how > do I deploy a website I made in web2py?

[web2py] Re: A newbe needs help

2014-12-03 Thread Massimo Di Pierro
Hello Paul, Where are you installing this from? You are using a version that is 3 years old. You should download and unzip the version from the web2py.com web site. The version issue may or may not be related to the cache problem. Massimo On Wednesday, 3 December 2014 11:32:49 UTC-6, paul_...@

[web2py] Re: Modules and controllers running in processes - global variables

2014-12-03 Thread Tim Richardson
Because requests are handled by threads, the way to do this may be to use the current object. Note that you should replace "processes" with "threads" in your question. Most web2py execution environments are multi-threaded not not-multiprocess. You set your global variables in one of the code bod

[web2py] Re: long running rpc call

2014-12-03 Thread Tim Richardson
Does your RPC call actually block other requests? On Tuesday, 2 December 2014 06:29:36 UTC+11, Matt Broadstone wrote: > > Hi, > We're making a number of rpc calls to other services using jsonrpc, and a > few of them are particularly long running. I'd rather not use the > scheduler, but instead

[web2py] Re: Modules and controllers running in processes - global variables

2014-12-03 Thread Anthony
Can you show some code (i.e, both some module code and how you are importing/accessing the objects from the controller)? On Tuesday, December 2, 2014 1:01:04 PM UTC-5, Alan Evangelista wrote: > > Most of my application code is running in Python modules in the modules > directory. In the modules

[web2py] Re: How to upload web2py code to git

2014-12-03 Thread Tim Richardson
Are you trying to do this via the web2py admin interface, is that what you mean? What type of web2py installation do you have? (did you clone github, a "source" installation) The git integration built in to the admin app worked last time I used it as long as the python git modules are available

[web2py] Re: Deploying web2py website

2014-12-03 Thread Jim S
Have you read through this yet? http://web2py.com/books/default/chapter/29/13/deployment-recipes -Jim On Wednesday, December 3, 2014 10:37:44 AM UTC-6, PZ R wrote: > > Hi , > > I'm fairly new to web development so this may be a silly question but how > do I deploy a website I made in web2py? >