Re: [web2py] Re: Using a recursive select but encountered a broken reference

2019-05-22 Thread Carlos Cesar Caballero Díaz
No, I have just found the issue, I am using record versioning in tables, and the child record was removed, this does not trigered the cascade, so, the parent record was not removed and the recursive select was failing when tries to access to a "deleted" record. Greetings. El 22/5/19 a las

[web2py] Using a recursive select but encountered a broken reference

2019-05-22 Thread Carlos Cesar Caballero Díaz
Hi guys, I have some weird issue here, I have a "Using a recursive select but encountered a broken reference" error in a field wish seems to have a valid reference. This is happening with a very specific record in a MySQL database. Any Idea? Greetings. -- Resources: - http://web2py.com -

Re: [web2py] bye bye T, welcome pluralize

2019-05-02 Thread Carlos Cesar Caballero Díaz
yes, I will think how to implement that, maybe as a bottle plugin or something, because right now move translation from one web2py application to another is one of that things that I think can improve in my workflow. Greethings. El 2/5/19 a las 3:02 a.m., Massimo Di Pierro escribió: I would

Re: [web2py] bye bye T, welcome pluralize

2019-04-29 Thread Carlos Cesar Caballero Díaz
It looks good!! I can work to support categories if you think it worth it. Allow something like T("string", "category") or T("string", cat="category"). A category would map to an specific folder of json internationalization files, if there is no category specified, it will map to a default

Re: [web2py] Re: Web3py

2019-04-19 Thread Carlos Cesar Caballero Díaz
Well, that's a really fair concern, I was just mentioning, because I like ORMs and other popular projects like SQLAlchemy includes a DAL (they call it SQL abstraction toolkit) and an ORM on top of it, and if you look at popular web development full stack frameworks, almost all of them are

Re: [web2py] Re: Web3py

2019-04-19 Thread Carlos Cesar Caballero Díaz
Yes, but that's not about the number of code lines, that's about the code organization and readability. Greetings. El 19/4/19 a las 4:17 p.m., Anthony escribió: In the case of the weppy ORM in particular, though, I think it really is just alternative syntax for everything that can already be

Re: [web2py] Re: Web3py

2019-04-19 Thread Carlos Cesar Caballero Díaz
As almost everything in our world ORMs has advantages and disadvantages. The main criticism about ORMs is that they are leaky abstractions, that means they leaks details that it is supposed to abstract away, because there are times when you just need to use, for example, SQL directly or work

Re: [web2py] Re: Web3py

2019-04-18 Thread Carlos Cesar Caballero Díaz
Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm. I think including something like this with pydal will be a really good improvement. Greetings. El 12/4/19 a las 4:33 p.m., Massimo Di Pierro escribió: Can you make it a module on pypi? Or should we include it in pydal? --

Re: [web2py] Re: Web3py

2019-04-12 Thread Carlos Cesar Caballero Díaz
I reaaly would like to use an ORM with web3py, in my opinion ORMs are better for organization when apps grow big and I like a lot the fat models and thin controllers approach, and it is some messy with pydal right now

Re: [web2py] Recursive table relation

2019-04-06 Thread Carlos Cesar Caballero Díaz
That's a typo :) El 6/4/19 a las 8:24 p.m., Leonel Câmara escribió: Possibly because you have require instead of requires? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Recursive table relation

2019-04-06 Thread Carlos Cesar Caballero Díaz
Hi, I have this table definition: db.define_table('organization',     Field('name', 'string', require=[IS_ALPHANUMERIC(), IS_NOT_EMPTY(), IS_NOT_IN_DB(db, 'organization.name')], label=T('Name')),     Field('description', 'text', label=T('Description')),     Field('parent', 'reference

Re: [web2py] web3py again....

2019-03-30 Thread Carlos Cesar Caballero Díaz
So far looks good, but I would prefer that the application include (or import) the framework instead of the framework include the application. With the first one, pip based deployments and CI/CD will be a lot easier. I have being playing with bottle a lot recently, so if there is some web3py

Re: [web2py] Re: standalone templates

2019-02-26 Thread Carlos Cesar Caballero Díaz
We still are not working in models, we want to treat some rough edges first with controllers overriding and views. But it should be included as an app component (just like cache and session). Greetings. El 26/2/19 a las 12:41 a.m., Massimo Di Pierro escribió: nice work. Have you used it with

Re: [web2py] Re: standalone templates

2019-02-25 Thread Carlos Cesar Caballero Díaz
Hi Massimo,sorry about the delay in responding, I was really busy last week. There is a small example of what we get right now (now using yatl) https://github.com/daxslab/mojito BTW the new helpers and refactored code looks much better. Greetings. El 18/2/19 a las 1:49 p.m., Massimo Di

Re: [web2py] Re: standalone templates

2019-02-17 Thread Carlos Cesar Caballero Díaz
Awesome!! I will test it ASAP. A colleague and I have been playing with your idea of a bottle-based framework and it has became a quite good exercise. So far right now we got this https://github.com/daxslab/ron Greetings. El 17/2/19 a las 9:52 p.m., Massimo Di Pierro escribió: Thanks for all

Re: [web2py] Web2py Website seems like abandoned...

2019-01-30 Thread Carlos Cesar Caballero Díaz
Hi, a long time ago I built this material inspired proposal (https://github.com/cccaballero/web2py-examples-proposal), I am not sure if it's good right now, but indeed I think that the web2py site needs a new and modern look. Greetings. El 30/1/19 a las 6:52 a.m., António Ramos escribió:

Re: [web2py] Re: standalone templates

2019-01-28 Thread Carlos Cesar Caballero Díaz
Nothing, but I was looking for a way that the user could directly call render and pass his own arguments and render the template with some objects passed to the environment by default. But don't worry, now I have included the possibility to use more than one template engine, so I will make

Re: [web2py] Re: Dont allow delete specific records in grid

2019-01-28 Thread Carlos Cesar Caballero Díaz
Thanks a lot Antony, that's exactly what I need. Greetings. El 28/1/19 a las 8:22 a.m., Anthony escribió: You might find this helpful: https://stackoverflow.com/a/54200430/440323 Note, using the deletable argument in this case could be a bit inefficient because it will need to do a database

Re: [web2py] Re: standalone templates

2019-01-28 Thread Carlos Cesar Caballero Díaz
Hi Antony, Thanks. I am experimenting with the Massimo idea of a bottle based framework using web2py components, And I was looking if there was an equivalent of the jinja2 "Environment.globals". The code is in https://github.com/daxslab/ron Greetings. El 28/1/19 a las 8:16 a.m., Anthony

[web2py] Dont allow delete specific records in grid

2019-01-27 Thread Carlos Cesar Caballero Díaz
Hi, is possible to don't allow deleting specific records in the grid? Basically, I have a one to many relation "parent has childs", but it is in cascade mode and I can't change it, so, I need to forbid deleting of parent records who has childs. Greetings. -- Resources: - http://web2py.com

Re: [web2py] Re: standalone templates

2019-01-27 Thread Carlos Cesar Caballero Díaz
Thanks a lot Leonel, I'm looking at it. Greetings. El 27/1/19 a las 6:11 a.m., Leonel Câmara escribió: Carlos look at: https://github.com/web2py/web2py/blob/master/gluon/compileapp.py Specifically the funtion *run_view_in* -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] standalone templates

2019-01-23 Thread Carlos Cesar Caballero Díaz
direction  Thanks SP On Wed, Jan 23, 2019 at 7:42 PM Carlos Cesar Caballero Díaz <mailto:carlos.caball...@cfg.jovenclub.cu>> wrote: Hi sandeep patel, thanks for your answer. In my use case I am using the template module outside web2py as a standalone package, and I need to in

Re: [web2py] standalone templates

2019-01-23 Thread Carlos Cesar Caballero Díaz
On Wed, Jan 23, 2019 at 6:39 PM Carlos Cesar Caballero Díaz <mailto:carlos.caball...@cfg.jovenclub.cu>> wrote: Hi guys, I am using the web2py templates in a side project and I want to include some variables in the environment by default, something like how h

[web2py] standalone templates

2019-01-23 Thread Carlos Cesar Caballero Díaz
Hi guys, I am using the web2py templates in a side project and I want to include some variables in the environment by default, something like how helpers, request and response are included in the framework, but I can't find how this is done. Any idea? Greetings. -- Resources: -

Re: [web2py] Re: modular web2py - need help

2019-01-06 Thread Carlos Cesar Caballero Díaz
I know it's not too much originality, but perhaps web2py-template? Or perhaps something like insole or markings. Greetings. El 6/1/19 a las 11:56 a.m., Massimo Di Pierro escribió: Fantastic! Thank you. Will include and deploy today or tomorrow. How should we call this package? Massimo On

Re: [web2py] Re: modular web2py - need help

2019-01-06 Thread Carlos Cesar Caballero Díaz
I have created a pydal-like structure for templates, including an initial setup.py and tests (there is also a fix for python 3 when running standalone), you can take a look at https://github.com/cccaballero/web2py/tree/modular_templates/gluon/packages/template Greetings. El 5/1/19 a las 1:18

Re: [web2py] Re: modular web2py - need help

2019-01-06 Thread Carlos Cesar Caballero Díaz
Hi Massimo, there is already a package called template in pypi, how should we name the new template module? Greetings. El 5/1/19 a las 1:18 p.m., Massimo Di Pierro escribió: Anybody wants to help 1) moving the scheduler and validator tests into pydal. 2) moving the template tests into

Re: [web2py] Re: modular web2py - need help

2019-01-03 Thread Carlos Cesar Caballero Díaz
Hi, most of the compatibility imports where moved from gluon to pydal compat module, so, if web2py does not find the 'Cookie' module, is because it either is not imported in gluon or pydal, so, I think that you are not using the modular branch of pydal. Start the steps again as @sitfan post in

Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread Carlos Cesar Caballero Díaz
Hi, this is working for me: git clone --recursive https://github.com/web2py/web2py.git git checkout modular cd web2py/gluon/packages/dal/ git checkout modular cd ../../../ Greetings. El 2/1/19 a las 9:24 p.m., 黄祥 escribió: thx carlos, here is the steps i took | git clone --recursive

Re: [web2py] Happy New Year

2019-01-02 Thread Carlos Cesar Caballero Díaz
Happy new year!! I have answered this in other thread because for some reason I have missed this one, and many of my wishes match yours https://groups.google.com/d/msg/web2py/BskHaFZkVEI/sudO0jdsFgAJ First a question (mostly for curiosity). Why using Bottle instead (for example) Flask or

Re: [web2py] modular web2py - need help

2019-01-02 Thread Carlos Cesar Caballero Díaz
I like a LOT the idea, my initial tests seems to work ok in Python 3.6.7 on Ubuntu except the test_web ones are failing. Tell me please, that one of the new year resolution is to have web2py in pypi :) That's something I would love to help make a reality. This are my wishes: 1- pypi 2- The

Re: [web2py] Re: modular web2py - need help

2019-01-02 Thread Carlos Cesar Caballero Díaz
Guys, I think you need to include the "modular" branch of pydal too: cd gluon/packages/dal/ git checkout modular Greetings. El 2/1/19 a las 4:32 a.m., 黄祥 escribió: same here test using conda | $ uname Darwin $ python -V Python3.7.1 $ git clone --recursive

Re: [web2py] CAS error

2018-12-30 Thread Carlos Cesar Caballero Díaz
wrote: Hi guys, after some clean tests, the issue is not happening with Python 2.7, so it seems to be a Python 3 issue. Greetings. El 29/11/18 a las 1:34 p.m., Carlos Cesar Caballero Díaz escribió: > Hi, I am using the web2py vers

Re: [web2py] synchronizing / backing up my code between local web2py & PythonAnywhere web2py

2018-12-27 Thread Carlos Cesar Caballero Díaz
Maybe this can help: https://blog.pythonanywhere.com/87/ Greetings. El 23/12/18 a las 1:45 p.m., Vlad escribió: What do you guys generally do as far an syncing / backup? I mean, right now I am going back and forth local web2py <-> PythonAnywhere web2py So it's tedious to keep track what

Re: [web2py] Greetings

2018-12-26 Thread Carlos Cesar Caballero Díaz
Thanks! Merry Christmas to everybody too. El 25/12/18 a las 1:10 p.m., Massimo DiPierro escribió: Merry Christmas everybody -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

Re: [web2py] CAS error

2018-12-07 Thread Carlos Cesar Caballero Díaz
, the issue is not happening with Python 2.7, so it seems to be a Python 3 issue. Greetings. El 29/11/18 a las 1:34 p.m., Carlos Cesar Caballero Díaz escribió: > Hi, I am using the web2py version > 2.17.2-stable+timestamp.2018.10.06.18.54.02 in Ubuntu Linux, and

Re: [web2py] CAS error

2018-11-29 Thread Carlos Cesar Caballero Díaz
Hi guys, after some clean tests, the issue is not happening with Python 2.7, so it seems to be a Python 3 issue. Greetings. El 29/11/18 a las 1:34 p.m., Carlos Cesar Caballero Díaz escribió: Hi, I am using the web2py version 2.17.2-stable+timestamp.2018.10.06.18.54.02 in Ubuntu Linux, and I

[web2py] CAS error

2018-11-29 Thread Carlos Cesar Caballero Díaz
Hi, I am using the web2py version 2.17.2-stable+timestamp.2018.10.06.18.54.02 in Ubuntu Linux, and I am not able to use CAS. I have a web2py app as server, an another as client, and when client try to log in, the browser starts a redirect loop and returns a ERR_TOO_MANY_REDIRECTS error. There

Re: [web2py] Issue between 2.14.5 and 2.17.2

2018-10-25 Thread Carlos Cesar Caballero Díaz
Seems you are using os.path.join() without import the os module. Greetings. El 25/10/18 a las 11:56 a.m., 'Annet' via web2py-users escribió: After upgrading from web2py 2.14.5 to 2.17.2 and editing a model file I got the following error: Traceback(most recent call last):

Re: [web2py] Re: Vue + web2py + Vuetify

2018-09-11 Thread Carlos Cesar Caballero Díaz
Hi António, the link is referencing an empty project. Greetings. El 11/09/18 a las 06:08, António Ramos escribió: here is the correct link https://codepen.io/pen/?=101 2018-09-03 1:48 GMT+01:00 黄祥 >: perhaps you can give some example about that (git

[web2py] Stats from Jetbrains

2018-09-04 Thread Carlos Cesar Caballero Díaz
Hi, there are some interesting stats published by Jetbrains https://www.jetbrains.com/research/devecosystem-2018/python/ Greetings. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] pydal metadata in db

2018-09-02 Thread Carlos Cesar Caballero Díaz
I like it. Greetings. El 02/09/18 a las 14:08, Massimo Di Pierro escribió: We you may know web2py has the ability to store table metadata in DB: from gluon.dal import InDBMigrator db = DAL(myconf.get('db.uri'), adapter_args=dict(migrator=InDBMigrator)) This is better for scalability as

Re: [web2py] no stack trace in error ticket (Python 3)

2018-09-01 Thread Carlos Cesar Caballero Díaz
Ok, tested in Ubuntu 18.04 (simply using "2/0" in the index function of default controller) using Python 3.6 and Python 3.7 and the issue is still present. El 01/09/18 a las 12:28, Carlos Cesar Caballero Díaz escribió: maybe is related with Python version, let me test El 01/09/1

Re: [web2py] no stack trace in error ticket (Python 3)

2018-09-01 Thread Carlos Cesar Caballero Díaz
maybe is related with Python version, let me test El 01/09/18 a las 11:44, Alex escribió: Hi Carlos, thanks for your response. On a Mac with Python 3.7 this does not seem to happen. Does anyone know if it is related to the OS or Python version? Alex On Saturday, September 1, 2018 at

Re: [web2py] no stack trace in error ticket (Python 3)

2018-09-01 Thread Carlos Cesar Caballero Díaz
Hi Alex, seems a bug with Python 3, I have created an issue for this a couple days ago https://github.com/web2py/web2py/issues/1998 Greetings. El 01/09/18 a las 11:22, Alex escribió: Hi, I created a new application on the admin page and added a simple error in the default/index controller,

Re: [web2py] web2py hangs uploading file

2018-08-29 Thread Carlos Cesar Caballero Díaz
e", "refrence dar_resource") Anyway, I think that it should rise an exception instead of the current behavior. Greetings. El 29/08/18 a las 13:45, Carlos Cesar Caballero Díaz escribió: Hi guys, I am trying to manually upload a file, but this code:     file_sto

[web2py] web2py hangs uploading file

2018-08-29 Thread Carlos Cesar Caballero Díaz
Hi guys, I am trying to manually upload a file, but this code:     file_store = db.dar_resource_file.file.store(request.vars.file.file, request.vars.file.filename) db.dar_resource_file.update_or_insert(db.dar_resource_file.resorce=resource_id, resource=resource_id, name=resource_name,

Re: [web2py] Re: DAL MySQL text type

2018-08-21 Thread Carlos Cesar Caballero Díaz
Great, Thanks!! El 20/08/18 a las 15:49, Anthony escribió: On Monday, August 20, 2018 at 2:41:22 PM UTC-4, Carlos Cesar Caballero wrote: Thanks Anthony, LONGTEXT is exactly what I need. But in case of necessity, how "experimental" is that feature? Should I be worried about

Re: [web2py] Re: DAL MySQL text type

2018-08-20 Thread Carlos Cesar Caballero Díaz
Thanks Anthony, LONGTEXT is exactly what I need. But in case of necessity, how "experimental" is that feature? Should I be worried about unnoticed API changes?. Greetings. El 18/08/18 a las 17:48, Anthony escribió: The DAL uses LONGTEXT for text fields in MySQL. If you'd like to use an

Re: [web2py] Re: DAL MySQL text type

2018-08-18 Thread Carlos Cesar Caballero Díaz
Hi, Erick, thanks for your answer, there are the DAL types and the default validators, but there are no mention about the adapters field types, for example, in MySQL text can be stored in fields of types TEXT, MEDIUMTEXT or LONGTEXT. I am asking for the type used in the MySQL DB, and if is

[web2py] DAL MySQL text type

2018-08-16 Thread Carlos Cesar Caballero Díaz
Hi guys, what kind of data type uses pydal in MySQL for "text" type?, if it is TEXT, is possible to set it for using MEDIUMTEXT or LONGTEXT? Greetings. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: Infinite loading

2018-06-29 Thread Carlos Cesar Caballero Díaz
Thanks Leonel, I am trying to build a generic solution, if everything goes fine I will share. Greetings. El 28/06/18 a las 13:40, Leonel Câmara escribió: You should probably use the intersection observer now but here's a particularly stupid way to do it (also because it fires for every

Re: [web2py] Re: Infinite loading

2018-06-28 Thread Carlos Cesar Caballero Díaz
Thanks Dave, I'm looking. Greetings. El 27/06/18 a las 16:11, Dave S escribió: On Wednesday, June 27, 2018 at 6:33:28 AM UTC-7, Leonel Câmara wrote: Do you mean that as you scroll more results are loaded? This isn't really a web2py problem, it's a matter of implementing it in

Re: [web2py] Re: Infinite loading

2018-06-28 Thread Carlos Cesar Caballero Díaz
Hi Leonel, thanks for your answer, I know that's not a web2py problem, I was asking if someone has built a plugin or something including that feature, for example, I work also with the Yii2 PHP framework, and there is: https://github.com/kop/yii2-scroll-pager Greetings. El 27/06/18 a las

[web2py] Infinite loading

2018-06-26 Thread Carlos Cesar Caballero Díaz
Hi guys, there is some infinite loading implementation for web2py out there? Greetings. -- 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

Re: [web2py] Last version supporting Python 2.6

2018-06-18 Thread Carlos Cesar Caballero Díaz
improved Teradata support   improved mongodb support   overall refactoring   experimental support for Google Cloud SQL v2   new pymysql driver On Mon, Jun 18, 2018 at 10:48 AM, Carlos Cesar Caballero Díaz mailto:carlos.caball...@cfg.jovenclub.cu>> wrote: Hi guys,

[web2py] Last version supporting Python 2.6

2018-06-18 Thread Carlos Cesar Caballero Díaz
Hi guys, what was the last web2py version supporting Python 2.6? Greetings. -- 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

Re: [web2py] Improve HTML page load

2018-06-11 Thread Carlos Cesar Caballero Díaz
The first thing is identifying the reason of the slow load. Is the render of the view, the controller, or the data access? you can debug or strip parts of your code to find that. By example, if your code loads too many questions and/or answers it will be really slow because there will be too

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-24 Thread Carlos Cesar Caballero Díaz
's there when you download web2py build from web2py.com... What's weird is that I didn't have the issue... Richard On Mon, Apr 23, 2018 at 12:39 PM, Carlos Cesar Caballero Díaz <carlos.caball...@cfg.jovenclub.cu <mailto:carlos.caball...@cfg.j

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Carlos Cesar Caballero Díaz
) And report here if it help... Richard On Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar Caballero Díaz <carlos.caball...@cfg.jovenclub.cu <mailto:carlos.caball...@cfg.jovenclub.cu>> wrote: I have the same issue, using the current master branch in Ubuntu.

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Carlos Cesar Caballero Díaz
'welcome.w2p', 'applications', 'welcome') And report here if it help... Richard On Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar Caballero Díaz <carlos.caball...@cfg.jovenclub.cu <mailto:carlos.caball...@cfg.jovenclub.cu>> wrote: I have the same issue,

Re: [web2py] Re: Get rows by id list keeping the order

2018-04-23 Thread Carlos Cesar Caballero Díaz
Thanks Leonel, that sounds interesting, I will take a look. Greetings. El 23/04/18 a las 11:30, Leonel Câmara escribió: I would make a function that automatically generated case statements for the orderby | defmake_orderby(idlist):     result="CASE" fori,el inenumerate(idlist):        

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Carlos Cesar Caballero Díaz
I have the same issue, using the current master branch in Ubuntu. Greetings. El 21/04/18 a las 08:21, Richard Vézina escribió: Actually I can't reproduced... It could it be a permission error?? Try to clone it fresh some where you have full access with this command : git clone --recursive

Re: [web2py] web2py 2.16.1 and login menu on mobile systems NOT WORKING

2018-04-22 Thread Carlos Cesar Caballero Díaz
Yes, I usually use a newer bootstrap version, and make some fixes in the layout bar. Testing the trunk I can see that is fixed, but there are some responsive issues. Is there some issue open about this? If there is no one working I can send some fixes. Greetings. El 22/04/18 a las 15:54,

Re: [web2py] please help us test trunk web2py

2018-04-22 Thread Carlos Cesar Caballero Díaz
Hi, I was testing and there are some issues with the DAL parse_as_rest and Python 3. There are also some style issues with the welcome app navbar. I can work in the navbar if no one is working. Greetings. El 24/02/18 a las 21:44, Massimo Di Pierro escribió: Please help us test the version

Re: [web2py] Re: Get rows by id list keeping the order

2018-04-22 Thread Carlos Cesar Caballero Díaz
Thanks Anthony, I will go with the first option and guess how to adapt it to postgress too. Greetings. El 22/04/18 a las 12:12, Anthony escribió: On Sunday, April 22, 2018 at 11:46:13 AM UTC-4, Carlos Cesar Caballero wrote: Hi guys, I have a list of ids, and I need to obtain the

[web2py] Get rows by id list keeping the order

2018-04-22 Thread Carlos Cesar Caballero Díaz
Hi guys, I have a list of ids, and I need to obtain the records keeping the list order. In MySQL I can use FIELD() in the "order by" for that. Can I get the ordered records using the DAL? Greetings. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] web2py, nginx and big files

2018-04-22 Thread Carlos Cesar Caballero Díaz
... Richard On Fri, Apr 20, 2018 at 10:39 AM, Carlos Cesar Caballero Díaz <carlos.caball...@cfg.jovenclub.cu <mailto:carlos.caball...@cfg.jovenclub.cu>> wrote: El 19/04/18 a las 16:21, Richard Vézina escribió: Ah ok, make sens then. Are you storing the file in database or

Re: [web2py] web2py, nginx and big files

2018-04-20 Thread Carlos Cesar Caballero Díaz
issues to solve. I try to make some research and get back to you if I can fin anything that could help. Good luck Thanks, I'll be very grateful (more grateful :D). Greetings Richard On Wed, Apr 18, 2018 at 10:37 PM, Carlos Cesar Caballero Díaz <carlos.caball...@cfg.jovenclub

{Disarmed} Re: [web2py] Re: Exception while handling exception at gluon/streamer.py (python 3)

2018-04-19 Thread Carlos Cesar Caballero Díaz
With Python 3 there are definitely issues with the error traces. Sometimes is difficult to find what is failing. Greetings. El 19/04/18 a las 13:50, Antonio Salazar escribió: Is anyone running into this issue? It's happening both in Windows and Linux. Should I postpone migrating to python3?

Re: [web2py] web2py, nginx and big files

2018-04-18 Thread Carlos Cesar Caballero Díaz
ed, Apr 18, 2018 at 1:45 PM, Carlos Cesar Caballero Díaz <carlos.caball...@cfg.jovenclub.cu <mailto:carlos.caball...@cfg.jovenclub.cu>> wrote: Thanks Richard, It seems to be working now. The files can be several Gigabytes. Greetings. El 17/04/18 a las 13:10, R

Re: [web2py] web2py, nginx and big files

2018-04-18 Thread Carlos Cesar Caballero Díaz
Good luck Richard On Tue, Apr 17, 2018 at 12:10 PM, Carlos Cesar Caballero Díaz <carlos.caball...@cfg.jovenclub.cu <mailto:carlos.caball...@cfg.jovenclub.cu>> wrote: Hi, I have a web2py + nginx setup (https://github.com/arisobel/web2py_scripts/blob/master/setup-web2py-ng

[web2py] web2py, nginx and big files

2018-04-17 Thread Carlos Cesar Caballero Díaz
Hi, I have a web2py + nginx setup (https://github.com/arisobel/web2py_scripts/blob/master/setup-web2py-nginx-p3-uwsgi-ubuntu.sh) and I need to upload big files to my application, the app is working ok with the built in server, but with nginx the form submission fails with no response when

Re: [web2py] Re: Off Topic:Pony

2018-03-15 Thread Carlos Cesar Caballero Díaz
Personally I will only see PonyORM as a viable tool if they finally implement a working migrations tool. Greetings. El 16/03/18 a las 00:22, Massimo Di Pierro escribió: yes this it nice. We should take the time to determine which features of pydal are missing in ponyorm if any. If not maybe

Re: [web2py] PYTHON 3

2018-02-11 Thread Carlos Cesar Caballero Díaz
PS: For the love of all that's holy, please don't name it web3py. :) -- 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

Re: [web2py] POST api return 405

2018-02-01 Thread Carlos Cesar Caballero Díaz
Hi, is a little difficult to get an idea of the issue without some code to reproduce it. Greetings. El 01/02/18 a las 14:04, yogeshwar khalkar escribió: I have POST api in web2py I am accessing it using angular httpclient post service but, it returns 405(method not allow) error. can

{Disarmed} Re: [web2py] Date widget seems boroken on 2.16.1

2018-01-04 Thread Carlos Cesar Caballero Díaz
of the date format. Also edit web2py_ajax.html It is posible have being edited/modified. On Wed, Jan 3, 2018 at 12:20 PM, Carlos Cesar Caballero Díaz <carlos.caball...@cfg.jovenclub.cu> wrote: Hi guys, is just me, or the date widget seems broken on 2.16.1 (see attached image)? Gre

[web2py] Date widget seems boroken on 2.16.1

2018-01-03 Thread Carlos Cesar Caballero Díaz
Hi guys, is just me, or the date widget seems broken on 2.16.1 (see attached image)? Greetings. -- 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

{Disarmed} Re: {Disarmed} [web2py] Showing images or thumbnails in grid view

2017-12-27 Thread Carlos Cesar Caballero Díaz
Hi Jason, take a look at the represent param in the field constructor http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Field-constructor Greetings. El 27/12/17 a las 11:13, jcrowe escribió: I am using grids as a photo manager of sorts. I am looking for a way

[web2py] Cropper.js plugin

2017-12-27 Thread Carlos Cesar Caballero Díaz
Hi guys, I have been working in some applications in this days and I have been working in a plugin for integrating Cropper.js (https://fengyuanchen.github.io/cropperjs/) in web2py, you can find it here https://github.com/cccaballero/web2py-cropperjs Greetings. -- Resources: -

{Disarmed} Re: {Disarmed} Re: {Disarmed} Re: {Disarmed} [web2py] Re: Get reference format representation on dal callbacks

2017-12-22 Thread Carlos Cesar Caballero Díaz
Thank you so much!!! Greetings. El 19/12/17 a las 11:49, Anthony escribió: On Tuesday, December 19, 2017 at 8:48:15 AM UTC-5, Carlos Cesar Caballero wrote: Hi Massimo, thanks for your answer, basically I need the row object instead of the set in the after update callback, I have

{Disarmed} Re: {Disarmed} [web2py] Re: Get reference format representation on dal callbacks

2017-12-19 Thread Carlos Cesar Caballero Díaz
Hi Massimo, thanks for your answer, basically I need the row object instead of the set in the after update callback, I have managed to do this passing the table object to my plugin and making a query. But there is a way to know the table that belongs an after update callback without passing

{Disarmed} [web2py] Re: grid IS_IMAGE validator behavior

2017-12-07 Thread Carlos Cesar Caballero Díaz
Yes, first I crete the entry using the grid add form without problems, when I open the edit form, the image is in the field, but when I submit the form without changes, the validator says that there is no image. El 06/12/17 a las 14:32, Dave S escribió: On Wednesday, December 6, 2017 at

{Disarmed} Re: {Disarmed} [web2py] Re: grid IS_IMAGE validator behavior

2017-12-06 Thread Carlos Cesar Caballero Díaz
That's the issue, I don't want null values, the user shouldn't remove the image without upload a new one, but when I use the grid's edit form, the validation error is triggered if the user edit another field, so the form can't be submitted without uploading a new image. El 06/12/17 a las

[web2py] grid IS_IMAGE validator behavior

2017-12-06 Thread Carlos Cesar Caballero Díaz
Hi, I have being using web2py for some time, but I don't use files too often, now I am using the IS_IMAGE, but using the grid on edit it's throwing a validation error if the user don't set a new image. It's a bug or is the default behavior? -- Resources: - http://web2py.com -

[web2py] Get reference format representation on dal callbacks

2017-12-06 Thread Carlos Cesar Caballero Díaz
Hi, I am building a module (plugin) that is using some "after insert" and "after uptade" dal callbacks. The tables has references (relations) and I need to obtain the referenced table string format instead of it's id in the callback, and I need it to be generic. How can I achieve that?

{Disarmed} [web2py] Re: web2py OpenID or Oauth2 provider

2017-12-05 Thread Carlos Cesar Caballero Díaz
Thanks for your answer Massimo, I will study if is feasible to implement that for this project, or I will use a 3rd party provider. Greetings. El 02/12/17 a las 15:22, Massimo Di Pierro escribió: web2py can be used as Oauth/Open ID consumer but I do not believe anybody has written a provider

[web2py] web2py OpenID or Oauth2 provider

2017-11-29 Thread Carlos Cesar Caballero Díaz
Hi, is out there a working web2py Oauth2 or OpenID provider implementation? The Idea is to use an intranet web2py-bassed application as a auth provider for other services. I know that web2py comes with CAS integrated, but there are not too many software with CAS support. Greetings. --

{Disarmed} Re: {Disarmed} [web2py] Re: Future of web2py

2017-11-11 Thread Carlos Cesar Caballero Díaz
Golang is a restrictive technology, we can't use it from countries like Cuba. From my point of view, it's not a good idea. Greetings. El 04/11/17 a las 12:09, Vinhthuy escribió: Here's a radical and possibly stupid idea for Massimo to think about on a Saturday morning. Forget web3py. 

Re: [web2py] parse_as_rest represent

2017-10-05 Thread Carlos Cesar Caballero Díaz
, parser.error) There is a better way to do it? Greetings. El 04/10/17 a las 13:26, Carlos Cesar Caballero Díaz escribió: Hi, can I use the represent feature (or some alternative) for specify how some specific data should be exposed in my parse_as_rest() rest api? Let's say by example, that I have

[web2py] parse_as_rest represent

2017-10-04 Thread Carlos Cesar Caballero Díaz
Hi, can I use the represent feature (or some alternative) for specify how some specific data should be exposed in my parse_as_rest() rest api? Let's say by example, that I have some field wich use uppercase, but for some reason I need it at lowercase in the rest api. Greetings. --

{Disarmed} [web2py] Re: pytest and controllers protected with auth

2017-08-31 Thread Carlos Cesar Caballero Díaz
Thank you all you guys, right now I am a little busy with other projects, but I will follow your suggestions, and will post my results. Greetings. El 22/08/17 a las 09:57, Richard Vézina escribió: Will try to wrapp up my stuff... It base on web2py.test, but I add a test launcher and extract

{Disarmed} Re: {Disarmed} [web2py] Re: pytest and controllers protected with auth

2017-08-18 Thread Carlos Cesar Caballero Díaz
I have been facing with that issue too, the error is because there are no logged in user, and the redirect is raised, the main problem with this approach is that I have been not able to correctly log in a user... Being honest, I haven't found a satisfactory way for testing web2py

{Disarmed} [web2py] Re: custom filter in grid

2017-08-15 Thread Carlos Cesar Caballero Díaz
Thanks Leonel, I will go with this. Greetings. El 14/08/17 a las 11:34, Leonel Câmara escribió: Here's one way to do it. Note that when I start having this kind of problems I usually stop using the grid and make a custom solution. In the grid, the searchable argument, can be a function. In

{Disarmed} [web2py] Re: custom filter in grid

2017-08-14 Thread Carlos Cesar Caballero Díaz
Yes, that's a possible solution, but I don't want to duplicate information that is already there, I just want to find a way to use it in the way I need. Greetings. El 11/08/17 a las 16:07, 黄祥 escribió: just an idea why not create the new field with the date type with default value =

{Disarmed} [web2py] Re: custom filter in grid

2017-08-11 Thread Carlos Cesar Caballero Díaz
Sitfan, thanks for your answer, I know about that, but is annoying for the users to put datetime values twice and they are asking about use only the day, they don't need to filter in that grid by date and time, just by date. Greetings. El 10/08/17 a las 20:15, 黄祥 escribió: in grid search

[web2py] custom filter in grid

2017-08-10 Thread Carlos Cesar Caballero Díaz
Hi guys, I have a datetime field but I need (using the grid) filter it as a date field, so, if I put something like: mydatetime = 2017-04-04 I need to show all records with datetimes that belongs to this day. Greetings. -- Resources: - http://web2py.com - http://web2py.com/book

{Disarmed} Re: {Disarmed} Re: [web2py] Re: web2py and SEO

2017-06-15 Thread Carlos Cesar Caballero Díaz
Hi, it seems to be working in my apps, can you share how are you using it, and the web2py version? Greetings. El 14/06/17 a las 15:21, rajjmatt...@gmail.com escribió: Did anyone had any success on inserting metadata on layout or SEO ( http://www.web2pyslices.com/slice/show/2048/simple-seo)

{Disarmed} Re: {Disarmed} Re: [web2py] Re: btw: great job

2017-04-26 Thread Carlos Cesar Caballero Díaz
+1, even better, +100 :) Greetings. El 26/04/17 a las 15:53, Alfonso Serra escribió: Great initiative, Lucas. My thanks to Massimo, Anthony, Niphlod and everybody helping and collaborating in the past, present and future of this wonderful framework. -- Resources: - http://web2py.com -

Re: [web2py] testing applications

2017-04-16 Thread Carlos Cesar Caballero Díaz
Hi, there is no problem using the webclient approach, the problem is when I am using the web2pyenv approach ( simulating web2py shell environment), I find it very useful in some cases, but I can't use it with pages that requires registered users. Greetings. El 15/04/17 a las 20:54, Marlysson

  1   2   3   >