Re: [web2py] Re: web2py -> py4web

2024-07-15 Thread Christian Varas
Hi Massimo, In my case I have still one app in production using web2py, I haven’t migrated yet because is quite big. For the rest of my apps, are all migrated to py4web and they work so much faster :). In my opinion, drop the support of python 2.7 is recommended to avoid security issues, and also

[web2py] Re: cibersecurity audit issue about login

2023-11-16 Thread Christian Varas
Hello António. Bruteforce in login is a common weakness that can be easy to solve. The most effective solution is implementing a CAPTCHA, in web2py I use google recaptcha because the implementation is easy and stops all the automations. In py4web I'm still unable to implement it in the login form

Re: [web2py] Re: web2py 2.26.1 released

2023-10-30 Thread Christian Varas
In my opinion Web2py is really comfortable but I strongly recommend to move to py4web. The scheduler in web2py is replaced with celery which is more powerful and py4web framework is really fast, light and is easy to code like in web2py. I’ve moved all my apps from web2py to py4web and I can’t compl

Re: [web2py] Re: uwsgi with web2py hard crash/locking with nginx

2023-10-17 Thread Christian Varas
While I can't provide a specific solution, it might be a better approach to keep resource-intensive tasks separate from web2py, using a tool like Celery. This way, these tasks can run in the background without impacting the web server. This is a small docx about how to put it together: https://doc

[web2py] web2py with rocket server + nginx ?

2023-02-16 Thread Christian Varas
Hello! I'm wondering if it is a good idea to use web2py with rocket server in combination with nginx as a reverse proxy like in py4web. I need to run py4web and web2py on the same server and using nginx without uwsgi for web2py would be easier for me. Cheers. Chris. -- Resources: - http://web2

Re: [web2py] web2py 2.23.0 released

2022-12-27 Thread Christian Varas
Thanks you Massimo! Cheers! El El mar, 27 de dic. de 2022 a la(s) 04:26, Massimo Di Pierro < massimo.dipie...@gmail.com> escribió: > Hello Everybody, > > My apologies for not being as engaged in this group as I used to be. > > web2py 2.23.0 was released. > > It includes: > - DKIM support to emai

Re: [web2py] Re: Issue password in plain text before sending when login in the website via HTTPS

2022-11-23 Thread Christian Varas
r >> cybersecurity officer keeps complaining about that wo I need change some >> settings in web2py or do you have an idea how I can sort it out ? >> >> Kind regards >> >> Am Di., 22. Nov. 2022 um 02:23 Uhr schrieb Christian Varas < >> chriii...@gmail.c

Re: [web2py] Re: Issue password in plain text before sending when login in the website via HTTPS

2022-11-21 Thread Christian Varas
Hi, It's OK, it's the way it works, If you put s local proxy like burp and then you go and capture traffic, it is ok that you can see clear text data because burp proxy puts their own certificate between client and backend, because of that burp proxy can decrypt and show you clear text data. If you

[web2py] Google Recaptcha v3 in forms

2022-09-20 Thread Christian Varas
Hi!, is there an implementation for google recaptcha v3 in web2py? If it exists, can someone point me in the right direction to add it? Cheers. Chris. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.

Re: [web2py] owasp anyone ?

2022-05-30 Thread Christian Varas
Hi, well i can say based in my experience developing in web2py: "Cross Site Scripting (XSS): - XSS doesn't affect components in web2py (forms, grid, and returned data in view). XSS are effective here only when you use the data supplied by the user in a insecure way like: - return

Re: [web2py] Web2py and database integration

2021-05-14 Thread Christian Varas
Could you share your db.py ? Maybe there are declared 2 connections to db and one might be overwriting the one who connects to postgresql. Cheers. Chris. El El vie, 14 de may. de 2021 a la(s) 15:22, F.C. escribió: > I need some help. I have started web2py development with a passion to > real

Re: [web2py] Re: Push Notifications

2020-11-20 Thread Christian Varas
Hi! I need to implement this and receive the notifications in the phone android/iOS. For this do I need to make my own app? Or do you use an app who can subscribe to push notifications in pusher.com ? This is off topic but any recommendation is appreciated Cheers. Chris El El vie, 20 de nov. de 2

Re: [web2py] Dashboard library for Web2py performance/recommendation python vs. js

2020-11-17 Thread Christian Varas
I would recommend to use a client side chart (JavaScript) because is less load to the server. The one that I use often is ChartJS is easy to configure and really nice looking. For a dashboard I use this 2 templates: Paper dashboard and AdminLTE. Cheers. Chris. El El mar, 17 de nov. de 2020 a la(s

Re: [web2py] web2py docker container

2020-09-21 Thread Christian Varas
Thanks! Is really useful :) El El lun, 21 de sep. de 2020 a la(s) 13:43, cabildocl escribió: > Hello, I share with you the web2py docker container. include web2py, > python3, nginx and gunicorn. > > > https://hub.docker.com/r/cabildocl/web2py > > > > > > > > -- > > > Resources: > > > - http://we

Re: [web2py] Re: WAF2PY 1.0

2020-08-05 Thread Christian Varas
pie...@gmail.com>) escribió: > Fantastic! we need to port this to py4web. ;-) > > > On Monday, 3 August 2020 15:53:22 UTC-7, Christian Varas wrote: >> >> Thank you. >> >> I just tested on Debian 10, but it should work for any other OS as long >> the de

Re: [web2py] Re: WAF2PY 1.0

2020-08-03 Thread Christian Varas
, mostwanted escribió: > Complements Chris, this is really impressive work. I see you have tested > on debian is it platform specific or will it run on any OS? > > On Monday, August 3, 2020 at 8:25:23 AM UTC+2, Christian Varas wrote: >> >> Hello all. >> I'm glad to anno

[web2py] WAF2PY 1.0

2020-08-02 Thread Christian Varas
Hello all. I'm glad to announce WAF2PY 1.0 🎉🎉🎊 *What is this?* WAF2PY is a Web Application Firewall using NGINX and ModSecurity. WAF2PY provides a nice and easy to use web interface *powered by* *WEB2PY* that controls modsecurity and nginx configuration in an easy way, allowing you to configure

Re: [web2py] how do i escape some characters when saving to db

2020-07-12 Thread Christian Varas
You welcome, just keep in mind when you decode a value with XML() it might be interpreted as HTML, and may lead to Cross Site Scripting (XSS) attacks. If an user craft an input like #something”>

Re: [web2py] how do i escape some characters when saving to db

2020-07-12 Thread Christian Varas
Maybe you can try something like: db.something.insert(str(XML(request.vars.somevalue, sanitize=True))) I use this method to escape everything and convert all to string Then in the view to see the values not encoded use: {{=XML(value)}} Maybe helps Cheers. El El dom, 12 de jul. de 2020 a la(s)

Re: [web2py] Security Issue??????

2020-07-09 Thread Christian Varas
Hi, There is not much to worry about, they are just best practices, informational or low issues. Except by CSRF but web2py already handle this - X-Frame-Options Header Not Set (15) Prevent that your site is used under an iframe on another site. Depends of the usage of the app - Cross-Doma

Re: [web2py] CON Abandoned framework with (almost) no community

2020-05-17 Thread Christian Varas
In my opinion the comparative is just crap :) Cheers. El El dom, 17 de may. de 2020 a la(s) 17:10, António Ramos < ramstei...@gmail.com> escribió: > How is that possible ? > https://www.slant.co/versus/1397/1746/~web2py_vs_django > I´m here and many others are here... > Who is trying to make us

Re: [web2py] Re: How to customize "Invalid function/someview" ?

2020-04-30 Thread Christian Varas
Thanks for the help! Now I have a custom 40x error pages :) Cheers. Chris. El jue., 30 abr. 2020 a las 5:13, 'Annet' via web2py-users (< web2py@googlegroups.com>) escribió: > I think routes_onerror = [] in routes.py is whar you're > looking for: > > routes_onerror = [ >,(r'*/404', r'/handl

Re: [web2py] Pack a big app

2020-04-27 Thread Christian Varas
Hi, To transfer big apps, I do the following: Go to "applications" folder in web2py of serverv1, then zip your app, then move it through SSH or other method to the new server, and place it in the "applications" folder of web2py of server 2. Reload routes in web2py admin app. I haven't experienced

Re: [web2py] Android and ios aops

2020-04-24 Thread Christian Varas
Hi, i did this in android some years ago, you can run web2py using SL4A and installing the python package, then you have to move the web2py folder into the SL4A folder and run the web2py with no GUI. Other option could be Termux, is more easy, you can install packages with like “apt install python”

Re: [web2py] Which 4 or 2?

2020-04-17 Thread Christian Varas
Hi, I think is better to start with *web2py*, is easy to learn and I believe that fit better to your site, py4web is really good and more faster, but in web2py you have more tools to do things. The transition after from web2py to py4web is not difficult. Cheers. Chris. El vie., 17 abr. 2020 a la

Re: [web2py] Re: many users logged in, at the same time.

2020-04-09 Thread Christian Varas
You can try: Apache benchmark Load impact (free account) Blazemeter (free account) Cheers. El El jue, 9 de abr. de 2020 a la(s) 17:44, Dave S escribió: > > > On Thursday, April 9, 2020 at 4:10:21 AM UTC-7, Wep2buy wrote: >> >> Hi every body: >> >> how can i test an app (like chat) from my desk

Re: [web2py] web2py 2.19.1 is OUT

2020-03-21 Thread Christian Varas
Thanks! 🎉🎉🎉🎊 El El sáb, 21 de mar. de 2020 a la(s) 18:52, Massimo Di Pierro < massimo.dipie...@gmail.com> escribió: > Sorry it took so long. > > Web2py 2.19.1 is finally out. > > It contains many small bug fixes including better support for python 3.6, > 3.7, and 3.8 > > https://travis-ci.org/git

Re: [web2py] Re: Py4Web "tags" should be SCOPES

2020-02-26 Thread Christian Varas
About the signed URLs, is already implemented on this pull request https://github.com/web2py/py4web/pull/114 I haven’t tried yet. Cheers. El El mié, 26 de feb. de 2020 a la(s) 13:33, villas escribió: > Hi Kevin > > JWT seems to have everything we might need, although I am not > knowledgable en

Re: [web2py] Re: LOAD in py4web

2020-02-25 Thread Christian Varas
I think it can be usefull if you use another template not based in vue. Cheers. El El lun, 24 de feb. de 2020 a la(s) 03:31, Massimo Di Pierro < massimo.dipie...@gmail.com> escribió: > We can add it in utils. But before we do. Do other peopl find it useful? > Is that a pattern we should encourag

Re: [web2py] py4web issue on get requests

2020-02-22 Thread Christian Varas
Hi Torrini, I don’t know what is causing the error but you can use a local proxy like burp suite to catch your client request and see what’s wrong with that request. If is malformed you can see with with this. Cheers. El El sáb, 22 de feb. de 2020 a la(s) 01:38, Edoardo Torrini < edoardo.torr...

Re: [web2py] list index out of range when removing some fields in SQLFORM.grid & clicking the remaining button

2020-02-15 Thread Christian Varas
i’m quite sure that exist a switch like “searchable=False” to disable the search field. Usually I get this error when the attribute on sqlform that I’m trying to modified does not exist, maybe check the correct Index of the list. Cheers. El El sáb, 15 de feb. de 2020 a la(s) 17:13, mostwanted <

Re: [web2py] webp2y XML helper sanitize line breaks under python3.6

2020-02-13 Thread Christian Varas
, that the XML sanitizer under python 3.6 is the problem. >> Do you have an idea for a work around except of eliminating all line >> breaks, cause I can't do this? >> >> Best regards >> Clemens >> >> >> On Wednesday, February 12, 2020 at 4:42:53 PM UTC+1,

Re: [web2py] webp2y XML helper sanitize line breaks under python3.6

2020-02-12 Thread Christian Varas
t isinstance(string, str): >> string = str(string) >> pattern = re.compile('|'.join([re.escape(k) for k in >> list(replacement_dict.keys())]), re.M) >> return pattern.sub(lambda x: replacement_dict[x.group(0)], string) >> > > And this soluti

Re: [web2py] webp2y XML helper sanitize line breaks under python3.6

2020-02-12 Thread Christian Varas
I had an issue with line breaks too, I remove lie breaks like this with python 3.7 some_string = some_string.replace(“\n”, ””).replace(“\r”, ””) XML(some_string, sanitize=True) Cheers Chris El El mié, 12 de feb. de 2020 a la(s) 04:37, Clemens < clemens.odend...@claret-clover.de> escribió: > He

Re: [web2py] Raspberry pi cannot connect to postgreSQL

2020-02-06 Thread Christian Varas
Hi, looks like the problem is the password... The error says: FATAL: password authentication failed for user "posgres Doble check the password for the user, try to connect manually to pg to ensure you have the correct password. If password is ok, maybe is a bug or something else, I think I saw

Re: [web2py] py4web in Google App Engine route app

2020-02-04 Thread Christian Varas
Hi I haven’t tried GAE but maybe is the controller. Are you using the decorator ’action()’ to expose the function ?. Ex: @action('some_name') def some_function(): return locals() Then you acces like http://IP/your_app/some_name Cheers. Chris. El El mar, 4 de feb. de 2020 a la(s) 15:46, Jaci

Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-23 Thread Christian Varas
ster and you get to use Python3. > > -Jim > > > On Thu, Jan 23, 2020 at 6:44 AM Christian Varas > wrote: > >> Thanks for all that you share guys. >> >> I would like to ask for a recommendation. >> >> I have a web interface made with web2py, this

Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-23 Thread Christian Varas
Thanks for all that you share guys. I would like to ask for a recommendation. I have a web interface made with web2py, this interface manage a web application firewall (nginx and modsecurity). It does commands and file modifications in the system to manage properly the WAF, the database is SQLite

Re: [web2py] Re: post file to a server

2019-10-17 Thread Christian Varas
Hi, I have an app that use CKeditor who send images to the server and the function who catch this file is more or less like this: Server TWO def ImgUpload(): a = stuffs.Stuffs() #Custom library name = a.password(20) rand_name = a.password(20) #path where the files will be saved

Re: [web2py] Re: web2py on Raspbian and Python 2 or 3?

2019-08-21 Thread Christian Varas
I run web2py in a raspberry with Apache or nginx. Then the auto start is automatically. Cheers. El jue., 22 de ago. de 2019 04:02, lucas escribió: > sorry for the long delay on this post. I've been theme parking with the > kids all summer. > > ok, I've got rocket running on the pi with python

Re: [web2py] Re: How to add vertical Scroll bar to the table in SQLGORM.grid

2019-08-05 Thread Christian Varas
+1, datatables is your friend Cheers El lun., 5 de ago. de 2019 22:27, Jim S escribió: > I'd look at implementing datatables.net to do that. > > https://datatables.net/ > > -Jim > > On Saturday, August 3, 2019 at 9:22:26 PM UTC-5, Ryan wrote: >> >> Hi all, instead of having multiple page of tab

Re: [web2py] Como retornar apenas um item apartir de uma busca no campo usando web2py

2019-08-05 Thread Christian Varas
Hi, why doesn't work good with first() ? if you do: db(db.table.xx==request.vars.xx).select().first() it will return just the first record, if it doesn't is because the record does not exist. other way to do this is with limitby: db().select(db.person.ALL, limitby=(0, 2)): http://www.web2py.co

Re: [web2py] Re: Anthony was right... web3py has a big naming conflict

2019-07-22 Thread Christian Varas
WebThreePy? Web4Py ? Cheers. El lun., 22 de jul. de 2019 16:29, John Bannister escribió: > Why not something as simple as py3web > > > > *From:* web2py@googlegroups.com [mailto:web2py@googlegroups.com] *On > Behalf Of *Leonel Câmara > *Sent:* 22 July 2019 16:26 > *To:* web2py-users > *S

Re: [web2py] How to try - exception - finally os.path.join

2019-07-03 Thread Christian Varas
What about try: file_location = os.path.join(request.folder, 'views','plot') except Exception as error: print (error) El lun., 1 de jul. de 2019 23:47, Quang Lam escribió: > Hi All, i try to do the try - exception - finally for os.path.join how > somehow it does not catch the error

Re: [web2py] Generating graph with chartjs

2019-06-17 Thread Christian Varas
Sorry the delay, the second chart is a radar chart Cheers. Chris. El mar., 11 de jun. de 2019 18:25, Dave S escribió: > > > On Sunday, June 9, 2019 at 3:06:01 PM UTC-7, Christian Varas wrote: >> >> II have this site www.climbersoul.cl using AdminLTE, and I with grap

Re: [web2py] Re: I can not import module in app

2019-05-23 Thread Christian Varas
I'm facing the same issue, did you already found the solution? Btw, I'm running web2py in my android phone, maybe for me is quite different... Cheers. Chris. El jue., 23 de may. de 2019 07:03, Константин Комков escribió: > Maybe it info can help? > Error snapshot [image: help] >

Re: [web2py] More then one buttons on form

2019-05-22 Thread Christian Varas
Hi, well what I do to change some attributes in the forms is modifiying the form before to be returned/rendered: You can access to the elements in the form like a list Ex: form = SQLFORM.factory(Field('hoho'), Field('haha') ) form[0][1][1]['_class']

[web2py] Validate image with IS_IMAGE()

2019-05-09 Thread Christian Varas
Hello guys, I'm trying to validate and save and image from FieldStorage() of ckeditor (not from the web2py slices) i'm using the validor IS_IMAGE() like this IS_IMAGE()(request.vars['upload'].value) I'm getting the following "invalid image" message. ('\x89PNG\r\n\x01\x11\x10\x81\xad\x04d\xd8le\x

[web2py] Improve the images load

2019-04-04 Thread Christian Varas
Hi, I would like to ask for recommendations to serve images with web2py. I have a site (*https://climbersoul.cl *), this site is a kind of Wikipedia for spots climbing in Chile. This site will have a lot of images, and I would like to know how to optimize the load of the ima

Re: [web2py] Displaying Uploaded PDF Documents

2019-03-01 Thread Christian Varas
Your model says: db.define_table('*pdfs')* And you controller points to another table (db.*pdfDocs)* Your controller should be *CONTROLLER CODE* def viewer(): row = db(db.*pdfs*.id ==request.args(0)).select(db.*pdfs*.fileS).first() redirect(URL('static','pdfs',arg

Re: [web2py] SQLFORM with specific record

2019-02-22 Thread Christian Varas
t; ROW = db(db.lugar.user_id == auth.user['id']).select() > or > ROW = db.lugar[auth_user['id']] > > See: > > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Shortcuts > > *Ben Duncan* > DBA / Chief Software Architect > Miss

[web2py] SQLFORM with specific record

2019-02-21 Thread Christian Varas
Hello ! I'm trying to get a sqlform that display a specific entry, i've been able to get it work like in the book but just with one condition like this: record = db.rutas(request.args(0)) i need to do something like this: record = db.rutas.id == request.args(0) and db.lugar.user_id == auth.user['i

[web2py] Different layout.html

2019-01-09 Thread Christian Varas
Hi everyone! I'm wonder if there is another layout.html to use in web2py? I have adapted the adminlte template ( https://adminlte.io/themes/AdminLTE/index2.html) and but is not adapted at 100% (menu.py is not working and grid doesnt look good, but if you dont mind to add the menu manually on the l

Re: [web2py] DAL's fake_migrat and fake_migrate_all and migration problem with auth tables

2019-01-05 Thread Christian Varas
I never tryed fake migrate before but every time that I move an app to another server first I put the app in the server then I delete everything inside the database folder, then run the app via web browser (this create the structure of the database)? then resotre the db backup and done app + databa

Re: [web2py] Where does it GO?

2018-12-12 Thread Christian Varas
It goes to the console where web2py is running or in the error logs of apache or nginx if you are running web2py in one of those. Cheers. Chris. El mié., 12 dic. 2018 11:39 a. m., Ben Duncan escribió: > If you put a "print" statement in you application (controller or view) > where does the outp

Re: [web2py] Re: upload a photo to your site by >

2018-12-07 Thread Christian Varas
As Stifan says, please show us the code. If you follow the example in the book, image upload works perfect. About ">" what are you trying to do with this? Cheers. Chris. El vie., 7 dic. 2018 6:59 a. m., 黄祥 escribió: > perhaps you can show the code and the traceback error > ref: > http://web2p

Re: [web2py] Re: mobile friendly login page

2018-10-25 Thread Christian Varas
Sorry the image in the previous mails is broken, here is it: https://imgur.com/a/I1SsGlp Cheers Chris. El jue., 25 oct. 2018 a las 10:57, Lovedie JC () escribió: > Works good. > How about app buttons in a single line/row? > Regards > > On Thu, 25 Oct 2018 at 16:22, sandeep patel > wrote: > >> @

Re: [web2py] Re: mobile friendly login page

2018-10-25 Thread Christian Varas
hi, this is my login page, I'm using adminLTE as template, try this example, i might work for you, adminLTE works with boostrap like web2py, so I think that should work. [image: image.png] controller: def user(): return dict(page="Bienvenido", icon="", title="", form=auth()) *this is the vie

Re: [web2py] Re: Multiples requieres in SQLFORM

2018-10-24 Thread Christian Varas
Thanks Anthony, Sorry is my fault, i didn't knew how to explain the issue... I ended up like this: Field("Grado", default=grados_roca[2], requires=IS_IN_SET([], multiple=False)), and works perfect, now I have a empty set that I can populate in the view Thank you! ☺ Cheers. Chris. El mar., 2

[web2py] Login form and facebook oauth

2018-09-18 Thread Christian Varas
Hello, I have an app with a facebook login (oauth),I took the example from the documentation and works fine. But I need to enable the login form included in web2py. Does anybody know how to make this 2 login methods works ? or if someone have an example about this? Any help would be very apprecia

Re: [web2py] global name 'Recaptcha' is not defined error when my app is run in web2py 2.17.1 (latest)

2018-08-31 Thread Christian Varas
Use Recaptcha2() I have an app with new web2py and recaptcha2 working like a charm. Cheers. Chris El vie., 31 ago. 2018 9:48 a. m., Rahul escribió: > Hi All, > There seems to be an issue with latest version of web2py 2.17.1. I am > getting an exception like below for my project . However t

[web2py] Error processing form with select multiple

2018-08-27 Thread Christian Varas
Hi everyone!, I'm developing a site which have 3 forms in one page, and one of them have multiples selection fields. I'm facing an error when the form is processed and I have not been able to fix it. Error: * string indices must be integers, not str* *locals* *c* : '' *component_list* :

Re: [web2py] Re: Handling "Invalid function", "Invalid request", "Invalid controller"

2018-06-27 Thread Christian Varas
Thank you, i will try this. Cheers. Chris. 2018-06-26 21:47 GMT-04:00 黄祥 : > perhaps this link can be used: > http://www.web2pyslices.com/slice/show/1529/custom-error-routing > > best regards, > stifan > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http:

[web2py] Handling "Invalid function", "Invalid request", "Invalid controller"

2018-06-26 Thread Christian Varas
Hello, I'm trying to redirect those errors to another page. Errors: invalid function (default/bla)invalid requestinvalid controller (bla/index)I've been playing with routes.py but I don't know how to map those errors. it is possible to do this without map all urls in routes.py ? Any help would be

[web2py] Re: Infinite redirect when using ajax callback and a site parameter

2015-02-13 Thread Christian
Thanks a lot, Leonel! With the correct URL it works. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed

[web2py] Infinite redirect when using ajax callback and a site parameter

2015-02-12 Thread Christian
application in web2py 2.9.12 (the issue also occurred in the previous version) using the following controller functions and the index.html view. Thanks a lot for your time! Best, Christian -- [default.py] def newscb(): return DIV('TESTNEWS') def index(): session.counte

Re: [web2py] Restful authentication and CORS

2014-08-10 Thread Christian Foster Howes
they start as "anonymous" users but still have access tokens, later they register or login with a 3rd party oauth provider and then we are just an oauth client. if that sounds at all like what you are doing maybe i can distill some of what we had into a format that i can share.'

[web2py] Re: Image upload GAE: Can't find file_blob

2014-05-05 Thread Christian Foster Howes
Stephen, i don't see your usage of file_blob or file_data in the sample. did you mean bild_blob is empty? last time i implemented file upload on GAE i was writing to blobstore (cause cloud storage didn't exist yet). i haven't ported that code to cloud storagebut the blobstore code was *v

[web2py] Re: web2py validator doesn´t match

2014-05-02 Thread Christian Foster Howes
did you use a SQLForm? if not then you probably didn't trigger the validators to run. On Thursday, May 1, 2014 9:14:28 AM UTC-7, Thomas Neubrand wrote: > > Hello, > > I have two validators in my db.py for my *auth_user* table for the > password and the domain field, but both don´t work. When I

Re: [web2py] Re: GAE: Downloading uploaded images

2014-05-01 Thread Christian Foster Howes
tephan Am Mittwoch, 30. April 2014 16:28:08 UTC+2 schrieb Christian Foster Howes: are you storing your images in the datastore or in blobstore, or in google cloud storage? if blobstore you can use https://developers.google.com/appengine/docs/python/images/functions#Image_get_serving_urlto store

[web2py] Re: GAE: Downloading uploaded images

2014-04-30 Thread Christian Foster Howes
are you storing your images in the datastore or in blobstore, or in google cloud storage? if blobstore you can use https://developers.google.com/appengine/docs/python/images/functions#Image_get_serving_url to store a URL that serves it directly from blobstore. cfh On Monday, April 28, 2014

Re: [web2py] API Rest authenticatio

2014-04-27 Thread Christian Foster Howes
attached is our auth code. i made a few minor adjustments to remove some things that are specific to our app - hopefully it still runs. note that we use this as a decorator to controller methods. On Saturday, April 26, 2014 6:09:13 PM UTC-7, samuel bonill wrote: > > Yes Christian, I&

[web2py] Re: Auto increment id back to zero

2014-04-26 Thread Christian Foster Howes
auto increment IDs are implemented differently on different databases. the instructions for mysql vs postgres are different for example. It's best to check the documentation for the database that you are using. i'm assuming that you have already removed all rows from the table. :) cfh On Thu

[web2py] Re: how to add web2py app into a hosted web2py in command line

2014-04-26 Thread Christian Foster Howes
the "command line" way to deploy to the running server is to zip the contents of your application directory, transfer to the host, and unzip to the host's applications directory. assuming the your code has no additional dependencies it should work. depending on how you do URL routing you may n

Re: [web2py] API Rest authenticatio

2014-04-26 Thread Christian Foster Howes
i have an oauth implementation that i used on app engine. i can try and clean it up a touch and share it if you would like. cfh On Saturday, April 26, 2014 7:05:55 AM UTC-7, samuel bonill wrote: > > thanks Marks, i'm using phonegap(android, iOS) as my client and angularjs > consume the API Res

[web2py] web2py + gae + google:sql : Not authorized to access (database) instance

2014-02-28 Thread Christian Foster Howes
It's been some time since I connected to cloud SQL myself, but I would suggest triple check the connection string and permissions. You should not have to connect with any other client first. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/w

[web2py] Re: GAE localhost mysql instance

2014-02-15 Thread Christian Foster Howes
did you invoke dev_appserver.py with the options to enable mysql? there's a couple of options that you must pass to dev_appserver to tell it to load and connect to mysql for local emulation of google cloud sql. i haven't done it for a while so i don't remember the exact magic incantations

[web2py] Re: Virtual field for latitude and longitude from geometry field?

2014-01-02 Thread Christian Foster Howes
i bet that by the time your lambda is running the point has been converted to a string already. can you see if that is true? i'm not sure how to invoke db functions in a lambda of a virtual field. :( On Wednesday, January 1, 2014 5:50:54 PM UTC-8, User wrote: > > Suppose I have a table like: >

[web2py] Re: How to measure conversion rate with google analytics?

2013-12-07 Thread Christian Foster Howes
can't you just add google analytics to your site. from there you can see referrers and funnels and conversions etc. with almost no extra work. On Friday, December 6, 2013 12:48:31 PM UTC-8, Mika Sjöman wrote: > > Hi > > I was wondering if it is possible to measure the conversion rate of how > m

Re: [web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread Christian Foster Howes
this strikes me as an old version of web2py. GAE upgraded IDs to be longs a few months back and i know we made sure the DAL in the latest version supports that, yet this looks like such an error. :( On 12/5/13, 21:42 , Massimo Di Pierro wrote: When posting a comment the last 5 lines are usual

[web2py] Re: Running instantpress in GAE: Internal error Ticket issued: unrecoverable

2013-12-05 Thread Christian Foster Howes
i suspect that instapress needs to use a relational database and that if you use google cloud SQL you are more likely to get it to work. the traceback from the logs would be most helpful in debugging. On Thursday, December 5, 2013 2:55:36 AM UTC-8, peibol wrote: > > No, I didn't find any solutio

Re: [web2py] Re: GAE - Not Working || Full Code Attached

2013-12-05 Thread Christian Foster Howes
also Prachi, can you visit the GAE logs and paste in the error you are getting? that might make it even quicker for us to help you sort it out. On Thursday, December 5, 2013 1:07:37 PM UTC-8, James Burke wrote: > > Hi Prachi > > When I ran the code the form appeared. > > I didn't try the form.

[web2py] Re: How would you implement paging on a google-results-like page?

2013-12-05 Thread Christian Foster Howes
can you create a module and/or a base template that you can put the "boilerplate" code in so you don't have to duplicate the stuffs in each individual controller and view? or can you write a generic controller that based on parameters/POST data adjusts its queries. On Thursday, December 5, 201

Re: [web2py] Re: bulk_upload to GAE development datastore no longer works?

2013-12-05 Thread Christian Foster Howes
ink ran only on Python 2.5 and probably because of other changes in the yaml file and the --use_sqlite app parameter can't get these to run at all. Thanks! On Thursday, December 5, 2013 1:39:37 AM UTC-5, Christian Foster Howes wrote: this is a documented GAE SDK bug. you'll have to dow

[web2py] Re: bulk_upload to GAE development datastore no longer works?

2013-12-04 Thread Christian Foster Howes
this is a documented GAE SDK bug. you'll have to downgrade your GAE SDK to the last working version of this. i *think* the last working version is 1.8.1 On Wednesday, December 4, 2013 8:46:31 AM UTC-8, David Manns wrote: > > My application runs on GAE. Using Google's bulk loader I make occasio

[web2py] Re: uploading files on GAE - 404 NOT FOUND

2013-12-04 Thread Christian Foster Howes
Can you share the log/stack trace from when that happens? does the form post to the same function that generated it? i have not tried upload in grid()wonder if there is something there that doesn't quite work on app engine? On Tuesday, December 3, 2013 10:49:47 AM UTC-8, James Burke wrote:

Re: [web2py] Re: uploads & GAE

2013-11-24 Thread Christian Foster Howes
that simply does not work. you'll have to write custom code to store in blobstore or cloud storage if you don't want to keep uploaded images in the DB. note that images that are static that you deploy with the application can be stored in a static folder and mapped via app.yaml to be handled

Re: [web2py] Re: uploads & GAE

2013-11-24 Thread Christian Foster Howes
ess these files directly (for example, if they were image files that needed to be modified using the GAE analogy of PIL)? On Saturday, November 23, 2013 4:32:57 PM UTC-5, Christian Foster Howes wrote: Niphlod is correct - no storing on the filesystem. datastore or blobstore to store your uploaded fi

[web2py] Re: uploads & GAE

2013-11-23 Thread Christian Foster Howes
Niphlod is correct - no storing on the filesystem. datastore or blobstore to store your uploaded files on GAE. On Saturday, November 23, 2013 11:24:31 AM UTC-8, Niphlod wrote: > > If I'm not mistaken, GAE filesystem is not writable your only option > is to store the file into the database >

Re: [web2py] Re: OAuth2.0 and Facebook (as from the book)

2013-10-29 Thread Christian Foster Howes
me'], user['last_name']), \ username=user['id'], registration_id=user['id'], email=user['email']) I would like to, at least, show an error message to the user saying that something went wrong trying to get his/her email from Facebook, and

[web2py] Re: OAuth2.0 and Facebook (as from the book)

2013-10-28 Thread Christian Foster Howes
the problem is that facebook is not returning an email. i know, i know, you told facebook that email is required and you can't reproduce such a state. i'm 100% with you, but i see the exact same behavior with my users! i suspect that these are actually returning users who granted email access

[web2py] Re: NDB support for GAE

2013-10-27 Thread Christian Foster Howes
interesting i as skim the NDB docs very quickly and the patch above i see that it is *very* similar to the "DB Datastore"/Big Table. if the APIs are the same then we should just use the same DAL adapter with a parameter to use NDB. Though because of the caching nature of NDB there may be

[web2py] Re: transfer local database to Google App Engine website

2013-10-27 Thread Christian Foster Howes
Also, keep in mind that there is not really a model on GAE big table (google datastore), so there is nothing to view in the console until you write rows to the database. once you write data, you will be able to see the "schema" of the data that was written. cfh On Sunday, October 27, 2013 3:0

[web2py] Re: Python vs Mavericks

2013-10-27 Thread Christian Foster Howes
thanks! i didn't remember that i had installed python 2.7 myself and had to hack it to run with 10.9! cfh On Sunday, October 27, 2013 1:46:49 PM UTC-7, Jonathan Lundell wrote: > > Just FYI, in case this bites you. > > I had installed Python 2.7.2 on my Mac some time back, and had an override

[web2py] Re: web2py vs webapp2 for bootstrap+gae combo

2013-10-17 Thread Christian Foster Howes
the setup is trivial to use bigtable (datastore). once you have it running you'll never think about it again. ;) i have not kept up to date with the default welcome app, but it used to just use the GAE bigtable if it noticed that it's running on GAE. bootstrap i think is used in the welcome a

[web2py] SQLFORM.grid oncreate Issue

2013-10-16 Thread Christian Espinoza
Hi guys, I'm using 2.6.4-stable+timestamp.2013.09.22.01.43.37 and I trying to log at db every new record created with SQLFORM.grid: My controller: def bodies(): grid = SQLFORM.grid(db.bodies, orderby=~db.bodies.id, oncreate= log_action('System','Created new body')) return dict(grid=gri

[web2py] Re: GAE: Running test. issue with exec_environment()

2013-10-15 Thread Christian Foster Howes
unittest on GAE has been a challenge for us as well. right now we trigger our unittests via a controller run in the GAE dev server. it's not pretty, but it mostly works and has the proper GAE env setup. I'd love to figure out a cleaner way to make this happen. here's the controller that we u

Re: [web2py] Re: How can I give google map javascript api marker title a suitably encoded string?

2013-09-26 Thread Christian Foster Howes
--upgrade simplejson On Thursday, September 26, 2013 11:50:18 PM UTC+2, Christian Foster Howes wrote: i agree that if the data is from user input you want to make sure it is escaped. the JSON might work for you. one tip - if you are using python 2.7 it comes with a json lib (import json) that is wr

Re: [web2py] Re: How can I give google map javascript api marker title a suitably encoded string?

2013-09-26 Thread Christian Foster Howes
.name) return dict(myobject=myobject) (Not sure if that's the correction json method to use) And then in the view using XML as suggested by Christian. This seems to properly escape embedded quotes. However as I am new to web2py I would appreciate others input about the correctness of this. O

[web2py] Re: How can I give google map javascript api marker title a suitably encoded string?

2013-09-26 Thread Christian Foster Howes
can you use an inspector to see the actual generated javascript? it's possible that web2py is escaping the apostrophe. you can try {{=XML(myobject.name)}} On Tuesday, September 24, 2013 5:26:29 PM UTC-7, User wrote: > > I'm using the google map javascript api (v3). I have a google map in one

  1   2   3   >