My app uses web2py as a background task (as described in Ch. 4 of the
web2py docs). I have a slow memory leak in the background task. I'm trying
to run guppy periodically to find it but I am getting a error when I try to
use it.
The relevant part of my code looks like this:
import guppy
heap
ploaded files that are stored in the database.
Is there something wrong with my original images table definition?
Would I be better served to simply store the image in a blob field and not
use the store/retrieve functions?
Any help would gratefully received.
David
On Friday, October 26, 201
I am attempting to create and store a thumbnail image in a MySQL database.
The source image comes from the same record and has already been stored in
the database. When my code executes, the thumbnail name gets written to the
"thumb" field, but the "thumb_data" field is null.
My table is defin
environment.
> HTTPS is not defined and WSGI_URL_SCHEME is http.
>
> I am suing web2py 2.0.9 with apache and I get
>
> request.env.wsgi_url_scheme: https
> request.env.https: 1
>
> Massimo
>
> On Tuesday, 18 September 2012 10:50:55 UTC-5, David Phillips wrot
heme and request.env.https
>
> It will help me understand what is going on. I do not think we changed the
> request.is_https behavior. web2py my not be able to detect https if behind a
> proxy.
>
> Massimo
>
> On Tuesday, 18 September 2012 10:27:34 UTC-5, David Phillip
Thanks to everyone for their replies. Bruno, that is a neat trick.
Unfortunately, it didn't solve my problem. I generated a new password and
restarted the apache server, but I am seeing the same behavior --
request.is_https is returning false even though I am using https and I
cannot use the ad
I had a web2py 1.99.7 app running on Elastic Beanstalk. I was able to use
the admin interface over https. I then upgraded web2py to 2.0.8 and
uploaded it to EB. Now I am getting this message when I try to access the
admin interface over HTTPS:
ATTENTION: Login requires a secure (HTTPS) conne
e problem, you may also be able to change the isolation level
> with SET TRANSACTION.
>
> Massimo
>
>
>
> On Tuesday, 24 July 2012 22:26:26 UTC-5, David Phillips wrote:
> Hello, Massimo.
>
>> What changed? Did you upgrade? What web2py version?
>
> I remove
say the select
> does not work anymore, dwhat do you mean? Does it lock or do you get a
> traceback? Which database driver? People have reported problems with pymysql
> but not with mysqldb.
>
> On Tuesday, 24 July 2012 19:42:29 UTC-5, David Phillips wrote:
> On the eve of deli
On the eve of delivering a project to a client, I've come up against a
problem that has me stumped. select() statements on one of my mysql tables
have stopped working.
My application is a web2py web server and a background process (also called
a homemade task queue in the web2py book). They
I've read hearty admonishments on this forum against creating threads in
controller and model files, but what about the case of a background job
launched as a separate process – like what chapter four of the book calls
homemade task queues and chapter eight calls a background task?
My applicat
Thank you, howesc and especially Ricardo. That code snippet worked. I can
now see my tickets on app engine.
On Tuesday, April 24, 2012 8:41:33 PM UTC-5, Ricardo Pedroso wrote:
>
> On Tue, Apr 24, 2012 at 12:57 AM, David Phillips
> > wrote:
> > I don't know how to
I don't know how to read the tickets web2py generates on app engine. On
devserver, the tickets are shown in their entirety, but on the production
server, the datastore viewer only shows the first 1000 or so characters. I
can't figure out a way to see the entire ticket.
The database management
How do you view web2py tickets that are generated while running on Google's
devserver? When I look at a ticket using the SDK console, it is encoded in
a way that I don't recognize. Like this:
(dp0
> S'output'
> p1
> S" 'NoneType' object is not callable"
> p2
> sS'layer'
> p3
> S'/Users/davidp/de
I am stumped by a problem I am having with memcache on App Engine. It
mostly looks like a memcache issue but I am seeing something funny when I
step through the code.
I am getting an excpetion (TypeError: 'NoneType' object is not callable)
when writing an instance to memcache. The instance com
I should have mentioned one other thing. Before running my unit test,
I set the PYTHONPATH environment variable so that I could import the
Google app engine libraries.
export PYTHONPATH=~/dev/python/google/google_appengine_1.6.3_source/
google_appengine
On Mar 21, 11:14 am, David Phillips
wrote
0 second timeout
> for web requests.
>
> let me know if you have questions.
>
>
>
>
>
>
>
> On Tuesday, March 20, 2012 1:54:03 PM UTC-7, David Phillips wrote:
>
> > I am writing a web application using web2py for execution on app
> > engine. I'v
I am writing a web application using web2py for execution on app
engine. I've deployed other web2py apps there but I've never used any
app engine-specific utilities. In this project I want to use app
engine's taskqueue and run it on a backend instance.
I'm developing on app engine's dev_appserver
Yes, that worked. Thanks for the suggestion, Massima.
On Mar 7, 5:12 pm, Massimo Di Pierro
wrote:
> can you try Field('description', 'text', length = 2048),
>
>
>
>
>
>
>
> On Wednesday, 7 March 2012 15:48:51 UTC-6, David Phillips wrote:
>
I have an App Engine web app in production. I defined a field in a
database table as a string with no length.
Field('description'),
Now I find that the field needs to handle 2,000 characters. That means
that the field needs to be changed in the Datastore entity from a
ByteString type to a
I'm confused by the behavior of my web app.
It is deployed on a remote server using ubuntu+apache+web2py+mysql
with a self-signed certificate and was installed using the setup-
web2py-ubuntu.sh script.
Everythings seems functional except that I can't access my
application's appadmin controller.
b2py/source/browse/scripts/setup-web2py-ng...),
> both of which include commands for creating a self-signed certificate using
> OpenSSL -- perhaps you can look at them for some guidance.
>
> Anthony
>
>
>
>
>
>
>
> On Thursday, March 1, 2012 8:48:08 PM UTC-5, David Ph
I freely admit that I don't understand how https, SSL, and public key
infrastructure works. It doesn't seem like it should be hard to use
but whenever I try, things don't work.
For instance, I wanted to access the admin interface for my web2py
application on a remote host. My thought was that I do
I freely admit that I don't understand how https, SSL, and public key
infrastructure works. It doesn't seem like it should be hard to use
but whenever I try, things don't work.
For instance, I wanted to access the admin interface for my web2py
application on a remote host. My thought was that I do
Make sure you db.commit() immediately after. Would is solve
> the problem?
>
> On Feb 27, 9:14 pm, David Phillips
> wrote:
>
>
>
>
>
>
>
> > I am experiencing database deadlocks in a worker processes that is
> > being scheduled by web2py's newschedu
I am experiencing database deadlocks in a worker processes that is
being scheduled by web2py's new scheduler.
I'm using the latest web2py with Python 2.7.2 and MySQL (a recent
release) on OS X 10.7.3.
The worker does a lengthy calculation that I wanted to take off the
http thread. Every time I ge
26 matches
Mail list logo