Re: [web2py] Re: SystemExit: 1 ticket on scheduler

2017-01-31 Thread Gael Princivalle
>Is that the traceback from the associated record in the scheduler_run
table?
Yes

--
Gael Princivalle

2017-01-30 22:16 GMT+01:00 Anthony :

> Looks like maybe an error somewhere in your model files. Is that the
> traceback from the associated record in the scheduler_run table?
>
> Anthony
>
>
> On Monday, January 30, 2017 at 8:02:29 AM UTC-5, Gael Princivalle wrote:
>>
>> Hello.
>>
>> I've got a scheduler function that run each 30 seconds for sending web
>> push notifications:
>>
>> def process_webn_alerts():
>> webn_alerts = db(db.alerts.instant_webn_status == 1).select()
>> for webn_alert in webn_alerts:
>> onesignal_players = db(db.onesignal_players.created_by ==
>> webn_alert.to_user).select()
>> for onesignal_player in onesignal_players:
>> header = {"Content-Type": "application/json; charset=utf-8",
>> "Authorization": "Basic my_auth_key"}
>> payload = {"app_id": "my_app_id",
>> "headings": {"en": webn_alert.title},
>> "include_player_ids": [onesignal_player.uuid],
>> "contents": {"en": webn_alert.body},
>> "url": webn_alert.link,
>> "chrome_web_icon": webn_alert.icon_url
>> }
>> req = requests.post("https://onesign
>> al.com/api/v1/notifications", headers=header, data=json.dumps(payload))
>> print(req.status_code, req.reason)
>> db(db.alerts.id == webn_alert.id).update(instant_webn_status
>> = 2)
>> db.commit()
>>
>> It has run correctly for 10 hours, without any web push notification to
>> send. After that it failed with this ticket:
>>
>> Traceback (most recent call last):
>>   File "/home/tasko/webapps/w2p_2_14_16/web2py/gluon/scheduler.py", line
>> 293, in executor
>> _env = env(a=a, c=c, import_models=True)
>>   File "/home/tasko/webapps/w2p_2_14_16/web2py/gluon/shell.py", line 166,
>> in env
>> sys.exit(1)
>> SystemExit: 1
>>
>> Does it mean that the http Onesignal call has failed?
>>
>> Thanks.
>>
>> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/web2py/EOIJFWpBafM/unsubscribe.
> To unsubscribe from this group and all its topics, 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.


Re: [web2py] Re: SystemExit: 1 ticket on scheduler

2017-01-31 Thread Gael Princivalle
Ok probably a timing out due to the https call that has not replied in less
than 60 sec (the timeout of the task).
I've set now retry_failed to -1.

Thanks.

--
Gael Princivalle

2017-01-31 8:45 GMT+01:00 Niphlod :

> or it got a SIGTERM, or it was timing out.
>
>
> On Monday, January 30, 2017 at 10:16:49 PM UTC+1, Anthony wrote:
>>
>> Looks like maybe an error somewhere in your model files. Is that the
>> traceback from the associated record in the scheduler_run table?
>>
>> Anthony
>>
>> On Monday, January 30, 2017 at 8:02:29 AM UTC-5, Gael Princivalle wrote:
>>>
>>> Hello.
>>>
>>> I've got a scheduler function that run each 30 seconds for sending web
>>> push notifications:
>>>
>>> def process_webn_alerts():
>>> webn_alerts = db(db.alerts.instant_webn_status == 1).select()
>>> for webn_alert in webn_alerts:
>>> onesignal_players = db(db.onesignal_players.created_by ==
>>> webn_alert.to_user).select()
>>> for onesignal_player in onesignal_players:
>>> header = {"Content-Type": "application/json; charset=utf-8",
>>> "Authorization": "Basic my_auth_key"}
>>> payload = {"app_id": "my_app_id",
>>> "headings": {"en": webn_alert.title},
>>> "include_player_ids": [onesignal_player.uuid],
>>> "contents": {"en": webn_alert.body},
>>> "url": webn_alert.link,
>>> "chrome_web_icon": webn_alert.icon_url
>>> }
>>> req = requests.post("https://onesign
>>> al.com/api/v1/notifications", headers=header, data=json.dumps(payload))
>>> print(req.status_code, req.reason)
>>> db(db.alerts.id == webn_alert.id).update(instant_webn_status
>>> = 2)
>>> db.commit()
>>>
>>> It has run correctly for 10 hours, without any web push notification to
>>> send. After that it failed with this ticket:
>>>
>>> Traceback (most recent call last):
>>>   File "/home/tasko/webapps/w2p_2_14_16/web2py/gluon/scheduler.py",
>>> line 293, in executor
>>> _env = env(a=a, c=c, import_models=True)
>>>   File "/home/tasko/webapps/w2p_2_14_16/web2py/gluon/shell.py", line 166
>>> , in env
>>> sys.exit(1)
>>> SystemExit: 1
>>>
>>> Does it mean that the http Onesignal call has failed?
>>>
>>> Thanks.
>>>
>>> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/web2py/EOIJFWpBafM/unsubscribe.
> To unsubscribe from this group and all its topics, 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.


[web2py] scheduler task setting 127.0.0.1 when Host=True

2017-01-31 Thread António Ramos
hello i´m using webfaction hosting for my app.

inside my task controller i have this

url=sign_url('fileit','events','list',args,vars,host,auth.user_id)

i then print the url to check the content and i get

url=":http://127.0.0.1:8000/fileit/events/list";

why is 127.0.0.1 instead of the public ip of webfaction??

any ideas?

regards

António

-- 
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.


[web2py] Re: scheduler task setting 127.0.0.1 when Host=True

2017-01-31 Thread Leonel Câmara
What is sign_url doing?  
  
How are you getting the host? Are you using request to find the host inside 
a scheduler task?

-- 
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.


Re: [web2py] Re: scheduler task setting 127.0.0.1 when Host=True

2017-01-31 Thread António Ramos
Forget my sign url function. my mistake... i should have simplified it to
the problem...
a simple URL('fileit','events','list',host=True) in my scheduler task
produces
http://127.0.0.1:8000/fileit/events/list

Regards

2017-01-31 12:53 GMT+00:00 Leonel Câmara :

> What is sign_url doing?
>
> How are you getting the host? Are you using request to find the host
> inside a scheduler task?
>
> --
> 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.


[web2py] Re: How to use Let's Encrypt with Web2Py on Apache

2017-01-31 Thread Carlos Correia
How did you do it? I'm facing the same problem...

Thanks


-- 
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.


[web2py] Forms suddenly not working!

2017-01-31 Thread Andrew Buchan
Hi, I just updated an application hosted on pythonanywhere, and the forms
are no longer working.

Even the login form (default, unaltered), doesn't seem to work. When I hit
submit the page simply reloads, with no error messages. Same goes for all
my very simple forms.

- There are no errors in the logs.
- The same app running locally against an sqlite database works fine.
- I'm thinking it may be a database issue, but I can write to the db fine
from the admin app.
- The appconfig.ini does point to the correct database, as it reads data
fine to display in the view
- The flash messages div is there and works, but the code never gets to
that when submitting a form.

Running 2.12.1

Any ideas on what it could be?

-- 
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.


[web2py] Re: Forms suddenly not working!

2017-01-31 Thread Anthony
If forms are not validating but there are no error messages, likely the 
_formkey check is failing (which is used for CSRF protection). Not sure why 
that would be the case. Is the session cookie going back and forth as 
expected?

Anthony

On Tuesday, January 31, 2017 at 10:06:27 AM UTC-5, Andrew Buchan wrote:
>
> Hi, I just updated an application hosted on pythonanywhere, and the forms 
> are no longer working.
>
> Even the login form (default, unaltered), doesn't seem to work. When I hit 
> submit the page simply reloads, with no error messages. Same goes for all 
> my very simple forms.
>
> - There are no errors in the logs.
> - The same app running locally against an sqlite database works fine.
> - I'm thinking it may be a database issue, but I can write to the db fine 
> from the admin app.
> - The appconfig.ini does point to the correct database, as it reads data 
> fine to display in the view
> - The flash messages div is there and works, but the code never gets to 
> that when submitting a form.
>
> Running 2.12.1
>
> Any ideas on what it could be?
>
>
>

-- 
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.


[web2py] Re: Forms suddenly not working!

2017-01-31 Thread Andrew Buchan
How can I check that?

On Tuesday, January 31, 2017 at 3:12:10 PM UTC, Anthony wrote:
>
> If forms are not validating but there are no error messages, likely the 
> _formkey check is failing (which is used for CSRF protection). Not sure why 
> that would be the case. Is the session cookie going back and forth as 
> expected?
>
> Anthony
>
> On Tuesday, January 31, 2017 at 10:06:27 AM UTC-5, Andrew Buchan wrote:
>>
>> Hi, I just updated an application hosted on pythonanywhere, and the forms 
>> are no longer working.
>>
>> Even the login form (default, unaltered), doesn't seem to work. When I 
>> hit submit the page simply reloads, with no error messages. Same goes for 
>> all my very simple forms.
>>
>> - There are no errors in the logs.
>> - The same app running locally against an sqlite database works fine.
>> - I'm thinking it may be a database issue, but I can write to the db fine 
>> from the admin app.
>> - The appconfig.ini does point to the correct database, as it reads data 
>> fine to display in the view
>> - The flash messages div is there and works, but the code never gets to 
>> that when submitting a form.
>>
>> Running 2.12.1
>>
>> Any ideas on what it could be?
>>
>>
>>

-- 
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.


[web2py] Re: Forms suddenly not working!

2017-01-31 Thread Andrew Buchan
OK, silly me, never thought to check if it works on another browser, which 
it does, so I guess I'll just try donating my cookies to the dev/null 
cookie monster :-D
Thanks for chipping in, I was panicking slightly...

On Tuesday, January 31, 2017 at 3:06:27 PM UTC, Andrew Buchan wrote:
>
> Hi, I just updated an application hosted on pythonanywhere, and the forms 
> are no longer working.
>
> Even the login form (default, unaltered), doesn't seem to work. When I hit 
> submit the page simply reloads, with no error messages. Same goes for all 
> my very simple forms.
>
> - There are no errors in the logs.
> - The same app running locally against an sqlite database works fine.
> - I'm thinking it may be a database issue, but I can write to the db fine 
> from the admin app.
> - The appconfig.ini does point to the correct database, as it reads data 
> fine to display in the view
> - The flash messages div is there and works, but the code never gets to 
> that when submitting a form.
>
> Running 2.12.1
>
> Any ideas on what it could be?
>
>
>

-- 
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.


[web2py] Re: Forms suddenly not working!

2017-01-31 Thread Anthony
On Tuesday, January 31, 2017 at 10:17:50 AM UTC-5, Andrew Buchan wrote:
>
> How can I check that?
>

For future reference, in case you didn't figure it out, you can see cookies 
going back and forth with each request/response via the browser developer 
tools (in the network tab).

Anthony

-- 
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.


Re: [web2py] Re: vue.js

2017-01-31 Thread 'John Philip' via web2py-users
Hi Stephan,

I tried the brutal approach. I changed the delimiters for web2py on the 
model and changed all of the views accordingly. I left the delimiters for 
vuejs as default ('{{' '}}')

regards,

John

On Monday, January 30, 2017 at 10:24:25 AM UTC+1, St. Pirsch wrote:
>
> Hello John,
> Would you mind sharing your solution? 
> Thx,
> Stephan

-- 
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.


[web2py] Re: scheduler task setting 127.0.0.1 when Host=True

2017-01-31 Thread Leonel Câmara
Yeah that's what I thought. host=True makes URL use request.env.http_host, 
except the scheduler doesn't have a real request so it becomes 127.0.0.1.

Instead of host=True put the actual domain host='ramos.com' or read it from 
a config host=myconf.get('host.names')[0], something like that.

-- 
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.


Re: [web2py] Re: scheduler task setting 127.0.0.1 when Host=True

2017-01-31 Thread António Ramos
Solved.
Thank you

2017-01-31 17:15 GMT+00:00 Leonel Câmara :

> Yeah that's what I thought. host=True makes URL use request.env.http_host,
> except the scheduler doesn't have a real request so it becomes 127.0.0.1.
>
> Instead of host=True put the actual domain host='ramos.com' or read it
> from a config host=myconf.get('host.names')[0], something like that.
>
> --
> 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.


[web2py] user_signature in url in email forces user to login but after redirects without signature

2017-01-31 Thread António Ramos
Hello i send this link to a user

http://domain.pt/fileit/events/list?_signature=xxx2edb30xxx39dbb8996911ed4d210dd96c1141

The controller events\list is

@auth.requires(lambda: URL.verify(request, hmac_key='%s%s' % (secret,
auth.user_id)))
def list():

The user clicks on the link and gets redirected to login.

but its written in the url as shown in the pic.
The signature is lost

[image: Imagem inline 1]


and after loggin in, it redirects again to the login page because it cannot
verify the signature.

How can i solve this?

Regards
António

-- 
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.


[web2py] Re: How to use Let's Encrypt with Web2Py on Apache

2017-01-31 Thread Dave S


On Tuesday, January 31, 2017 at 6:31:24 AM UTC-8, Carlos Correia wrote:
>
> How did you do it? I'm facing the same problem...
>
> Thanks
>
>
>
Do these posts help?

https://groups.google.com/d/msg/web2py/Mg5kK2AuoMQ/jN5CbytMBAAJ>
 https://groups.google.com/d/msg/web2py/Dx52cLv-8-Y/qucFmMWWBgAJ>

(I've linked to specific answers from Anthony, but each is in a thread that 
provides a little more information.)

/dps

-- 
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.


[web2py] Re: user_signature in url in email forces user to login but after redirects without signature

2017-01-31 Thread Leonel Câmara
Why do you need a signature for something that requires the user to be 
logged in?

-- 
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.


[web2py] Re: DAL Query string for MariaDB

2017-01-31 Thread SR
It wasn't working due to different reason. After fixing that this Query 
string works.



On Friday, January 20, 2017 at 4:43:40 PM UTC-6, SR wrote:
>
> What will be DAL Query string in db.py for MariaDB database in my Centos 7 
> machine?
> Is this right?
> db = DAL('mysql://root:password@localhost/db_name’)
>

-- 
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.


[web2py] Import application from staging to production server

2017-01-31 Thread Anatoli Hristov
Hello,

When I try to import an application I get error. It's my first time that I 
get this, I imported plenty apps.

Error ticket for "idstock"Ticket ID

81.164.40.94.2017-01-30.16-32-55.1a6057a7-defb-45ff-af30-25bccb9dbe3e
 Cannot import module 
'applications.idstock.modules.pkg_resources'Version
web2py™ Version 2.14.6-stable+timestamp.2016.05.10.00.21.47
Python Python 2.7.9: /usr/bin/python (prefix: /usr)Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.

Traceback (most recent call last):
  File "/home/idklic/web2py/gluon/restricted.py", line 227, in restricted
exec ccode in environment
  File "/home/idklic/web2py/applications/idstock/controllers/default.py" 
, line 10, 
in 
pygal = local_import('pygal')
  File "/home/idklic/web2py/gluon/compileapp.py", line 439, in 
local_import_aux(name, reload, app)
  File "/home/idklic/web2py/gluon/compileapp.py", line 347, in local_import_aux
module = __import__(name)
  File "/home/idklic/web2py/gluon/custom_import.py", line 108, in 
custom_importer
return NATIVE_IMPORTER(name, globals, locals, fromlist, level)
  File "applications/idstock/modules/pygal/__init__.py", line 29, in 
import pkg_resources
  File "/home/idklic/web2py/gluon/custom_import.py", line 89, in custom_importer
raise ImportError, 'Cannot import module %s' % str(e)
ImportError: Cannot import module 'applications.idstock.modules.pkg_resources'

Error snapshot [image: help] 


(Cannot import module 
'applications.idstock.modules.pkg_resources')

-- 
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.


[web2py] Re: Web2Py & Pycharm Debugger not working

2017-01-31 Thread Harold Sarmiento


I have merged my project Web2py to the last version, this causes the debug 
breakpoints does not work never more, if i return to my previous commit, 
the breakpoints work again, then seems to be a problem with the new versión 
of Web2py.

I am using Eclipse Mars 2 Release (4.5.2) with Pydev 4.5.5 .

>
>

-- 
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.


[web2py] Re: Payment gateway working app using AuthorizNet

2017-01-31 Thread Massimo Di Pierro
There is an example in gluon/contrib/AuthorizeNet.py but I do not think 
anybody used that in year.

On Monday, 30 January 2017 15:35:00 UTC-6, Ron Chatterjee wrote:
>
> Is there a fully working version of payment gateway using AuthorizeNet 
> that anyone can share?
>
>

-- 
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.