[web2py] Re: AWS Lambda Deployment Recipe

2019-09-17 Thread Jaime Sempere
Hi Mike, I've been following your recipe, but I have an 'read-only file system issue' (I think is due that I did not set up a database and web2py is trying to create the datatables files) So, can you give me some clues about it? Also, how should i set up and configure my rds to work with web2

[web2py] Re: AWS Lambda Deployment Recipe

2019-08-20 Thread Jaime Sempere
That's receipe is great, thanks for the work. One thing that I have not seen is which database are you using? I think with Zappa you need to use RDS, at least that's what I have seen with Django apps. So, I would like to ask you two questions: 1) Can you confirm about the database (is a RDS)?

[web2py] Re: Multitenant static generator blog

2018-10-22 Thread Jaime Sempere
> On Sunday, October 21, 2018 at 9:22:05 AM UTC-4, Jaime Sempere wrote: >> >> Hello to everyone, >> >> I need some tips of how to approach a new project that I want to develop. >> >> I would like to build a static generator, every user would be able to >&

[web2py] Re: just for the records: API rest with basic auth

2018-10-21 Thread Jaime Sempere
018 at 7:05:56 AM UTC-7, Jaime Sempere wrote: >> >> Hi, >> >> I have had a lot of problems to set up an API REST with basic auth, >> finally I have used the next code, I left it here for anyone that may need >> it: >> >> from gluon.

[web2py] Multitenant static generator blog

2018-10-21 Thread Jaime Sempere
Hello to everyone, I need some tips of how to approach a new project that I want to develop. I would like to build a static generator, every user would be able to build his/her own blog using my CMS built with web2py. I would plan to build static pages and leaving them on static/ folder. Maybe

[web2py] just for the records: API rest with basic auth

2018-10-14 Thread Jaime Sempere
Hi, I have had a lot of problems to set up an API REST with basic auth, finally I have used the next code, I left it here for anyone that may need it: from gluon.serializers import json auth.settings.allow_basic_login = True @request.restful() def api(): response.view = 'generic.json'

[web2py] Just a silly thread to say... thanks to all web2py developers team

2018-02-09 Thread Jaime Sempere
Hi, this is gonna sound a littile silly, but I have been wanting to publish a thread like this from years ago. I just wanna say to Massimo and all the web2py developers one thing: thanks. Thanks a lot. I love web2py and I enjoy programming and developing with it. I can notice all the effort a

[web2py] How to integrate sendgrid or similar for 'password reset' mail

2016-05-06 Thread Jaime Sempere
Hi, I am using last web2py version but for any reason I am not able of sending email from GAE. I am just trying the forget password mail but after giving my email to the form, I am only redirected to login and I dont receive any mail I am using this settings: mail.settings.server = 'gae' ma

[web2py] Re: Trying to build a post api.

2016-02-14 Thread Jaime Sempere
Just for future viewers: I have needed to wrap the answer into a response.json() to be able to parse the response in the client: this works for me : return response.json(db.Questions.validate_and_insert(**fields)) this doesnt work : return db.Questions.validat

[web2py] Re: Static files inside of folder with spaces (url encoding)

2015-12-09 Thread Jaime Sempere
Yes, that's my problem the web2py server looks like he is not able to handle spaces on static paths to access those files... any other advice? El miércoles, 9 de diciembre de 2015, 14:31:36 (UTC+1), Anthony escribió: > > Are you serving web2py via the built-in server? If not, you can configure

[web2py] Static files inside of folder with spaces (url encoding)

2015-12-08 Thread Jaime Sempere
Hi, I am trying to put some files inside of folder with a space (i.e: static/my things/), but I am not been able to handle on web2p, when I try to access the files on that folder. It doesn't matter how I encode the url (I tried to replace the ' ' for '%20') it keeps saying 'invalid request'.

[web2py] Re: GAE: BadRequestError: projection and keys_only cannot both be set

2015-08-22 Thread Jaime Sempere
Done! El domingo, 23 de agosto de 2015, 2:10:27 (UTC+2), Massimo Di Pierro escribió: > > Can you please open a pydal issue about this? > > On Friday, 21 August 2015 18:44:02 UTC-5, Jaime Sempere wrote: >> >> Hi, >> >> >> Im using web2py 2.9.12, Im de

[web2py] GAE: BadRequestError: projection and keys_only cannot both be set

2015-08-21 Thread Jaime Sempere
Hi, Im using web2py 2.9.12, Im developing on local gae, and when I tried to execute this query: pics = db(db.pics.user_id==user_id).select(db.pics.img_link, projection=True ,orderby=~db.pics.up_date, limitby=(num_min, num_max)) I got that error WARNING 2015-08-21 23:40:54,728 tas

[web2py] Re: auth.settings.registration_requires_approval has no effect

2015-08-19 Thread Jaime Sempere
Im using same web2py version and python 2.7.x My db.py works (user is inserted on db marked as 'pending') with this configuration: from gluon.tools import Auth, Service, PluginManager auth = Auth(db) service = Service() plugins = PluginManager() ## create all tables needed by auth if not cus

Re: [web2py] Re: creating a taggable post with upload field

2015-08-19 Thread Jaime Sempere
miércoles, 19 de agosto de 2015, 19:12:55 (UTC+2), Carlos Cesar Caballero escribió: > > Works perfectly, many thaks for your answer in a RTFM-like question... > > El 18/08/15 a las 15:31, Jaime Sempere escribió: > > > I have just checked a side project that I did today, and

[web2py] Re: creating a taggable post with upload field

2015-08-18 Thread Jaime Sempere
I have just checked a side project that I did today, and noticed that I wasnt able to see the pic either. I have been able to fix it using the upload field: form = SQLFORM(db.person, record, upload=URL('download')) I simply added that : upload=URL('download') to my SQLFORM() syntax and it wo

[web2py] Re: GAE unicodeDecodeError: 'ascii' codec can't decode byte... unable to fix it

2015-08-18 Thread Jaime Sempere
Hi, thanks a lot for the help Paollo, I have tried that but the error is still there with the development version. But... I have been able to 'fix it' I went to _compat.py line 27 and just print the obj: if not isinstance(obj, unicode): print obj return uni

[web2py] Re: Proposal: Documentation in form of a wiki

2015-08-17 Thread Jaime Sempere
I like the idea. I think we would need something like web2pyslices but in a more modern/updated way... and easy to contribute. Web2py has a lot of details very good to know but difficult to learn or to get. Also it would be great to be able to upload litlle projects (I have just implemented some

[web2py] GAE unicodeDecodeError: 'ascii' codec can't decode byte... unable to fix it

2015-08-17 Thread Jaime Sempere
Hi, I am having problems when I try to deploy my app on local SDK GAE. I can start the app on my local gae, but when I try to register first user, after fill the form and press submit, I got this: Traceback (most recent call last): File "/home/jukvoxman/web2py/gluon/restricted.py", line 227,

[web2py] Re: routes.py confusion

2014-05-26 Thread Jaime Sempere
I guess you did not reload routes.py... from the admin panel there is a botton that says "reload routes.py"... other option (I guess you did this) is restart web2py server El martes, 27 de mayo de 2014 05:23:46 UTC+2, Jesse Ferguson escribió: > > It seems to be working now... I guess it just ta

[web2py] Re: routes.py confusion

2014-05-26 Thread Jaime Sempere
Theorically that should do the trick, and mywebsite.com should load your index page. Just silly question, do you have index.html and def index(): Btw, maybe you are checking in it in no-local server (i mean 'live' server, internet server, or whatever is called), and you are using the general t

[web2py] Re: Verify password does not fit formstyle

2014-05-26 Thread Jaime Sempere
> > Hi Annet, > that looks very nice, but doesn't change anything in my case (same html). Could you copy and past all your definition of def bootstrap3(form, fields) ? The problem is that verify passwords fields (label & input) are not wrapped with like other input fields, leaving him outsi

[web2py] Verify password does not fit formstyle

2014-05-25 Thread Jaime Sempere
Hi, I am having the same issue pointed here by Ricardo Pedroso: https://groups.google.com/forum/#!searchin/web2py/verify$20password$20style/web2py/ZzRYjegMHw8/8iHikvlR23sJ See, I use this: auth.settings.formstyle='bootstrap3' for making the register form in bootstrap style but verify password

[web2py] Re: Failing importing .py module that imports .c file

2014-04-10 Thread Jaime Sempere
ions. > > usually, there are alternatives for "famous" packages that solve with pure > python what c extensions do in the "original" package. A simple google > search for "tweepy gae" brought up this > https://github.com/firelabi/tweepy-gae > >

[web2py] Failing importing .py module that imports .c file

2014-04-09 Thread Jaime Sempere
Hi, I am using Tweepy which uses ssl, and developing on GAE. I donwload Tweepy and put the folder on /modules... then it failed due to I needed ssl module too. I did the same, and then it failed again: ImportError: Cannot import module '_ssl2' _ssl2 is a .c file that is in /modules/ssl/_ssl2

[web2py] Re: Displaying computed data from form submission

2014-01-24 Thread Jaime Sempere
t; code saving them into the global variables. The result set doesn't need to > be persistent, so storing it to the database would be unnecessary. It will > only be displayed to the user once. > > On Friday, January 24, 2014 1:38:01 PM UTC-7, Jaime Sempere wrote: >> >&

[web2py] Re: Warning about using web2py URL rewrite?

2014-01-24 Thread Jaime Sempere
That link is outdated, check this: http://web2py.com/books/default/chapter/29/04/the-core#URL-rewrite And for www.example.com/someapp/default/index to www.example.com/ you only need to do: routers = dict( BASE = dict(default_application='someapp'), ) -- Resources: - http://web2py.com - h

[web2py] Re: Displaying computed data from form submission

2014-01-24 Thread Jaime Sempere
You are not storing the images. When you do : form=FORM(fields, onvalidation=qrparse) Did you guessed qrparse return values are being stored in form or somewhere? You need to store in a cookie, global variable, or maybe in the form (I don't know where you want to show the images). Could y

[web2py] "How much" can be cached?

2014-01-23 Thread Jaime Sempere
I would like to cache every row of my database table, in order to be able to do updates based in the key query. This would be my table: channel :string (Unique) id_playing: integer tstart: integer duration:integer order: integer The querys are like

[web2py] Re: Baffling Problem with Email Verification

2014-01-23 Thread Jaime Sempere
This could be related: https://groups.google.com/forum/#!searchin/web2py/gmail/web2py/CU_1qWYixjI/A2IuDsRDJ_oJ (Although you said that email works in another app which is weird) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (S

[web2py] Re: How to change SQLFORM values after submission and then show the form again?

2014-01-22 Thread Jaime Sempere
Damn... I forgot the link: https://groups.google.com/forum/#!searchin/web2py/prepopulate$20form/web2py/GF2sDS7uWi8/x8SVU09CFIoJ El jueves, 23 de enero de 2014 02:07:19 UTC+1, Jaime Sempere escribió: > > > I don't understand completely the flow of the process... do you have

[web2py] Re: Important New Year News: Edison Award

2014-01-22 Thread Jaime Sempere
Good luck! And glad to hear news like this. I am using again web2py and I am loving it. It was long time ago since I didn't enjoy programming so much. And I think you can see almost everywhere of 'him' the effort of the creators for develope something easy and fast to use. So.. as everyone say

[web2py] Re: How to change SQLFORM values after submission and then show the form again?

2014-01-22 Thread Jaime Sempere
I don't understand completely the flow of the process... do you have two submitt buttons, one for "autocomplete" and the other for "final submit? I am not very sure, but here are my thoughts: What I would do is use SQLFORM.factory something like this: new_post_form = SQLFORM.factory(db.po

[web2py] Can someone clarify me about routes_in and out?

2014-01-19 Thread Jaime Sempere
Hi, I am having some doubts about routes.py I going to explain what I think I understand: routes_in = ( ('/', '/welcome/default/'), ) This will maplocalhost:8000to localhost:8000/welcome/default. What about routes_out? routes_out = ( ('/welcome/default/','/'), ) I guess this

[web2py] Re: How to update the whole column after new insert

2014-01-19 Thread Jaime Sempere
Thanks a lot (and it was great adding support for several playlist), just for future reference there is a small typo on db definition: 'playlist_name' should be 'playlist_title' But I wanted to ask you... I would change the query: query = db.playlist.playlist_title==record.playlist_title

[web2py] Re: How can I use a view in combination with a service ?

2014-01-19 Thread Jaime Sempere
, Stef On 19-01-14 4:37, Jaime Sempere wrote: I have just discovered "services" in web2py xD When I needed to pass a parameter via link is in the classic way: yourlink.com?myvar=value <http://yourlink.com/?myvar=value> and then you can grab them using value=request.vars.myvar

[web2py] Re: automatically count field edits

2014-01-18 Thread Jaime Sempere
> I'm trying to automatically count each time a record is being updated. I > could make a lambda function that worked for a dictionary: > Field('edits', 'integer', compute=lambda r: int(r['edits'] or 0) + 1 ), > > However, I don't get this to work in practice. Can a lambda for edits not > use i

[web2py] Re: call a function inside the same view

2014-01-18 Thread Jaime Sempere
I think you are mixing concepts you cannot return something from process().accepted, you need to return at the end of your "tracer_form()" function, is the function who returns things. In the proccess().accepted you can do some operations, and modify variables that will be later returned b

[web2py] Re: Update table data on form submission

2014-01-18 Thread Jaime Sempere
> > > I have tried this and work, let me know if it's the think you wanted. I have used SQLFORM but i guess the code will be the same for CRUD (I have never used it) Just my workaround, I think there will be a better method perhaps import time # This is required to include time module. impo

[web2py] How to update the whole column after new insert

2014-01-18 Thread Jaime Sempere
Hi everyone, Although I have used database serveral times, I have not done anything beyond very basic, so I am wondering what would be the best practice for this case: I have a database table for storing a 'real-time' playlist of songs like this: db.define_table('playlist',Field('title','st

[web2py] Architecture & hosting considerations. Just 1 query/minute but "high" traffic app

2014-01-14 Thread Jaime Sempere
Hi everyone, I plan to do an app for webs that have about 10k-100k visits per day. This app would be an iframe of my own webpage/app. I don't need a lot of bandwith (say that I will send an STATIC page, size less than 30-20kb per request), but I need to update some data of this static page

[web2py] Can't get web2py working with GAE locally

2014-01-02 Thread Jaime Sempere
Hi everyone, this is driving me mad. I used web2py and GAE one year ago and I liked a lot, fast and easy to work with gae. Now that I wanted to start another app, I have download GAE and Web2Py again (for having last releases and starting in a clean&new folder). So, first change that I see is t

[web2py] Re: does Field attribiute unique=True work on GAE?

2013-03-25 Thread Jaime Sempere
Sorry to bump this up, but I have not been able of using unique as it is described here (no validators). Also I have tried to use instead of unique IS_NOT_IN_DB as in this other thread is suggested: https://groups.google.com/forum/?fromgroups=#!searchin/web2py/gae$20unique/web2py/ZepLjcBowZs/Fu

[web2py] Re: session vs cookies performance

2013-03-10 Thread Jaime Sempere
Thanks for the answer and the advice. After reading your answers I think I will use just simple sessions, as you said it makes sense. If in the future I need something more, I'll try the sessions in cookies, sounds like a good alternative. El domingo, 10 de marzo de 2013 14:43:10 UTC+1, Anthon

[web2py] Re: session vs cookies performance

2013-03-10 Thread Jaime Sempere
El domingo, 10 de marzo de 2013 14:32:59 UTC+1, Niphlod escribió: > > > > On Sunday, March 10, 2013 2:20:02 PM UTC+1, Jaime Sempere wrote: >> >> Thanks for your answer. >> >> I am not storing too much, currenty I am storing for every user these >> st

[web2py] Re: session vs cookies performance

2013-03-10 Thread Jaime Sempere
Thanks for your answer. I am not storing too much, currenty I am storing for every user this string: facebook_id another string for the category of the forum where the user is right now the thread page were the user is the page of thread list This is for every user. I've been trying to use cooki

[web2py] session vs cookies performance

2013-03-09 Thread Jaime Sempere
Hi, I have an application for facebook where I need to store some variables. The application is like a little forum but with just one page and everything is loaded via Ajax calls, so I need to store for example, the user that is logged in, the page of the forum where he is right now... etc. N

Re: [web2py] GAE "orderby date" not working

2013-03-06 Thread Jaime Sempere
Thanks a lot for pointing me the way, now is working I am a beginner in web2py & GAE and I didn't know anything about index.yaml. I was developing locally with web2py and uploading directly to GAE (in the beginning I used locally GAE, but later I skipped this step). So index.yaml was not being

Re: [web2py] Re: proper way to transform a query GAE #1

2013-03-06 Thread Jaime Sempere
Thanks a lot for pointing me the way, now is working I am a beginner in web2py & GAE and I didn't know anything about index.yaml. I was developing locally with web2py and uploading directly to GAE (in the beginning I used locally GAE, but later I skipped this step). So index.yaml was not being

[web2py] GAE "orderby date" not working

2013-03-06 Thread Jaime Sempere
Hi, I've been searching about this but can't found any info abut it. I have an application which locally work well, but when I upload and test it in google app engine this line gives me error: for row in db(db.posts.thread_id==thread_id).select(orderby=db.posts. post_date): Google app en

Re: [web2py] Re: Best Method to implement a "like" button

2013-03-05 Thread Jaime Sempere
A little correction for any future visitor: compute= lambda row: "%(username)s-%(songname)s-%(playlist_name)s"), should be: compute= lambda row: "%(username)s-%(songname)s-%(playlist_name)s" %row), Anyway the solution is great. Thanks a lot. El miércoles, 12 de septiembre de 2012 00:54:45 UTC+2,

Re: [web2py] 'Morsel' object has no attribute 'split' ?

2013-02-27 Thread Jaime Sempere
Hi, i'm getting mad using facebook.py, I cannot get it work. Anyway, I have almost been able of using your facebook.py, but I am using Google App Engine, so urllib doens't work there. Web2py book suggest using fetch instead of urllib for GAE: http://web2py.com/books/default/chapter/29/14#Fetchi