Re: [web2py] IS_LENGTH does not work with "list:string"

2018-05-16 Thread Kiran Subbaraman
Yikes, I meant "default validators". My mistake. On 16-05-2018 22:43, Kiran Subbaraman wrote: According to the documentation (http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Field-types), `list:string` does not have a validator. Maybe you can creat

Re: [web2py] IS_LENGTH does not work with "list:string"

2018-05-16 Thread Kiran Subbaraman
According to the documentation (http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Field-types), `list:string` does not have a validator. Maybe you can create your own? On 16-05-2018 22:26, Martin Weissenboeck wrote: That is ok: form = SQLFORM.factory(        

Re: [web2py] How many concurrent requests can a web2py instance handle?

2018-03-04 Thread Kiran Subbaraman
This benchmark may help you: https://www.techempower.com/benchmarks/#section=data-r15=ph=plaintext=zik0zj-zik0zj-zik0zj-zik0zj-v2qiv3-zik0zj-zik0zj-cn3 Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 03-Mar-18 10:56 AM, nethugo...@gmail.com

Re: [web2py] Re: how to keep response.headers after redirect

2018-01-19 Thread Kiran Subbaraman
Include the header values in a dictionary: ``` raise HTTP(303,location="url",{HEADER_TEST:True}) ``` ________ Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 19-Jan-18 6:19 PM, vince wrote: i tried  raise HTTP(303,location="url&qu

Re: [web2py] Getting wrong Results with my grading system

2017-11-18 Thread Kiran Subbaraman
so if `perc >=90%, it is grade `A`? The code should reflect the same then. Right now, it is `A`, if `perc >= 100`, which is not a valid value for `perc`. Am guessing the same is applicable for the `average` check too. ____ Kiran Subbarama

Re: [web2py] Re: web2py 2.16.1 is OUT

2017-11-13 Thread Kiran Subbaraman
`, and then the usual web2py start message. Followed by the error in the browser. I'll see if I can try this on a different windows box, later today. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 14-Nov-17 12:35 PM, Massimo Di Pierro wrote: I

[web2py] Re: web2py 2.16.1 is OUT

2017-11-13 Thread Kiran Subbaraman
Thanks for the new version. Downloaded web2py_src from web2py.com, for Windows. Extracted, and ran `python web2py.py`. In the browser see this message *"Requires web2py 2.15.5 or newer" . *Not sure what the issue is? Python 2.7.12 Windows 10 web2py Web Framework Created by Massimo Di Pierro,

Re: [web2py] where is pydal doc ?

2017-11-06 Thread Kiran Subbaraman
This helps? http://pydal.readthedocs.io/en/latest/_modules/pydal/base.html?highlight=DAL Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 06-Nov-17 9:02 PM, Lars wrote: Hi, I would like to use pydal but I can't seem to find the documentation

Re: [web2py] Logger issue

2017-10-23 Thread Kiran Subbaraman
Yes, I suggested the OP configure one for their specific app, using the example app's config as a template. Need not configure this in the code, for every request ... as they are doing so now. Kiran Subbaraman http://subbaraman.wordpress.com/about

Re: [web2py] Logger issue

2017-10-22 Thread Kiran Subbaraman
. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 23-Oct-17 12:02 AM, Ian Ryder wrote: Hi, we're just getting logging running on an app we're building and have a what I hope is a bit of noob issue. It seems every time a request comes in a new file handle

Re: [web2py] Re: insecure string pickle

2017-09-06 Thread Kiran Subbaraman
Hello Jak, Not sure what could be causing the issue, then. Will get back to you if I have any useful suggestions. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 06-Sep-17 1:26 PM, Wabbajack wrote: Hi Kiran, Yes exactly i have copied

Re: [web2py] Re: insecure string pickle

2017-09-06 Thread Kiran Subbaraman
ng the app. ________ Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 06-Sep-17 12:53 PM, Wabbajack wrote: Hi Kiran, Yes the folders cache, sessions, and error have no file inside... Is there any other way to clear this folders? I just manually delete all files in each folder.. and a

Re: [web2py] Re: insecure string pickle

2017-09-06 Thread Kiran Subbaraman
You should clear out the following files - sessions / errors / cache content - from your 2.9.11 based application Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 06-Sep-17 10:26 AM, Wabbajack wrote: Hi I also go this Error... I am running

Re: [web2py] Re: Why web2py server hangs/freeze?

2017-09-04 Thread Kiran Subbaraman
/blob/master/CHANGELOG Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 05-Sep-17 10:11 AM, Narendra Kumar wrote: I did not see any error or any warning in httpserver.log file as well as application's log. Server configuration: Linux OS = Oracle

Re: [web2py] Why web2py server hangs/freeze?

2017-09-04 Thread Kiran Subbaraman
to recreate this problem with any application that is running in web2py? Also, this may help you debug "python processes that hang": https://wiki.python.org/moin/DebuggingWithGdb ________ Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 04-Sep-

Re: [web2py] Rocket server crashing with socket error

2017-08-01 Thread Kiran Subbaraman
hare that on the forum here. I think you would need the test code to try multiple things - concurrent requests to the server, or POST increasingly bigger payloads, etc. ____ Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 02-Aug-17 12:33 AM, Fabiano F

Re: [web2py] Re: web2py crashing

2017-08-01 Thread Kiran Subbaraman
? Then can you post that here. Also, what do you mean by "reset rocket"? ________ Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 01-Aug-17 6:59 PM, Fabiano Faver wrote: I got too many of this error lately. And its getting worse every day. I have no

Re: [web2py] Fields and button in single row in SQLFORM Factory

2017-07-31 Thread Kiran Subbaraman
Custom forms may help you: http://web2py.com/books/default/chapter/29/07/forms-and-validators#Custom-forms Kiran Subbaraman http://subbaraman.wordpress.com/about/ On 31-Jul-17 10:23 AM, Amit Kumar Modak wrote: Hello, I have created a form using Form

[web2py] Re: request.vars list object

2017-06-05 Thread Kiran Subbaraman
What happens in the case you invoke this url: http://127.0.0.1:8000/com/shortcut/target/1349?edge=34=1297=NASM%20Certified%20Personal%20Trainer&_signature=9c33ff589c78426ce3fcdf2f53f4408028189128 Basically instead of `+`, I have used `%20` as the space character. On Monday, June 5, 2017 at

Re: [web2py] Re: lack of documentation

2017-05-07 Thread Kiran Subbaraman
documentation? Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Sun, 07-05-2017 11:36 PM, Matt Bockman wrote: I'm also new to web2py and I have trouble with the documentation. I'm fairly green with python itself so maybe there are better ways to use

Re: [web2py] why cant I submit a customized form with this button

2017-05-05 Thread Kiran Subbaraman
The `{{=form.custom.end}}` has to be after the submit button. http://web2py.com/books/default/chapter/29/07/forms-and-validators#Custom-forms Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Fri, 05-05-2017 11:15 AM, Maurice Waka wrote: I

Re: [web2py] Access DB2/400 from IBM i (AS/400) PASE environment

2017-04-30 Thread Kiran Subbaraman
Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Sun, 30-04-2017 4:38 AM, ramstein74 wrote: This topic is very important. Having web2py running in a top tech ibm machine is worthy of notice. Any help on this ... PLEASE Anyone know if there is a quick way to tell

Re: [web2py] Web2Py NoneType is not call able when accessing the webpage

2017-03-29 Thread Kiran Subbaraman
I see a typo there. Should be room = str(request.*vars*(1)) Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Tue, 28-03-2017 3:53 PM, Michi Schmid wrote: I am currently working on my diploma thesis and we are using web2py. But I have an issue

Re: [web2py] Cross-domain authentication for REST api

2017-03-28 Thread Kiran Subbaraman
for "CORS" and "login" on the web2py forum does come back with some interesting threads. You could, perhaps, take a look at them: https://groups.google.com/forum/#!searchin/web2py/CORS$20login%7Csort:relevance ________ K

Re: [web2py] Re: web2pyslices

2017-03-26 Thread Kiran Subbaraman
in a github repo. Look at the option 2 in this thread: https://groups.google.com/d/msg/web2py/-Ida49pMSHQ/nBGe2vY6BwAJ Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Mon, 27-03-2017 1:09 AM, Ben Lawrence wrote: Please. Lets not make something. Lets

[web2py] Re: web2pyslices

2017-03-21 Thread Kiran Subbaraman
I agree that the managing web2pyslices as issues may be one way to go.A couple of options that I have in mind *Option 1 / bl.ocks.org* But there is another idea that I have been considering for sometime... I follow the d3js community once in a while, and they have this nice way to contribute

Re: [web2py] Re: Autoincrement which resets each month (not primary id)

2017-03-06 Thread Kiran Subbaraman
For the trigger ... you could also consider using the web2py support for on insert / on update callbacks: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#callbacks-on-record-insert-delete-and-update Kiran Subbaraman http

Re: [web2py] HTTP_FROM

2017-03-03 Thread Kiran Subbaraman
`|request.env.http_referer` http://web2py.com/books/default/chapter/29/04/the-core#request | Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Fri, 03-03-2017 5:30 PM, Gael Princivalle wrote: Hello. Is there a way to get the value of HTTP_FROM

Re: [web2py] Any way to log automatically?

2017-03-03 Thread Kiran Subbaraman
://wiki.python.org/moin/DebuggingWithGdb This provides rather good insight into your code. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Fri, 03-03-2017 1:39 PM, lyn2py wrote: I've written an app that is quite involved, and it has gotten very

Re: [web2py] Re: Is there an easier way to initiate tables with references to currently undefined tables?

2017-03-02 Thread Kiran Subbaraman
-boost Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Fri, 03-03-2017 5:40 AM, Jordan Myers wrote: Thanks for the idea, Stifan! Unfortunately, I have circular dependencies (two tables reference each other), so this will not work for all tables

Re: [web2py] Re: Small Monitoring App causes Python to struggle (100% CPU Load on Raspberry Pi 3)

2017-02-14 Thread Kiran Subbaraman
application's code. Btw, did you try this setup on a VirtualBox / VM , before replicating it on the Pi? Maybe a nginx+web2py setup should circumvent this issue. Do keep us posted on what you find. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Wed

Re: [web2py] Small Monitoring App causes Python to struggle (100% CPU Load on Raspberry Pi 3)

2017-02-13 Thread Kiran Subbaraman
profile for your app: http://www.vrplumber.com/programming/runsnakerun/ During hangs, I found the steps mentioned here rather handy: https://wiki.python.org/moin/DebuggingWithGdb If you do figure out the issues, please share the details here. Kiran

Re: [web2py] db showing none

2016-11-21 Thread Kiran Subbaraman
Are you starting the shell with the `-S application-name` option? Take a look at the command line options for web2py: http://web2py.com/books/default/chapter/29/04/the-core#Command-line-options Kiran Subbaraman http://subbaraman.wordpress.com/about

Re: [web2py] capturing primary key during insert

2016-10-03 Thread Kiran Subbaraman
This may be what you are looking for: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=before_insert#callbacks-on-record-insert-delete-and-update Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Tue, 04-10

Re: [web2py] vue.js

2016-09-24 Thread Kiran Subbaraman
Would like to know why you like it ... if you can share. Thanks. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Sun, 25-09-2016 8:55 AM, Massimo Di Pierro wrote: I am becoming a huge fan of vue.js. Any other user here? -- Resources: - http

Re: [web2py] Re: Alternative IDEs?

2016-09-19 Thread Kiran Subbaraman
ine for me. ________ Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Mon, 19-09-2016 5:06 PM, Jurgis Pralgauskis wrote: Hi, I would like tu wake the topic up :) What are people mostly using for W2P dev? From free (unpaid) alternatives I found

Re: [web2py] extracting a field value from a row gives me

2016-09-19 Thread Kiran Subbaraman
Check the structure of your returned result. Does it have 'clicks' as a first-level attribute? Or should it be 'rates.clicks'? Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Mon, 19-09-2016 11:51 AM, Meinolf wrote: What could be wrong

Re: [web2py] Re: Value error when forcing AM/PM time with time field

2016-08-30 Thread Kiran Subbaraman
Example usage for IS_TIME is detailed in the code: https://github.com/web2py/web2py/blob/a2354addec5a45ea6180528d2b8024588a106743/gluon/validators.py#L2125 Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Tue, 30-08-2016 11:42 AM, H. Das wrote

Re: [web2py] Re: I am trying to login from Phonegap app into my web2py app, what's wrong here?

2016-08-27 Thread Kiran Subbaraman
. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Sat, 27-08-2016 2:50 PM, Steve Joe wrote: Anyone there? Anthony? On Friday, August 26, 2016 at 7:38:40 PM UTC+5:30, Steve Joe wrote: *db(db.auth_user.username == request.vars.username and db.auth_user.password

Re: [web2py] Re: Web2Py tool: Amazon SNS integration

2016-08-16 Thread Kiran Subbaraman
, along with the callbacks code, is listed in the web2py book, and this forum. Do you attempt the implementation, and share any issues you face. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Tue, 16-08-2016 5:12 PM, madhu nomula wrote: Thank

Re: [web2py] need code to update db from view to controller.

2016-08-12 Thread Kiran Subbaraman
.id` ... I guess. ________ Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Wed, 10-08-2016 4:22 PM, madhu nomula wrote: Yes totalrecords decalred. Updated the code like below in controller: But still throwing issue Controller code: @auth.requires_l

Re: [web2py] need code to update db from view to controller.

2016-08-09 Thread Kiran Subbaraman
/the-database-abstraction-layer?search=update_record#update_record Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Tue, 09-08-2016 10:43 PM, madhu nomula wrote: Hi , In Web2 py tool need sample code to update db table(module) from View value

[web2py] Re: Web2Py tool: Amazon SNS integration

2016-08-02 Thread Kiran Subbaraman
Am assuming you are aware of the Amazon SNS APIs, and what it takes to publish messages there (as a producer / publisher) Do you want to read data from your database, and publish them to SNS on a: * Regular scheduled basis? * Whenever new data comes into the database? In either case, I would use

Re: [web2py] Re: python process consumes 100% cpu

2016-07-31 Thread Kiran Subbaraman
t; Hey Kiran, > you are right, without the GUI there's virtually no CPU load. I suppose > it's a general issue on mac. > Thank You ! > Am Sonntag, 31. Juli 2016 16:56:54 UTC+2 schrieb Kiran Subbaraman: >> >> Can you try running web2py without the GUI option `--nogui` >> p

Re: [web2py] Re: python process consumes 100% cpu

2016-07-31 Thread Kiran Subbaraman
with this? Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Sun, 31-07-2016 5:17 PM, St. Pirsch wrote: Yes, I'm running from source stp$ python2.7 /Users/stp/Sites/web2py/web2py.py After starting the server, the python process climbs to 100% cpu

Re: [web2py] web2py to generate html/xml/any file from template

2016-07-11 Thread Kiran Subbaraman
ks/default/chapter/29/04/the-core The result of the method call can then be saved as a file. ____ Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Sat, 09-07-2016 3:53 PM, RS wrote: Hi Guys, My first question here so be gentle. Consider the use case

Re: [web2py] database updation error

2016-07-11 Thread Kiran Subbaraman
() is automatically performed, when running within the web context. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Thu, 07-07-2016 4:23 PM, parulshar...@gmail.com wrote: whenever we are updating values in a database, we encounter previous values

Re: [web2py] How install pillow in web2by - Window xp

2016-07-11 Thread Kiran Subbaraman
our web2py application. ________ Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Thu, 07-07-2016 11:45 PM, Carlos Henrique Sarro wrote: Hi, I try to install PILLOW in web2by with windows xp, but I didn´t. What was suggested in emails posted here didn´t

Re: [web2py] How active and 'professional' is web2py?

2016-07-11 Thread Kiran Subbaraman
face, and you will find a welcoming and helpful community. All the best with your learning. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Sun, 10-07-2016 10:48 AM, joeg816 wrote: I have been doing some research on Python web frameworks

Re: [web2py] web2py helping the homeless in Lisbon

2016-06-28 Thread Kiran Subbaraman
Leonel, Thanks for sharing this; inspiring to know that your team, and web2py is a making a difference in people's lives. All the best with this effort. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Tue, 28-06-2016 4:46 PM, Leonel Câmara

Re: [web2py] Re: rss and unicode

2016-06-21 Thread Kiran Subbaraman
Good to know, this is sorted out. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Tue, 21-06-2016 4:25 PM, Sepehr Mohamadi wrote: I upgraded my Python to 2.7.11 and the problem solved! This might be a bug! On Tuesday, June 21, 2016 at 11

Re: [web2py] Re: rss and unicode

2016-06-21 Thread Kiran Subbaraman
. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Tue, 21-06-2016 11:47 AM, Sepehr Mohamadi wrote: I get this on Python 2.7 Console: 'Some unicode here \xd8\xa2\xd8\xb2\xd9\x85\xd8\xa7\xdb\x8c\xd8\xb4 \xd8\xb2\xd8\xa8\xd8\xa7\xd9\x86 \xd9\x81\xd8\xa7\xd8\xb1\xd8\xb3\xdb\x8c

Re: [web2py] Re: rss and unicode

2016-06-21 Thread Kiran Subbaraman
Weird ... am not aware of 2.7.5 unicode issues. In any case, if you try just this on your console (ipython / python), what do you see? u'Some unicode here آزمایش زبان فارسی'.encode('utf-8', 'replace') Kiran Subbaraman http://subbaraman.wordpress.com

Re: [web2py] Re: rss and unicode

2016-06-20 Thread Kiran Subbaraman
://feed.example.comSome unicode here آزمایش زبان فارسیTue, 21 Jun 2016 09:44:28 GMT Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Tue, 21-06-2016 1:20 AM, Sepehr Mohamadi wrote: description=u"Some unicode here آزمایش زبان فارسی" -- Resourc

Re: [web2py] Re: rss and unicode

2016-06-18 Thread Kiran Subbaraman
Try this - basically mark the content as a unicode string. description=u"Some unicode here آزمایش زبان فارسی" ________ Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Sat, 18-06-2016 1:44 PM, Sepehr Mohamadi wrote: Exactly like this: So

Re: [web2py] webfaction nginx + uwsgi

2016-06-01 Thread Kiran Subbaraman
. Possible for you to upgrade to Python 2.7.x? Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Wed, 01-06-2016 9:40 PM, Jose wrote: As mentioned in a previous post [1] after updating web2py they stopped working my webfation applications

Re: [web2py] I have a file 'you.html' in static, how do I open it in my web2py app?

2016-05-13 Thread Kiran Subbaraman
I would do it this way.. use the 'with' option, and return the file contents. *Controller*: with open(os.path.join(request.folder, 'static','index.html')) as x: file_contents = x.read() return locals() In the *view*: {{=file_contents}} Kiran

[web2py] Re: How to create the namespaces for web2py application database

2016-05-12 Thread Kiran Subbaraman
Will this help you: http://web2py.com/books/default/chapter/29/13/deployment-recipes#Using-replicated-databases ? On Thursday, May 12, 2016 at 2:27:29 PM UTC+5:30, Chandra Bhushan Nulu wrote: > > I am new to web2py and google app engine, i tried to develop simple CRUD > operations web2py

Re: [web2py] Running Web2py on Oracle VM Virtualbox on Win 10

2016-04-26 Thread Kiran Subbaraman
Ubuntu 14.04 LTS server as the VBox guest OS. The host system being Windows 10. Install web2py using the one-step-deploy script `setup-web2py-nginx-uwsgi-ubuntu.sh`. Just works. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Tue, 26-04-2016

Re: [web2py] Re: Nginx, uwsgi, on Windows

2016-04-21 Thread Kiran Subbaraman
The module (which included grequests) was being used in a web2py and non-web2py context. The grequest capability was coming into play in the latter context. Refactored by separating out this responsibility. Kiran Subbaraman http

Re: [web2py] Re: Nginx, uwsgi, on Windows

2016-04-20 Thread Kiran Subbaraman
edis_event/default/index Reload the page successively - repeatedly F5 after page load - and you will notice the error on the page. Am moving away from grequests, and settling for just requests. On Thursday, April 21, 2016 at 9:44:42 AM UTC+5:30, Kiran Subbaraman wrote: > > Thanks for the reco

Re: [web2py] Re: Windows / 2.14.5 / Cannot import module

2016-04-20 Thread Kiran Subbaraman
Dave, thanks for this tip. I wasn't aware of this. In any case, going back to my preferred runtime - source version of web2py. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Thu, 21-04-2016 12:46 AM, Dave S wrote: On Wednesday, April 20

Re: [web2py] Re: Windows / 2.14.5 / Cannot import module

2016-04-20 Thread Kiran Subbaraman
Anthony, thanks for the details. Yes, my preferred runtime is the source version of web2py. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Thu, 21-04-2016 1:04 AM, Anthony wrote: On Wednesday, April 20, 2016 at 3:01:09 PM UTC-4, Kiran

Re: [web2py] Re: Nginx, uwsgi, on Windows

2016-04-20 Thread Kiran Subbaraman
thought or investigation. In any case, I'll do some more investigation and try to track down this issue. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Thu, 21-04-2016 3:42 AM, Niphlod wrote: forget about uwsgi on windows. never really landed

[web2py] Re: Windows / 2.14.5 / Cannot import module

2016-04-20 Thread Kiran Subbaraman
Yes, I do. Had installed the redis-client: `pip install redis` Also, please note that this works with the web2py_src version, but not the web2py-windows binary. On Wednesday, April 20, 2016 at 11:45:02 PM UTC+5:30, Dave S wrote: > > > > On Wednesday, April 20, 2016 at 9:51:23 AM

[web2py] Nginx, uwsgi, on Windows

2016-04-20 Thread Kiran Subbaraman
Hello all, I use Windows 10 based laptop for my development. By default, web2py serves its content via the rocket server. My application makes use of the 'default' redis client () to connect to the local redis server. I started noticing a stacktrace, in the cmd prompt, from within which web2py

Re: [web2py] Being from India, where should I host my web2py app as pythonanywhere is costly?

2016-04-06 Thread Kiran Subbaraman
AWS Free Tier - lasts for 12 months. Paid options: digitalocean, ctrl+s, e2e networks Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Wed, 06-04-2016 12:14 PM, Emmanuel Dsouza wrote: Also can you tell me how much will it cost me. My site wont

Re: [web2py] Re: Why is this ajax function not working fine?

2016-03-29 Thread Kiran Subbaraman
rl that you expect. ________ Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Tue, 29-03-2016 3:59 PM, Jacob Devin wrote: {{extend 'layout.html'}} {{for row in rows:}} {{=row.name <http://row.name/>}} http://row.id/>],'target');">check 'about'

Re: [web2py] many session files

2016-03-12 Thread Kiran Subbaraman
n$20expire/web2py/j-GwnDc0G6g/v7SVCyudr6AJ ________ Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Sat, 12-03-2016 6:22 PM, Alex wrote: I've found out that we got around 2 million session files, although I'm regularly running sessions2trash.py to cl

Re: [web2py] Re: Optimising caching and enabling gzip for web2py on heroku?

2016-03-12 Thread Kiran Subbaraman
ur deployment: http://web2py.com/books/default/chapter/29/13/deployment-recipes ________ Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Fri, 11-03-2016 8:07 PM, Vid Ogris wrote: So i gzipped my files. I am running my web2py on windows not on apache or anyt

Re: [web2py] Re: Optimising caching and enabling gzip for web2py on heroku?

2016-03-11 Thread Kiran Subbaraman
http://web2py.com/books/default/chapter/29/13/deployment-recipes#Compress-static-files Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Fri, 11-03-2016 7:22 PM, Yebach wrote: I would like to speed up my page a little bit. one of the suggestions

Re: [web2py] query sql form

2016-03-09 Thread Kiran Subbaraman
Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Wed, 09-03-2016 7:49 PM, prashant joshi wrote: I have create stud_mark table. and i use @auth.requires_login table *my question is * If i am login then it will show my record..,, eg

Re: [web2py] My session.counter is not counting

2016-02-28 Thread Kiran Subbaraman
Joe, Glad the issue is sorted out. If you haven't already, I suggest you also take a look at the web2py book's 'Session' section: http://web2py.com/books/default/chapter/29/04/the-core#session Kiran Subbaraman http://subbaraman.wordpress.com/about

Re: [web2py] My session.counter is not counting

2016-02-27 Thread Kiran Subbaraman
/some_number' * you use the the 'some_number' to query the database for a matching 'image'. The changes you would need to make are: if image.id == 1: session.one_counter = (session.one_counter or 0) + 1 if image.id == 2: ... Kiran Subbaraman http

Re: [web2py] My session.counter is not counting

2016-02-26 Thread Kiran Subbaraman
You seem to be incrementing 'counter' in the session (the counter is user session specific then). Also, you are using session.one_counter/two_counter/three_counter, without having initialized it. Is that a typo? Kiran Subbaraman http

Re: [web2py] Preventing hackers from exploiting web2py with wsgi

2016-02-25 Thread Kiran Subbaraman
Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Thu, 25-02-2016 1:03 PM, Robin Manoli wrote: Hello! I was recommended by #ubuntu-server on Freenode not to use wsgi. I wonder if you recommend this as well (which means not using web2py with apache)? I'm wondering

Re: [web2py] Re: what's wrong in this code? please help

2016-01-03 Thread Kiran Subbaraman
on this thread. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Sun, 03-01-2016 4:42 PM, RAGHIB R wrote: {{for x in uu:}} {{=x.name}} {{pass}} This doesn't work as expected. -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] temporary store the uploaded file in session

2015-12-17 Thread Kiran Subbaraman
Am guessing you are storing the link to the uploaded document in the db, and not the doc blob itself. In any case why not get the upload to proceed normally, and then clear out the values and the file if not 'approved'? - Kiran Original Message From:黄祥

Re: [web2py] Production - making redirections on default index with parameters (maybe with nginx)

2015-11-17 Thread Kiran Subbaraman
'). This is, if you want to manage all of this in your app code. nginx may have something for your case ... am not conversant enough in that though. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Tue, 17-11-2015 4:20 AM, Sam Heather wrote: Hi

[web2py] Re: issue with recursive caches?

2015-11-02 Thread Kiran Subbaraman
Just checking - should I open an issue for this... so that it is tracked? On Thursday, October 15, 2015 at 7:59:23 PM UTC+5:30, Leonel Câmara wrote: > > Yep, the cache locks the key it's writing so this is not possible. If the > keys are not the same it still gets locked because of statistics

Re: [web2py] UWSGI - nginx and web2py - special chars bugged, not showing any data on requests.vars/post_vars

2015-10-29 Thread Kiran Subbaraman
st","$request_body","$status","$bytes_sent"'',"$http_referer","$http_user_agent"';access_log /path-to-access.log postdata; Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Fri, 23-10-2015 7:

Re: [web2py] Re: issue with recursive caches?

2015-10-15 Thread Kiran Subbaraman
? This is the reason why I did not see any contention. Whereas, in this second case, if I were to retain a singleton of cache_disk, then I should be seeing the issue with cache.disk? Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Thu, 15-10-2015 8:37 PM

[web2py] Re: issue with recursive caches?

2015-10-15 Thread Kiran Subbaraman
Thanks for confirming this issue. The other thing I noticed is that if I just go ahead and create an instance of CacheInRam and CacheOnDisk, and combine them as before, and go ahead and use them - this would mean that a cache ram & disk instance is created for practically every request,

Re: [web2py] Re: CMS WEB2PY

2015-10-13 Thread Kiran Subbaraman
Carlos, Nice site. I'll follow your github space (https://github.com/daxslab) , and take a look at the CMS code, once its on github. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Tue, 13-10-2015 6:48 PM, Carlos Cesar Caballero Díaz wrote

Re: [web2py] Basic queries in Web2Py

2015-10-10 Thread Kiran Subbaraman
The images are not visible in your post. You probably want to add them again as attachments? For point 4, you need to assign a javascript function ( which does a form submit), for the on-click event. Kiran Subbaraman http://subbaraman.wordpress.com

Re: [web2py] Re: Cache + Bottlenose API - need help

2015-10-08 Thread Kiran Subbaraman
I'll try this out in the next couple of days. Currently, have side-stepped the callback options from bottlenose, and using web2py cache the way it was designed to be used. Thanks for your suggestions, Leonel. Kiran Subbaraman http

[web2py] Cache + Bottlenose API - need help

2015-10-07 Thread Kiran Subbaraman
I was trying to use Bottlenose's API (thin wrapper on the Amazon Products API), alongwith web2py's Cache. bottlenose: https://github.com/lionheart/bottlenose Bottlenose provides callbacks where the caching logic can be introduced. The code is listed below cache_disk =

Re: [web2py] API

2015-10-03 Thread Kiran Subbaraman
/services?search=REST#Restful-Web-Services [OR] intend to use the web APIs of other applications within your web2py application? Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Sat, 03-10-2015 2:23 PM, PAVAN DHAVALESWARAPU wrote: How can I use

[web2py] CORS and raise HTTP()

2015-10-02 Thread Kiran Subbaraman
Hello all, My javascript is making a CORS call to web2py; wherein I have set the following in my controller: response.headers['Content-Type'] = 'application/json; charset=utf-8' response.headers['Access-Control-Allow-Origin'] = '*' response.headers['Access-Control-Max-Age'] = 86400

Re: [web2py] CORS and raise HTTP()

2015-10-02 Thread Kiran Subbaraman
Anthony, Thank you. That works. I thought this behaviour would have been there by default... or any idea, why not? Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Fri, 02-10-2015 7:07 PM, Anthony wrote: Should be: raise HTTP(404

Re: [web2py] CORS and raise HTTP()

2015-10-02 Thread Kiran Subbaraman
Ok, I understand this better now. Thanks. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Fri, 02-10-2015 11:33 PM, Anthony wrote: HTTP is a generic exception that is not tied to the web2py environment -- therefore it doesn't know about

[web2py] Caching - need your thoughts

2015-09-30 Thread Kiran Subbaraman
Hello group, I have a standard web2py application, but within its modules directory, I have a bunch of code which run within the web2py context (and its scheduler), and also as scripts independent of web2py. It is just that this code resident within web2py's modules. I wanted to use the web2py

Re: [web2py] Caching - need your thoughts

2015-09-30 Thread Kiran Subbaraman
Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Wed, 30-09-2015 7:05 PM, Richard Vézina wrote: https://github.com/web2py/web2py/blob/1e66fa3a93560aa5d32c27a6b1b7251e0dd8a428/gluon/cache.py Here the test file about cache : https://github.com/web2py/web2py/blob

Re: [web2py] Eclipse + Pydev + Docker - need suggestions

2015-09-21 Thread Kiran Subbaraman
to. Was looking for experiences with Docker based web2py deploys, and best practices that the community has evolved. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Mon, 21-09-2015 8:06 PM, Richard Vézina wrote: Hi Kiran, Just about having web2py app

[web2py] Eclipse + Pydev + Docker - need suggestions

2015-09-20 Thread Kiran Subbaraman
Hello, I need some help with understanding the best way to use Pydev with Eclipse, for web2py applications development. I have been working with web2py for the past year, and use the tools mentioned above for this purpose. Am trying to refine my understanding of this toolset, and if there is

Re: [web2py] Web2py - Front-end performance optimization tutorial

2015-09-13 Thread Kiran Subbaraman
of assets, and not the web-server. That is a good thing to know, and one which needs to be captured some place accessible (web2py book, again?). Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Sun, 13-09-2015 11:33 PM, Louis Amon wrote: I'm opening

Re: [web2py] Adding a new post not working in web browser

2015-07-22 Thread Kiran Subbaraman
Yes, there seems to be an issue with google groups, and a few people have reported it. Things seem to work if you use the receive/post-via-email route (basically subscribing to the mailing list) Kiran Subbaraman http://subbaraman.wordpress.com/about

Re: [web2py] web2py 2.11 error on new install SESSION ISSUE

2015-07-16 Thread Kiran Subbaraman
. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Thu, 16-07-2015 5:26 PM, use_web2py wrote: Can some one look into this! I get this error after installing a new app from an existing w2p file. Traceback(most recent call last): File/home/www-data/web2py/gluon

Re: [web2py] paragraph font extraction using pydocx

2015-07-14 Thread Kiran Subbaraman
This question can be better addressed on the *docx *google group: https://groups.google.com/forum/#!forum/python-docx. You could also drop an email: python-d...@googlegroups.com mailto:python-docx%40googlegroups.com Kiran Subbaraman http

[web2py] Re: What if Massimo got hit by a Bus?

2015-07-14 Thread Kiran Subbaraman
Well, someone couldn't let reassurances stand in the way of science: http://mtov.github.io/Truck-Factor/ Wonder what the truck-factor for web2py is ;) On Thursday, May 26, 2011 at 8:18:51 PM UTC+5:30, Massimo Di Pierro wrote: LOL... What if the CEO of a company gets hit by a bus? They get

  1   2   3   >