Re: [web2py] Re: Polymer and SQLFORM

2017-04-28 Thread Luis Valladares
We choose to use materializecss instead of polymer because polymer was not very stable at the time. El vie., abr. 28, 2017 10:13 AM, escribió: > @Luis Valladares I also like the idea of Polymer + web2py. Where you able > to use both in combination? If so - do you have some example code to

[web2py] Re: Pydal ids customs

2016-10-10 Thread Luis Valladares
It appear that i've sorted this out in the last crazy test, my problem where in filter fields, this was my code before: accion = self.dbNueva.estatus_contratacion.validate_and_insert(**self.dbNueva.estatus_contratacion._filter_fields(x)).as_dict() Where x is a dict with all the fields i want t

[web2py] Re: Pydal ids customs

2016-10-10 Thread luis . valladares
I thin that method doesnt work for me, let me explain better what i want to do: 6 months ago i released a production APP, now we will launch the second version of this app and there are several (big) differences between the database structure in production and the one i will deploy now, but i d

Re: [web2py] Re: Partial flush of request

2016-10-03 Thread luis . valladares
That sounds really promising, thanks a lot! i will test it ASAP and if i have any troubles i will comeback here. El lunes, 3 de octubre de 2016, 12:57:21 (UTC-4), Anthony escribió: > > On Sunday, October 2, 2016 at 11:26:11 PM UTC-4, > luis.va...@metamaxzone.com wrote: >> >> The second sounds g

Re: [web2py] Re: Partial flush of request

2016-10-02 Thread luis . valladares
case of an error, there is anything like that in web2py? El domingo, 2 de octubre de 2016, 11:59:13 (UTC-4), Anthony escribió: > > On Sunday, October 2, 2016 at 7:52:04 AM UTC-4, Luis Valladares wrote: >> >> Because my application has a microservice architecture, this means there

Re: [web2py] Re: Partial flush of request

2016-10-02 Thread Luis Valladares
PM UTC-4, Luis Valladares wrote: > > They expire, when I generate a new token I store it in the database and > send to the user browser, each time the token is expired I generate a new > one, overwrite the token in the database (and because this the other token > is lost) and sent to t

Re: [web2py] Re: Partial flush of request

2016-10-01 Thread Luis Valladares
They expire, when I generate a new token I store it in the database and send to the user browser, each time the token is expired I generate a new one, overwrite the token in the database (and because this the other token is lost) and sent to the user. But that's not really my problem (maybe I don'

[web2py] Partial flush of request

2016-10-01 Thread luis . valladares
Hello! Im creating a website with a microservices architecture, and for authentication i'm using JWT token stored in the cookies, this tokens are automatically renewed each 5 minutes, the basic flow of this is: 1 My front end makes a request to a microservice 2 The microservice check if the tok

[web2py] Re: profanity filter

2016-09-01 Thread luis . valladares
I've found some python packages, maybe it suits your needs: https://pypi.python.org/pypi/profanity/1.1 https://github.com/jared-mess/profanity-filter Or maybe adapting this: https://www.languagetool.org/ El miércoles, 31 de agosto de 2016, 17:34:54 (UTC-4), Alex Glaros escribió: > > anyone have

[web2py] Re: one to many joins repeated parent

2016-08-29 Thread luis . valladares
Hello! Thanks for your help! but it means that for every record inside events table i should do an additional query in the modificators table, so if in a query i want to get 100 events and his modificators i should do 101 queries to the database, i think (im not sure, i'll will talk tomorrow wi

[web2py] Re: how to redirect to an 'external' url in a view?

2016-08-28 Thread luis . valladares
Can you post the full traceback? it seems like youre trying to convert the url to some numeric class. So with the full trace back we can get a clear look of that El domingo, 28 de agosto de 2016, 19:25:10 (UTC-4), Steven Vannoy escribió: > > That seemed promising but gave me an exception with to

[web2py] Re: how to redirect to an 'external' url in a view?

2016-08-28 Thread luis . valladares
Hello! Try this: {{=site.website}} El domingo, 28 de agosto de 2016, 17:29:40 (UTC-4), Steven Vannoy escribió: > > I have a view that displays a database form. One of the fields in that > form is my user's own website. I'd like to display that as an active link > in the browser. I've tried tw

[web2py] one to many joins repeated parent

2016-08-28 Thread luis . valladares
Hello! I've this data structure in my database: i've two tables events and modificators, one event can have many modificators so i've a one to many relation. Im trying to build an HTTP endpoint that returns a json with multiple events and all the asociated modificators, i order to do this i do

[web2py] Mongo list type field update

2016-08-05 Thread luis . valladares
Hello! I'm using pydal to work with a mongoDB database, im using this structure: db.define_table('tarifas', Field('fk_hotel_id', 'integer', required=True, notnull=True,

[web2py] Re: web2py session disable

2016-07-23 Thread luis . valladares
Here is my ticket traceback: Traceback (most recent call last): File "/usr/share/nginx/html/web2py/gluon/main.py", line 457, in wsgibase session._try_store_in_db(request, response) File "/usr/share/nginx/html/web2py/gluon/globals.py", line 1158, in _try_store_in_db self.save_session_i

[web2py] Re: web2py session disable

2016-07-21 Thread luis . valladares
Thanks for your help but didnt work, im havin a ticket using (), the ticket say something about key_session_cookie not existing in _thread().local Anyone has disabled python sessions succesfully and can guide me how to do it? El jueves, 21 de julio de 2016, 2:57:00 (UTC-4), T.R.Rajkumar escri

[web2py] Re: web2py session disable

2016-07-20 Thread luis . valladares
Hello! Anyone can help here? im having exactly the same issue, my route is: routes_in = [('/init', '/init', dict(web2py_disable_session=True)] and i'm getting a ticket with any route in my system but if i comment that everything start working fine. I dont use the session mechanism of web2py in

[web2py] standalone pyDAL dont close connections

2016-05-25 Thread luis . valladares
Hello! Im using pyDAL with falcon (http://falconframework.org/) for microservices building but im having troubles in the way pyDAL handle the connections, i think pydal isnt telling my MySQL server to close the connection after each query, i've writen an example method with just a select, and p

[web2py] Invalid function after compiling app

2016-04-24 Thread luis . valladares
Hello! i've a web2py app that works well, my default controller is "inicio" and his default function is index, so the index page of my app si app/inicio/index, this works well uncompiled, but when i go to the web2py admin app and compile this app the next request returns: invalid function (ini

[web2py] web2py slices down

2016-04-24 Thread luis . valladares
Web2py slices (http://www.web2pyslices.com/home) is down, shows a ticket when try to access Internal errorTicket issued: unknown -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2

[web2py] mongoDB dal adapter and dbref

2016-04-21 Thread luis . valladares
Hello! I've been looking in web2py book and in pydal documentation searching information about the implementation of mongo database reference (https://docs.mongodb.org/manual/reference/database-references/) but didnt find anything. This is implemented in some way by pyDAL? Thanks for your help

[web2py] Re: Bootstrap is really killing web2py

2016-03-21 Thread Luis Valladares
Hello! I agree with this post subject about bootstrap killing web2py, i use web2py in 4 different projects using CSS framewors like materialize, material design lite and material-ui and its really hard to use things like SQLFORM.smartgrid because it has the classes hardcoded, maybe this can be

[web2py] Re: Alternate way for ticket handling

2016-03-07 Thread luis . valladares
I dont want to be anoying but i still need some help and didnt find any information. My "solution" cant catch models or views errors. Thanks! El lunes, 22 de febrero de 2016, 16:45:26 (UTC-4:30), luis.va...@metamaxzone.com escribió: > > Hello! > > I want to manage and catch all the error of my

[web2py] Alternate way for ticket handling

2016-02-22 Thread luis . valladares
Hello! I want to manage and catch all the error of my website using sentry (https://getsentry.com/welcome/), reading some post in this forum i found this: https://groups.google.com/forum/#!searchin/web2py/disable$20tickets$20error/web2py/0E73_7KbGJI/9WEfWCpty-4J Based in that solution i've cre

Re: [web2py] Re: web2py 2.13.3 is OUT

2015-12-30 Thread Luis Valladares
30, 2015 at 4:07:35 PM UTC-8, Luis Valladares wrote: >> >> All my applications are REST so CAS doesn't work I think >> > > Currently not requiring login? You're using the REST decorator? And you > want to add JWT for security? > > In that directio

Re: [web2py] Re: web2py 2.13.3 is OUT

2015-12-30 Thread Luis Valladares
All my applications are REST so CAS doesn't work I think El dic. 30, 2015 7:19 PM, "Dave S" escribió: > On Wednesday, December 30, 2015 at 2:33:46 PM UTC-8, > luis.va...@metamaxzone.com wrote: >> >> What if i've two different applications (event in two differents >> machines) one for the front en

[web2py] Re: web2py 2.13.3 is OUT

2015-12-30 Thread luis . valladares
What if i've two different applications (event in two differents machines) one for the front end of my site (all my views, form, etc...) and other to authenticate my users, i mean, a micro service architecture. El jueves, 24 de diciembre de 2015, 10:51:42 (UTC-4:30), Massimo Di Pierro escribió:

[web2py] HTML5 Local storage and web2py

2015-12-28 Thread luis . valladares
Hello! I want to use the HTML5 Local Storage (http://diveintohtml5.info/storage.html) to store session and other persisent data of my web2py application. There is any way to do this inside web2py or i must do this only with javascript? Maybe it could be an interesting feature to add if it does

[web2py] Re: best way to execute eternal js

2015-12-23 Thread luis . valladares
Okay this is a really great idea and i can use it perfectly, but i wonder (only for making it easy to me) if there is a way to do this with a javascript that depends of the data associated with the page request? maybe a way to pass all the params recieved by the view from the controller to my s

[web2py] Re: best way to execute eternal js

2015-12-23 Thread luis . valladares
the first solution is a very good approach to my problem because i've a considerable amount of python code inside my javascript, in fact if i define variables for this content i will have between 80-120 vars per view. But i still have one problem with this solution: For the navigator is exactly

[web2py] Re: best way to execute eternal js

2015-12-23 Thread luis . valladares
Yes, inside my javascript i have a lot of web2py helpers for string internationalization and even for looping between a dictionary of data and generating a set of markers for google maps, also i use the web2py URL helpers for the ajax requests URL. I can change the way i handle the loop and the

[web2py] best way to execute eternal js

2015-12-23 Thread luis . valladares
Hello! I've been analyzing how to work around in the best form an "issue", this doesnt affect the functionality of my code but it is against good practices. My website have a full internationalization and uses some variables passed by the controller inside the javascript to generate a highly dy

[web2py] Re: Can web2py "front-end" an API?

2015-10-20 Thread Luis Valladares
What if you use a model-less aplication? thats the way we handled this, we have a web2py application that consumes a lot of microservices, this application doesnt have any DB object and doesnt use the dal, it makes HTTP request to the api inside the controllers (Using the python requests librar

[web2py] Re: PyCharm license for web2py dev - who wants?

2015-10-14 Thread Luis Valladares
+1. Thanks for the info BTW! El domingo, 11 de octubre de 2015, 14:51:16 (UTC-4:30), Francisco Ribeiro escribió: > > Hello all, > > for those who know PyCharm is a great IDE from JetBrains that provides > free licenses for Open Source projects like web2py ( > https://www.jetbrains.com/buy/opens

[web2py] Redis cluster

2015-10-10 Thread Luis Valladares
Hello! I was wondering if exist any implementation or experiencies with redis cluster in web2py? i googled this but cant found anything Here is a link explaining what is redis cluster: http://redis.io/topics/cluster-tutorial Thanks for your help! -- Resources: - http://web2py.com - http://we

Re: [web2py] Re: Web2py celery plugin

2015-10-04 Thread Luis Valladares
dles all > the processing logic. > > The time.sleep(60) means run every minute. > > You would run this task once @reboot so python would handle the interval > between tasks. > > From there, you can use all the internal web2py API including mail.send() > etc > >

[web2py] Re: Web2py celery plugin

2015-10-04 Thread Luis Valladares
command line. > > Is there a particular reason this workflow would not work for you? > > -Mark > > On Saturday, October 3, 2015 at 10:40:47 AM UTC-5, Luis Valladares wrote: >> >> But how can you exec a web2py task (who may uses web2py internal >> components

[web2py] Re: Web2py celery plugin

2015-10-03 Thread Luis Valladares
But how can you exec a web2py task (who may uses web2py internal components like Request, response, db, etc..) with a external celery app? i mean, if i wish to execute a task, for example: To insert a new register in a table of my web2py database, and in enqueue this task to a remote (or local)

[web2py] Re: Interact Web2Py App with Android App Security

2015-10-03 Thread Luis Valladares
What if you create a small REST service for login? in the case of login it can be a get request which sends the username and password (PREVIOUSLY HASHED) check if it exist in web2py database and return 1 if exists, 0 if it doesnt exist. You can connect to the rest service through HTTP request,

[web2py] Re: Multi file upload

2015-09-20 Thread Luis Valladares
e there are some mega-cool-js-hidden-magic? How it works? > And if it works web2py couldn't process request.vars with name like > "file[1]", because request.vars is Storage-object (not array or list!) and > provide dot-property-notation access, so request.vars.fi

[web2py] Re: Questions about authentication and authorization

2015-09-20 Thread Luis Valladares
(UTC-4:30), Luis Valladares escribió: > > Thanks for your answer! > > I've been reading about JWT too, and i consider it for application > authorization, the thing is i dont feel comfortable sending the parameters > through JSON, i prefer to send it via POST parameters and

[web2py] Re: Grid without consulting database

2015-09-20 Thread Luis Valladares
r f in db.dummy_table], > colnames=db.dummy_table.fields) > > > 4. Create a SQLFORM.grid in controller and then replace the rows with your > rows object using the DOM parser. > > grid = SQLFORM.grid(db.dummy_table) > table = grid.element('.web2py_table') > table[0]

[web2py] Polymer and SQLFORM

2015-09-20 Thread Luis Valladares
Hello! I'm building a web2py site and i want to use polymer as my front-end "framework", as you may know polymer uses web elements with custom html tags, i mean, a input is something can be something like I want to integrate this "feature" with the web2py SQLFORM module, after a bit of resea

[web2py] Re: Questions about authentication and authorization

2015-09-14 Thread Luis Valladares
> > > On Monday, September 14, 2015 at 3:35:20 PM UTC-7, Luis Valladares wrote: >> >> Since i do the post i found some interesting articles, and now i have a >> better implementation idea, but i'm still looking for the solution on a >> subject. Here is what i ha

[web2py] Re: Questions about authentication and authorization

2015-09-14 Thread Luis Valladares
Since i do the post i found some interesting articles, and now i have a better implementation idea, but i'm still looking for the solution on a subject. Here is what i have now: I will handle the authentication of my applications using the amazon approach (http://www.thebuzzmedia.com/designing

[web2py] Questions about authentication and authorization

2015-09-14 Thread Luis Valladares
Hello! Im now developing an app that will consume from several microservices, everything done in web2py, and i want to be sure that my app will be the only who makes requests to my service, so in order to do this i have this structure in mind: Use CAS for authentication between the services an

[web2py] Re: Grid without consulting database

2015-09-10 Thread Luis Valladares
Well, that sounds like a big mess of db i/o, i think it will be better to use javascript. Maybe this can be put in a "wish list" for future development in web2py? Thanks for your help! El jueves, 10 de septiembre de 2015, 18:03:01 (UTC-4:30), Leonel Câmara escribió: > > Well there is, but, it'

[web2py] Grid without consulting database

2015-09-10 Thread Luis Valladares
Hello! I'm trying to use SQLFORM.grid (or something like this) to my website, but this page doesnt have a database because it consumes all the data form a service, so i ask the service for the list of records in a table and i recieve it in json format and transform to dictionary. What i want to

[web2py] Restful API

2015-08-21 Thread Luis Valladares
Hello! I want to buid an applicaton using the microservices architecture, in order to do this i will implement some Restful APIs using web2py that will be accesed by my applications using HTTP request. This project will be a large scale application with a huge amount of request, so i need to op

[web2py] Multi file upload

2015-08-12 Thread Luis Valladares
Hello! I'm trying to create a form in order to upload multiple files with description for each file, i've something like this: View: {{=T('Archivo')}} {{=T('Descripción')}}

[web2py] Re: avoid controller to sanitize html

2015-08-07 Thread Luis Valladares
st use the web2py HTML helpers and not bother with XML()). > > Anthony > > On Friday, August 7, 2015 at 11:50:47 AM UTC-4, Luis Valladares wrote: >> >> Hello! >> >> I've a form where i store country, state and municipality and i need to >> dynamcally cha

[web2py] avoid controller to sanitize html

2015-08-07 Thread Luis Valladares
Hello! I've a form where i store country, state and municipality and i need to dynamcally change the value based on the select, i mean: If i select a X country i need to display only the states of the country "X" in the states dropdown, the same with municipality I used a basic approach that i

[web2py] Re: execute model only one time

2015-08-04 Thread Luis Valladares
ble you know how many records should have > (for example, auth_group table), but that's not good for performance. > > > El martes, 4 de agosto de 2015, 11:08:04 (UTC-3), Luis Valladares escribió: >> >> Hello! >> >> Im trying to populate some fields inside

[web2py] execute model only one time

2015-08-04 Thread Luis Valladares
Hello! Im trying to populate some fields inside my database each time is created, things like creating some groups in auth_groups, creating triggers for all the tables and adding some records in other tables, but i want this to be done ONLY when web2py creates the database because a lot of this

[web2py] Create table without crud

2015-08-02 Thread luis . valladares
Hello! I'm trying to define a table within web2py (with audit purpose) that doesnt generate any crud in any site of the website (including the appadmin) because this table only have to be modified using triggers inside the database but i cant find any proper option inside DAL documentation to d

[web2py] Verify password in register

2015-07-23 Thread Luis Valladares
Hello, I've modified the auth_user table using Auth.settings.extra_fields and added 3 fields, the problem is that the verify password field appears at the button of the page after all my custom fields, but the password field is before all my custom fields, I've tried to create a virtual field in