I got an error on this change:
https://github.com/web2py/web2py/commit/bd6115ad62bd8b8610f5bb23c92305c368e57d37#diff-03411a71189d2ba825e3b902d58cc824R62
Traceback (most recent call last):
File "/Users/pbreit/dev/messagedesk/web2py/gluon/restricted.py", line 227, in
restricted
exec ccode
Hello, all
I found something really weird happened to my auth_user table.
whenever I try to add a new user to auth_user table, it gives me a default
value 38 for the *Created By* field.
So I keep getting IntegrityError: *FOREIGN KEY constraint failed *because
there is not such a user with id
On Friday, March 25, 2016 at 12:49:54 PM UTC-7, Leonel Câmara wrote:
>
> Can you tell me exactly what you're trying to do? I see how you're trying
> to do it and it seems complicated, so I'd like to know what you're trying
> to accomplish first.
>
It looks like he's doing 2 things: adding
On Friday, March 25, 2016 at 4:46:22 PM UTC-7, Arun Kumar wrote:
>
> Hi,
>I'm using scheduler to run different jobs everyday. To create a new job
> I simply insert into scheduler_task table like below,
>
> db.scheduler_task.insert(function_name = "run_job", task_name = "job1",
> repeats =
Hi,
I'm using scheduler to run different jobs everyday. To create a new job
I simply insert into scheduler_task table like below,
db.scheduler_task.insert(function_name = "run_job", task_name = "job1",
repeats = 1, period = 86400, start_time = start_time, stop_time = end_time,
prevent_drift
I made these
http://mdipierro.github.io/stupid.css/widgets/index.html
Still beta but the calendar one is there to stay. I will be come default in
web2py in the next version.
On Friday, 25 March 2016 12:17:18 UTC-5, ..mg.. wrote:
>
> I'm looking to replace the date and time widgets that ship
Can you tell me exactly what you're trying to do? I so how you're trying to
do it and it seems complicated, so I'd like to know what you're trying to
accomplish first.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
On Friday, March 25, 2016 at 12:22:22 PM UTC-7, Anthony wrote:
>
> Do you have an __init__.py in /applications as well as /uploader?
>
> Anthony
>
Ha! I just figured it out, and saw your message as I came back to report.
It was uploader/__init__.py that was missing. I had missed that when
Do you have an __init__.py in /applications as well as /uploader?
Anthony
On Friday, March 25, 2016 at 3:13:35 PM UTC-4, Dave S wrote:
>
> On Thursday, March 24, 2016 at 4:55:27 PM UTC-7, Dave S wrote:
>>
>> On Thursday, March 24, 2016 at 1:17:18 PM UTC-7, Dave S wrote:
>>>
>>> On Thursday,
On Thursday, March 24, 2016 at 4:55:27 PM UTC-7, Dave S wrote:
>
> On Thursday, March 24, 2016 at 1:17:18 PM UTC-7, Dave S wrote:
>>
>> On Thursday, March 24, 2016 at 12:41:50 PM UTC-7, Dave S wrote:
>>>
>>> On Thursday, March 24, 2016 at 10:36:54 AM UTC-7, Massimo Di Pierro
>>> wrote:
Given the table :
db.define_table('form1',
Field('field1, 'string'),
Field('field2', 'string'),
Field('field3', 'integer'),
Field('form1_file', 'upload', compute=fpost))
If a user is starting a form session and enter the value 2, they submit
values for:
field1_0, field2_0,
I'm looking to replace the date and time widgets that ship with web2py.
My dream widget would use dropdowns (or similar) for
month/day/hour/minute, but store values as datetime objects (like native
web2py).
Does anyone have experience or recommendations with this?
Thanks,
-mg
--
Is great! I think is a good choose to introduce a functionality that in
admin console you can choose this as starter
On Friday, 25 March 2016 11:09:38 UTC+1, Ramos wrote:
>
> This starter is sooo cool.
> Its was time we had something like this.
>
>
>
> 2016-03-24 19:51 GMT+00:00 Ron Chatterjee
On Friday, March 25, 2016 at 8:41:49 AM UTC-4, Ramos wrote:
>
>
> http://bjorngylling.com/2011-04-13/postgres-listen-notify-with-node-js.html
>
> hi , could postgres NOTIFY be better/simpler than having to install
> tornado to have socket message to my app?
>
No, PostgreSQL NOTIFY will send
Instead of removing the upload/compute field and making a separate table
for that.. Is this something a virtual field can be used for?
I'm still trying to read more on virtual fields and gain an understanding
but essentially the compute field will call onto a class which is being
passed the
Hi Michael,
On 24/03/16 21:23, Michael Beller wrote:
For low volume apps, GAE is also great - I run several apps (really just
simple sites) on GAE for free (but I don't think that supports PHP either).
Happily, GAE does now support PHP: -
https://cloud.google.com/appengine/docs/php/
Humm if you don't mind installing python for windows extensions. You could
try:
import platform
import datetime
if platform.system() == 'Windows':
from win32timezone import TimeZoneInfo, TimeZoneDefinition
localnow =
datetime.datetime.now(TimeZoneInfo(TimeZoneDefinition.current()[1]))
Here is some more info on this. The datetime module does not return the
correct time if the timezone is changed, unless the Python instance is
restarted.
http://bugs.python.org/issue17627
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Also, you can look at the book application by yourself; the local
installation is quite simple and it works fine on PythonAnywhere, see
http://web2py.com/books/default/chapter/29/03/overview?search=web2py-book
Just use the .git URL (https://github.com/mdipierro/web2py-book.git ) in
the upload
Yes, that's exactly what happened. I did not restart web2py after changing
the timezone and I don't want to do that too. I want the correct time
dynamically, without having to restart the server.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Here you go:
https://github.com/mdipierro/web2py-book
--
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
Nevermind I clearly needed more coffee.
This is weird. Why would calling it in web2py be different. I can't
replicate this. Is it possible web2py was launched before you changed the
timezone?.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Yep you're right. I made a pull request fixing it.
https://github.com/web2py/web2py/pull/1249
This commit is to blame:
https://github.com/web2py/web2py/commit/8058dc2ce6b12e71fd109b48ec9b8b2b2f09e6f0
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
http://bjorngylling.com/2011-04-13/postgres-listen-notify-with-node-js.html
hi , could postgres NOTIFY be better/simpler than having to install tornado
to have socket message to my app?
Regards
António
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Web2py 2.14.2, imageutils.py in line 31, falta una coma ","
--
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
Hello
I am having a problem with my login form
I have a login form on my index page.
If a user enters wrong pass there is no error msg only page is reloaded
Any suggestion? Thank you
My controller:
def index():
# If user is not logged in
if not auth.is_logged_in():
No, it doesn't. 6:00 PM + 7 hrs = 1:00 AM (of next day).
--
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
But that shows a 9 hour difference.
--
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
Hello to everybody.
I have to build in a app an online manual for electronic control cards like
Arduino, but dedicated to Hydraulic applications like aerial platforms,
cranes.
As the product have a lot of functions and potentially applications, manual
will have something like 500 pages.
Pacific Time (US & Canada (UTC -08:00) is the selected timezone. When it's
6:00 PM in LA, its 1:00 AM (of the next day) UTC. There's a 7 hour
difference between LA and UTC (since DayLight Saving is active right now).
Hence, the results quoted are correct.
--
Resources:
- http://web2py.com
-
When I use the *Python interpreter* to print the datetime, I get
>>> print datetime.datetime.now()
2016-03-24 18:02:58.814000
>>> print datetime.datetime.utcnow()
2016-03-25 01:02:58.814000
How is this correct if your timezone is not UTC?
--
Resources:
- http://web2py.com
-
Hi Massimo,
Yeah its awesome change set i can see, specially for GAE support. very
Thanks to Simone (niphlod), Richard, and Leonel for contribution. Very
congrats to all :) .
Now i am not using web2py much but always kept eyes on update in groups
post and github logs.
Congrats once again to
This starter is sooo cool.
Its was time we had something like this.
2016-03-24 19:51 GMT+00:00 Ron Chatterjee :
> Its all good. Just asked.
>
>
> On Thursday, March 24, 2016 at 3:33:00 PM UTC-4, Michael Beller wrote:
>>
>> No Avatar field yet! It's hardcoded in the
import os
from gluon import recfile
session_filename = recfile.generate(session_id)
full_filename = os.path.join(request.folder, 'sessions/', session_filename)
that's how I get the filename from a session id. Keep in mind that a user
can have multiple sessions (logged in from different devices,
I start the web2py server using this command
python web2py.py
The I go to localhost:8000/app_name
I haven't set any timezone value in the environment variable, so I guess it
should be default. However, I have set the system time and timezone from
the bottom right clock.
--
Resources:
-
how do you run the web2py application ? utc times match perfectly, it's
just the timezone that is not matching... environmental variables ?!
On Friday, March 25, 2016 at 7:24:31 AM UTC+1, mfarees...@gmail.com wrote:
>
> Hi.
> I am in Asia/Karachi timezone and am testing my application for
Hi.
I am in Asia/Karachi timezone and am testing my application for US/Pacific
timezone. Here is the scenario:
The *system time* that I've set is,
2016-03-24 18:02:58
and the timezone is US/Pacific
When I use the *Python interpreter* to print the datetime, I get
>>> print
37 matches
Mail list logo