Re: [web2py] Re: I was thinking about python2 clock

2018-03-26 Thread Ty oc
I see, and in fact, yes, I was surprised to see that it run OK on first try 
on python3.

Thought this is a little pulling it off, it would be nice if I could run 
the pycharm check code for webpy modules and get 0 warnings or errors.


SO, I wonder, if you have a setup that "allow" this? 



El jueves, 22 de marzo de 2018, 16:53:19 (UTC-6), Anthony escribió:
>
> On Thursday, March 22, 2018 at 3:26:31 PM UTC-4, Richard wrote:
>>
>> Take care if you run your app under python 3... It a no way back because 
>> pickled object format change and you can't cleanly revert this change 
>> back... Try it with a copy of your app.
>>
>
> Of course it is a good idea to back up your app before making any changes, 
> but I wouldn't say there is "no way back." Files that contain pickled 
> objects are the *.table database migration files, session files, and error 
> tickets. It is easy to generate a new set of *.table files by setting 
> fake_migrate_all=True, and session files and error tickets are generally 
> ephemeral anyway.
>
> 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.


[web2py] Re: I was thinking about python2 clock

2018-03-22 Thread Ty oc
I think we2py should join the party!! and be on the list! :P

http://python3statement.org/


El martes, 20 de marzo de 2018, 16:14:58 (UTC-6), Leonel Câmara escribió:
>
> I'm guessing the rewrite will take some time. One thing you can do is to 
> report any python3 problems you find with web2py while you do it. We'll fix 
> them.  
>   
> We've fixed many many python 3 compatibility problems on the last months, 
> you should be fine.
>

-- 
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: I was thinking about python2 clock

2018-03-22 Thread Ty oc
That means that I can run right now web2py on python 3.5 or 3.6? if I 
update to master? (my webpy version is a little old).

Nice! will try!

El martes, 20 de marzo de 2018, 16:14:58 (UTC-6), Leonel Câmara escribió:
>
> I'm guessing the rewrite will take some time. One thing you can do is to 
> report any python3 problems you find with web2py while you do it. We'll fix 
> them.  
>   
> We've fixed many many python 3 compatibility problems on the last months, 
> you should be fine.
>

-- 
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] I was thinking about python2 clock

2018-03-19 Thread Ty oc
There have been new frameworks comming for 3.5> and I just found 
https://pythonclock.org/ so I wonder, if I can start migrating my web2py 
apps right now to the next version of web2py?

It is because I have a large rewrite and would love to use 3.5 or 3.6 for 
this.

-- 
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: Visual Studio Code and debugging

2017-03-25 Thread Ty oc
You have 2 options, first is to optne the full web2py with applications 
directory and open web2py script and hit run (with internal console, 
external and so on should work)

Or setup remote debugging 
https://donjayamanne.github.io/pythonVSCodeDocs/docs/debugging_remote-debugging/

basically you need to install python -m pip install  ptvsd and then in for 
example db.py put the two lines

import ptvsd
ptvsd.enable_attach("my_secret", address = ('0.0.0.0', 3000))



and that will be it... Im just testing now, but I guess any of the two 
should work





El miércoles, 22 de marzo de 2017, 5:34:17 (UTC-6), Andrea Fae' escribió:
>
> I tried to use Visual Studio Code like IDE for debugging web2py programs.
>
> In the launch.json I inserted this:
> {
> "name": "Web2py",
> "type": "python",
> "request": "launch",
> "stopOnEntry": true,
> "pythonPath": "${config.python.pythonPath}",
> "program": "${workspaceRoot}/../../web2py.py",
> "args": [
> ], 
> "cwd": "${workspaceRoot}",
> "debugOptions": [
> "WaitOnAbnormalExit",
> "WaitOnNormalExit",
> "RedirectOutput"
> ]
> }
>
>
> I installed Python 0.6.0 extension from Don Jayamanne.
> But if I fix some breakpoints the program doesn't stop...why?
> I'd like to use Visual Studio Code to debug my web2py programs...
>
> Moreover, anyone knows if there is a free easy IDE to use as debugger for 
> web2py? Can I have any information?
>
> Thank you
>

-- 
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] If I where to use a headless testing and CI what would ou recomend?

2017-01-28 Thread Ty oc
I have found this http://phantomjs.org/headless-testing.html and because I 
have some process like inventory for a lot of things and combinations in 
time and so on, I need to make full tests of all the process in the webapp.

Im trying to get the fastest way possible to impolement my tests with 
sessions, database changes and so on in a test environment.

-- 
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: Syntax for placeholders in executesql

2016-12-06 Thread Ty oc
By the way, what case would be the xintaxis for oracle as database?

El martes, 6 de diciembre de 2016, 11:46:34 (UTC-6), Ty oc escribió:
>
> Well, if this is so specific, why it isn't documented with the current 
> simple equivalent examples for each supported driver??
>
>
> I mean
>
> placeholders is an optional sequence of values to be substituted in or, 
>> if supported by the DB driver, a dictionary with keys matching named 
>> placeholders in your SQL.
>>
>
> Says almost nothing at all.
>

-- 
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: Syntax for placeholders in executesql

2016-12-06 Thread Ty oc
Well, if this is so specific, why it isn't documented with the current 
simple equivalent examples for each supported driver??


I mean

placeholders is an optional sequence of values to be substituted in or, if 
> supported by the DB driver, a dictionary with keys matching named 
> placeholders in your SQL.
>

Says almost nothing at all.

-- 
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] need to kill user sessions, not only block

2016-11-11 Thread Ty oc
So  blocked or disabled have the same behaviour, what happend if I want to 
log out all the sessions from a specific user?

-- 
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: IDE for using web2py on windows

2016-10-30 Thread Ty oc
I think they talk about the paid version, I mean, I have community and when 
I hit new project it only says "pure python" so the workarounds 
probably work there...

I have asked the same little time before 
https://groups.google.com/d/msg/web2py/DdzirPSMVrE/bja2wvvGBgAJ

El sábado, 29 de octubre de 2016, 21:31:59 (UTC-5), Nikos 
Panagogiannopoulos escribió:
>
>
> Will the community version of PyCharm be capable to full service me or i 
> do have to go the the paid version?
>
>

-- 
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: Most "proper way" to configure web2py in pycharm

2016-10-29 Thread Ty oc
I should say for the community edition... not the pro one.

El miércoles, 19 de octubre de 2016, 13:49:35 (UTC-5), Willoughby escribió:
>
> http://www.jetbrains.com/help/pycharm/2016.2/web2py.html
>
> On Wednesday, October 19, 2016 at 1:37:48 PM UTC-4, Ty oc wrote:
>>
>> Hi there, I know I can debug web2py from pycharm (but sometimes a little 
>> slow response time). It also include a nice git interface... so.
>>
>> Thought I will like more intellisense help or jump to definition (because 
>> some things in web2py are global), setting some folders to ignore and other 
>> to source works "a little" but pycharm try to import those files on top 
>> causing errors at runtime...
>>
>> So, how would be the best way to configure pycharm, I develop with the 
>> source version of web2py.
>>
>

-- 
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] Most "proper way" to configure web2py in pycharm

2016-10-19 Thread Ty oc
Hi there, I know I can debug web2py from pycharm (but sometimes a little 
slow response time). It also include a nice git interface... so.

Thought I will like more intellisense help or jump to definition (because 
some things in web2py are global), setting some folders to ignore and other 
to source works "a little" but pycharm try to import those files on top 
causing errors at runtime...

So, how would be the best way to configure pycharm, I develop with the 
source version of web2py.

-- 
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 not return ticket issue HTML but a custom error?

2016-09-20 Thread Ty oc
Well also now I got it (still not per app)... but the problem Im having is 
that I want to return a *json*, but Im getting the full HTML response  with 
a body and all that. 

If I use 

error_handler = dict(application='backend',
 controller='error',
 function='report')


Nothing changes. So I have setup

routes_onerror = [
  ('init/400', '/backend/default/index'),
  ('init/*', '/backend/default/index'),
  ('*/404', '/backend/default/index'),
  ('*/*', '/backend/error/report')
]



I have as response this HTML instead of the json


{#x27;message#x27;:
 
#x27;Error interno#x27;}

El martes, 20 de septiembre de 2016, 10:22:34 (UTC-5), Ty oc escribió:
>
> I mean, we have other web2py apps there, I dont want to modify the default 
> behaviour of the other ones, only this "backend" app.
>
> El martes, 20 de septiembre de 2016, 10:06:10 (UTC-5), Ty oc escribió:
>>
>> I thought it was a per app configuration.
>>
>> El lunes, 19 de septiembre de 2016, 17:51:28 (UTC-5), Anthony escribió:
>>>
>>> routes.py goes in the root /web2py folder. Be sure to restart the server 
>>> or reload routes (via admin). Also, make sure you don't actually have an 
>>> error somewhere in your error handling app.
>>>
>>> On Monday, September 19, 2016 at 5:02:11 PM UTC-4, Ty oc wrote:
>>>>
>>>> Where exactly I need to put this file?
>>>>
>>>> I have tried
>>>>
>>>> error_message = '%s---'
>>>> error_message_ticket = '''Internal error
>>>>  Ticket issued: >>>  target="_blank">%(ticket)s--'''
>>>>
>>>> routes_onerror = [
>>>>   ('init/400', '/backend/default/index'),
>>>>   ('init/*', '/backend/default/index'),
>>>>   ('*/404', '/backend/default/index'),
>>>>   ('*/*', '/backend/error/report')
>>>> ]
>>>>
>>>>
>>>>
>>>> error_handler = dict(application='backend',
>>>>  controller='error',
>>>>  function='report')
>>>>
>>>>
>>>>
>>>> Still no correct message displayed if I cause a 500 server error. Where 
>>>> do I activate it?
>>>>
>>>> I mean, even debugging passes over the redirector inside web2py and see 
>>>> nothing on those variables causing normal behaviour on the branch on 
>>>> rewrite.py
>>>>
>>>> if status >= 399 and THREAD_LOCAL.routes.routes_onerror:
>>>>
>>>>
>>>>
>>>> so
>>>>
>>>>
>>>> El martes, 6 de septiembre de 2016, 11:17:58 (UTC-5), Anthony escribió:
>>>>>
>>>>> http://web2py.com/books/default/chapter/29/04/the-core#Routes-on-error
>>>>>
>>>>> Anthony
>>>>>
>>>>> On Tuesday, September 6, 2016 at 10:43:19 AM UTC-4, Ty oc wrote:
>>>>>>
>>>>>> Still I need to log the ticket issue so we know what is happening (we 
>>>>>> will be watching for errors to show on the admin webapp), but we dont 
>>>>>> want 
>>>>>> the error to be like the HTML that is always show to the user.
>>>>>>
>>>>>> I want to return a one of the following depending on where Im 
>>>>>> returning it (a page in the web app or a request of a service)
>>>>>>
>>>>>>
>>>>>>- for the service
>>>>>>   - {"error":"see ticket xyz"} 
>>>>>>   - for the HTML webpage
>>>>>>   - General error, return home "here".
>>>>>>
>>>>>>
>>>>>>
>>>>>>

-- 
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 not return ticket issue HTML but a custom error?

2016-09-20 Thread Ty oc
I mean, we have other web2py apps there, I dont want to modify the default 
behaviour of the other ones, only this "backend" app.

El martes, 20 de septiembre de 2016, 10:06:10 (UTC-5), Ty oc escribió:
>
> I thought it was a per app configuration.
>
> El lunes, 19 de septiembre de 2016, 17:51:28 (UTC-5), Anthony escribió:
>>
>> routes.py goes in the root /web2py folder. Be sure to restart the server 
>> or reload routes (via admin). Also, make sure you don't actually have an 
>> error somewhere in your error handling app.
>>
>> On Monday, September 19, 2016 at 5:02:11 PM UTC-4, Ty oc wrote:
>>>
>>> Where exactly I need to put this file?
>>>
>>> I have tried
>>>
>>> error_message = '%s---'
>>> error_message_ticket = '''Internal error
>>>  Ticket issued: >>  target="_blank">%(ticket)s--'''
>>>
>>> routes_onerror = [
>>>   ('init/400', '/backend/default/index'),
>>>   ('init/*', '/backend/default/index'),
>>>   ('*/404', '/backend/default/index'),
>>>   ('*/*', '/backend/error/report')
>>> ]
>>>
>>>
>>>
>>> error_handler = dict(application='backend',
>>>  controller='error',
>>>  function='report')
>>>
>>>
>>>
>>> Still no correct message displayed if I cause a 500 server error. Where 
>>> do I activate it?
>>>
>>> I mean, even debugging passes over the redirector inside web2py and see 
>>> nothing on those variables causing normal behaviour on the branch on 
>>> rewrite.py
>>>
>>> if status >= 399 and THREAD_LOCAL.routes.routes_onerror:
>>>
>>>
>>>
>>> so
>>>
>>>
>>> El martes, 6 de septiembre de 2016, 11:17:58 (UTC-5), Anthony escribió:
>>>>
>>>> http://web2py.com/books/default/chapter/29/04/the-core#Routes-on-error
>>>>
>>>> Anthony
>>>>
>>>> On Tuesday, September 6, 2016 at 10:43:19 AM UTC-4, Ty oc wrote:
>>>>>
>>>>> Still I need to log the ticket issue so we know what is happening (we 
>>>>> will be watching for errors to show on the admin webapp), but we dont 
>>>>> want 
>>>>> the error to be like the HTML that is always show to the user.
>>>>>
>>>>> I want to return a one of the following depending on where Im 
>>>>> returning it (a page in the web app or a request of a service)
>>>>>
>>>>>
>>>>>- for the service
>>>>>   - {"error":"see ticket xyz"} 
>>>>>   - for the HTML webpage
>>>>>   - General error, return home "here".
>>>>>
>>>>>
>>>>>
>>>>>

-- 
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 not return ticket issue HTML but a custom error?

2016-09-20 Thread Ty oc
I thought it was a per app configuration.

El lunes, 19 de septiembre de 2016, 17:51:28 (UTC-5), Anthony escribió:
>
> routes.py goes in the root /web2py folder. Be sure to restart the server 
> or reload routes (via admin). Also, make sure you don't actually have an 
> error somewhere in your error handling app.
>
> On Monday, September 19, 2016 at 5:02:11 PM UTC-4, Ty oc wrote:
>>
>> Where exactly I need to put this file?
>>
>> I have tried
>>
>> error_message = '%s---'
>> error_message_ticket = '''Internal error
>>  Ticket issued: >  target="_blank">%(ticket)s--'''
>>
>> routes_onerror = [
>>   ('init/400', '/backend/default/index'),
>>   ('init/*', '/backend/default/index'),
>>   ('*/404', '/backend/default/index'),
>>   ('*/*', '/backend/error/report')
>> ]
>>
>>
>>
>> error_handler = dict(application='backend',
>>  controller='error',
>>  function='report')
>>
>>
>>
>> Still no correct message displayed if I cause a 500 server error. Where 
>> do I activate it?
>>
>> I mean, even debugging passes over the redirector inside web2py and see 
>> nothing on those variables causing normal behaviour on the branch on 
>> rewrite.py
>>
>> if status >= 399 and THREAD_LOCAL.routes.routes_onerror:
>>
>>
>>
>> so
>>
>>
>> El martes, 6 de septiembre de 2016, 11:17:58 (UTC-5), Anthony escribió:
>>>
>>> http://web2py.com/books/default/chapter/29/04/the-core#Routes-on-error
>>>
>>> Anthony
>>>
>>> On Tuesday, September 6, 2016 at 10:43:19 AM UTC-4, Ty oc wrote:
>>>>
>>>> Still I need to log the ticket issue so we know what is happening (we 
>>>> will be watching for errors to show on the admin webapp), but we dont want 
>>>> the error to be like the HTML that is always show to the user.
>>>>
>>>> I want to return a one of the following depending on where Im returning 
>>>> it (a page in the web app or a request of a service)
>>>>
>>>>
>>>>- for the service
>>>>   - {"error":"see ticket xyz"} 
>>>>   - for the HTML webpage
>>>>   - General error, return home "here".
>>>>
>>>>
>>>>
>>>>

-- 
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 not return ticket issue HTML but a custom error?

2016-09-19 Thread Ty oc
Where exactly I need to put this file?

I have tried

error_message = '%s---'
error_message_ticket = '''Internal error
 Ticket issued: %(ticket)s--'''

routes_onerror = [
  ('init/400', '/backend/default/index'),
  ('init/*', '/backend/default/index'),
  ('*/404', '/backend/default/index'),
  ('*/*', '/backend/error/report')
]



error_handler = dict(application='backend',
 controller='error',
 function='report')



Still no correct message displayed if I cause a 500 server error. Where do 
I activate it?

I mean, even debugging passes over the redirector inside web2py and see 
nothing on those variables causing normal behaviour on the branch on 
rewrite.py

if status >= 399 and THREAD_LOCAL.routes.routes_onerror:



so


El martes, 6 de septiembre de 2016, 11:17:58 (UTC-5), Anthony escribió:
>
> http://web2py.com/books/default/chapter/29/04/the-core#Routes-on-error
>
> Anthony
>
> On Tuesday, September 6, 2016 at 10:43:19 AM UTC-4, Ty oc wrote:
>>
>> Still I need to log the ticket issue so we know what is happening (we 
>> will be watching for errors to show on the admin webapp), but we dont want 
>> the error to be like the HTML that is always show to the user.
>>
>> I want to return a one of the following depending on where Im returning 
>> it (a page in the web app or a request of a service)
>>
>>
>>- for the service
>>   - {"error":"see ticket xyz"} 
>>   - for the HTML webpage
>>   - General error, return home "here".
>>
>>
>>
>>

-- 
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] How to not return ticket issue HTML but a custom error?

2016-09-06 Thread Ty oc
Still I need to log the ticket issue so we know what is happening (we will 
be watching for errors to show on the admin webapp), but we dont want the 
error to be like the HTML that is always show to the user.

I want to return a one of the following depending on where Im returning it 
(a page in the web app or a request of a service)


   - for the service
  - {"error":"see ticket xyz"} 
  - for the HTML webpage
  - General error, return home "here".
   


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