[web2py] Re: Suddenly my task scheduler stopped working

2017-06-28 Thread Niphlod
it's normal if the execution timeoutted. On Tuesday, June 27, 2017 at 7:11:12 PM UTC+2, Ramos wrote: > > 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 = e

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

2017-06-28 Thread Niphlod
we have a section on the book on static asset management http://web2py.com/books/default/chapter/29/04/the-core#Static-asset-management On Sunday, June 25, 2017 at 10:01:27 PM UTC+2, Ramos wrote: > > I´m using this > https://github.com/mjbeller/web2py-starter > but i noticed that with only me as

[web2py] saving PDF documents in my database and displaying them

2017-06-28 Thread mostwanted
Hi guys can you please help me, i need assistance saving PDF documents in my database and displaying those PDF documents at the click of a link. Thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.go

[web2py] Advice needed on complex SQL operation

2017-06-28 Thread Karoly Kantor
I am hoping someone more experienced could give me some advice on how best to proceed with this: I have a large table with columns C1, C2, C3, Cx I have a user defined filter, e.g. select those where C1 = "active" and C2 > 2017.01.01. I have already implemented this, based on user input, i

Re: [web2py] Re: datetime or timestamp ?

2017-06-28 Thread António Ramos
Thank you Very helpfull -- 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 subscribed to the Google Groups "web2py

[web2py] Re: datetime or timestamp ?

2017-06-28 Thread Dave S
On Tuesday, June 27, 2017 at 4:08:25 AM UTC-7, Leonel Câmara wrote: > > Always store everything in UTC, seriously just have request.now = > request.utcnow as the first line in all your applications. > > It's very easy to get a user's UTC offset using javascript: > > (new Date()).getTimezoneOffs

[web2py] Re: saving PDF documents in my database and displaying them

2017-06-28 Thread Dave S
On Wednesday, June 28, 2017 at 1:24:06 AM UTC-7, mostwanted wrote: > > Hi guys can you please help me, i need assistance saving PDF documents in > my database and displaying those PDF documents at the click of a link. > > Thank you > Basically, you need an upload field in your model, and to do

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

2017-06-28 Thread Dave S
On Tuesday, June 27, 2017 at 10:21:24 AM UTC-7, Richard wrote: > > Hmm... Google CDN is not always on the cutting edge... > Sometimes that's a good thing (like web2py stable versions). > You should use the same version as the one ship with web2py if you want to > avoid any issues... > An

Re: [web2py] Re: datetime or timestamp ?

2017-06-28 Thread Richard Vézina
I think it not working and have been removed from trunk... On Wed, Jun 28, 2017 at 6:14 AM, Dave S wrote: > > > On Tuesday, June 27, 2017 at 4:08:25 AM UTC-7, Leonel Câmara wrote: >> >> Always store everything in UTC, seriously just have request.now = >> request.utcnow as the first line in all y

[web2py] Re: FPDF "ne commence pas par '%PDF-' "

2017-06-28 Thread Peter
Usually I'm the one getting the help J-Michel, So I'm very happy to have helped someone out for a change! Regards Peter -- 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] 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) delete_record

Re: [web2py] Re: FPDF "ne commence pas par '%PDF-' "

2017-06-28 Thread Ovidio Marinho
Publish this in http://www.web2pyslices.com/home, everyone always asks for this problem. [image: http://itjp.net.br] http://itjp.net.b r *Ovidio Marinho Falcao Neto* ovidio...@gmail.com

[web2py] Re: function lazy_user at ...

2017-06-28 Thread Anthony
In auth.signature, the "created_by" field has a "default" attribute, which is a function (called "lazy_user") that returns auth.user_id. At the point at which the value of the compute field is computed, the row object passed to the compute function simply includes the "lazy_user" function as the

[web2py] Totally app-internal routing

2017-06-28 Thread Brendan Barnwell
Looking at the routing discussion in the docs, it seems that any kind of custom routing has to be defined at the global level of the entire web2py install. Is that correct? This seems awkward if I want to write an app that carries with it its own knowledge of how it wants to route its interna

[web2py] Blockquote in markmin

2017-06-28 Thread Martin Weissenboeck
I have run the markmin2html.py file. The results of blockquotes are not as expected, e.g.: ​This is a blockquote with a list with tables in it: This is a paragraph before list. You can continue paragraph on the next lines. This is an ordered list with tables: + Item 1 + Item 2 + aa|bb|cc