[web2py] what does "please restart itx" mean?

2013-05-08 Thread JimK
After upgrading web2py to 2.4.6, the admin tool stated that web2py was upgraded and to "please restart itx". I restarted the webserver and everything seems to be working fine. Can someone please refer me to the magic decoder ring that can decipher this message? Jim -- --- You received thi

[web2py] ipython is your friend!

2013-02-09 Thread JimK
One of the nice things about python modules that are not c-compiled is the fact that you can read the source code. The bad part is that the source code is not always easy to find. This is where ipython comes in. IPython is an alternative to the regular python interpreter which offers a bunch

[web2py] anyserver.py not working properly for gevent

2013-01-22 Thread JimK
Since gluon.main and gluon.fileutils are being imported before gevent's monkey.patch_all() is run, the sessions were getting mixed up. Here's the code I used that verified the issue (found on this forum): def index(): import time from gluon import current print current.request.uuid time.sleep(10

[web2py] Re: html in session.flash?

2013-01-03 Thread JimK
Since this became pertinent to my needs recently, I made the following change to web2py.js (currently line 42) to only close the flash message when clicking on the "x" (span): before: doc.on('click', '.flash', function(e){var t=jQuery(this); if(t.css('top')=='0px') t.slideUp('slow'); else t.

[web2py] Re: Scheduler tasks stuck in ASSIGNED state

2012-12-19 Thread JimK
ot;, after a while the "dir" worker sees it and starts > assigning tasks to "metrics" > - etc. > > > Il giorno mercoledì 19 dicembre 2012 04:31:32 UTC+1, JimK ha scritto: >> >> I'm not sure what the issue was but replacing the gluon/schedu

[web2py] Re: Scheduler tasks stuck in ASSIGNED state

2012-12-18 Thread JimK
I'm not sure what the issue was but replacing the gluon/scheduler.py file with the older one fixed the problem. There were a lot of changes in 2.3.2 so it's hard to pinpoint what broke things. On Tuesday, December 18, 2012 6:36:29 PM UTC-8, JimK wrote: > > There appears to be

[web2py] Scheduler tasks stuck in ASSIGNED state

2012-12-18 Thread JimK
There appears to be a major bug with the scheduler workers with 2.3.2 in tasks are stuck in the ASSIGNED state if that worker group was not the first one started. This problem did not exist until I upgraded to 2.3.2 this morning. I have 2 task groups in my service (dir, metrics). I start th

[web2py] how to hide a field until another field is chosen using SQLFORM.smartgrid

2012-12-11 Thread JimK
I have a table defined with many columns but some are only relevant if a previous one is chosen. How would I hide a field like this with SQLFORM.smartgrid? model: db.define_table('t_schedule_frat_query', Field('f_recurring', type='boolean', notnull=True, label=T('Recurring schedule?'), Field(

[web2py] How would I move SQLFORM.smartgrid buttons to first column?

2012-12-10 Thread JimK
When I create a SQLFORM.smartgrid object, the edit, view and delete buttons are displayed all of the way to the right. If the table has many columns, it requires scrolling to the right to access them. Is there a way to move the button column to the first position? Alternatively, is there a wa

Re: [web2py] Re: New web2py SaaS app, SiteLab.co!

2012-09-25 Thread JimK
Sweet! Thanks for the quick response, Alec. On Tuesday, September 25, 2012 10:02:36 PM UTC-7, Alec Taylor wrote: > > Much better, took 3.37 seconds in Australia. > > On Wed, Sep 26, 2012 at 2:59 PM, JimK >wrote: > >> OK, I've decided to dump cdn77.com in f

Re: [web2py] Re: New web2py SaaS app, SiteLab.co!

2012-09-25 Thread JimK
heers! Jim On Tuesday, September 25, 2012 11:07:56 AM UTC-7, JimK wrote: > > I just chatted with tech support at cdn77.com and they said the Sao Paolo > server is "overloaded".I'll play with these guys for a bit and > look at other options in my price range. > &

Re: [web2py] Re: New web2py SaaS app, SiteLab.co!

2012-09-25 Thread JimK
I just chatted with tech support at cdn77.com and they said the Sao Paolo server is "overloaded".I'll play with these guys for a bit and look at other options in my price range. Jim On Tuesday, September 25, 2012 10:20:45 AM UTC-7, rochacbruno wrote: > > I am in São Paulo. > > http://i.imgu

[web2py] Re: New web2py SaaS app, SiteLab.co!

2012-09-25 Thread JimK
For those in South America, I added a CDN with an origin in Sao Paolo so would you mind giving it a try again? I'm hoping this will speed things up quite a bit. Cheers! Jim On Monday, September 24, 2012 11:00:40 AM UTC-7, JimK wrote: > > I just wanted to share my latest web2py

[web2py] Re: New web2py SaaS app, SiteLab.co!

2012-09-25 Thread JimK
I didn't test my site on an iphone but the template was supposed to work on it any way. I'll look into it later today. On Monday, September 24, 2012 6:03:09 PM UTC-7, lyn2py wrote: > > The CSS doesn't look ok on my iPhone. Give a check? --

[web2py] Re: New web2py SaaS app, SiteLab.co!

2012-09-24 Thread JimK
m chicago it takes 700ms to load the main html page and images. It than > takes more than 2 seconds to load this image from google-analyitics: > > http://www.google-analytics.com/__utm.gif > > Massimo > > > On Monday, 24 September 2012 13:00:40 UTC-5, JimK wrote: >> &g

Re: [web2py] New web2py SaaS app, SiteLab.co!

2012-09-24 Thread JimK
nday, September 24, 2012 11:08:42 AM UTC-7, Alec Taylor wrote: > > Nice site design + idea > > But it took 6 seconds to load for me :P > > On Tue, Sep 25, 2012 at 4:00 AM, JimK >wrote: > >> I just wanted to share my latest web2py application >> http://SiteLab.co

[web2py] New web2py SaaS app, SiteLab.co!

2012-09-24 Thread JimK
I just wanted to share my latest web2py application http://SiteLab.co. In short, SiteLab helps small ecommerce websites load quickly and available at all hours of the day. Studies have shown that potential customers expect a site to load in less than 2 seconds and w

[web2py] web2py logging to firePHP using firepy?

2012-04-18 Thread JimK
Has anyone figured out how to get logging to firePHP using firepy for web2py? A bit of web searching shows that someone figured it out a while back but his script no longer exists for download. This would really be useful for debugging.

[web2py] How to accept authentication from external service

2012-04-06 Thread JimK
I'm looking for a way to accept authentication from an external service within a web2py app. Specifically, I'd like my app to accept authentication from a site like AppSumo or Groupon where they help sell the product for you, accept the payment and then redirect to my web2py app. Normally, my

[web2py] Re: digitally sign static files?

2012-02-14 Thread JimK
Thanks for the help! I was successful in getting the upload/download method to work via the web2py-way. I'll investigate an Apache method if I notice my streaming videos hanging. Cheers! JimK On Feb 14, 2:38 pm, Niphlod wrote: > you need to choose if you want web2py to serve files

[web2py] digitally sign static files?

2012-02-14 Thread JimK
erify? Is there another way that I'm unaware of?? Thanks, JimK

[web2py] Re: update=request.now not working

2011-08-24 Thread JimK
Aha! This was driving me crazy yesterday! Thanks for looking into the issue. Jim On Aug 23, 8:21 pm, Massimo Di Pierro wrote: > oops...fixed in trunk. Please check it. > > On Aug 23, 7:31 pm, pbreit wrote: > > > > > > > > > I believe this change is > > responsible:http://code.google.com/p/we

[web2py] update=request.now not working

2011-08-23 Thread JimK
I have the following table: Model db.define_table('queries', Field('my_db', 'string', required=True), Field('title', 'text', required=True), Field('query', 'text', required=True),

[web2py] Re: How to copy rendered html to a file

2011-08-04 Thread JimK
Never mind. I figured this out myself. Just add the following to the controller function for the view that needs to be saved: html = response.render('default/run_report.html', context) Then I just need to copy that to a file and store it on the disk. Thanks any way! On Aug 4, 2:1

[web2py] How to copy rendered html to a file

2011-08-04 Thread JimK
t and I'd like a separate .html file to be generated and stored on the server with the same html that can be viewed at an time and can be emailed. Thanks in advance, JimK

[web2py] New b2b site using web2py

2011-04-03 Thread JimK
Hello Everyone! I've been working on a business for some time and have finally launched it! The web server for the main app and CAS are running on appengine using the web2py framework. Please check it out and let me know what you think. The url is www.qakit.com and you can register for a free 2

[web2py] Re: Function that does not require a view

2010-10-24 Thread JimK
You can leave the function in the controller file but pre-pend __ to the name. This is the Python way to create private functions and it appears to be supported well in Web2Py. An example would be: def __privateFunc(): On Oct 24, 5:18 am, Luther Goh Lu Feng wrote: > If I have a function that

[web2py] Admin app (or much of it) can work on appengine

2010-07-02 Thread JimK
After a few minor modifications, I was able to get the Admin app as well as the appadmin controllers to work on appengine. Admin is only accessible to Appengine users that are allowed to contribute to your project (appengine app administrator), tickets stored in Big Table are viewable as well as t

[web2py] Re: On the online book

2010-02-13 Thread JimK
I donated $10 to the online version even though I bought the pdf. It's has value to me so it's worth the investment to keep it going. On Feb 13, 7:38 am, mdipierro wrote: > As long as I offset the book sales I am fine. It wasn't much but it > was ~7% of my total income. So far I got 6 donations I

[web2py] Re: session.flash after registration?

2010-01-11 Thread JimK
t; which is the one you probably you want to edit. > > Massimo > > On Jan 10, 10:45 pm, JimK wrote: > > > > > After registration, I'm redirected to the account page with a flash > > message stating 'Logged In' instead of my 'Registra

[web2py] force login and register over https on GAE

2010-01-11 Thread JimK
Is it possible to setup a route that redirects all attempts to access the login and register pages to https? In other words, userA goes to my apps site via http and then decides to register for the service. He clicks the register link and is then redirected to that url but as https. I know I coul

[web2py] Re: repopulating form with data after form.errors encountered

2010-01-10 Thread JimK
This is a great example of how to handle repopulation upon errors for a regular form, but how would you handle this for a registration form when using the built-in authentication? The user() controller in default is pretty much blank except for return dict(form=auth()) . Any help would be greatly

[web2py] Re: Why double braces in view

2010-01-10 Thread JimK
Nor would you be able to use { some_text } in the static text of the HTML to display a line of code (e.g. javascript, java, actionscript, etc). On Jan 10, 8:33 pm, mdipierro wrote: > Because you would not be able to use the template to generate JS code. > > On Jan 10, 9:54 pm, Anand Vaidya wrote

[web2py] Re: session.flash after registration?

2010-01-10 Thread JimK
auth.user.id else: USERID = None Also, I'm using Version 1.74.4 (2009-12-23 10:12:11). On Jan 10, 7:48 pm, mdipierro wrote: > Hi Jim, > > thanks for your comments. > > Assuming you are registering using the default user() action, > depending on your settings

[web2py] Re: session.flash after registration?

2010-01-10 Thread JimK
t; See the "Custom Authentication" section. > > On Jan 10, 12:19 pm, JimK wrote: > > > > > I can't seem to figure out how to display a session.flash message on > > the following page after a registration.  I think the answer will have > > something t

[web2py] session.flash after registration?

2010-01-10 Thread JimK
I can't seem to figure out how to display a session.flash message on the following page after a registration. I think the answer will have something to do with auth.settings.register_onaccept but I'm not sure how to pass the form object to this setting. Any help would be appreciated. Thanks, Ji

[web2py:38267] web2py authentication for non-web2py apps?

2010-01-03 Thread JimK
Hello Everyone, I'm working on a project that is controlled via a web2py app and grants permissions to other non-web2py applications. Does anyone have any insight on how I can first direct the user to register/login to his account via the web2py app and then allow the users to access the other ap