[web2py] Re: cannot reference db.auth_group in model ?

2020-02-12 Thread António Ramos
any help ? thank you Em qua., 12 de fev. de 2020 às 11:31, António Ramos escreveu: > correct model > db.define_table("apps", > Field("title"), > Field("icon"), > Field("bg"), > Field("url"), > fo

[web2py] cannot reference db.auth_group in model ?

2020-02-12 Thread António Ramos
Hello all i have a problem relating a record to auth_group records creating in admin a new record in table menus, referencing one or more auth_group record results in a record with None in visibleTo field. Why ? [image: image.png] db.define_table("apps", Field("title"), Field("icon"),

[web2py] special chars in view, utf8 issue ?!

2020-02-12 Thread António Ramos
Hello i cant understand how to solve this issue. I have a record with portuguese characters "Ações de cada um" that passing it to the view results in a different value. How do i understand it to solve it ? [image: image.png] This is the result in my view My layout has and my view is just

[web2py] Re: current transaction is aborted

2020-02-11 Thread António Ramos
this is the page with error http://myapp_url/appadmin/select/db?query=db.db_clients.id>0 Em ter., 11 de fev. de 2020 às 15:41, António Ramos escreveu: > Any help ??? i upgraded from 17.2 to 18.5 . Could it be the cause ??? > > Error ticket for "fileit"Ticket ID > >

[web2py] current transaction is aborted

2020-02-11 Thread António Ramos
Any help ??? i upgraded from 17.2 to 18.5 . Could it be the cause ??? Error ticket for "fileit"Ticket ID 194.65.91.147.2020-02-11.15-39-28.fb5635a7-2723-474a-9363-6f3eda0a672f current transaction is aborted, commands ignored until end of transaction blockVersão web2py™ Version

[web2py] update from 2.17.2 to 2.18.5 with errors

2020-02-06 Thread António Ramos
Hello just updated web2py from 2.17.2 to 2.18.5 and my app stopped working because of the next error in the code line: auth.messages.verify_email = response.render( 'templates/email_verification.html') web2py™ interface administrativa - site

Re: [web2py] Displaying only certain fields of choice with SQLFORM(...) update

2020-01-28 Thread António Ramos
did you also tried writable=False When a field is marked with writable=False, the field is not shown in create forms, and it is shown readonly in update forms. If a field is marked as writable=False and readable=False, then the field is not shown at all, not even in update forms.

Re: [web2py] Displaying only certain fields of choice with SQLFORM(...) update

2020-01-28 Thread António Ramos
Look in the docs http://web2py.com/books/default/chapter/29/07/forms-and-validators in your controller before showing your form, db.yourtable.yourfield.readable=False!!! Em ter., 28 de jan. de 2020 às 10:29, mostwanted escreveu: > I was wondering if there is a way to show the SQLFORM()

Re: [web2py] Saving a view as an file/image

2020-01-27 Thread António Ramos
for pdf generation this is awesome!!! and has example with web2py https://www.reportbro.com/home/index setup for web2py ... https://www.reportbro.com/docs/setup Em dom., 26 de jan. de 2020 às 14:25, John Bannister escreveu: > Hi All, > > I have hit a bit of a stumbling block and would like to

Re: [web2py] Using Ajax Callback() in a delete functions

2020-01-24 Thread António Ramos
Have you read this ??? A This helper is used to build links. >>> print A('', XML('me'), >>> _href='http://www.web2py.com')>> href='http://www.web2py.com'>clickme Instead of _href you can pass the URL using the callback argument. For example in a view: {{=A('click me',

Re: [web2py] Using Ajax Callback() in a delete functions

2020-01-24 Thread António Ramos
I guess you need to set the target param see here... https://groups.google.com/forum/#!topic/web2py/V_e_c7h0l3A Em sex., 24 de jan. de 2020 às 08:54, mostwanted escreveu: > I have been using the ajax function alot lately, there is a level of > neatness about it. > What I wanna do is to make a

[web2py] Massimo SpaceX contribution and web2py future

2020-01-23 Thread António Ramos
Hi all First i would like to congratulate Massimo for his participation in SPACEX since 2018. My concern is about web2py and py4web support from Massimo. I know he is not the only one, but he is certainly the best value for the future of these 2 frameworks. My question is to Massimo: -Do SPACEX

[web2py] Re: table.insert(**mydict) returns Field auth_user does not belong to the table

2020-01-21 Thread António Ramos
wrong Table!! Thank you!! Em ter., 21 de jan. de 2020 às 16:57, António Ramos escreveu: > Hello this is my model and code. Apparently all is ok but i get the error > *Field auth_user does not belong to the table* > *any help ???* > > > *Code and model* > mydict={&qu

[web2py] table.insert(**mydict) returns Field auth_user does not belong to the table

2020-01-21 Thread António Ramos
Hello this is my model and code. Apparently all is ok but i get the error *Field auth_user does not belong to the table* *any help ???* *Code and model* mydict={"event":"testing testing",*auth_user:4*} db.entities.insert(**mydict) db.define_table( 'events', Field('event', 'text'),

Re: [web2py] py4web - auto-reload

2020-01-20 Thread António Ramos
in 2014 i did this "live reload thing" with web2py https://www.youtube.com/watch?v=zt5gnKk40Zw Em seg., 20 de jan. de 2020 às 15:57, António Ramos escreveu: > I bet it can be done with https://gruntjs.com/ or https://gulpjs.com/ or > the new kid https://parceljs.org/ >

Re: [web2py] py4web - auto-reload

2020-01-20 Thread António Ramos
I bet it can be done with https://gruntjs.com/ or https://gulpjs.com/ or the new kid https://parceljs.org/ Em dom., 19 de jan. de 2020 às 17:40, Jim S escreveu: > Is there a way to get py4web to auto-reload when the source for an app has > changed? > > -Jim > > -- > Resources: > -

[web2py] Re: auth.impersonate not working?!

2020-01-16 Thread António Ramos
apparently have to add_permission like user = auth.login_bare("user", "pwd") auth.add_permission(impersonateGroupID, "impersonate", db.auth_user,0) auth.impersonate(46) return auth.user_id Em qui., 16 de jan. de 2020 às 15:46, António Ramos escrev

[web2py] Re: auth.impersonate not working?!

2020-01-16 Thread António Ramos
bad english in previous email. Sorry about that. the user sysadmin belongs to group "impersonate" ike attached pic in previous email. My code to impersonate user sysadmin as user 25 returns "Forbidden" any help ? Regards António Em qui., 16 de jan. de 2020 às 15:42, Ant

[web2py] Re: auth.impersonate not working?!

2020-01-16 Thread António Ramos
return dict(a=user) Em qua., 18 de dez. de 2019 às 17:52, António Ramos escreveu: > found it > Had to create a group called "impersonate" > then added my user to that membership > then > in my function > user=auth.login_bare("teslaoneday","

Re: [web2py] Re: Web2py survey ??

2020-01-09 Thread António Ramos
THIS IS NOT TO FILL A SURVEY BUT TO CREATE ONE!! somebody just deleted questions and removed options. Not that kind of help we want! Regards Em qua., 8 de jan. de 2020 às 17:19, António Ramos escreveu: > Lets rock ... > > > https://docs.google.com/forms/d/1M7zElUG56fcRbwit8KRWex2

Re: [web2py] Re: Web2py survey ??

2020-01-08 Thread António Ramos
Lets rock ... https://docs.google.com/forms/d/1M7zElUG56fcRbwit8KRWex2Y7mVDmYALKCy-_gBhMEs/edit?usp=sharing feel free to add more questions and/or change the existing ... António Em qua., 8 de jan. de 2020 às 13:33, sandeep patel < patelsandeep...@gmail.com> escreveu: > @ > I agree with you.

[web2py] runing my app from python 2.7.5 to 3.5.9

2019-12-30 Thread António Ramos
Hello i have my app on webfaction running with python 2.7.5. Webfaction has python 3.5.9 installed. Can i just start my app with python 3.5.9 ? will it change any file that can destroy invalidate running it back again with 2.7 in case something will break ? Regards António -- Resources: -

[web2py] Web2py survey ??

2019-12-26 Thread António Ramos
Hi all, i think that it could be important to question users about many things to be known by us all. I think it could serve not only for us that like and use web2py but for others that dont know web2py and get that feeling "web2py what???" when you suggest web2py . Someone care for a google

[web2py] Re: auth.impersonate not working?!

2019-12-18 Thread António Ramos
found it Had to create a group called "impersonate" then added my user to that membership then in my function user=auth.login_bare("teslaoneday","youwish...") user=auth.impersonate(25) Not it works as expected... Regards Em qua., 18 de dez. de 2019 às

[web2py] auth.impersonate not working?!

2019-12-18 Thread António Ramos
hello i have a controller function that is called as a get/post request this functions then needs to log as a specific user before manipulating data from tables. 4 is my user id def checkLoad(): user=auth.impersonate(4) return "ok" When i call it with postman or something to test my

Re: [web2py] Re: Off topic : visual diagrams anyone ???

2019-12-03 Thread António Ramos
havent gone far with it but i intend to automate the generation of diagrams. So far i´m statically coding a diagram like the following [image: image.png] was produced by just this code stateDiagram [*] --> Lote Lote --> Amostra Amostra --> Inspeção:Sim Amostra --> Alerta:Não

[web2py] Document about python web frameworks. Web2py not compatible with python 3???

2019-12-03 Thread António Ramos
Someone needs some reading about web2py and python3 support https://cdn2.hubspot.net/hubfs/4542168/Ebooks%20and%20Portfolios%20and%20Lead%20Magnets/Introduction%20to%20Python%20for%20Tech%20Managers%20by%20STX%20Next.pdf -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Re: Off topic : visual diagrams anyone ???

2019-12-02 Thread António Ramos
Nothing , im am using it already. Just sharing it with you... :) Em seg., 2 de dez. de 2019 às 02:57, Scott Hunter escreveu: > What is stopping you from using it *in* your web2py app? > > On Wednesday, November 27, 2019 at 12:58:48 PM UTC-5, Ramos wrote: >> >> Hard to find a tool like this for

[web2py] Off topic : visual diagrams anyone ???

2019-11-27 Thread António Ramos
Hard to find a tool like this for my web2py app https://mermaidjs.github.io/#/ -- 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

Re: [web2py] Re: Scheduler for py4web ?

2019-11-01 Thread António Ramos
You are confusing things. Web2py Task scheduler is like linux cron but more powerfull because you can task a python function from your code. Gulp and alike are task automation tools like creating files and folders , compiling jade to html or sass to css. Not the same thing.. and yes you should be

[web2py] Scheduler for py4web ?

2019-10-30 Thread António Ramos
Hello, is the web2py scheduler planned for py4web ??? Regards -- 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

[web2py] folder structure and calling controller without folder path

2019-10-22 Thread António Ramos
Hello i just noticed that calling http://my.site.pt/*app*/controller and http://my.site.pt/controller returns the same thing. So what is the point of having the app folder ??? Is this a correct behaviour or am i having any bug in my side ??? regards António -- Resources: - http://web2py.com

Re: [web2py] Re: web2py survey dynamic forms with nested choices

2019-10-17 Thread António Ramos
apart from that you can use google forms and use google api script to call your app webservice and send the json to your table. This way you can let users create rapidly forms to question users.Then in web2py you can just show the json as a table. Em qua, 16 de out de 2019 às 08:54, NGNZONE

[web2py] When the user gets a ticket error how to trigger some function ?

2019-10-09 Thread António Ramos
Hello i want to implement a sms notifications whenever a user gets an error ticket. Is there an event that i can capture to trigger my sms function? regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: How to use scheduler in modules ?

2019-10-03 Thread António Ramos
às 11:56, António Ramos escreveu: > i added in a model > current.scheduler=scheduler > and then > in a module > scheduler=current.scheduler > > ... > It works... but dont know if thats the best option... > > > Em qui, 3 de out de 2019 às 11:43, António Ramos >

[web2py] Re: How to use scheduler in modules ?

2019-10-03 Thread António Ramos
i added in a model current.scheduler=scheduler and then in a module scheduler=current.scheduler ... It works... but dont know if thats the best option... Em qui, 3 de out de 2019 às 11:43, António Ramos escreveu: > Hello i already have in a model > from gluon.scheduler import Sch

[web2py] How to use scheduler in modules ?

2019-10-03 Thread António Ramos
Hello i already have in a model from gluon.scheduler import Scheduler scheduler = Scheduler(db) Then i have a module where i need to scheduler.queue_task(task_add, pvars=dict(a=1, b=2)) I get scheduler not define. how can i use scheduler inside a module? REgards António -- Resources: -

[web2py] Py4web - ideas you had , ideas you stole

2019-10-01 Thread António Ramos
Hello Massimo , i´m curious if you are making a new presentation like the one bellow for py4web. https://pycon-2012-notes.readthedocs.io/en/latest/web2py.html Regards Antonio -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

Re: [web2py] Re: login_bare needs a password ?

2019-09-19 Thread António Ramos
any help? Em qua, 18 de set de 2019 às 18:15, António Ramos escreveu: > or maybe not > I tried to impersonate other user that has membership PORTEIRO and i get > "Forbidden" > > Em qua, 18 de set de 2019 às 18:09, António Ramos > escreveu: > >> ap

Re: [web2py] Re: login_bare needs a password ?

2019-09-18 Thread António Ramos
or maybe not I tried to impersonate other user that has membership PORTEIRO and i get "Forbidden" Em qua, 18 de set de 2019 às 18:09, António Ramos escreveu: > apparently i need to be logged in first. > > solved! > > Em qua, 18 de set de 2019 às 17:38,

Re: [web2py] Re: login_bare needs a password ?

2019-09-18 Thread António Ramos
apparently i need to be logged in first. solved! Em qua, 18 de set de 2019 às 17:38, António Ramos escreveu: > Is something like this??? It returns not authorized! > > auth.add_permission(db.auth_group(role="PORTEIRO")["id"], > "impersonate",

Re: [web2py] Re: login_bare needs a password ?

2019-09-18 Thread António Ramos
Is something like this??? It returns not authorized! auth.add_permission(db.auth_group(role="PORTEIRO")["id"], "impersonate",db.auth_user) auth.impersonate(4)# user 4 is included in the PORTEIRO group Em sex, 16 de ago de 2019 às 20:05, Dave S escreveu: > > > On Friday, August

[web2py] Gantt for python/Web2py

2019-09-06 Thread António Ramos
Hello all any suggestion on a Gantt chart *ready* to embed on a web2py app ? so far the best looking i found is https://dhtmlx.com/docs/products/demoApps/advanced-gantt-chart/ But no code in python to "copy and paste". Have to do all the code from the beginning Regards António --

Re: [web2py] Speed

2019-09-04 Thread António Ramos
The information is already in the browser. All members are loaded at page load. The page loads data from this url https://www.fluidpowernet.net/Ws/getmlf regards Em qua, 4 de set de 2019 às 15:07, Gaël Princivalle < gaelprinciva...@gmail.com> escreveu: > Well when you search for the members

Re: [web2py] Speed

2019-09-04 Thread António Ramos
Let me disagree. Not that "incredible" just static pages with litle content You dont neet a framework to do that... Em qua, 4 de set de 2019 às 13:24, Gaël Princivalle < gaelprinciva...@gmail.com> escreveu: > Hello. > > The user experience on this website is amazing, mostly due to the >

[web2py] login_bare needs a password ?

2019-08-16 Thread António Ramos
hello the the login bare function auth.login_bare(user,pwd) needs a password !! Why ? I dont know the users passwords but need to impersonate some users to create records on behalf of them Am i reading it right ? Regards António -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Re: How can I insert image in HTML from database?

2019-08-02 Thread António Ramos
maybe -> Field('IMAGE', 'upload'), Em sex, 2 de ago de 2019 às 16:33, Константин Комков escreveu: > What do you want to know? > tables.py > db.define_table( > 'recipes', > Field('NAME',length=512), > Field('IMAGE'), > migrate=False > ) > It's my database connection in db.py: >

Re: [web2py] How can I insert image in HTML from database?

2019-08-02 Thread António Ramos
what is your model ? Em sex, 2 de ago de 2019 às 14:50, Константин Комков escreveu: > I do like that: > row = db().select(db.recipes.IMAGE).first() > image = '' > I get error: > Версия > web2py™ Version 2.18.5-stable+timestamp.2019.04.08.04.22.03 > Python Python 3.7.3: C:\Python\python.exe

Re: [web2py] Re: web3py -> py4web

2019-07-29 Thread António Ramos
Why not using gitbook to create the documentation ??? repos already using gitbook... https://guide.elm-lang.org/ https://docs.feathersjs.com/# etc Em seg, 29 de jul de 2019 às 10:36, Jose C escreveu: > Darn, I hunted around but didn't see it. Thanks for the link... > > > > On Monday, 29 July

Re: [web2py] Web2Py and Angular 4,5,6,7,8... MIXED

2019-07-26 Thread António Ramos
guess all is related to delimiters http://www.web2pyslices.com/slice/show/1894/web2py-and-angularjs-handlebars-delimiters Em sáb, 20 de jul de 2019 às 06:29, irving navarro < irving.navarr...@gmail.com> escreveu: > any know how do that?,, wanna develop the view on Angular 7 and make >

Re: [web2py] how can I pass a parameter from the view get the return value from a function of controller?

2019-07-24 Thread António Ramos
Can u elaborate a little more ? Please show some code... Em qua, 24 de jul de 2019 às 16:20, Lynn escreveu: > > It seems that i cannot call a function with a parameter of a controller > from the view. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

[web2py] HTML Helpers - just a tough...

2019-07-24 Thread António Ramos
I realy like the html helpers but like a lot more the eml language sintax regarding html because for bigger code than this example shows, having the named arguments like _class at the end of the helper is very confusing and dificult to see what named arguments correspond to a particular helper.

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread António Ramos
y.. > just need to find in the docs.. > > By the way.. happy to contribute to the docs. > > > > On Wed, Jul 24, 2019 at 1:21 PM António Ramos > wrote: > >> >> Found a typo RestPI instead of RestAPI >> >> Regardsdef api(): >> retur

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread António Ramos
Found a typo RestPI instead of RestAPI Regardsdef api(): return RestPI(db, policy)(request.method, request.args(0), request.args(1), request.get_vars, request.post_vars) Em qua, 24 de jul de 2019 às 12:17, António Ramos escreveu: > - Great documentation lay

Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread António Ramos
- Great documentation layout - A litle bette name (Py4Web) - But the dashboard and the running circle and colours chosen are completely out of order in my opinion if it matters. Where is the logo ? will it have a logo ? what colour scheme will it use ? Regards Em qua, 24 de jul de 2019 às 09:44,

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

2019-07-22 Thread António Ramos
Just call it *Massimo* It is very well deserved right ??? Em seg, 22 de jul de 2019 às 17:42, Ivica Kralj escreveu: > I can't let gluon go :) so how about > > > Gluonic > > > trademark seems to be available > https://www.trademarkia.com/trademarks-search.aspx?tn=gluonic > > gluonic dot com is

Re: [web2py] Built-in online text editor jumps away

2019-07-22 Thread António Ramos
@Massimo are you planning on incorporating vue2pyj on web2py/web3py ?? Seems like a boost in productivity Regards Em qui, 18 de jul de 2019 às 19:52, Val K escreveu: > Hi Zoltan! > I just wrote my own > https://github.com/valq7711/vue2pyj > > -- > Resources: > - http://web2py.com > -

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

2019-07-22 Thread António Ramos
Just trash the "web" and "py" words. Its killing my imagination... Em seg, 22 de jul de 2019 às 02:43, JSalvat escreveu: > What about "webtopy" > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > -

Re: [web2py] Re: Tip to remove L from interger 750L when exporting json to view?

2019-06-25 Thread António Ramos
Better. Thank you all :) Em ter, 25 de jun de 2019 às 17:14, Leonel Câmara escreveu: > Just return the dict as is on the controller and then in the view you can > do something like: > > {{from gluon import serializers}} > {{=XML(serializers.json(spendData ), sanitize=False)}} > > Another

Re: [web2py] Tip to remove L from interger 750L when exporting json to view?

2019-06-25 Thread António Ramos
That is where i tried first.. first my controller return response.json(myvar) it returned the json to the view correctly. Then i need to return a dict to use it in my view. ret= response.json(myvar) return dict(ret=ret) then in the view i just had {{extend 'layout.html'}} {{=ret}} It does not

[web2py] Tip to remove L from interger 750L when exporting json to view?

2019-06-25 Thread António Ramos
Hello i have a dict like var spendData = [ {'exist': 7250L, 'lote': 'F0523E103S'}, {'exist': 23100L, 'lote': 'F0609F103S'}, ...] when in the view i get an error Uncaught SyntaxError: Invalid or unexpected token i guess its the "L" and the end of 7250 how can i eliminate it before passing the

Re: [web2py] Generating graph with chartjs

2019-06-17 Thread António Ramos
I guess that having vue as a default frontend we shoud try to use vue charts Em sáb, 15 de jun de 2019 às 18:53, Massimo Di Pierro < massimo.dipie...@gmail.com> escreveu: > mind highcharts is not free > > On Tuesday, 11 June 2019 09:33:37 UTC-7, Lovedie JC wrote: >> >> I'm following this

Re: [web2py] Re: A little suggestion: Create a forum for web3py

2019-05-29 Thread António Ramos
Do we need to reinvent the wheel again ? why not use for ex... https://slack.com or many others out there? Em sex, 24 de mai de 2019 às 21:41, Dave S escreveu: > > > On Friday, May 24, 2019 at 10:14:24 AM UTC-7, Ari Lion BR Sp wrote: >> >> In this while, please join us on our Telegram

Re: [web2py] Re: new DBAPI in pydal for both web2py and web3py

2019-05-17 Thread António Ramos
there we go again about naming something ... Jut call it Gluino! to glue data to the app.. Em sex, 17 de mai de 2019 às 11:37, villas escreveu: > acquisAPI > > acquis Shortened from acquis communautaire: French acquis (“that which has > been acquired or obtained”) + communautaire (“of the

Re: [web2py] Re: pyDAL -> jsDAL?

2019-04-30 Thread António Ramos
If vuejs is the way to go (thank you massimo for the choice...) i think it should evolve also to vuex for client store and use something like this for persistence. https://flaviocopes.com/vuex-persist-localstorage/ I think we can kill 2 rabbits with just one bullet... Em ter, 30 de abr de 2019 às

Re: [web2py] pyDAL -> jsDAL?

2019-04-30 Thread António Ramos
I think you are talking about something like this http://docs.deployd.com/docs/collections/accessing-collections.html I like the idea :) Em ter, 30 de abr de 2019 às 01:47, Scott Hunter escreveu: > > The direction from web2py to web3py seems to be applications where the > server is responsible

[web2py] Video tutorial about web2py

2019-04-26 Thread António Ramos
Found it on youtube https://www.youtube.com/watch?v=IlfHqHAKCGc=PLU9qfJenUikEmVUZgQZj5RMa6GAuwq9c- maybe it should be added to http://www.web2py.com/init/default/documentation regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Asynchronous submission of request.vars values to Controller for calculations using Ajax

2019-04-17 Thread António Ramos
post a screenshot of your error and code... Em qua, 17 de abr de 2019 às 17:51, mostwanted escreveu: > I have seriously fiddled with docs code trying to bend it to my will but > its not obliging, maybe its my limited programming skills but thanks for > replying Ramos. > > Mostwanted > > -- >

Re: [web2py] Asynchronous submission of request.vars values to Controller for calculations using Ajax

2019-04-17 Thread António Ramos
try this from the docs... then change it accordingly to your needs def one(): return dict() def echo(): return request.vars.name and the associated "default/one.html" view: {{extend 'layout.html'}} Em qua, 17 de abr de 2019 às 13:47, mostwanted escreveu: > I understand what u

Re: [web2py] Asynchronous submission of request.vars values to Controller for calculations using Ajax

2019-04-17 Thread António Ramos
http://www.web2py.com/books/default/chapter/29/11/jquery-and-ajax#The-ajax-function Note the diference between :eval and the 'target' id alternative If you use eval than you have to return not locals() but a string with javascript to be evaluated like for example jQuery('#target').html('100');

Re: [web2py] Re: Web3py

2019-04-17 Thread António Ramos
found it self.start = function() { *Vue.config.devtools = true;* self.vue = new Vue({el: '#vue', data: self.data, methods: self.methods, filters: self.filters}); self.on_load(); }; Em qua, 17 de abr de 2019 às 10:38, António Ramos escreveu: > How to use

Re: [web2py] Re: Web3py

2019-04-17 Thread António Ramos
How to use vue devtools? Vue.js is detected on this page. Devtools inspection is not available because it's in production mode or explicitly disabled by the author. Em qua, 17 de abr de 2019 às 10:17, António Ramos escreveu: > Massimo , any reason you chose Bulma instead of vuetify ? > V

Re: [web2py] Re: Web3py

2019-04-17 Thread António Ramos
Massimo , any reason you chose Bulma instead of vuetify ? Vuetify is designed specifically for vuejs Regards António Em qua, 17 de abr de 2019 às 09:37, António Ramos escreveu: > Worked for me... > > > Em ter, 16 de abr de 2019 às 21:32, En Ware escreveu: > >>

Re: [web2py] Re: Web3py

2019-04-17 Thread António Ramos
Worked for me... Em ter, 16 de abr de 2019 às 21:32, En Ware escreveu: > Thank you , that did it. > > On Tuesday, April 16, 2019 at 2:42:40 PM UTC-5, Massimo Di Pierro wrote: >> >> You have an old pydal. Do >> >> pip3 install --upgrade pydal >> >> Also do >> >> python3 web3py.py applications

Re: [web2py] Re: Web3py

2019-04-16 Thread António Ramos
Not working... [image: image.png] Em ter, 16 de abr de 2019 às 14:41, En Ware escreveu: > Getting error > > | / / / / __ |/___ \/ __ \ \/ / > | | / / /_ / /_/ /___/ / /_/ /\ / > | | /| / / __/ / __ //__ / / / / > | |/ |/ / /___/ /_/ /___/ / / / / >

[web2py] Testing testing...

2019-04-01 Thread António Ramos
Hello all what is the best way to test modules? also why nobody talks about tests in web2py when in every other framework they do it from the beggining. For starters its less noisy but when app grows we eventually need testing skills or we are doomed... PS i saw pytest with web2py and it seems

[web2py] Web2py Website seems like abandoned...

2019-01-30 Thread António Ramos
hello all Its like it is for a long time It deserves a new layout. Whos is in for a contest ? Regards António -- 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

Re: [web2py] Happy New Year

2019-01-08 Thread António Ramos
t; Mississippi State Supreme Court > Electronic Filing Division > > > On Mon, Jan 7, 2019 at 9:58 AM António Ramos wrote: > >> 5) admin were a simpler vue.js app. +1!!! dont forget vuex !! >> >> Em qui, 3 de jan de 2019 às 02:54, Carlos Cesar Caballero Díaz < >&

Re: [web2py] Happy New Year

2019-01-07 Thread António Ramos
5) admin were a simpler vue.js app. +1!!! dont forget vuex !! Em qui, 3 de jan de 2019 às 02:54, Carlos Cesar Caballero Díaz < carlos.caball...@cfg.jovenclub.cu> escreveu: > Happy new year!! > > I have answered this in other thread because for some reason I have missed > this one, and many of

Re: [web2py] Re: Issue with latin /utf8 ??

2018-12-27 Thread António Ramos
Maybe not :( [image: image.png] Em qua, 26 de dez de 2018 às 22:03, Leonel Câmara escreveu: > The problem you're seeing has only to do with printing it to a console > because it uses whatever encoding your console has. The json will be fine. > > -- > Resources: > - http://web2py.com > -

Re: [web2py] Re: Issue with latin /utf8 ??

2018-12-26 Thread António Ramos
Still cant figure out how to solve my problem :( However i get my data like this from return response.json(res) q='["2211052870 BITWORK - SERVI\\u00c7OS DE INFORM\\u00c1TICA ", "2211051448 COMBITRANS TRANSIT\\u00c1RIOS, LDA. ", "2211050146 OITO BITS - INFORM\\u00c1TICA, LDA. ",

Re: [web2py] Issue with latin /utf8 ??

2018-12-22 Thread António Ramos
Im just trying all odds ;) Nome works so far Val K escreveu em sáb, 22/12/2018 às 11:02 : > Why do you use latin-1 instead of utf8? As far as I remember json accepts > utf8 only > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

Re: [web2py] Issue with latin /utf8 ??

2018-12-22 Thread António Ramos
ica" >>return response.json([x]) >> >> >> [image: image.png] >> [image: image.png] >> >> >> Em sex, 21 de dez de 2018 13:26, António Ramos > escreveu: >> >>> Hello i have this var in my code after reading a webservic

[web2py] Issue with latin /utf8 ??

2018-12-21 Thread António Ramos
Hello i have this var in my code after reading a webservice. x='OITO BITS - INFORM*\xc1*TICA, LDA. ' i want to return from my controller 'OITO BITS - INFORM*Á*TICA, LDA. ' this is my relevant code res=[] x='OITO BITS - INFORM*\xc1*TICA, LDA. ' z=x.encode('latin-1') print z it prints

Re: [web2py] Re: DAL reference to table define after

2018-12-14 Thread António Ramos
Nop :) Em qui, 13 de dez de 2018 às 17:02, Leonel Câmara escreveu: > Are you not using lazy tables? > > -- > 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

[web2py] DAL reference to table define after

2018-12-13 Thread António Ramos
How can a table X reference a field in other table Y that is defined after table X ? I have 2 tables that have fields that reference each other table fields... and i get an error regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

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

2018-12-03 Thread António Ramos
looking at the code ,using the ibm_db_dbi supplied by ibm, the connection string to IBM i db2 is this 'db2:ibm_db_dbi://DSN=dsn;UID=user;PWD=pass' but this is for windows because of the dsn right? what if i want to connect from inside my IBM i where i have an AIX system ? i already have python

Re: [web2py] Re: Vuepy = Vue.js - (NOde.js + webpack) + RapydScript_in_browser + CodeMirror

2018-11-23 Thread António Ramos
VuePy looks very futuristic. I like it ... Em sex, 23 de nov de 2018 às 09:29, Val K escreveu: > OK, it seems I should write some comments. > I've done a simple stupid IDE with embedded Rapydscript compiler + > RapydML-like parser (which is similar to pug). It emulates file system and >

Re: [web2py] Re: Future of web2py

2018-11-21 Thread António Ramos
Just an admin with vue and vuetify https://github.com/tookit/vue-material-admin Em qua, 21 de nov de 2018 às 17:24, António Ramos escreveu: > Just my 2 cents > If we are on to Vuejs the better options is not bootstrap, its vuetify... > they were made to be together.. > > Em te

Re: [web2py] Re: Future of web2py

2018-11-21 Thread António Ramos
Just my 2 cents If we are on to Vuejs the better options is not bootstrap, its vuetify... they were made to be together.. Em ter, 20 de nov de 2018 às 19:23, Fernando Lucas escreveu: > Did you think about the JS framework, https://aurelia.io/? > Thank's > Fernando Lucas > > Em seg, 29 de mai de

Re: [web2py] Re: Future of web2py

2018-10-12 Thread António Ramos
Massimo, you said ... *(something we talk about but did not happen)* Is it still going to happen? regards António Em sex, 12 de out de 2018 às 08:32, Massimo Di Pierro < massimo.dipie...@gmail.com> escreveu: > No worries. We never ever ever removed a feature from web2py. We only add. > > If we

Re: [web2py] Re: pdf output of web2py-book app

2018-10-09 Thread António Ramos
have you tried https://www.reportbro.com/home/index there is a web2py sample https://www.reportbro.com/docs/installation Never gone back... Em seg, 8 de out de 2018 às 14:43, Nico Zanferrari escreveu: > Hello, > > I was trying to look at the PDF output of the book, which seems quite bad >

Re: [web2py] Re: Future of web2py

2018-10-08 Thread António Ramos
If somebody removes groups and permissions from web2py, i will have to start using other web frameworks to create fantastic and unrealistic web apps. :) Em seg, 8 de out de 2018 às 01:00, 黄祥 escreveu: > use the auth tables too (user, group, permission, membership) too > n sqlform.grid and

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

2018-09-12 Thread António Ramos
> 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 link or *.w2p), follow >> the link provided, ju

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

2018-09-11 Thread António Ramos
more on data tables https://vuetifyjs.com/en/components/data-tables#introduction 2018-09-11 11:08 GMT+01:00 António Ramos : > 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 l

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

2018-09-11 Thread António Ramos
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 link or *.w2p), follow > the link provided, just found an emptiness > > best regards, > stifan > > -- > Resources: > - http://web2py.com > -

[web2py] Vue + web2py + Vuetify

2018-08-31 Thread António Ramos
For those dreaming about vue and web2py there is something also awesome developed for vue VUETIFY for example data table component with server side api https://codepen.io/pen/?editors=1010 How great could be the 3 together Regards -- Resources: - http://web2py.com -

[web2py] JWT - FAQ

2018-07-10 Thread António Ramos
Hello, for those who want to use web2py as a mere api endpoint we can use JWT to authenticate users but i dont see how to create users this way. How to create , change password using jwt only access to web2py??? No docs in the docs... Regards António -- Resources: - http://web2py.com -

Re: [web2py] Re: sending html emails.... bug ...

2018-06-08 Thread António Ramos
Gmail in mobile works better. It does not show the attached photos at the bottom. Regards 2018-06-07 18:31 GMT+01:00 Leonel Câmara : > Nothing you can do about that Ramos. It depends on the email client. You > could use online images instead of sending them with the email but then you > will

Re: [web2py] Re: sending html emails.... bug ...

2018-06-07 Thread António Ramos
Only one litle thing... the attachments also appear in the bottom of the email as "attachments... 2018-06-06 15:01 GMT+01:00 Leonel Câmara : > De nada :) > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > -

<    1   2   3   4   5   6   7   8   9   10   >