Yes Antony, You got it right
The issue is that both
form.vars.start_date and form.vars.end_date
returns a str type.
Exactly the same code under 2.14.6 returns a 'date' type
On Thursday, August 23, 2018 at 6:02:49 AM UTC+2, Anthony wrote:
>
> On Wednesday, August 22, 2018 at 6:41:06 PM UTC-4, J
On Wednesday, August 22, 2018 at 6:41:06 PM UTC-4, Joe Barnhart wrote:
>
> So "session" stuff gets pickled and unpicked which makes sense that dates
> might come back as strings.
>
Pickling preserves the data type. That is not the issue here. The problem
is the values in form.vars used to be dat
I hate to answer my own post, but what if I did something in a customer
Validator? What if the error returned by my validator was something like
SPAN("blah blah", _class="warning"). Presumably I could search the FORM
using elements() finding my SPANs and then modify the enclosing DIVs to be
c
So "session" stuff gets pickled and unpicked which makes sense that dates
might come back as strings. What puzzles me is that it "used to work" so
did pickled date objects used to come back as date objects again? That
would seem like a much bigger change than just this example.
-- Joe
On Tue
I'm looking to add "warnings" to forms using (/hijacking) as much of the
existing form "errors" mechanism as possible. The idea is to provide a
second level check that gives advice rather than drop-dead errors.
I would like it to operate like this:
1. The form is submitted and checked for err
My app is configured with CAS (another web2py instance with Active
Directory integrated) and authentication works. Now I want to enable basic
authentication for certain calls via curl and cannot make it to work. When
I invoke the curl command I get a redirect to the CAS login page.
auth.settin
On Wednesday, August 22, 2018 at 12:39:29 PM UTC-7, Marcelo Huerta wrote:
>
>
> El martes, 14 de agosto de 2018, 10:59:53 (UTC-3), Marcelo Huerta escribió:
>>
>> Is it possible at all to search for values contained in fields defined as
>> list:string in the grid search dialog?
>>
>
> Anyone?
>
El martes, 14 de agosto de 2018, 10:59:53 (UTC-3), Marcelo Huerta escribió:
>
> Is it possible at all to search for values contained in fields defined as
> list:string in the grid search dialog?
>
Anyone?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://gith
Where and how is db.mail_logger defined? Is it possible either the code
that defines it is not being run, or that the db object is being redefined
after it has run?
On Wednesday, August 22, 2018 at 8:34:08 AM UTC-4, Yebach wrote:
>
> Attaching code
>
>
> #scheduler koda za pošiljanje mailov za s
Attaching code
#scheduler koda za pošiljanje mailov za stanje števcev
def send_mail_stevci(first_reminder = False):
dons = datetime.datetime.now()
#a = True
try:
if dons.day in [22,25,28]:
#if a:
counters_data_oddani = db((db.counters.c_date.year() ==
dons
Hard to say without seeing code. Obviously the mail_logger table is not
defined in the context of the task being executed. Is it possible the db
object is redefined somewhere in the code?
On Wednesday, August 22, 2018 at 6:15:47 AM UTC-4, Yebach wrote:
>
> Hello
>
> I have a scheduler running so
Hello
I have a scheduler running some emailing tasks. After email is sent it
should write into table mail_logger. When insert should happen I get an
error DAL object has no attribute mail_logger.
On my test environment everything is working fine.
any suggestions?
Thank you
--
Resources:
-
Às 03:28 de 22-08-2018, Anthony escreveu:
> On Tuesday, August 21, 2018 at 12:37:16 PM UTC-4, Carlos Correia wrote:
>
> Hi,
>
>
> Is it possible to set a cookie and redirect to another page in the same
> controller?
>
> If yes, how? I tried this simple example but the cookie is lost
13 matches
Mail list logo