Re: [web2py] Re: web2py 2.15.0b1

2017-07-05 Thread António Ramos
tried chrome with a hard refresh and i got this after pressing the "Manage " button [image: Imagem inline 1] 2017-07-05 12:52 GMT+01:00 Leonel Câmara : > Ramos have you done a hard refresh, It's very odd because I don't see that > error at all. > > -- > Resources: > -

Re: [web2py] Re: Any ideas on how to prepare web2py apps for GDPR

2017-07-05 Thread António Ramos
just found the solution for pseudonimization of personal data as suggested by GDPR http://www.web2pyslices.com/slice/show/2012/encrypt-information-into-the-database Web2py is GDPR ready! Regards António 2017-07-04 22:26 GMT+01:00 António Ramos <ramstei...@gmail.com>: > Someth

[web2py] Comunity documentation -- Not found

2017-06-27 Thread António Ramos
The links for the Apostilla em português are gone Maybe they should be kept inside the web2py online app [image: Imagem inline 1] -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Suddenly my task scheduler stopped working

2017-06-27 Thread António Ramos
this is the error i see in task_run table record with status failed Traceback (most recent call last): File "/.../new2py/web2py/gluon/scheduler.py", line 293, in executor _env = env(a=a, c=c, import_models=True) File "/home/ramstein74/webapps/new2py/web2py/gluon/shell.py", line 166, in

[web2py] function lazy_user at ...

2017-06-28 Thread António Ramos
Hello i added an authors and readers computed fields to my table db.define_table( 'entities', ... Field('authors',compute= lambda r:authors(r)), ... ) when i save a record i get this : authors : [**] created_by : 4L created_on : datetime.datetime(2017, 6, 28, 16, 16, 24)

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

2017-04-27 Thread António Ramos
il 2017 09:50:03 UTC-5, Jim S wrote: >> >> I would love to do some work on this if there was a mentor out there >> willing to help me get started. >> >> -Jim >> >> On Fri, Apr 21, 2017 at 5:34 AM, António Ramos <ramstei...@gmail.com> >&g

Re: {Disarmed} Re: {Disarmed} Re: [web2py] Re: lack of documentation

2017-04-24 Thread António Ramos
After a while you will go back to the book and say, aha here it is... and then you realize that the "ONES" that made the book did a great job... That is my story :) Sem vírus. www.avast.com

[web2py] OPTGROUP and OPTION dinamically

2017-04-28 Thread António Ramos
How do i change my code to dinamically create the OPTGROUP and OPTION from myfields {{myfields={ "driver":{"tja":[{"value":"joe","id":1},{"value":"anne","id":2}],"abc":[{"value":"cris","id":3},{"value":"pat","id":4}]},

[web2py] DAL question: Reference to itself...

2017-08-09 Thread António Ramos
I need to have something like the following table: I have many "person" records. Some of them have a boss so i use the same table and a field "boss" to reference the person record of the boss db.define_table('person', Field('name'), Field('boss','reference

Re: [web2py] Re: DAL question: Reference to itself...

2017-08-09 Thread António Ramos
Solved! Thank you 2017-08-09 10:26 GMT+01:00 Leonel Câmara : > This does: > > db.define_table('person', > Field('name'), > Field('boss','reference person',requires=IS_EMPTY_OR(IS_IN_DB(db, ' > person.id', '%(name)s'))), > Format='%(name)s' > ) > > -- > Resources: > -

[web2py] Re: pytest and controllers protected with auth

2017-08-18 Thread António Ramos
anybody help please ? regards 2017-08-18 15:20 GMT+01:00 António Ramos <ramstei...@gmail.com>: > this does not work. > > *@auth.requires(True, requires_login= request.is_local)* > def execdal(): > return dict(ret=1) > > > my pytest function > def test_execdal(w

Re: [web2py] unit testing newbiew ... and error...

2017-08-17 Thread António Ramos
t classes, if you read any > modern Python testing book or article, they all recommend using pytest. > I used it in this project https://github.com/jre > drejo/bancal/tree/master/web2py/applications/bancal > just in case it can help you. > > Regards > José L. > > 2017

Re: [web2py] unit testing newbiew ... and error...

2017-08-17 Thread António Ramos
[image: Imagem inline 1] 2017-08-17 14:18 GMT+01:00 António Ramos <ramstei...@gmail.com>: > Great > Where can i find some discussion on this file ? > i get an error at line 149 > https://github.com/viniciusban/web2py.test/blob/ > master/tests/conftest.py#L149 > > Regar

Re: [web2py] unit testing newbiew ... and error...

2017-08-17 Thread António Ramos
gluon.contrib.webclient.py [image: Imagem inline 2] Any ideas? Regards António 2017-08-17 14:19 GMT+01:00 António Ramos <ramstei...@gmail.com>: > [image: Imagem inline 1] > > 2017-08-17 14:18 GMT+01:00 António Ramos <ramstei...@gmail.com>: > >> Great >> Where can

Re: [web2py] unit testing newbiew ... and error...

2017-08-17 Thread António Ramos
seems that removing "people" solves it. 2017-08-17 17:29 GMT+01:00 António Ramos <ramstei...@gmail.com>: > I deleted the line > del web2py_env['__file__'] > > then next error > > [image: Imagem inline 1] > > disabling the code i then get t

[web2py] Re: pytest and controllers protected with auth

2017-08-18 Thread António Ramos
:00 António Ramos <ramstei...@gmail.com>: > Hello i+m testing a controller with pytest > > if my controller is protected like > > @auth.requires.login or @auth.requires_membership how can i test it ? > > > def test_controller(client): > > &

[web2py] pytest and controllers protected with auth

2017-08-18 Thread António Ramos
Hello i+m testing a controller with pytest if my controller is protected like @auth.requires.login or @auth.requires_membership how can i test it ? def test_controller(client): client.get('/default/controller') ... ... Regards -- Resources: - http://web2py.com -

Re: [web2py] Re: Future of web2py

2017-06-12 Thread António Ramos
+1 agreed. Lets remove some pressure from Massimo... Too much noise can harm the baby... 2017-06-12 15:03 GMT+01:00 Richard Vézina : > Karoly, > > 1) Massimo had already mention that web2py will be supported by the core > team. You should know that core team

[web2py] web2py_component does not work with https...

2017-06-21 Thread António Ramos
hello i noticed that if i switch to https my pages does not load the components using the web2py_component function Is this true? regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] user register form does not submit. Keeps reloading

2017-06-21 Thread António Ramos
Hello i´m trying to create a user but the register form does not submit and reloads itself on submit. Also i tried the "Request reset password" for another user and it also keeps reloading when submitting. Any ideas? how do i debug this issue ? regards António -- Resources: - http://web2py.com

[web2py] Prettydate ,Translate issue

2017-06-20 Thread António Ramos
Hello this is my code {{=prettydate(event["events"]["at"],T)}} but in the translator for portuguese i see that 2 bugs any help ? [image: Imagem inline 1] [image: Imagem inline 2] -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

Re: [web2py] Re: Prettydate ,Translate issue

2017-06-20 Thread António Ramos
how do i singularize prettydate? 2017-06-20 14:42 GMT+01:00 Leonel Câmara : > How is that a bug? There's a special case for the singular as prettydate > is not using pluralisation. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

Re: [web2py] Re: web2py_component does not work with https...

2017-06-21 Thread António Ramos
Leonel you just confused me again... web2py_component works with Http web2py_component does not work with HTTPS*.* In this case how can i use web2py_component ? Regards 2017-06-21 12:25 GMT+01:00 Leonel Câmara : > The browser will block it if the request is not HTTPS

Re: [web2py] Re: Future of web2py

2017-06-26 Thread António Ramos
I just got curious about Lapis 2017-06-26 16:59 GMT+01:00 Richard Vézina : > I notice web2py is reported latency... What is causing this latency, js > not minify?? Ca we improve it? > > On Mon, Jun 26, 2017 at 11:50 AM, Anthony wrote: > >>

[web2py] Auth.signature not updating update_on

2017-06-26 Thread António Ramos
Hi, my table db.define_table( 'entities', Field('uuid',length=64,default=lambda:str(uuid.uuid4())), Field('entity',required=True,label=T("Entity")), Field('description',label=T("Description"),default=""), Field('status', db.status), Field('type','reference

[web2py] How to force browser to cache css and js ?

2017-06-25 Thread António Ramos
I´m using this https://github.com/mjbeller/web2py-starter but i noticed that with only me as the single user so far it occupies daily from 200Mb to 300Mb bandwidth How can i tweek it to lower this value before going to production and explode my paid webfaction hosting ? Regards António --

Re: [web2py] Re: web2py_component does not work with https...

2017-06-26 Thread António Ramos
Upgraded jquery to latest... working now... Also i´m not using jquery shipped with web2py I am using the latest from google CDN Will i have problems with this ? Regards 2017-06-22 15:33 GMT+01:00 Anthony : > Not sure how this would be related to things working over http

Re: [web2py] Re: Prettydate ,Translate issue

2017-06-20 Thread António Ramos
Ohh it only happens in the 1 week , 1 day , 1 hour.. because when it finds 2 it goes to plural Better than nothing... thank you Leonel .. 2017-06-20 15:29 GMT+01:00 Leonel Câmara : > What do you mean? There's no bug here Ramos. You just need to translate > both the

Re: [web2py] Re: user register form does not submit. Keeps reloading

2017-06-21 Thread António Ramos
Working now... dont know what happened... thank you 2017-06-21 16:26 GMT+01:00 Anthony : > If the form doesn't submit but no errors appear, that could mean the > _formkey check is failing, which would typically happen if cookies are > disabled. If that's not the issue, we

Re: [web2py] Re: web2py_component does not work with https...

2017-06-21 Thread António Ramos
???PessoasCarregar para atualizar... Obrigado :) 2017-06-21 16:17 GMT+01:00 Leonel Câmara : > web2py_component works with https of course, but maybe for some reason the > URL it's requesting is not in HTTPS. Can we see your web2py_component call? > > -- > Resources: >

Re: [web2py] Re: web2py_component does not work with https...

2017-06-21 Thread António Ramos
-06-21 17:57 GMT+01:00 António Ramos <ramstei...@gmail.com>: > I already was using URL > > {{if 'kpi' in locals():}} > {{for x in kpi:}} > {{url=URL('kpi',x['kpi']+'.load')}} > {{setwait="$('#inner{0}').attr('class', 'fa > fa-hourglass-end');".format(x['kpi'

Re: [web2py] Re: web2py_component does not work with https...

2017-06-21 Thread António Ramos
No tickets and no console errors i will try URL 2017-06-21 17:49 GMT+01:00 Leonel Câmara : > Humm that should actually work, although I would recommend using URL, > instead of hardcoding the URL. > > The reason for the failure must be something else. Maybe an

Re: [web2py] Re: web2py_component does not work with https...

2017-06-21 Thread António Ramos
quot; ,_id=x["kpi"],_onclick=click,_style="cursor:pointer !important;")}} {{pass}} {{pass}} 2017-06-21 17:55 GMT+01:00 António Ramos <ramstei...@gmail.com>: > No tickets and no console errors > i will try URL > > 2017-06-21 17:49 GMT+01:00 Leonel Câ

Re: [web2py] Re: Auth.signature not updating update_on

2017-06-27 Thread António Ramos
Yes anthony i meant modified_on ,not update_on I have this code table[id]=dict(field1=1,field2=2) the row is updated but the *modified_on* is not. Regards 2017-06-26 19:48 GMT+01:00 Anthony : > auth.signature includes a modified_on field, not an update_on field. > >

[web2py] datetime or timestamp ?

2017-06-27 Thread António Ramos
hello i´m creating an app to be used by people in different countries... i have a table events with datetime as the event date. how will i deal with users from many countries reading events table because the same event may be read differently by different users .. Regards António --

Re: [web2py] Re: Http to Https [URGENT]

2017-05-23 Thread António Ramos
probably you should check the error in the mail server console or in the web2py side and come back here again with some logs... if you cant get info from the mail server try using a dummy mail server. Never tested it but may help you http://nilhcem.com/FakeSMTP/ 2017-05-23 9:33 GMT+01:00

Re: [web2py] Future of web2py

2017-05-27 Thread António Ramos
The future is not available at this time.. so please enjoy the present. We may no even exist in the future so why ask for web2py future before our selves future. ? I need to sleep... and dream ... web3py .. web3py ... 2017-05-27 8:11 GMT+01:00 Andrea Fae' : > Hello guys, >

Re: [web2py] Re: Future of web2py

2017-05-31 Thread António Ramos
To Massimo... maybe we can have something like this in future web2py versions... https://tg.pl/drab 2017-05-31 2:08 GMT+01:00 Dave S : > > > On Tuesday, May 30, 2017 at 5:11:49 PM UTC-7, Ron Chatterjee wrote: >> >> Massimo, Do you see its

Re: [web2py] Re: Any ideas on how to prepare web2py apps for GDPR

2017-06-02 Thread António Ramos
i think it will affect all of us and our apps... [image: Imagem inline 1] And more... Any company that does not adapt their apps to comply will incur in a heavy fine... https://www.itgovernance.co.uk/dpa-penalties http://ec.europa.eu/justice/data-protection/reform/files/ regulation_oj_en.pdf

[web2py] DAL question db.table(field1=value1,field2=value)

2017-06-02 Thread António Ramos
db.table(field1=value1,field2=value) Hi, i use this kind of query but i noticed it only returns one row. Is this correct ? can i use it as a "find one" function? regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

Re: [web2py] Re: Any ideas on how to prepare web2py apps for GDPR

2017-06-02 Thread António Ramos
Dont know where to start but meanwhile i share this post http://www.computerweekly.com/news/450419960/Top-UK-firms-websites-violate-key-GDPR-principle?utm_medium=EM=EM_EDA_77932701_campaign=20170601_Top%20UK%20firms%E2%80%99%20websites%20violate%20key%20GDPR%20principle_source=EDA 2017-06-02

[web2py] Any ideas on how to prepare web2py apps for GDPR

2017-06-01 Thread António Ramos
I have 3 apps where i need to address this issue... http://www.computerweekly.com/news/450419960/Top-UK-firms-websites-violate-key-GDPR-principle?utm_medium=EM=EM_EDA_77932701_campaign=20170601_Top%20UK%20firms%E2%80%99%20websites%20violate%20key%20GDPR%20principle_source=EDA Regards António

Re: [web2py] Re: Any ideas on how to prepare web2py apps for GDPR

2017-06-01 Thread António Ramos
One of the requisites is encryption on all user specific data 2017-06-01 18:01 GMT+01:00 Anthony : > What specific functionality do you think web2py could offer at the > framework level? > > > On Thursday, June 1, 2017 at 6:40:15 AM UTC-4, Ramos wrote: >> >> I have 3 apps

[web2py] How long can an id field go ?

2017-06-16 Thread António Ramos
Hello i´m using a table for a lot of similar stuff so it will grow very big. What is the limit for the id field? and what happens when it reaches the top? Should i use an uuid ? Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

Re: [web2py] OPTGROUP and OPTION dinamically

2017-05-02 Thread António Ramos
2017-04-28 20:45 GMT+01:00 Richard Vézina : > OPTION(opt['value'], _value=opt['id']) Than you it works now I still need to read the db into myfields def myfunc(): myfields={

[web2py] Re: Html helper module?

2017-05-05 Thread António Ramos
from html import * Next error , where is the T() function ? 2017-05-05 11:20 GMT+01:00 António Ramos <ramstei...@gmail.com>: > hello im generation html from a module. > However html helper functions are not available from modules > What module do i need to import ? > &

[web2py] Html helper module?

2017-05-05 Thread António Ramos
hello im generation html from a module. However html helper functions are not available from modules What module do i need to import ? regards António Sem vírus. www.avast.com

Re: [web2py] Re: Html helper module?

2017-05-05 Thread António Ramos
2017-05-05 18:26 GMT+01:00 Anthony : > T=current.T Thank you. -- 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: OFF Topic - Tech for the frontend - Elm ???

2017-10-10 Thread António Ramos
een quite enamoured by choo https://choo.io/ > > It's got a beautiful api, very functional. Nowhere near as complex as > Angular or React + Redux. > > On Thursday, September 28, 2017 at 11:59:56 AM UTC-4, Ramos wrote: >> >> i meant sharing :) >> >>

Re: [web2py] any ideas for printing stdout to the web interface?

2017-10-10 Thread António Ramos
can u show your script first? 2017-10-10 17:46 GMT+01:00 LoveWeb2py : > I run a script that prints to stdout, but I'd like to have a modal popup > and have all the information displayed to the user while the script is > running. > > Anyone have any ideas on how to achieve

Re: [web2py] Re: New plugin: Authman

2017-10-17 Thread António Ramos
I was looking a long time ago for a RBAC that could permit a group to belong to a group... Nice job Regards 2017-10-15 16:38 GMT+01:00 Bernhard Radermacher : > Forgot to mention that assignment is a bit easier, too: > > >

Re: [web2py] Re: any ideas for printing stdout to the web interface?

2017-10-11 Thread António Ramos
did you saw this ? https://www.youtube.com/watch?v=MUWy-NSrvNQ 2017-10-10 18:17 GMT+01:00 LoveWeb2py : > well, imagine i'm doing > > for i in range(0,10): > print(i) > > There are hundreds of logging functions inside of the script, so it'd be a > bit much for here. > >

[web2py] OFF Topic - Learn and update your python skills

2017-10-12 Thread António Ramos
Worked for me... This guy is very good... https://dbader.org/ -- 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

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

2017-09-11 Thread António Ramos
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 >> applications. >>

[web2py] @auth.requires(True, requires_login=not request.is_local) forces to login ???

2017-09-13 Thread António Ramos
this code forces to login when enter via browser or with pytest @auth.requires(True, requires_login=not request.is_local) Is this correct or is there other alternative? regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: ajax call from Select sends ["345","346"] instead of ["346"]

2017-09-26 Thread António Ramos
i meant "2800" or "2795" in the first select 2017-09-26 17:06 GMT+01:00 António Ramos <ramstei...@gmail.com>: > Hello i found a strange thing. > The first select calls the endpoint correctly with "2800" or "EMP1" in > postvars > > onc

[web2py] ajax call from Select sends ["345","346"] instead of ["346"]

2017-09-26 Thread António Ramos
Hello i found a strange thing. The first select calls the endpoint correctly with "2800" or "EMP1" in postvars None Zé Jaquelino however this select calls the same endpoint with ["345","346"] 10 0

[web2py] Re: OFF Topic - Tech for the frontend - Elm ???

2017-09-28 Thread António Ramos
i meant sharing :) 2017-09-28 16:58 GMT+01:00 António Ramos <ramstei...@gmail.com>: > > Just charing and collecting some toughts... > Anyone knows about ELM ? > > I Like vue a lot, especially after all the Angular 1 to angular 2 RIP > event... > But ELM seems s

[web2py] OFF Topic - Tech for the frontend - Elm ???

2017-09-28 Thread António Ramos
Just charing and collecting some toughts... Anyone knows about ELM ? I Like vue a lot, especially after all the Angular 1 to angular 2 RIP event... But ELM seems simpler and cleaner and more functional... http://elm-lang.org/examples regards -- Resources: - http://web2py.com -

[web2py] login strange( or not ) behaviour http/https

2017-09-28 Thread António Ramos
Hello i noticed that if i logged via https and then try to change the url to http i have to log again but until i go back to https and logout i cannot login with the other protocol. The reverse is also true from http to https. Is this a web2py thing ? Regard -- Resources: -

Re: [web2py] Re: Google AMP - benefits with web2py?

2017-10-03 Thread António Ramos
People should use a tool to minimize js and css files. Grunt or Gulp for ex... 2017-09-29 23:34 GMT+01:00 Dave S : > > > On Friday, September 29, 2017 at 2:25:30 PM UTC-7, Leonel Câmara wrote: >> >> AMP will also change the URL of your webpages to have google in them. >>

Re: [web2py] Teste Softwares

2017-10-03 Thread António Ramos
already in discussion https://groups.google.com/d/topic/web2py/4HdkjbnlhBU/discussion 2017-10-02 19:06 GMT+01:00 Gelzieny rezende martins : > Como fazer teste Softwares com web2py > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

Re: [web2py] Teste Softwares

2017-10-03 Thread António Ramos
example app with pytest https://github.com/jredrejo/bancal/tree/master/web2py/applications/bancal 2017-10-03 9:32 GMT+01:00 António Ramos <ramstei...@gmail.com>: > already in discussion > > https://groups.google.com/d/topic/web2py/4HdkjbnlhBU/discussion > > > > &

[web2py] DAL question db(db.table.id>0,db.table.field=='x').select()

2017-09-28 Thread António Ramos
would it be more natural db(db.table.id>0,db.table.field=='x').select() instead of DAL db((db.table.id>0)&(db.table.field=='x')).select() Regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

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

2017-08-24 Thread António Ramos
0, 2017 at 8:54:50 AM UTC-5, Jim S wrote: >> >> Nothing happening. Got sidetracked and haven't looked at it for a couple >> months. >> >> -Jim >> >> On Thu, Jul 20, 2017 at 7:12 AM, António Ramos <ramstei...@gmail.com> >> wrote: >> >>

Re: [web2py] Re: how to create pdf report in web2py???

2017-08-28 Thread António Ramos
We have a winner. Great tool... 2017-08-26 14:19 GMT+01:00 Alex : > We created a report tool since creating pdf reports in a web application > is a common problem and none of the existing solutions were optimal for us. > We needed something that is easy to integrate, easy to use

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

2017-08-31 Thread António Ramos
Hello Carlos please share the app with all of us. I´m very interested. Regards Sem vírus. www.avast.com

[web2py] OffTopic - Python help

2017-10-05 Thread António Ramos
Reading this https://github.com/JulienPalard/Pipe i tried this simple code import functools class Pipe: def __init__(self, function): self.function = function functools.update_wrapper(self, function) def __ror__(self, other): return self.function(other)

Re: [web2py] Re: OffTopic - Python help

2017-10-05 Thread António Ramos
Gotcha! Thank you... Sem vírus. www.avast.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> 2017-10-05

Re: [web2py] Re: web2py and pouchdb

2017-10-09 Thread António Ramos
Why do you want pouchdb with web2py ? for client cache? pouchdb is a client only database unless you sync it to a couchdb server. Web2py is a server side framework. Anyway your problem is a javascript/web2py problem , not a pouchdb/web2py problem... maybe this helps you a litle

Re: [web2py] Re: how to create pdf report in web2py???

2017-11-28 Thread António Ramos
Another question. A simple pdf created with reportbro is 560Kb in size. Why is it soo big?? Regards 2017-11-23 12:52 GMT+00:00 António Ramos <ramstei...@gmail.com>: > @alex > you said > if you have a parameter "first_name" then data must contain a key > "f

Re: [web2py] Re: how to create pdf report in web2py???

2017-11-28 Thread António Ramos
Great I´m loving your tool... Regards 2017-11-28 13:29 GMT+00:00 Alex : > your attached report is only 1,8 kB > > reports can get large in case you include large images. currently the > image data itself is not resized, so if you have a very large image the > report could get

Re: [web2py] Re: how to create pdf report in web2py???

2017-11-22 Thread António Ramos
Some questions ... 1 - i see that you have already a report_request table with the reports. Are you talking about this table to save reports? Looks to me that this table is to save the "templates" of the pdf reports 2 - How do i merge data from my db with your templates and generate a live pdf

Re: [web2py] Re: how to create pdf report in web2py???

2017-11-22 Thread António Ramos
Not that easy :) i´m reading your links and also this link https://github.com/jobsta/reportbro-designer/blob/master/demos/custom_save.html where i´m stuck in the save part what url do i put in the save url ? [image: Imagem inline 1] i moved the run function from the reportbro_web2py.py to a

Re: [web2py] Re: how to create pdf report in web2py???

2017-11-22 Thread António Ramos
[image: Imagem inline 1] 2017-11-22 11:07 GMT+00:00 António Ramos <ramstei...@gmail.com>: > Not that easy :) > > i´m reading your links and also this link > https://github.com/jobsta/reportbro-designer/blob/ > master/demos/custom_save.html > > where i´m stuck in the

Re: [web2py] Re: how to create pdf report in web2py???

2017-11-23 Thread António Ramos
Thank you for your help. 2017-11-22 20:37 GMT+00:00 Alex : > you do not have to buy a license for a private app: > https://www.reportbro.com/license/index > > the logo is only printed when using the public available reportbro > instance. When you use your own server there will

Re: [web2py] Re: how to create pdf report in web2py???

2017-11-23 Thread António Ramos
I´m setting the page margins but the pdf and printed paper dont assume that value [image: Imagem inline 1] [image: Imagem inline 2] 2017-11-23 11:11 GMT+00:00 António Ramos <ramstei...@gmail.com>: > Thank you for your help. > > > 2017-11-22 20:37 GMT+00:00 Alex <a...@jo

Re: [web2py] Re: how to create pdf report in web2py???

2017-11-22 Thread António Ramos
Great. Will investigate further... Also another question the reportbro logo at the bottom of the pdf is there to stay? I´m doing a private app for my business. Do i need to pay any licence? How do i remove that logo in the bottom of the page? Regards António 2017-11-22 13:31 GMT+00:00 Alex

Re: [web2py] Re: how to create pdf report in web2py???

2017-11-22 Thread António Ramos
I got it . I have to read the record from the report_request table and do a json.load before the Report(definition, mydata) also in the designer i have to create paramenters... Thank you 2017-11-22 14:55 GMT+00:00 António Ramos <ramstei...@gmail.com>: > Great. Will investigat

Re: [web2py] Re: how to create pdf report in web2py???

2017-11-22 Thread António Ramos
About fonts there is only available Courier new Helvetica Times new roman I need aria, how do i add it ? adding it to static folder and changing the addicional_fonts does not work [image: Imagem inline 1] Regards 2017-11-22 15:45 GMT+00:00 António Ramos <ramstei...@gmail.com>: &

Re: [web2py] Re: how to create pdf report in web2py???

2017-11-23 Thread António Ramos
problem solved... thank u 2017-11-23 11:49 GMT+00:00 António Ramos <ramstei...@gmail.com>: > I´m setting the page margins but the pdf and printed paper dont assume > that value > > [image: Imagem inline 1] > > [image: Imagem inline 2] > > 2017-11-23 11:11 GM

Re: [web2py] Re: how to create pdf report in web2py???

2017-11-23 Thread António Ramos
@alex you said if you have a parameter "first_name" then data must contain a key "first_name". What is the point of the ${variable} in your demos? do i need the ${} ? 2017-11-22 13:31 GMT+00:00 Alex : > On Wednesday, November 22, 2017 at 1:46:06 PM UTC+1, Ramos wrote: >> >>

[web2py] How to make Translation work in auth.messages.registration_pending

2017-11-07 Thread António Ramos
This does not translate to portuguese from my pt.py file auth.messages.registration_pending = T("Your account needs our approval. Please wait a litle more...") How to do it? regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: Translate language help

2017-11-08 Thread António Ramos
Than you Leonel. I solved it. 2017-11-08 15:46 GMT+00:00 Leonel Câmara : > Check how prettydate does it https://github.com/web2py/ > web2py/blob/master/gluon/tools.py#L5535 > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

[web2py] Translate language help

2017-11-07 Thread António Ramos
Hello my code {{=T(h(event["events"]["at"]+datetime.timedelta(hours=-utc),utc) +"ago")}} is generating a lot of keywords in my language file How can i prevent this with only one keyword %d hours, %d minutes ago [image: Imagem inline 1] -- Resources: - http://web2py.com -

[web2py] Re: Translate language help

2017-11-07 Thread António Ramos
the function h comes from human borrowed from this code.. [image: Imagem inline 1] 2017-11-07 18:02 GMT+00:00 António Ramos <ramstei...@gmail.com>: > Hello my code > {{=T(h(event[" > events"]["at"]+datetime.timedelta(hours=-utc),utc) +"ago")}

Re: [web2py] Re: Web2Py + VueJS SPA (Webpack)

2017-12-08 Thread António Ramos
I like very much the framework http://deployd.com/ It produces and updates automatically according to our data model a js file that is loaded to the user frontend and permits to deal with the datamodel directly from the browser... This way there is no need to REST

[web2py] strange URL output ?!

2017-12-21 Thread António Ramos
hello i cannot understand why this code vars=dict(itemID=relatedto,t="entities",uuid=db.entities[relatedto]["uuid"],receipt=1,eventid=eventid) url = URL(a='fileit', c='events',f='list', host=True, args=[], vars=vars) returns this url http://myapp/fileit/events/list*.pdf*

[web2py] Re: what executes first, layout or sub page javascript?

2018-05-09 Thread António Ramos
in layout i removed my js from document.ready to a simple my js code... now it works. 2018-05-09 11:53 GMT+01:00 António Ramos <ramstei...@gmail.com>: > both the js are in $(document).ready(function(){ > > regards > > > 2018-05-09 11:52 GMT+01:00 António Ram

[web2py] Re: what executes first, layout or sub page javascript?

2018-05-09 Thread António Ramos
both the js are in $(document).ready(function(){ regards 2018-05-09 11:52 GMT+01:00 António Ramos <ramstei...@gmail.com>: > Hello strangely the javascript from my layout executes after the js in a > webpage that extends layout. > > Is it so??? > > Regards > -- Res

[web2py] what executes first, layout or sub page javascript?

2018-05-09 Thread António Ramos
Hello strangely the javascript from my layout executes after the js in a webpage that extends layout. Is it so??? 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

Re: [web2py] European General data protection act and web2py

2018-05-18 Thread António Ramos
you can check if web2py is using cookies Just open dev console and find the cookie session_id... Also google for cookie policy , you will find a lot of examples on the internet just google for examples and create one that suits your needs and meets the GDPR regulation.. Regards 2018-05-18

Re: [web2py] TABLE FOR LIST:REFERENCE

2018-05-16 Thread António Ramos
What code are u using in your view to display the record? 2018-05-16 15:17 GMT+01:00 Ayron Rangel : > Guys, > > How can I display the list:reference like a table? > > Ex.: I have this in db.py: "Field('product', 'list:reference products', > notnull=True,

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

2018-05-16 Thread António Ramos
In fact its not an issue with images , any help? regards 2018-05-16 17:14 GMT+01:00 António Ramos <ramstei...@gmail.com>: > Hello i´m sending html emails but some clients for example google have an > issue with images > > Google is showing this code for the original html

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

2018-05-16 Thread António Ramos
Hello i´m sending html emails but some clients for example google have an issue with images Google is showing this code for the original html email... https://www.iol.pt; target=*3D*"_blank"> instead of https://www.iol.pt; target="_blank"> what could be the issue with *3D ???* regards

Re: [web2py] TABLE FOR LIST:REFERENCE

2018-05-17 Thread António Ramos
Could you know to do that in custom?? > > > Em qua, 16 de mai de 2018 12:19, António Ramos <ramstei...@gmail.com> > escreveu: > >> What code are u using in your view to display the record? >> >> 2018-05-16 15:17 GMT+01:00 Ayron Rangel <ayronrange...

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

2018-05-16 Thread António Ramos
Just found out that 3D is inserted all over the html tags in another emails i get. So this should be normal. So my problems is with base 64 images... google does not display them correctly. Any tweek in mail.send ??? 2018-05-16 17:16 GMT+01:00 António Ramos <ramstei...@gmail.com>: >

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

2018-06-06 Thread António Ramos
It works with gmail now Leonel Obrigado :) 2018-06-06 12:20 GMT+01:00 Leonel Câmara : > The path is wrong or not absolute, use something like > mail.Attachment(os.path.join(request.folder, > 'static/images/pending.png')) > > -- > Resources: > - http://web2py.com > - http://web2py.com/book

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

2018-06-06 Thread António Ramos
i cannot get "'fileit/static/images/pending.png' " working. I get [Errno 2] No such file or directory: 'fileit/static/images/pending.png'Versão web2py™ Version 2.14.6-stable+timestamp.2016.05.10.00.21.47 Python Python 2.7.5: /home/ramstein74/webapps/new2py/bin/uwsgi (prefix: /usr)Traceback 1. 2.

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

<    8   9   10   11   12   13   14   15   16   >