We could certainly do that... Things would happen in web2py.js thought, or we bringing out flatpickr from there... But it wouldn't work properly passing parameters time/date/datetime from validators IS_TIME(), IS_DATE(), etc. So we will get complaints saying that it doesn't work specifying date format from validator as before...
I would have make sure that python datetime format plugin would support most of the regular date time formating (not all) and we can just point people to improve the plugin if their formating is not cover... Writing a 2-3 use case plugin in the first place wouldn't be that long... We can craft a built massage telling people to improve the plugin when their usecase is not cover... So we can implement default web2py date time formating only to pick up flatpickr rapidly... I am not that good in javascript though, so I leave that to others... Richard On Mon, Jun 26, 2017 at 10:33 AM, Anthony <abasta...@gmail.com> wrote: > I'm not sure it would really have to support Python date formatting. > Couldn't we just specify the appropriate default formats in > web2py_ajax.html > <https://github.com/web2py/web2py/blob/2f0b429f9ecbc95d5f10bf768ddae9376f469879/applications/welcome/views/web2py_ajax.html#L6-L7> > and then point users to the Flatpickr documentation if they want to use > alternative formats (they'll need the Flatpickr documentation anyway to > make other types of customizations)? > > Anthony > > > On Monday, June 26, 2017 at 10:16:05 AM UTC-4, Richard wrote: >> >> To integrate flatpickr a flatpickr plugin should be write to support >> python date time string formating : http://strftime.org/ >> >> That what have been suggested by flatpickr devs : >> https://github.com/chmln/flatpickr/issues/886 >> >> I try to integrate flatpickr here and it get muddy along the road as I >> learn flatpickr API for datetime formating which is javascript compliant if >> compliant to anything at all... Code here : https://github.com/Buhtigith >> uB/web2py/tree/improve/replace-calendar-time-picker-by-flatpicker >> >> It works, but you have to support all kinds of datetime string formatting >> for which you will have a lot of logic to write... This logic should be >> write once as a flatpickr plugin to me... >> >> Calendar may be ogly but by accepting python switches : >> http://www.dynarch.com/jscal/#printDate >> >> It made it a really good fit... >> >> I don't really have time to work on a flatpickr plugin... >> >> Richard >> >> On Fri, Jun 23, 2017 at 10:36 AM, Oasis Agano <oasisag...@gmail.com> >> wrote: >> >>> i think this guy is working on the flatpickr datepicker but could use >>> some help >>> >>> https://github.com/web2py/web2py/issues/1646 >>> >>> >>> On Monday, June 5, 2017 at 10:39:11 AM UTC+2, Karoly Kantor wrote: >>>> >>>> Dear Massimo, >>>> >>>> I saw your question in the developers group where I cannot post, >>>> therefore i do it here. >>>> >>>> I am currently aware of the following issues to be fixed: >>>> >>>> 1. Google 2nd generation SQL is definitely a problem. Please note I >>>> made a temporary hack to fix it, described here: >>>> https://groups.google.com/forum/?fromgroups=#!topic/web2py/vs39zZpaH7g >>>> >>>> 2. We have a long overdue issue with the password reset emails not >>>> sending on GAE. I am using a temporary dirty workaround that sends a plain >>>> text new password, search for the issue about "lazyT object being passed to >>>> GAE". >>>> >>>> 3. I am having trouble making the date picker work nicely across all >>>> browsers, especially where there is a native solution. Microsoft Edge is >>>> the worst case. In general, would be good to have a nicer date picker >>>> >>>> 4. General comment: We have "batteries included", however, some of >>>> those batteries now have newer versions than included, e.g. bootstrap >>>> >>>> >>>> >>>> >>>> -- >>> 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-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to web2py+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > 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-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.