[web2py] update_or_insert -- I end up with duplicates

2017-10-04 Thread Brad Miller
Hi All, I have the following update or insert statement in a controller. db.grades.update_or_insert( ((db.grades.auth_user == student.id) & (db.grades.assignment == assignment.id)), auth_user = student.id, assignment = a

[web2py] Re: How to force an update to the scheduler schema

2017-05-24 Thread Brad Miller
1:03:13 PM UTC-5, Dave S wrote: > > > > On Tuesday, May 23, 2017 at 5:30:08 AM UTC-7, Brad Miller wrote: >> >> Due to a forced migration to new hardware/os on webfaction, I just >> recently had to upgrade from 2.5.1 to 2.14.6. >> >> In the process I ha

[web2py] How to make virtualenv, uwsgi, and web2py play nice...

2017-05-23 Thread Brad Miller
Second question, At one point I had uwsgi and web2py and my virtualenv all working together nicely. But I was forced onto new hardware/os and had to rebuild the virtual environment and uwsgi.I have a line in my uwsgi config file that points to the correct virtualenv, where I have things li

[web2py] How to force an update to the scheduler schema

2017-05-23 Thread Brad Miller
Due to a forced migration to new hardware/os on webfaction, I just recently had to upgrade from 2.5.1 to 2.14.6. In the process I have managed to get myself into a state where the scheduler schema is wrong. (I'm using postgresql) I get the following error: ProgrammingError: ('ERROR', '42703'

[web2py] Re: scheduler timeouts on successful tasks

2014-08-20 Thread Brad Miller
e running task. > If your' eusing SQLite, this might happen because it suffers blocking for > concurrent writes. if you enable the DEBUG logging, you'll probably see > where it gets stuck. > > On Monday, August 18, 2014 3:01:15 AM UTC+2, Brad Miller wrote: >> >&g

[web2py] Re: scheduler timeouts on successful tasks

2014-08-17 Thread Brad Miller
when it clearly did not fail. Thanks, Brad On Friday, August 15, 2014 9:27:55 AM UTC-5, Brad Miller wrote: > > Hi, > > I've been using the scheduler quite successfully for a while now. But > lately I've been getting TIMEOUTS on tasks that are successfully running to &

[web2py] scheduler timeouts on successful tasks

2014-08-16 Thread Brad Miller
Hi, I've been using the scheduler quite successfully for a while now. But lately I've been getting TIMEOUTS on tasks that are successfully running to completion. I know this because: 1. I've added my own file mechanism to show that I made until the end, plus I can see that the results of th

[web2py] Too many Values to Unpack -- regression?

2012-08-31 Thread Brad Miller
I just downloaded the latest 2.0.3 (stable) and upgraded my copy of web2py. When checking some of my pages I got this error, which I have reconfirmed works just fine on the 1.99.7 version. Traceback (most recent call last): File "/Users/bmiller/Beta/web2py/gluon/restricted.py", line 209, in r

[web2py] Re: Too many values to unpack -- regression?

2012-08-31 Thread Brad Miller
Just as a quick check, I replaced the new parse_datetime function with the old, and all is well. Brad On Friday, August 31, 2012 3:49:32 PM UTC-5, Brad Miller wrote: > > Here is the value that printed: > > 2012-07-05 02:36:50 > > This field is declared in the model as:

[web2py] Re: Too many values to unpack -- regression?

2012-08-31 Thread Brad Miller
> db.useinfo.sid, count, last, groupby=db.useinfo.sid, orderby=count) > > > > On Friday, August 31, 2012 9:53:16 PM UTC+2, Brad Miller wrote: >> >> I just upgraded my app to the latest 2.0.3 (stable) and while checking >> some of my pages got the following error

[web2py] Re: Too many values to unpack -- regression?

2012-08-31 Thread Brad Miller
e what the data > looks like: > > def parse_datetime(self, value, field_type): > if not isinstance(value, datetime.datetime): > print value > .... > > Let me know it may help understand how the data got in there. > > On Friday, 31 August 2

[web2py] Too many values to unpack -- regression?

2012-08-31 Thread Brad Miller
I just upgraded my app to the latest 2.0.3 (stable) and while checking some of my pages got the following error: Traceback (most recent call last): File "/Users/bmiller/Beta/web2py/gluon/restricted.py", line 209, in restricted exec ccode in environment File "/Users/bmiller/Beta/web2py/

[web2py] Re: auth_cas not getting created

2012-06-10 Thread Brad Miller
ually trigger a migration of the > auth_event table (in addition to skipping creation of the auth_cas table). > > Anthony > > On Sunday, June 10, 2012 7:10:23 PM UTC-4, Brad Miller wrote: >> >> Alright I've done some more investigating, I've backed out the changes

[web2py] Re: auth_cas not getting created

2012-06-10 Thread Brad Miller
refix') Then auth_cas does not get created. If I go back to auth.define_tables(migrate=True) Then it works and auth_cas is created. Brad On Sunday, June 10, 2012 5:44:58 PM UTC-5, Brad Miller wrote: > > Hi, > > I recently upgraded from 1.99.4 to 1.99.7 on my webfaction server. I

[web2py] auth_cas not getting created

2012-06-10 Thread Brad Miller
Hi, I recently upgraded from 1.99.4 to 1.99.7 on my webfaction server. I just did a clean checkout of my repo into a beta app folder under applications. I have two databases set up. One for production, and one for testing. I dropped all the tables in my beta database. The databases folder

Re: [web2py] Re: Help! Changed Password and now I get errors

2012-06-10 Thread Brad Miller
On Sunday, June 10, 2012 2:16:51 PM UTC-5, Jonathan Lundell wrote: > > On Jun 10, 2012, at 8:38 AM, Brad Miller wrote: > > My latest hypothesis is that this is a bug in fake_migrate ?? I'm using > 1.99.4 on webfaction, and I'm using 1.99.7 on my development box.

Re: [web2py] Re: Help! Changed Password and now I get errors

2012-06-10 Thread Brad Miller
t upgrading the version of web2py on webfaction... Does anyone have any experience with that? Is it as easy as replacing the web2py directory they created for me with the latest source and then restoring my application directories??? On Saturday, June 9, 2012 3:47:05 PM UTC-5, Brad Miller wrote:

Re: [web2py] Re: Help! Changed Password and now I get errors

2012-06-09 Thread Brad Miller
I have to keep the fake_migrate_all=True or I get the following: column "origin" of relation "auth_event" already exists g!!! Any more ideas on what might be causing that?? Brad On Saturday, June 9, 2012 11:56:08 AM UTC-5, Jonathan Lundell wrote: > > On Jun 9, 2012, a

Re: [web2py] Re: Help! Changed Password and now I get errors

2012-06-09 Thread Brad Miller
' then the value I pass to auth.define_tables should have 'devdb_' as the value. This makes sense to me logically at least. Brad On Saturday, June 9, 2012 11:34:11 AM UTC-5, Jonathan Lundell wrote: > > On Jun 9, 2012, at 8:55 AM, Brad Miller wrote: > > Thanks Jonatha

Re: [web2py] Re: Help! Changed Password and now I get errors

2012-06-09 Thread Brad Miller
an Lundell wrote: > > On Jun 9, 2012, at 7:48 AM, Brad Miller wrote: > > webfaction has a control panel, and I used their control panel to change > the password. It was the same mechanism I used to set up the database in > the first place. The only difference, of course, is th

[web2py] Re: Help! Changed Password and now I get errors

2012-06-09 Thread Brad Miller
Massimo Di Pierro wrote: > > You can change password outside of admin but need to hash it first. How > did you change it? > > > > On Saturday, 9 June 2012 09:22:02 UTC-5, Brad Miller wrote: >> >> Hi, >> >> Here's what happened. I'm hosting a w

[web2py] Help! Changed Password and now I get errors

2012-06-09 Thread Brad Miller
Hi, Here's what happened. I'm hosting a web2py application on webfaction (http://interactivepython.org) This morning, after some maintenance I had tested everything and all was good. Pages were working login/logout was working, database access was working perfectly. Then, because I realized

Re: [web2py] getting started with dotcloud

2012-01-26 Thread Brad Miller
That did it, thanks! Is there a newer version of the tutorial somewhere? I have some basic questions like how do I get the app to start with an admin password? Thanks, Brad -- Brad Miller On Thursday, January 26, 2012 at 12:13 PM, José Luis Redrejo Rodríguez wrote: > 2012/1/26 B

[web2py] getting started with dotcloud

2012-01-26 Thread Brad Miller
Hi, I'm trying to follow the web2py tutorial that was posted here a while back. Unfortunately that was written using the older version of the command line tools, so some things just don't exist anymore. But I'm going back and forth between the new documentation and the old. I've done the follow