[web2py] Re: How do I run external cron when using mod_wsgi?

2011-08-26 Thread Eric Scott
OK, I've totally misunderstood what web2py external cron integration meant. I thought that I would be integrating system cron to run using the web2py crontab. I understand now that it's just describing a way to use the system cron to call web2py, which means it's easy to set command line paramete

[web2py] How do I run external cron when using mod_wsgi?

2011-08-26 Thread Eric Scott
OK, maybe my last question was phrased so naively that it wasn't fit to answer. So I'll re-phrase: the web2py manual says that to run external cron, the "-J" and "-N" command line parameters need to be set. "If you are running external cron, make sure you add the -N command line parameter to your

[web2py] Re: Passing web2py command line parameters when using apache/mod_wsgi

2011-08-25 Thread Eric Scott
No one is passing the -N or -J parameter for external cron jobs in web2py who is also using apache/mod_wsgi? On Aug 25, 12:20 pm, Eric Scott wrote: > How to I pass command line parameters to web2py when I'm not starting > web2py from the command line.  I'm using apache and

[web2py] Re: Changed field name in table def, database OK, but getting key error [SOLVED]

2011-08-25 Thread Eric Scott
To solve it > you must define the auth(s) tables in the db.py and set them to > migrate=false... so web2py stop to trigger their creation each time... > > Richard > > On Thu, Aug 25, 2011 at 1:53 PM, Eric Scott wrote: > > > > > > > > > I'm usin

[web2py] Changed field name in table def, database OK, but getting key error

2011-08-25 Thread Eric Scott
I'm using postgresql. I had to change a field name in my table def, which are in the web2py models. The database changed accordingly, but now I get a key error when I try to insert a new record using appadmin. I made sure appadmin.py is the latest and greatest. Still getting key error. I don't

[web2py] Passing web2py command line parameters when using apache/mod_wsgi

2011-08-25 Thread Eric Scott
How to I pass command line parameters to web2py when I'm not starting web2py from the command line. I'm using apache and mod_wsgi. I've looked closely at the documentation, and there's a section on how to pass parameters when it's running as a windows service, but the documentation is clear that

[web2py] Re: Problems running a module in web2py shell

2011-08-24 Thread Eric Scott
read in an external site about web2py crontab that all cron scripts should have "db.commit()" at the end of each function with a query, so perhaps that's what's happening. On Aug 24, 12:33 pm, Massimo Di Pierro wrote: > try print db.tables > > On Aug 24, 10:55 am, E

[web2py] Problems running a module in web2py shell

2011-08-24 Thread Eric Scott
I'm having trouble running a module in the web2py shell. It's having difficulty with a db query that I execute with no problems in any controller. Here's the traceback: Traceback (most recent call last): File "", line 1, in File "/home/www-data/web2py/gluon/custom_import.py", line 280, in

[web2py] Re: Janrain/site login

2011-08-24 Thread Eric Scott
ook/default/chapter/08#Other-Login-Methods-and-Log > There's also this:http://www.web2pyslices.com/slices/take_slice/124. > > Anthony > > > > > > > > On Monday, August 22, 2011 8:30:18 AM UTC-4, Eric Scott wrote: > > Is there anyway to use both Janra

[web2py] Janrain/site login

2011-08-22 Thread Eric Scott Bullington
Is there anyway to use both Janrain and give users to option to register for a local account using Auth? I've looked and looked and can't find anything. I can get my app to let users register for a local account, but then I can't find anyway to include that option on the login page in addition to

[web2py] Form radio buttons from db with image - how to select "checked"?

2011-08-17 Thread Eric Scott
I'm new to both Python and web2py and am having difficulty coding a web2py radio form where each input field displays a name and an image. One (and only one) of these images should be set as the user's default image. I'm having trouble figuring out how to do this in web2py. I was able to produce

[web2py] Re: Follow-up on web2py, mercurial, and Fabric

2011-08-09 Thread Eric Scott
Thanks Richard and pbreit for your input. pbreit -- what you describe is similar to what I was thinking of. And yes, it would be nice if there were a standardized way to do this. Richard, since Bitbucket is acting as my central repo, I'll need to pull from bitbucket to the production server. But

[web2py] Re: Problem with reference fields

2011-08-08 Thread Eric Scott
It could depend of your backend database if it support FK... > > If you had customized the auth_user table... Before add you FK field (the > ones above), try to make sure your custom auth_user is correct then add your > custom field one after one... > > Richard > > > > >

[web2py] Re: Problem with reference fields

2011-08-08 Thread Eric Scott
27;ve not seen the code you use anywhere in the web2py book (at least not that I recall), so I will give it a try to see if it works. Thanks again, Eric On Aug 8, 3:58 pm, Richard Vézina wrote: > If you send you controller and model code at least with trace back it could > help to trooble

[web2py] Problem with reference fields

2011-08-08 Thread Eric Scott
I'm having problems getting tables linked in web2py using reference fields. For example, I have a model with table student and table contact. Table auth_user contains my app's users. In db.py, under db.define_table('auth_user') I have the following code to reference a one-to-many relationship be

[web2py] Follow-up on web2py, mercurial, and Fabric

2011-08-08 Thread Eric Scott
Thanks again to pbreit, Chris, Richard, and any others I'm missing for answering my questions about web2py and mercurial. I'm rapidly getting used to mercurial with web2py and its working great for switching between computers. I do have a follow-up question about Fabric. Pbreit -- you're absolut

[web2py] Re: web2py and mercurial workflow question

2011-08-04 Thread Eric Scott
Thank you Chris, Richard, and pbreit for your excellent input. Good to know I'm heading in the right direction. I'll definitely look into Fabric. Sounds like if I can gain some fluency in Fabric, it will allow me a lot more control over deployment. Thanks again, Eric On Aug 3, 5:40 pm, Chris

[web2py] web2py and mercurial workflow question

2011-08-03 Thread Eric Scott
I'm new to web2py but find it a vast improvement over the PHP-based web framework I was using before, and so I'm already using web2py to develop my next web app. At the same time, I find myself in a situation where I'm needing to use several different computers to do my work. See I need to find a

[web2py] Thanks for the awesome framework/setting up PostgreSQL

2011-07-13 Thread Eric Scott
amiliar with SQL so it should not be too hard for me to set up the database; I just need recent documentation on setting web2py to work with it instead of sqlite. Thanks in advance for any input on guides to setting up PostgreSQL with web2py. Kind regards, Eric Eric Scott Bullington