[web2py] py4web google oauth issue

2020-02-18 Thread Eric
When trying to use oauth2 with google I received this error

> Legacy People API has not been used in project X before or it is 
> disabled. Enable it by visiting 
> https://console.developers.google.com/apis/api/legacypeople.googleapis.com/overview?project=X
>  
> then retry. If you enabled this API recently, wait a few minutes for the 
> action to propagate to our systems and retry.
>

That link to goggle just showed an error, and after some searching it seems 
the people api is not available for new oauth2 setups.  

Here are the changes I made for my setup that switches out the people api.
https://github.com/web2py/py4web/pull/120

In addition, there is change for SSO._handle_callback to show errors such 
as what I received above and a way to force https for callback uris.

Eric

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/7e727d8b-773b-49ec-bb46-91feabb3bf3f%40googlegroups.com.


[web2py] validator formatter when validation fails

2020-02-17 Thread Eric
In py4web, when form validation fails on a datetime field, py4web throws 
and exception.
In the IS_DATETIME validator, when validation fails, validate() returns 
value as string (the original value).
The form code tries to display the fields properly by calling field's 
validator formatter().
Since the value is string and not datetime, formatter() throws exception.

I wrote issue here:https://github.com/web2py/pydal/issues/609
but now I'm not sure whether change should be pydal or py4web.
Should the formatter() handle value with type of string?
Or, should form not try to call formatter() when there is an error?


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/695844b9-801c-432e-98fd-a981c95090ad%40googlegroups.com.


[web2py] Re: scheme of url when using py4web with https proxy

2020-02-04 Thread Eric

On Tuesday, February 4, 2020 at 8:16:52 AM UTC-6, Eric wrote:
>
> How can I configure py4web to return the proper scheme?
>
>
I should add that main problem this is causing for me is that the OAuth2 
class builds the callback URIs based on the reported scheme.

Eric

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/d2e90045-02e2-43e6-8b41-380e2ca07156%40googlegroups.com.


[web2py] scheme of url when using py4web with https proxy

2020-02-04 Thread Eric
Hello

When using py4web with a proxy (py4web running on port 8000, web server 
frontend is https), the scheme within py4web is showing http even through 
the url is https.
A fix for that is part of the FAQ for bottle, 
https://bottlepy.org/docs/dev/faq.html
How can I configure py4web to return the proper scheme?

Eric

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/13631f7b-e608-4b56-9ad4-92019bb0ab94%40googlegroups.com.


[web2py] pydal for_update on sqlite

2020-02-03 Thread Eric


I'm using pydal revision 20191227.1 installed via pip.
Trying to use "for_update" in select on sqlite database results in an 
exception
sqlite3.OperationalError: near "FOR": syntax error


The adapter for sqlite does have special handling for "for_update", but it 
looks like pydal is adding " FOR UPDATE" to the select statement for all 
databases including sqlite, which causes the problem.

Related to this:
https://groups.google.com/forum/#!topic/web2py/0dD6SmKPuFU




-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/97cd2ccf-0917-4708-9f25-c75c7c5522cb%40googlegroups.com.


[web2py] Re: Take me advice, please

2019-12-30 Thread Eric
Have you tried with a session variable?


El domingo, 29 de diciembre de 2019, 12:34:49 (UTC-7), Константин Комков 
escribió:
>
> Hello!
>
> How can I transfer my variable type of list, which contain my classes to 
> another function in controller. I tried vars and args in URL function but 
> my classes now is str type.
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/70fe86a1-3bc8-4e0d-ae47-eda5196f52d9%40googlegroups.com.


[web2py] Why still mixing PY2 and PY3

2019-01-31 Thread Eric


Hi,

I'm happily using Web2Py, but with the end of PY2 on 01-01-2020 (
https://pythonclock.org) I'm curious why all the efforts are in place to 
keep creating a version of Web2Py that supports PY2 and PY3 in one version? 
Why not update the master only for PY3 stuff (remove the PY2 stuff?) and 
create a specific PY2 branche with fixes/updates?

I have the feeling this will make new/further development a lot easier 
since PY2 is quickly left alone.

Thanks for the reaction and keep up the nice work!


P.S.: I've started this post also on Git 
, but on advice of ilvalle 
I've started the "discussion" 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: OFF Topic - Tech for the frontend - Elm ???

2017-10-09 Thread Eric Waldman
I've recently been quite enamoured by choo https://choo.io/

It's got a beautiful api, very functional. Nowhere near as complex as 
Angular or React + Redux.

On Thursday, September 28, 2017 at 11:59:56 AM UTC-4, Ramos wrote:
>
> i meant sharing   :)
>
> 2017-09-28 16:58 GMT+01:00 António Ramos  >:
>
>>
>> Just charing and collecting some toughts...
>> Anyone knows about ELM ?
>>
>> I Like vue a lot, especially after all the Angular 1 to angular 2 RIP  
>> event... 
>> But ELM seems simpler and cleaner and more functional...
>>
>>
>> http://elm-lang.org/examples
>>
>> regards
>>
>
>

-- 
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: Future of web2py

2017-06-02 Thread eric cuver
lol

Le mercredi 31 mai 2017 21:21:40 UTC+2, Oasis Agano a écrit :
>
>
> But web2py is still maintained right? or we start buying flask books
> On Saturday, May 27, 2017 at 9:11:02 AM UTC+2, Andrea Fae' wrote:
>>
>> Hello guys,
>> I'd like to know if there will be future of web2py? Any information about 
>> it?
>> 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] Re: Smartgrid linked tables gotcha

2016-12-09 Thread Eric Waldman
Bumping this because it saved me while trying to figure out why my tables 
weren't linking. I don't believe this is mentioned anywhere in the 
book/docs and they should be updated. Is there any way I can help with that?

On Tuesday, October 15, 2013 at 3:00:09 PM UTC-4, Cliff Kachinske wrote:
>
> A link to the child table will not appear in smartgrid if you do this:
> db.define_table('parent',Field('name'))
> db.define_table('child',Field('name'),Field('parent','reference parent'))
> fields=[db.parent.name]
> grid = SQLFORM.smartgrid(db.parent,linked_tables=['child'])
>
> You must instead do this to make a link to the list of children appear.
> fields=[db.parent.name, db.child.id]
>
>

-- 
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: info: w3 css, responsive

2016-11-21 Thread eric cuver
I use w3 css it works well with web2py and cordova

Le lundi 21 novembre 2016 13:17:41 UTC+1, Mirek Zvolský a écrit :
>
> not web2py, but looks interesting.
>
> http://www.w3schools.com/w3css/default.asp
>
> On mobile pages load instantly. In oposite to bootstrap3.
>
> Does somebody use it ?
>
>
>

-- 
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 on android

2016-09-18 Thread eric cuver
you can use local storage for example :

var objet = { propriete1 : "valeur1", propriete2 : "valeur2" }; var 
monobjet_json = window.JSON.stringify(monobjet); window.localStorage
.setItem("objet",monobjet_json);

Le dimanche 18 septembre 2016 01:39:01 UTC+2, JorgeH a écrit :
>
> what if I need to store data in the mobile when there is no internet 
> connection and sync with the webserver when there is connection?
>
> what db or sqlite, can I use?
>
> On Saturday, July 23, 2016 at 1:03:24 AM UTC-5, eric cuver wrote:
>>
>> you can use cordova wbeview and used side client brython( python) and 
>> backend web2py
>> I create the applications in this way it works very well 
>>
>> Le mardi 19 juillet 2016 13:16:10 UTC+2, Paolo Amboni a écrit :
>>>
>>> Is it possible to do something like that with web2py?
>>>
>>> Android apps with Python, Flask and a WebView 
>>> <https://kivy.org/planet/2016/05/android-apps-with-python-flask-and-a-webview/>
>>> (
>>> https://kivy.org/planet/2016/05/android-apps-with-python-flask-and-a-webview/
>>> )
>>>
>>> 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] Re: web2py on android

2016-07-23 Thread eric cuver
you can use cordova wbeview and used side client brython( python) and 
backend web2py
I create the applications in this way it works very well 

Le mardi 19 juillet 2016 13:16:10 UTC+2, Paolo Amboni a écrit :
>
> Is it possible to do something like that with web2py?
>
> Android apps with Python, Flask and a WebView 
> 
> (
> https://kivy.org/planet/2016/05/android-apps-with-python-flask-and-a-webview/
> )
>
> 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.


Re: [web2py] Re: Remove _extra from as_list()

2016-07-21 Thread Eric Christiaanse
Hi Anthony,

My code is the following:

# -*- coding: utf-8 -*-
from gluon.serializers import json


@auth.requires(lambda: AuthHelper.valid_token(), requires_login=False)
@request.restful()
def search():
session.forget()

def post(*args, **vars):
response.headers["Content-Type"] = "application/json"
retval, error = RequestHelper.parse(request)

if error is not None:
return json(error)

encoded_zip = int(StringHelper.encode_postcode(retval["zip_code"]))
house_number = int(retval["house_number"])

return json(dict(result=db((db.addresses.encoded_zip_code ==
encoded_zip) & (db.addresses.house_number == house_number)).select(
db.addresses.street.with_alias('straat'),
db.addresses.city.with_alias('plaats),
distinct=True).as_list()))

return dict(GET=post, POST=post)



2016-07-21 17:12 GMT+02:00 Anthony <abasta...@gmail.com>:

> Please show your code.
>
> On Wednesday, July 20, 2016 at 3:55:19 PM UTC-4, Eric wrote:
>>
>> Hi Anthony,
>>
>> I'm not including them. I'm only using with_alias() and the select in
>> combination with as_list(). I would not expect to get the _extra as a
>> little bonus when you use with_alias()...
>>
>> That's why I'm asking :)
>>
>> Greetings,
>>
>> Eric
>>
>>
>> 2016-07-20 20:56 GMT+02:00 Anthony <abasta...@gmail.com>:
>>
>>> The "_extra" dictionary stores values generated from expressions (rather
>>> than raw values from individual fields). If you don't want them to appear
>>> in the conversion of the Rows to a list of dictionaries, then don't include
>>> them in the original .select() call that generated the Rows object.
>>>
>>> Anthony
>>>
>>> On Wednesday, July 20, 2016 at 10:00:57 AM UTC-4, Eric wrote:
>>>>
>>>> Hi There,
>>>>
>>>> Is there a way in Web2Py to suppress the _extra information when
>>>> selecting data with as_list() or as_dict()?
>>>>
>>>> I can't find it and option for it, but maybe I'm just overlooking it in
>>>> the documentation ;)
>>>>
>>>> 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/d3YmI1e3iaQ/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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/d3YmI1e3iaQ/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: Remove _extra from as_list()

2016-07-20 Thread Eric Christiaanse
Hi Anthony,

I'm not including them. I'm only using with_alias() and the select in
combination with as_list(). I would not expect to get the _extra as a
little bonus when you use with_alias()...

That's why I'm asking :)

Greetings,

Eric


2016-07-20 20:56 GMT+02:00 Anthony <abasta...@gmail.com>:

> The "_extra" dictionary stores values generated from expressions (rather
> than raw values from individual fields). If you don't want them to appear
> in the conversion of the Rows to a list of dictionaries, then don't include
> them in the original .select() call that generated the Rows object.
>
> Anthony
>
> On Wednesday, July 20, 2016 at 10:00:57 AM UTC-4, Eric wrote:
>>
>> Hi There,
>>
>> Is there a way in Web2Py to suppress the _extra information when
>> selecting data with as_list() or as_dict()?
>>
>> I can't find it and option for it, but maybe I'm just overlooking it in
>> the documentation ;)
>>
>> 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/d3YmI1e3iaQ/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] Remove _extra from as_list()

2016-07-20 Thread Eric
Hi There,

Is there a way in Web2Py to suppress the _extra information when selecting 
data with as_list() or as_dict()?

I can't find it and option for it, but maybe I'm just overlooking it in the 
documentation ;)

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] Re: Notification similar to django-notification

2016-05-30 Thread eric cuver
you can use api notification html 5  or other APIs such as 
notification http://docs.localytics.com/index.html

Le lundi 30 mai 2016 06:33:23 UTC+2, billmac...@gmail.com a écrit :
>
> You can look at facebook notification, basically an interface where user 
> pick how they want to receive their notification, by email or texts etc. 
> Toggle them on and off and when they log into their dashboard they see the 
> notifications and receive them as they have it set up in their settings. 
> Its pretty standard for big applications. But since its a volunteer driven 
> org/framework, it may be its not possible to get a package like that. 
>
> On Friday, May 20, 2016 at 10:33:56 AM UTC-4, eric cuver wrote:
>>
>> you can give the django notifcation links to see 
>>
>> Le vendredi 13 mai 2016 16:14:26 UTC+2, billmac...@gmail.com a écrit :
>>>
>>> Is there a plugin/package for web2py that is similar to 
>>> django-notification for emails, texts and other activities?
>>>
>>>

-- 
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: Notification similar to django-notification

2016-05-20 Thread eric cuver
you can give the django notifcation links to see 

Le vendredi 13 mai 2016 16:14:26 UTC+2, billmac...@gmail.com a écrit :
>
> Is there a plugin/package for web2py that is similar to 
> django-notification for emails, texts and other activities?
>
>

-- 
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: JS: very small but very useful

2016-05-07 Thread eric cuver
you can give us  the website link 

Le vendredi 6 mai 2016 17:26:43 UTC+2, Val K a écrit :
>
> Very small py-function that wraps any js-content in anonymous js-function
>
> def JS_fun(*args_lst):
> def _inner(body):
> return "(function(%s){ %s ;})" % (','.join(args_lst), body)
> return _inner
>
>
> >>> JS_fun( 'a', 'b' )( 'console.log(a,b)' )
> '(function(a,b){ console.log(a, b) ;})'
>
>
> >>> args= ['a', 'b']
> >>> JS_fun(*args)('console.log(%s)' % ','.join(args))
> '(function(a,b){ console.log(a, b) ;})'
>
> >>> JS_call = lambda f: lambda *args: f + '(%s)' % ','.join([str(a) for a 
> in args])
> >>> JS_call( JS_fun('a', 'b')('console.log(a,b)') )('"text"', 123 )
> '(function(a,b){ console.log(a,b) ;})("text", 123)'
>
>
>
>
> another smarter variant:
>
> def JS_fun(*args_lst):
> def _inner(*body):
> return "(function(%s){ %s ;})" % (','.join(args_lst), '\n   
>  '.join(body))
> return _inner
>
>
> #so, you can:
> f = JS_fun('a', 'b')(
>'var sum = a+b;', 
>'console.log(sum);',
>'return sum'
> )
>
>
>
>
>
>
>
>

-- 
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: BIO-METERIC ATHUNTICATION

2016-04-04 Thread eric cuver
look this maybe can help you 


https://github.com/pingali/pyAadhaarAuth 
, 
https://www.twilio.com/blog/2014/06/voice-biometric-authentication-with-twilio.html

Le lundi 4 avril 2016 11:05:04 UTC+2, PAVAN DHAVALESWARAPU a écrit :
>
> Is it possible to use bio-metric authentication in real time with web2py ?
> If yes please post how it is done.
>

-- 
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: Could you write the code for RESTFUL api used in the web2py app controller and in the phonegap view?

2016-03-28 Thread eric cuver
it is better that you put your code like this we will help you to see 
what's wrong

Le lundi 28 mars 2016 07:16:26 UTC+2, Rgb Aston a écrit :
>
> Please don't send me the link of the documentation. I seriously tried it 
> but it's not working. Please write the codes finally as I have given up 
> struggling with it.
>

-- 
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: How do you use web2py app work with phonegap?

2016-03-21 Thread eric cuver
this is how I work  sometimes use semantic-ui. angulars, Ionic and etc ... 
I do not like I prefer using ractive.js, yui, or knockoutjs.

Le lundi 21 mars 2016 13:52:20 UTC+1, Carlos Costa a écrit :
>
> I am using cordova and bootstrap for rapid prototyping.
> Next I will change it to static pages interacting via json webservices.
>
> 2016-03-21 7:23 GMT-03:00 eric cuver <amihaco...@gmail.com >:
>
>> ok thank you i'll check 
>>
>>
>> Le dimanche 20 mars 2016 21:24:05 UTC+1, pbreit a écrit :
>>>
>>> Ionic is free. But it does use Angular.
>>>
>>> You can't just "use a CSS framework" as mentioned above. You need a 
>>> framework that can manage data and interactions with server.
>>>
>>> Maybe look at Onsen or F7?
>>>
>>>
>>> https://www.airpair.com/ionic-framework/posts/hybrid-apps-ionic-famous-f7-onsen
>>>
>>>
>>>
>>> On Sunday, March 20, 2016 at 12:14:14 PM UTC-7, eric cuver wrote:
>>>>
>>>> Ionic it pays I believe? and  I do not like angular
>>>>
>>>> Le dimanche 20 mars 2016 05:05:09 UTC+1, pbreit a écrit :
>>>>>
>>>>> Ionic is a good choice.
>>>>>
>>>>> As mentioned, Web2py will run on your server and mostly deliver and 
>>>>> receive JSON to/from the mobile app.
>>>>>
>>>>>
>>>>> On Saturday, March 19, 2016 at 3:12:42 AM UTC-7, eric cuver wrote:
>>>>>>
>>>>>> hi Leonel,
>>>>>>
>>>>>> which client (boostrap, jquery mobile, ionic.)  for design with 
>>>>>> phonegap advises you ?
>>>>>>
>>>>>>
>>>>>> Le vendredi 18 mars 2016 18:41:22 UTC+1, Leonel Câmara a écrit :
>>>>>>>
>>>>>>> I'm sorry but you show fundamental misconceptions about what 
>>>>>>> phonegap does, what web2py does, how they run in the devices and 
>>>>>>> server, 
>>>>>>> and about how they can and should interact.  
>>>>>>>   
>>>>>>> Your questions don't even make sense. I can't help you until you 
>>>>>>> know more about web2py, phonegap, what REST APIs are and how do you 
>>>>>>> access 
>>>>>>> them using javascript.  
>>>>>>>
>>>>>> -- 
>> 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+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
>
>
> Carlos J. Costa
> Cientista da Computação  | BS Computer Science 
> Esp. Gestão em Telecom   | PgC Telecom Mangement
> <º))><
>

-- 
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 do you use web2py app work with phonegap?

2016-03-21 Thread eric cuver
ok thank you i'll check 

Le dimanche 20 mars 2016 21:24:05 UTC+1, pbreit a écrit :
>
> Ionic is free. But it does use Angular.
>
> You can't just "use a CSS framework" as mentioned above. You need a 
> framework that can manage data and interactions with server.
>
> Maybe look at Onsen or F7?
>
>
> https://www.airpair.com/ionic-framework/posts/hybrid-apps-ionic-famous-f7-onsen
>
>
>
> On Sunday, March 20, 2016 at 12:14:14 PM UTC-7, eric cuver wrote:
>>
>> Ionic it pays I believe? and  I do not like angular
>>
>> Le dimanche 20 mars 2016 05:05:09 UTC+1, pbreit a écrit :
>>>
>>> Ionic is a good choice.
>>>
>>> As mentioned, Web2py will run on your server and mostly deliver and 
>>> receive JSON to/from the mobile app.
>>>
>>>
>>> On Saturday, March 19, 2016 at 3:12:42 AM UTC-7, eric cuver wrote:
>>>>
>>>> hi Leonel,
>>>>
>>>> which client (boostrap, jquery mobile, ionic.)  for design with 
>>>> phonegap advises you ?
>>>>
>>>>
>>>> Le vendredi 18 mars 2016 18:41:22 UTC+1, Leonel Câmara a écrit :
>>>>>
>>>>> I'm sorry but you show fundamental misconceptions about what phonegap 
>>>>> does, what web2py does, how they run in the devices and server, and about 
>>>>> how they can and should interact.  
>>>>>   
>>>>> Your questions don't even make sense. I can't help you until you know 
>>>>> more about web2py, phonegap, what REST APIs are and how do you access 
>>>>> them 
>>>>> using javascript.  
>>>>>
>>>>

-- 
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 do you use web2py app work with phonegap?

2016-03-20 Thread eric cuver
Ionic it pays I believe? and  I do not like angular

Le dimanche 20 mars 2016 05:05:09 UTC+1, pbreit a écrit :
>
> Ionic is a good choice.
>
> As mentioned, Web2py will run on your server and mostly deliver and 
> receive JSON to/from the mobile app.
>
>
> On Saturday, March 19, 2016 at 3:12:42 AM UTC-7, eric cuver wrote:
>>
>> hi Leonel,
>>
>> which client (boostrap, jquery mobile, ionic.)  for design with 
>> phonegap advises you ?
>>
>>
>> Le vendredi 18 mars 2016 18:41:22 UTC+1, Leonel Câmara a écrit :
>>>
>>> I'm sorry but you show fundamental misconceptions about what phonegap 
>>> does, what web2py does, how they run in the devices and server, and about 
>>> how they can and should interact.  
>>>   
>>> Your questions don't even make sense. I can't help you until you know 
>>> more about web2py, phonegap, what REST APIs are and how do you access them 
>>> using javascript.  
>>>
>>

-- 
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 do you use web2py app work with phonegap?

2016-03-19 Thread eric cuver
thank for information my friend

Le samedi 19 mars 2016 13:05:58 UTC+1, Leonel Câmara a écrit :
>
> I usually just use bootstrap because I'm used to it But really, any mobile 
> first CSS framework is ok. I've used foundation before it's good too, I've 
> also not used anything and just made my own according to the app needs.
>

-- 
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 do you use web2py app work with phonegap?

2016-03-19 Thread eric cuver
hi Leonel,

which client (boostrap, jquery mobile, ionic.)  for design with 
phonegap advises you ?


Le vendredi 18 mars 2016 18:41:22 UTC+1, Leonel Câmara a écrit :
>
> I'm sorry but you show fundamental misconceptions about what phonegap 
> does, what web2py does, how they run in the devices and server, and about 
> how they can and should interact.  
>   
> Your questions don't even make sense. I can't help you until you know more 
> about web2py, phonegap, what REST APIs are and how do you access them using 
> javascript.  
>

-- 
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: Is Opencv threadsafe in web2py?

2016-03-12 Thread eric cuver

look you are tutorial 
http://www.learnopencv.com/tag/web2py/
Le vendredi 11 mars 2016 18:19:51 UTC+1, RAGHIB R a écrit :
>
> Are opencv stuffs thread-safe and is it okay to use them in 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: for those of us who do not understand ...

2016-03-10 Thread eric cuver
it's nice I am impressed

Le jeudi 10 mars 2016 20:43:03 UTC+1, Massimo Di Pierro a écrit :
>
> Here is another piece:
>
> http://mdipierro.github.io/stupid.css/widgets/index.html
>
> The work with web2py forms if you manually add the data-format and 
> data-range. For example
>
> for e in form.elements('.datetime'): 
> e['_data-format'] = '{DD}/{MM}/{year} {hh}:{mm}:{ss}'
>
> for e in form.elements('.double'):
> e.add_class('number slider');
> e['_data-range']] = '0,100'
>
> It would be great if you could help me test these.
>
>
> On Tuesday, 8 March 2016 15:04:50 UTC-6, Massimo Di Pierro wrote:
>>
>> I would like to buy a .ham.burger 
>> http://mdipierro.github.io/stupid.css/themes/hamburger.html
>>
>> On Thursday, 3 March 2016 01:27:57 UTC-6, Massimo Di Pierro wrote:
>>>
>>> A damn simple and easy css framework ... stupid.css
>>>
>>> https://t.co/9vB48IjYJK
>>>
>>> No promise of backward compatibility is made, but comments and 
>>> suggestions for improvement are welcome.
>>>
>>

-- 
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: for those of us who do not understand ...

2016-03-05 Thread eric cuver
it's very good thanks massimo 

Le samedi 5 mars 2016 23:36:28 UTC+1, Massimo Di Pierro a écrit :
>
> You can also compare this:
>
>http://mdipierro.github.io/stupid.css/themes/landing-page.html
>
> with this:
>
>http://blackrockdigital.github.io/startbootstrap-landing-page/
>
> The conversion took about 5 minutes (manually). Look at the differences in 
> the html source.
>
> On Saturday, 5 March 2016 15:47:12 UTC-6, Massimo Di Pierro wrote:
>>
>> Anyway, you can check out stupid with web2py here: 
>> http://experts4solutions.com/stupid
>>
>> On Saturday, 5 March 2016 15:41:01 UTC-6, Massimo Di Pierro wrote:
>>>
>>> yes. I added it. 
>>>
>>> I also changed http://mdipierro.github.io/stupid.css/index.html adding 
>>> more stuff. Now if you click on the examples (?) it shows the source.
>>>
>>> On Saturday, 5 March 2016 12:14:48 UTC-6, Ron Chatterjee wrote:

 For some reason, I could run the app out of box, it gives me this error 
 (attached). Is there a config file is missing?

 On Saturday, March 5, 2016 at 1:35:20 AM UTC-5, Massimo Di Pierro wrote:
>
>
>
> On Friday, 4 March 2016 18:56:36 UTC-6, Dave S wrote:
>>
>>
>>
>> On Friday, March 4, 2016 at 4:01:09 PM UTC-8, Massimo Di Pierro wrote:
>>>
>>> If you want to try it with web2py here is welcome app based on 
>>> stupid.css
>>>
>>> https://github.com/mdipierro/web2py-welcome-theme-stupid
>>>
>>> Notice a few things:
>>> - It does not require any change in the python code or form styles 
>>> or grid. I
>>> - It works with the existing bootstrap classes, it simply ignores. 
>>> Too much trouble to remove them everywhere.
>>> - The static folder is significative lighter.
>>>
>>>
>> I copied the appconfig.ini from the standard welcome app; is the 
>> [forms]formstyle option ignored?  (bullet 2 suggests 'yes')
>>
>
> the bootstrap classes are ignored. The format of the HTML in the 
> bootstrap is instead important. Works with the other style options too 
> but 
> I think works best with the bootstrap html. 
>  
>
>> Also, on the login form, the "Log In" button is appreciably smaller 
>> than the "Sign Up" and the "Lost Password" buttons; is that because it 
>> is 
>> an input field and the others are button buttons?
>>
>
> fixed.
>  
>
>>
>> The H1 with class="glass" and contents "STUPID.CSS" has a noticeable 
>> band over the background picture, slightly higher than the letter 
>> height, 
>> but not the height of the enclosing DIV.
>>
>
> That was on purpose. I made it smaller. is it better?
>  
>
>> For the quarter-div with the ADMIN stuff, it looks like I've got a 
>> missing glyph -- there's a rectangle about the size of the 'A' in Admin, 
>> with the 10-over-01 pattern that I think FF uses for missing font 
>> characters.
>>
>
> Fixed. 
>
>>
>> Otherwise, the page looks very good! 
>>
>
> Did you try the grid?
>  
>
>> Massimo
>>>
>>>
>> Thanks!
>>
>> /dps
>>  
>>
>>> On Friday, 4 March 2016 08:51:00 UTC-6, villas wrote:

 I love this.  It would be so cool if this was maintained with the 
 rest of the framework and widgets could then include the generic 
 stupid.css.  The grid could use it and this would resolve a lot of 
 issues 
 with choice of css framework.

 A couple of questions spring to mind:
 Does anyone need another CSS framework!  Will there be enough 
 support to keep it going?  I was reminded of the doubts I had about 
 Markmin,  but this has been great and I use it a lot and it seems to 
 have 
 hardly required any support or huge extra effort.  I am disappointed 
 that 
 Markmin isn't more popular,  but very glad it exists.  I feel that 
 stupid.css could be a similar kind of thing.

 Is it intended that users use this for standard widgets and then 
 add Bootstrap or Semantic or whatever for any extras?  Its simplicity 
 is 
 not going to resolve every requirement.

 I'm not convinced about the name,  but at least it is memorable!



-- 
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: list:reference, multiple=True, validation error

2016-03-04 Thread eric cuver
I  teste it on my web2py  it work 

Le vendredi 4 mars 2016 15:24:39 UTC+1, villas a écrit :
>
> Hi Eric,  Thanks for your interest.  I believe that this is a bug in 
> IS_IN_DB validator.  I am surprised that more users have not reported it.   
> Try this to replicate.
>
> 1. Make a new app.
> 2. Paste this at the bottom of models/db.py
>
>
> db.define_table('tag',
> Field('name'),
> Field('descr',length=50),
> format='%(name)s',
> )
> 
> db.define_table('docstore',
> Field('name'),
> Field('tags','list:reference tag'), 
> )   
> 
> if not db(db.tag.id>0).count():
> db.tag.insert( name = "A",  descr = "A Descr" ) 
> db.tag.insert( name = "B",  descr = "B Descr" ) 
> db.tag.insert( name = "C",  descr = "C Descr" ) 
>
>
> Use Appadmin to add a record to docstore table.
>
>
>

-- 
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: list:reference, multiple=True, validation error

2016-03-04 Thread eric cuver

you can paste your code ?

-- 
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 create my own profile??

2016-03-04 Thread eric cuver
which error web2py show you ??  There is an error that generates a ticket?

Le jeudi 3 mars 2016 21:12:34 UTC+1, prashant joshi a écrit :
>
> how to make my profile   like a facebook??
> if i am login then i  will show my record as like image ,name,email 
> id.(.all fileld in stud_person table)
>
> this is table creteated
> db.define_table('stud_person',
>   Field('image', 'upload'), 
>   Field('first_name', requires=IS_NOT_EMPTY()),
>   Field('middle_name', requires=IS_NOT_EMPTY()),
>   Field('last_name', requires=IS_NOT_EMPTY()),
>   Field('email_id', requires=IS_NOT_EMPTY()),
>   Field('address','text', requires=IS_NOT_EMPTY()),
>   Field('mother_name', requires=IS_NOT_EMPTY()),
>   Field('gender', 'list:string'),
>   Field('dob','date', requires=IS_NOT_EMPTY()),
>   Field('blood_group', requires=IS_NOT_EMPTY()),
>   Field('mother_tongue', requires=IS_NOT_EMPTY()),
>   Field('mobile_no','integer', requires=IS_NOT_EMPTY()))
>
> cantroller:-
> @auth.requires_login()
> def my_profile():
>
> record = db.stud_person(request.args(0))
>form = SQLFORM(db.person, record)
>  return dict(form=form)
>
>   
>
> i wiil do this but this not work. 
> it is correct way??
>
>
>

-- 
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: for those of us who do not understand ...

2016-03-04 Thread eric cuver


Le jeudi 3 mars 2016 08:27:57 UTC+1, Massimo Di Pierro a écrit :
>
> A damn simple and easy css framework ... stupid.css
>
> https://t.co/9vB48IjYJK
>
> No promise of backward compatibility is made, but comments and suggestions 
> for improvement are welcome.
>

it's nice  

-- 
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: Massimo for President!

2016-02-26 Thread eric cuver
thank you for sharing  

Le vendredi 26 février 2016 09:27:05 UTC+1, Nico Zanferrari a écrit :
>
> Hi all,
>
> I've found this article this morning: 
> http://www.corrierecomunicazioni.it/it-world/39758_coding-cosi-funziona-il-mio-programma-che-mette-il-turbo-a-python.htm
> It's an Italian  interview to Massimo - with a bad title but still worth 
> reading.
>
> Congratulations! Bravo!
>
>
>

-- 
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] The connection could be established sorry

2016-02-04 Thread eric cuver
Hi, everybody ,since the last update I've often this message when I want to 
go on one of the controller's page
 
"The connection could be established sorry

Return"

-- 
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: Can we use a web2py app on Android mobile?

2016-01-30 Thread eric cuver
this link for for better explanation 
https://zolmeister.com/2014/01/how-to-turn-webapp-into-native-android.html
Le mercredi 27 janvier 2016 16:48:00 UTC+1, Ron Chatterjee a écrit :

> Any documentation of using  Cordova or Kivy using a hosted web2py  app? If 
> a site is hosted using bootstrap3 and html5 its mobile friendly anyway. 
>
> On Tuesday, January 12, 2016 at 9:12:01 AM UTC-5, eric cuver wrote:
>>
>> you can also do this with web2py you just need to create a webview with 
>> Cordova or Kivy with the URL of your mobile website view. Me this is what I 
>> do and it works without problems
>>
>> Le lundi 11 janvier 2016 22:31:58 UTC+1, Alessio Varalta a écrit :
>>>
>>> Sorry, , you are right. Now i have developed only in Android now in 
>>> these day for a project i start to study cordova and is true that you can 
>>> upload on Google market this my first time with Hybrid app
>>>
>>> Il giorno lunedì 11 gennaio 2016 13:17:14 UTC+1, Andrew Buchan ha 
>>> scritto:
>>>>
>>>> Just to butt-in on what Richard said:
>>>>
>>>> "But this kind of app are often not that interresting from user stand 
>>>> point... I mean you don't have a good mobile app user experience with them 
>>>> most of the time because they to simple that you can just access the real 
>>>> web app and it could be even better..."
>>>>
>>>> That's not really true anymore...
>>>>
>>>> What you are referring to are hybrid apps, which is essentially a 
>>>> mini-website (HTML, JS, CSS) wrapped in a package and rendered in a native 
>>>> webview, as opposed to a native app which is built in objective-C or Java.
>>>> Hybrid apps can access the phone's features such as camera, battery, 
>>>> geolocation, accelerometer etc... So you can do much more than you would 
>>>> by 
>>>> accessing a web app in the browser!
>>>> Hybrid performance is also more than adequate for most applications, 
>>>> and many of today's top apps are hybrid (in fact I challenge you to find 
>>>> out which apps on your phone are hybrid and which are native...)
>>>>
>>>> What's more, with tools like cordova you can target both Android and 
>>>> iOS (with caveats) with the same code.
>>>> You also get to use the latest Javascript frameworks, such as AngularJS 
>>>> or ReactJS.
>>>>
>>>> My advice would be to learn js and angular then go down the ionic (
>>>> http://ionicframework.com/) path. I really don't see a case for 
>>>> bringing web2py into android.
>>>>
>>>> Edit:
>>>>
>>>> What Alessio said isn't true either. You can publish hybrid apps to 
>>>> Google play and Apple's app store.
>>>>
>>>> Here's a useful page:
>>>>
>>>>
>>>> http://www.joshmorony.com/the-step-by-step-guide-to-publishing-a-html5-mobile-application-on-app-stores/
>>>>
>>>>
>>>>
>>>> On Monday, January 4, 2016 at 9:20:53 PM UTC, RAGHIB R wrote:
>>>>>
>>>>>

-- 
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: loging web2py

2016-01-25 Thread eric cuver
Thank you Mr Massimo !!

Le lundi 25 janvier 2016 18:49:34 UTC+1, Massimo Di Pierro a écrit :
>
> increase the default expiration time
>
> auth.settings.expiration = 1 # seconds
>
> On Sunday, 24 January 2016 21:45:46 UTC-6, eric cuver wrote:
>>
>> I think I misspoke I would extend the length of sessions. As facebook or 
>> gmail  if we are not disconnected we are connected  all the time
>>
>> Le dimanche 24 janvier 2016 20:11:55 UTC+1, Massimo Di Pierro a écrit :
>>>
>>> What do you mean "login each time". After the first login, the system 
>>> remembers you until the session expires. Is this not working for you? What 
>>> do you experience?
>>>
>>> On Sunday, 24 January 2016 03:31:26 UTC-6, eric cuver wrote:
>>>>
>>>> Hello everybody,
>>>>  I need to know how I can do to avoid that users must loging to each 
>>>> time for using an application. i would like  the user login only one 
>>>> time after he can connect to the application without login each time. 
>>>> 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] loging web2py

2016-01-24 Thread eric cuver
Hello everybody,
 I need to know how I can do to avoid that users must loging to each time 
for using an application. i would like  the user login only one time after 
he can connect to the application without login each time. 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] Re: loging web2py

2016-01-24 Thread eric cuver
I think I misspoke I would extend the length of sessions. As facebook or 
gmail  if we are not disconnected we are connected  all the time

Le dimanche 24 janvier 2016 20:11:55 UTC+1, Massimo Di Pierro a écrit :
>
> What do you mean "login each time". After the first login, the system 
> remembers you until the session expires. Is this not working for you? What 
> do you experience?
>
> On Sunday, 24 January 2016 03:31:26 UTC-6, eric cuver wrote:
>>
>> Hello everybody,
>>  I need to know how I can do to avoid that users must loging to each time 
>> for using an application. i would like  the user login only one time after 
>> he can connect to the application without login each time. 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.


Re: [web2py] Re: Can we use a web2py app on Android mobile?

2016-01-13 Thread eric cuver
half of the applications being used are not native. Facebook, 
uber,instagram etc ... all his  companies were not going to rewrite their 
applications for each platform in java for android, iphone in objective c, 
blackbery etc ... there is an article on the topic http : 
//kennethormandy.com/journal/your-favourite-app-isnt-native

Le mardi 12 janvier 2016 15:53:44 UTC+1, Andrew Buchan a écrit :
>
> @eric That's interesting... So essentially you'd get an "app" on your 
> mobile, but it just opens to a webpage on a server.
> That is probably the best solution offered so far although you need to be 
> connected to and also don't get access to phone's features like contacts, 
> notifications etc...
>
>
> On Tue, Jan 12, 2016 at 9:04 AM, eric cuver <amihaco...@gmail.com 
> > wrote:
>
>> you can also do this with web2py you just need to create a webview with 
>> Cordova or Kivy with the URL of your mobile website view. Me this is what I 
>> do and it works without problems
>>
>>
>> Le lundi 11 janvier 2016 22:31:58 UTC+1, Alessio Varalta a écrit :
>>>
>>> Sorry, , you are right. Now i have developed only in Android now in 
>>> these day for a project i start to study cordova and is true that you can 
>>> upload on Google market this my first time with Hybrid app
>>>
>>> Il giorno lunedì 11 gennaio 2016 13:17:14 UTC+1, Andrew Buchan ha 
>>> scritto:
>>>>
>>>> Just to butt-in on what Richard said:
>>>>
>>>> "But this kind of app are often not that interresting from user stand 
>>>> point... I mean you don't have a good mobile app user experience with them 
>>>> most of the time because they to simple that you can just access the real 
>>>> web app and it could be even better..."
>>>>
>>>> That's not really true anymore...
>>>>
>>>> What you are referring to are hybrid apps, which is essentially a 
>>>> mini-website (HTML, JS, CSS) wrapped in a package and rendered in a native 
>>>> webview, as opposed to a native app which is built in objective-C or Java.
>>>> Hybrid apps can access the phone's features such as camera, battery, 
>>>> geolocation, accelerometer etc... So you can do much more than you would 
>>>> by 
>>>> accessing a web app in the browser!
>>>> Hybrid performance is also more than adequate for most applications, 
>>>> and many of today's top apps are hybrid (in fact I challenge you to find 
>>>> out which apps on your phone are hybrid and which are native...)
>>>>
>>>> What's more, with tools like cordova you can target both Android and 
>>>> iOS (with caveats) with the same code.
>>>> You also get to use the latest Javascript frameworks, such as AngularJS 
>>>> or ReactJS.
>>>>
>>>> My advice would be to learn js and angular then go down the ionic (
>>>> http://ionicframework.com/) path. I really don't see a case for 
>>>> bringing web2py into android.
>>>>
>>>> Edit:
>>>>
>>>> What Alessio said isn't true either. You can publish hybrid apps to 
>>>> Google play and Apple's app store.
>>>>
>>>> Here's a useful page:
>>>>
>>>>
>>>> http://www.joshmorony.com/the-step-by-step-guide-to-publishing-a-html5-mobile-application-on-app-stores/
>>>>
>>>>
>>>>
>>>> On Monday, January 4, 2016 at 9:20:53 PM UTC, RAGHIB R wrote:
>>>>>
>>>>> -- 
>> 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/1ZxFEB5j4XA/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> web2py+un...@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: Can we use a web2py app on Android mobile?

2016-01-13 Thread eric cuver
there are several solution all depends on your application. facebook use 2 
adress  url www.facebook.com for the web and when you go through the mobile 
it is this address that is used https://m.facebook.com/

If you want to create video games for example I think it's better to do it 
in native. Now for notifications exist for example in  HTML there are 
 things like this https://pusher.com/tutorials/realtime-notifications I 
think that there are more. To access the camera you have api in html like 
this http://bridgeit.mobi/html5-camera-access.html.   
 look this website you are all api html for mobile http://mobilehtml5.org/ 
  as I say it depends on what you want to do

Le mardi 12 janvier 2016 15:53:44 UTC+1, Andrew Buchan a écrit :
>
> @eric That's interesting... So essentially you'd get an "app" on your 
> mobile, but it just opens to a webpage on a server.
> That is probably the best solution offered so far although you need to be 
> connected to and also don't get access to phone's features like contacts, 
> notifications etc...
>
>
> On Tue, Jan 12, 2016 at 9:04 AM, eric cuver <amihaco...@gmail.com 
> > wrote:
>
>> you can also do this with web2py you just need to create a webview with 
>> Cordova or Kivy with the URL of your mobile website view. Me this is what I 
>> do and it works without problems
>>
>>
>> Le lundi 11 janvier 2016 22:31:58 UTC+1, Alessio Varalta a écrit :
>>>
>>> Sorry, , you are right. Now i have developed only in Android now in 
>>> these day for a project i start to study cordova and is true that you can 
>>> upload on Google market this my first time with Hybrid app
>>>
>>> Il giorno lunedì 11 gennaio 2016 13:17:14 UTC+1, Andrew Buchan ha 
>>> scritto:
>>>>
>>>> Just to butt-in on what Richard said:
>>>>
>>>> "But this kind of app are often not that interresting from user stand 
>>>> point... I mean you don't have a good mobile app user experience with them 
>>>> most of the time because they to simple that you can just access the real 
>>>> web app and it could be even better..."
>>>>
>>>> That's not really true anymore...
>>>>
>>>> What you are referring to are hybrid apps, which is essentially a 
>>>> mini-website (HTML, JS, CSS) wrapped in a package and rendered in a native 
>>>> webview, as opposed to a native app which is built in objective-C or Java.
>>>> Hybrid apps can access the phone's features such as camera, battery, 
>>>> geolocation, accelerometer etc... So you can do much more than you would 
>>>> by 
>>>> accessing a web app in the browser!
>>>> Hybrid performance is also more than adequate for most applications, 
>>>> and many of today's top apps are hybrid (in fact I challenge you to find 
>>>> out which apps on your phone are hybrid and which are native...)
>>>>
>>>> What's more, with tools like cordova you can target both Android and 
>>>> iOS (with caveats) with the same code.
>>>> You also get to use the latest Javascript frameworks, such as AngularJS 
>>>> or ReactJS.
>>>>
>>>> My advice would be to learn js and angular then go down the ionic (
>>>> http://ionicframework.com/) path. I really don't see a case for 
>>>> bringing web2py into android.
>>>>
>>>> Edit:
>>>>
>>>> What Alessio said isn't true either. You can publish hybrid apps to 
>>>> Google play and Apple's app store.
>>>>
>>>> Here's a useful page:
>>>>
>>>>
>>>> http://www.joshmorony.com/the-step-by-step-guide-to-publishing-a-html5-mobile-application-on-app-stores/
>>>>
>>>>
>>>>
>>>> On Monday, January 4, 2016 at 9:20:53 PM UTC, RAGHIB R wrote:
>>>>>
>>>>> -- 
>> 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/1ZxFEB5j4XA/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> web2py+un...@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: Can we use a web2py app on Android mobile?

2016-01-13 Thread eric cuver
a parenthesis between French Mathieu you're French?

Le mercredi 13 janvier 2016 16:50:12 UTC+1, Mathieu Clabaut a écrit :
>
> A bit out of topic, but also note that with the help of the nice termux 
> android app, you can develop and run the web2py server on your android…
> Quite nice when you're far from a real computer…
>
> -Mathieu
>
> 2016-01-12 16:39 GMT+01:00 eric cuver <amihaco...@gmail.com >
> :
>
>> there are several solution all depends on your application. facebook use 
>> 2 adress  url www.facebook.com for the web and when you go through the 
>> mobile it is this address that is used https://m.facebook.com/
>>
>> If you want to create video games for example I think it's better to do 
>> it in native. Now for notifications exist for example in  HTML there are 
>>  things like this https://pusher.com/tutorials/realtime-notifications I 
>> think that there are more. To access the camera you have api in html like 
>> this http://bridgeit.mobi/html5-camera-access.html.   
>>  look this website you are all api html for mobile 
>> http://mobilehtml5.org/   as I say it depends on what you want to do
>>
>> Le mardi 12 janvier 2016 15:53:44 UTC+1, Andrew Buchan a écrit :
>>>
>>> @eric That's interesting... So essentially you'd get an "app" on your 
>>> mobile, but it just opens to a webpage on a server.
>>> That is probably the best solution offered so far although you need to 
>>> be connected to and also don't get access to phone's features like 
>>> contacts, notifications etc...
>>>
>>>
>>> On Tue, Jan 12, 2016 at 9:04 AM, eric cuver <amihaco...@gmail.com> 
>>> wrote:
>>>
>>>> you can also do this with web2py you just need to create a webview with 
>>>> Cordova or Kivy with the URL of your mobile website view. Me this is what 
>>>> I 
>>>> do and it works without problems
>>>>
>>>>
>>>> Le lundi 11 janvier 2016 22:31:58 UTC+1, Alessio Varalta a écrit :
>>>>>
>>>>> Sorry, , you are right. Now i have developed only in Android now in 
>>>>> these day for a project i start to study cordova and is true that you can 
>>>>> upload on Google market this my first time with Hybrid app
>>>>>
>>>>> Il giorno lunedì 11 gennaio 2016 13:17:14 UTC+1, Andrew Buchan ha 
>>>>> scritto:
>>>>>>
>>>>>> Just to butt-in on what Richard said:
>>>>>>
>>>>>> "But this kind of app are often not that interresting from user stand 
>>>>>> point... I mean you don't have a good mobile app user experience with 
>>>>>> them 
>>>>>> most of the time because they to simple that you can just access the 
>>>>>> real 
>>>>>> web app and it could be even better..."
>>>>>>
>>>>>> That's not really true anymore...
>>>>>>
>>>>>> What you are referring to are hybrid apps, which is essentially a 
>>>>>> mini-website (HTML, JS, CSS) wrapped in a package and rendered in a 
>>>>>> native 
>>>>>> webview, as opposed to a native app which is built in objective-C or 
>>>>>> Java.
>>>>>> Hybrid apps can access the phone's features such as camera, battery, 
>>>>>> geolocation, accelerometer etc... So you can do much more than you would 
>>>>>> by 
>>>>>> accessing a web app in the browser!
>>>>>> Hybrid performance is also more than adequate for most applications, 
>>>>>> and many of today's top apps are hybrid (in fact I challenge you to find 
>>>>>> out which apps on your phone are hybrid and which are native...)
>>>>>>
>>>>>> What's more, with tools like cordova you can target both Android and 
>>>>>> iOS (with caveats) with the same code.
>>>>>> You also get to use the latest Javascript frameworks, such as 
>>>>>> AngularJS or ReactJS.
>>>>>>
>>>>>> My advice would be to learn js and angular then go down the ionic (
>>>>>> http://ionicframework.com/) path. I really don't see a case for 
>>>>>> bringing web2py into android.
>>>>>>
>>>>>> Edit:
>>>>>>
>>>>>> What Alessio said isn't true either. You can publish hybrid apps to 
>>>>>> Google play and App

[web2py] Re: Can we use a web2py app on Android mobile?

2016-01-12 Thread eric cuver
you can also do this with web2py you just need to create a webview with 
Cordova or Kivy with the URL of your mobile website view. Me this is what I 
do and it works without problems

Le lundi 11 janvier 2016 22:31:58 UTC+1, Alessio Varalta a écrit :
>
> Sorry, , you are right. Now i have developed only in Android now in these 
> day for a project i start to study cordova and is true that you can upload 
> on Google market this my first time with Hybrid app
>
> Il giorno lunedì 11 gennaio 2016 13:17:14 UTC+1, Andrew Buchan ha scritto:
>>
>> Just to butt-in on what Richard said:
>>
>> "But this kind of app are often not that interresting from user stand 
>> point... I mean you don't have a good mobile app user experience with them 
>> most of the time because they to simple that you can just access the real 
>> web app and it could be even better..."
>>
>> That's not really true anymore...
>>
>> What you are referring to are hybrid apps, which is essentially a 
>> mini-website (HTML, JS, CSS) wrapped in a package and rendered in a native 
>> webview, as opposed to a native app which is built in objective-C or Java.
>> Hybrid apps can access the phone's features such as camera, battery, 
>> geolocation, accelerometer etc... So you can do much more than you would by 
>> accessing a web app in the browser!
>> Hybrid performance is also more than adequate for most applications, and 
>> many of today's top apps are hybrid (in fact I challenge you to find out 
>> which apps on your phone are hybrid and which are native...)
>>
>> What's more, with tools like cordova you can target both Android and iOS 
>> (with caveats) with the same code.
>> You also get to use the latest Javascript frameworks, such as AngularJS 
>> or ReactJS.
>>
>> My advice would be to learn js and angular then go down the ionic (
>> http://ionicframework.com/) path. I really don't see a case for bringing 
>> web2py into android.
>>
>> Edit:
>>
>> What Alessio said isn't true either. You can publish hybrid apps to 
>> Google play and Apple's app store.
>>
>> Here's a useful page:
>>
>>
>> http://www.joshmorony.com/the-step-by-step-guide-to-publishing-a-html5-mobile-application-on-app-stores/
>>
>>
>>
>> On Monday, January 4, 2016 at 9:20:53 PM UTC, RAGHIB R wrote:
>>>
>>>

-- 
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: Possible bug in 2.12.2 when including a .css file in a HTML email template

2015-08-12 Thread Eric
I've created an issue on GitHub:
https://github.com/web2py/web2py/issues/1041

Feels like a better place to report this than 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: Update session expiration after login

2015-08-11 Thread Eric
Hi Anthony,

Thank you for your reaction.

Am I correct that this won't work in combination with auth.login_bare()?

Tnx!



Op donderdag 6 augustus 2015 16:55:20 UTC+2 schreef Anthony:

 Login details are stored in session.auth, including the expiration in 
 session.auth.expiration. So, you could do something like:

 def after_login(form):
 if 'special_group' in auth.user_groups.values():
 session.auth.expiration = 60 * 60 * 24

 auth.settings.login_onaccept.append(after_login)

 Anthony

 On Thursday, August 6, 2015 at 10:04:49 AM UTC-4, Eric wrote:

 Hi,

 How can I change the session expiration length after someone has 
 loggedin? I've found the setting auth.settings.expiration, but that only 
 works when I place it in the db.py (or somewhere before I call the 
 (bare)login function). Trouble is that I only know the rights of the user 
 after login, so I can only update the session length after login. The 
 reason why I want to change it session length? Users with specific rights 
 that are coming from a 'safe' (IP) location are allowed to have longer 
 session length than the 'unsafe' user.

 The only way that I've found to get this task done is by manipulating 
 the expiration the session_data blob / pickle right after the user was 
 loggedin... This works, but seems to me that it's not very Web2Py like ;)

 Is there another way to change it? Or is this the right (or best) way to 
 do it?

 Thanks for the reaction!



-- 
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: Update session expiration after login

2015-08-11 Thread Eric
It seems that:

session.auth.expiration = [value]


Is also doing the job :)

-- 
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] Possible bug in 2.12.2 when including a .css file in a HTML email template

2015-08-11 Thread Eric
Hi,

I've just updated my project to Web2py 2.12.2 and found a little issue that 
wasn't there in my previouse versie 2.10.something...

I render a HTML template for the 'reset password' email like this:

auth.messages.reset_password = 
response.render('templates/email/reset_password.html',
   base_url='http://' + 
request.env.http_host,
   
portal_name=site_settings.portal_name,
   password_url=URL(r=request, 
c='default', f='choose_new_password') + '?key=%(key)s')


The template itself looks like this:

html
head
   {{include 'templates/email/includes/css.html'}}
   /head

{{include 'templates/email/includes/body_top.html'}}
p
Click on the URL
a 
href={{=base_url}}{{=password_url}}{{=base_url}}{{=password_url}}/a
/p
{{include 'templates/email/includes/body_bottom.html'}}
/html


After disabling the includes and partial css format in the css.html I've 
discovered that the following lines in css.html:

style type=text/css
table {
width: 100%;
border-collapse: collapse;
}
/style


Are causing this error:

unsupported format character ';' (0x3b) at index 397

When I change 100%; into, for example, 100px; the error is gone... 
downside it that the layout of the email is also 'gone' ;)

It this a bug? Or do I need to do things differently and did is work by 
accident in previous versions 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] Update session expiration after login

2015-08-06 Thread Eric
Hi,

How can I change the session expiration length after someone has loggedin? 
I've found the setting auth.settings.expiration, but that only works when I 
place it in the db.py (or somewhere before I call the (bare)login 
function). Trouble is that I only know the rights of the user after login, 
so I can only update the session length after login. The reason why I want 
to change it session length? Users with specific rights that are coming 
from a 'safe' (IP) location are allowed to have longer session length than 
the 'unsafe' user.

The only way that I've found to get this task done is by manipulating 
the expiration the session_data blob / pickle right after the user was 
loggedin... This works, but seems to me that it's not very Web2Py like ;)

Is there another way to change it? Or is this the right (or best) way to do 
it?

Thanks for the reaction!

-- 
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] web2py inspired framework

2015-07-31 Thread eric cuver
What do you think of this framework which is clearly inspired by web2py

http://weppy.org/

-- 
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: Web2py is Badly designed framework and Does not scale

2015-07-20 Thread eric cuver
thank you, I tested it works very well with web2py

Le dimanche 19 juillet 2015 18:04:11 UTC+2, Anthony a écrit :

 On Sunday, July 19, 2015 at 11:10:19 AM UTC-4, eric cuver wrote:

 can we use  brython with web2py ?


 Sure. Brython simply generates Javascript code that then gets executed in 
 the browser, so you can use Brython with web2py in the same sense that you 
 can use Javascript with web2py.

 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: google play

2015-07-07 Thread eric cuver

Bruno cezar rocha on twitter answer me: 



   1. *eric* ‏@ghyfr1  https://twitter.com/ghyfr1 12 hil y a 12 heures 
   https://twitter.com/ghyfr1/status/617988200615813120
   
   @rochacbruno https://twitter.com/rochacbruno hi bruno you can show me 
   or explain how i can create web2py application for google play #web2py 
   https://twitter.com/hashtag/web2py?src=hash
   https://twitter.com/ghyfr1/status/6179882006158131200 Retweet1 favoris
   Répondre
Retweeter
Favori1
   Voir l'activité du Tweet
   Plus
   2. 
   *Bruno Cezar Rocha* ‏@rochacbruno  https://twitter.com/rochacbruno 10 hil 
   y a 10 heures https://twitter.com/rochacbruno/status/618012797251792896
   
   @ghyfr1 https://twitter.com/ghyfr1 you can create a web2py api to 
   serve data to a mobile app but not an android app with web2py. You can try 
   appery.io.
   Voir la traduction
   04:05 - 6 juil. 2015 · Détails 
   https://twitter.com/rochacbruno/status/618012797251792896
   Masquer la conversation 
   https://twitter.com/rochacbruno/status/6180127972517928960 Retweet0 
   favoris
   Répondre
Retweeter
Favori
   Plus
   Texte du Tweet
   Répondre à @rochacbruno https://twitter.com/rochacbruno 
   https://twitter.com/rochacbruno
Qui apparaît sur ces photos ?
   3. *e* https://twitter.com/ghyfr1ric ‏@ghyfr1  
   https://twitter.com/ghyfr1 10 hil y a 10 heures 
   https://twitter.com/ghyfr1/status/618019273601122304
   
   @rochacbruno https://twitter.com/rochacbruno I would like to do with 
   as you slice web2py application on google play
   https://twitter.com/ghyfr1/status/6180192736011223040 Retweet0 favoris
   Répondre
Retweeter
Favori
   Voir l'activité du Tweet
   Plus
   4. *e* https://twitter.com/ghyfr1ric ‏@ghyfr1  
   https://twitter.com/ghyfr1 10 hil y a 10 heures 
   https://twitter.com/ghyfr1/status/618019407093202944
   
   @rochacbruno https://twitter.com/rochacbruno I would like to do with 
   as you web2py slice application on google play
   https://twitter.com/ghyfr1/status/6180194070932029440 Retweet0 favoris
   Répondre
Retweeter
Favori
   Voir l'activité du Tweet
   Plus
   5. *Bruno Cezar Rocha* ‏@rochacbruno  https://twitter.com/rochacbruno 10 
   hil y a 10 heures 
   https://twitter.com/rochacbruno/status/618022376601731072
   
   @ghyfr1 https://twitter.com/ghyfr1 that was created by appyet service, 
   just an RSS feed reader
   

*eric* ‏@ghyfr1  https://twitter.com/ghyfr1 10 hil y a 10 heures 
https://twitter.com/ghyfr1/status/618024509778591744

@rochacbruno https://twitter.com/rochacbruno ok it's cool thanks
Voir la traduction
https://twitter.com/ghyfr1/status/6180245097785917440 Retweet0 favoris
Répondre
 Retweeter
 Favori
Voir l'activité du Tweet
Plus
04:51 - 6 juil. 2015 · Détails 
https://twitter.com/ghyfr1/status/618024509778591744


Le lundi 6 juillet 2015 22:07:36 UTC+2, Dave S a écrit :



 On Monday, July 6, 2015 at 8:27:08 AM UTC-7, Massimo Di Pierro wrote:

 No but if you find out let us know. :-)

 On Monday, 6 July 2015 10:22:21 UTC-5, eric cuver wrote:


 hi everybody anyone know how I can create a mobile application on google 
 play with web2py as web2pyslices


 Is that Google Play as the store (application distribution), or Google 
 Play as the engine (application environment)?

 I've seen a few examples of mobile apps in this group, but Web2Py's device 
 detection and view mapping seem to be the key parts of that.  I haven't 
 tried any of them yet.

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


Re: [web2py] Re: Semantic 2.0

2015-07-07 Thread eric cuver
oh my god semantic i'm fan 

Le lundi 6 juillet 2015 18:12:28 UTC+2, JorgeH a écrit :

 I am open to use both.

 On Monday, July 6, 2015 at 10:21:55 AM UTC-5, Massimo Di Pierro wrote:

 I am the one who proposed moving to semantic a year ago but the 
 overwhelming majority here wanted bootstrap. :-(

 On Monday, 6 July 2015 09:11:10 UTC-5, Richard wrote:

 Semantic include so much goodies!!

 :)

 Richard

 On Fri, Jul 3, 2015 at 12:03 PM, Massimo Di Pierro 
 massimo@gmail.com wrote:

 We cannot make the layout name a variable because it would break 
 bytecode compilation. If you make a semantic scaffolding app I would like 
 to see it. We can make a site where multiple apps are posted.


 On Thursday, 2 July 2015 06:48:36 UTC-5, 黄祥 wrote:

 have a plan to use semantic for web2py scaffolding app? perhaps, 
 something like
 private/appconfig.ini
 [layout]
 css = bootstrap3
 ;css = bootstrap
 ;css = semantic

 best regards,
 stifan

  -- 
 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+un...@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] google play

2015-07-06 Thread eric cuver

hi everybody anyone know how I can create a mobile application on google 
play with web2py as web2pyslices

-- 
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 mobile app using Kivy

2015-06-01 Thread eric cuver
good question I am also interested in the answer

Le lundi 1 juin 2015 16:19:56 UTC+2, Joe a écrit :

 I developed a web app with Web2py. It works great, I thing Web2py is 
 fantastic.

 I want to create a mobile app from my web app and I am not sure what is 
 the best approach.
 Does anyone have any experience using Kivy? Does it work with Web2py? Or, 
 is there a alternative solution to Kivy?


-- 
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: Sublime Text web2py plugin

2015-05-04 Thread eric cuver
cool it's great

thank you

Le lundi 4 mai 2015 12:28:55 UTC+2, Gergely Orosz a écrit :

 Hi 4 All,

 I've started to develop a web2py plugin for Sublime Text 3.
 I've implemented a few command I found very useful on my daily work.
 If you have any idea how can I make it better and useful please visit the 
 below link and submit your feature request there
 Thanks in advance

 You can find the plugin: https://bitbucket.org/kfog/w2p

 If you have any question please feel free to ask here or on the Issue 
 tracker

 All the best
 Greg


-- 
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: cache.disk.clear() crashes in appadmin

2015-03-05 Thread Eric Christiaanse
Hi Leonel,

I've removed the cache folder from svn. Everything works fine now with
cache removal :)

Tnx!


2015-03-03 16:21 GMT+01:00 Leonel Câmara leonelcam...@gmail.com:

 Yes, it is created on demand if it isn't there, go ahead and svn delete it.

 --
 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/3usaQxAFY0k/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: cache.disk.clear() crashes in appadmin

2015-03-03 Thread Eric Christiaanse
Hi Leonel,

Done that and cleaned the cache folder. When I call /appadmin/ccache the
code breaks here:
try:
 disk['ratio'] = disk['hits'] * 100 / value['hit_total']

The first time everything goes great with the from cache.disk.storage[key]:
{'hit_total': 0, 'misses': 0}

The second time it hits my breakpoint on the try/except is crashes on this
code:
value = cache.disk.storage[key]

The key it is looking for is: 'all-wcprops'

Hmmm... that's an SVN file in a 'hidden' folder (.svn) :)

When I download Web2Py and run it, than everything works.


2015-03-03 13:14 GMT+01:00 Leonel Câmara leonelcam...@gmail.com:

 Hey Eric,

 web2py 2.9.12 does contain the fix, however your application's appadmin
 probably doesn't as the error is in appadmin which is a controller in your
 own application. You need to copy the one with the fix from the 2.9.12
 welcome application and overwrite it.

 --
 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/3usaQxAFY0k/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: cache.disk.clear() crashes in appadmin

2015-03-03 Thread Eric Christiaanse
Hi,

The folder itself is under svn control, the data in it isn't.

It the cache folder created 'on demand'? When that's the case we can remove
all svn control on it.


2015-03-03 15:01 GMT+01:00 Leonel Câmara leonelcam...@gmail.com:

 Why is the cache folder under svn control? Files are keys values in the
 current cache disk implementation so you really can't have anything else
 putting files there.

 --
 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/3usaQxAFY0k/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: cache.disk.clear() crashes in appadmin

2015-03-02 Thread Eric Christiaanse
Hi,

It took me a LONG time to check the update, but I just did. I've updated to
Web2Py 2.9.12 (this version contains the fix), and copied the appadmin.py
to my project.

When I call cacke.disk.clear() I still get an error :( To be exact this one:

Traceback (most recent call last):
  File /home/eric/Projects/Web2Py/web/gluon/restricted.py, line 224, in
restricted
exec ccode in environment
  File
/home/eric/Projects/Web2Py/web/applications/cms/controllers/maintenance.py,
line 415, in module
  File /home/eric/Projects/Web2Py/web/gluon/globals.py, line 393, in
lambda
self._caller = lambda f: f()
  File /home/eric/Projects/Web2Py/web/gluon/tools.py, line 3444, in f
return action(*a, **b)
  File
/home/eric/Projects/Web2Py/web/applications/cms/controllers/maintenance.py,
line 396, in edit
flush_cache()
  File /home/eric/Projects/Web2Py/web/gluon/tools.py, line 3444, in f
return action(*a, **b)
  File
/home/eric/Projects/Web2Py/web/applications/cms/controllers/maintenance.py,
line 406, in flush_cache
cache.disk.clear(None)
  File /home/eric/Projects/Web2Py/web/gluon/cache.py, line 427, in clear
storage.clear()
  File /home/eric/Projects/Web2Py/web/gluon/cache.py, line 365, in clear
del self[key]
  File /home/eric/Projects/Web2Py/web/gluon/cache.py, line 343, in
__delitem__
recfile.remove(key, path=self.folder)
  File /home/eric/Projects/Web2Py/web/gluon/recfile.py, line 36, in remove
raise IOError
IOError

Yes, I've cleared the cache folder :)

When I go to cache page in the appadmin.py in the admin folder I get the
following error (even when the cache folder is empty and I did a fresh
restart of Web2Py):
type 'exceptions.KeyError'

Traceback (most recent call last):
  File /home/eric/Projects/Web2Py/web/gluon/restricted.py, line 224, in
restricted
exec ccode in environment
  File
/home/eric/Projects/Web2Py/web/applications/cms/controllers/appadmin.py,
line 700, in module
  File /home/eric/Projects/Web2Py/web/gluon/globals.py, line 393, in
lambda
self._caller = lambda f: f()
  File
/home/eric/Projects/Web2Py/web/applications/cms/controllers/appadmin.py,
line 466, in ccache
value = cache.disk.storage[key]
  File /home/eric/Projects/Web2Py/web/gluon/cache.py, line 333, in
__getitem__
raise KeyError
KeyError

Any ideas?


2015-03-02 16:26 GMT+01:00 Leonel Câmara leonelcam...@gmail.com:

 Hey Robin,

 If the code is just that you probably have stuff in your cache folder from
 the previous way of using it that shouldn't be there anymore. If you
 manually delete all files and folders in your cache folder you should stop
 seeing this error in the future.

 --
 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/3usaQxAFY0k/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] Newby Question

2015-02-02 Thread Eric
Richard,

Thank you for your kind response. I did find the SQLFORM example and got it 
to present the form and accept a file. I'm still struggling with an overall 
idea of how things work in Web2py (and perhaps the web itself). Is there a 
resource that clearly describes what happens when a page is accessed the 
order or processing what happens. I don't quite understand what Python code 
is triggered immediately, how messages or whatever are generated as someone 
interacts with the page, etc. This is a general question and I'm sure there 
are good recourses for me to read. What I'm trying to avoid is just 
assuming some magic happens.

Eric

On Thursday, January 29, 2015 at 12:20:53 PM UTC-6, Richard wrote:

 Without the code from your controller and view it is more difficult to be 
 sure of what you are talking about exactly...

 I guess you have wrote a model, where you define a field of type upload, 
 then you want to understand how the upload of the file works and thing get 
 done...

 A simple question may be hard to draw, there  is many code layer involves, 
 but book explanation about upload may be a good start for you to understand 
 :

 http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-and-uploads

 Web2py is a framework, so many things that you may use to write from 
 scratch in php are readily available in web2py without you to butter 
 recoding them, except if you need custom things not offers and even then, 
 there many ways to tweaks web2py default feature most of the time, passing 
 just more parameters...

 Richard

 On Wed, Jan 28, 2015 at 10:46 AM, Eric eric@gmail.com javascript: 
 wrote:

 Sorry if this is too basic a question. I very new to web programming and 
 Web2py. I have written some desktop applications. Where I'm having trouble 
 right now is understanding exactly how the Python code in Web2py interacts 
 with the HTML. In my desktop GUI apps, a control like a button generates a 
 trigger or callback which I can capture and execute code in response. I'm 
 sure something like this is happening in web apps too, but I'm not quite 
 getting how it works. For example, If I place the following tag in the 
 HTML: 
 input type=file name=fileID
 the page will display a button with which I can select a file with the 
 browser's open file dialog. It will even show the file name on the page 
 after selection. What I can't see is how I execute a Python function in 
 response to this selection or how to get the filename to the function. I'm 
 thinking I need some basic instruction in how web programming works so any 
 references would be appreciated. I've been working my way through an 
 on-line HTML tutorial, but it seems that javascript is also important.

 Thanks in advanced,

 Eric

 -- 
 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+un...@googlegroups.com javascript:.
 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] Newby Question

2015-01-29 Thread Eric
Sorry if this is too basic a question. I very new to web programming and 
Web2py. I have written some desktop applications. Where I'm having trouble 
right now is understanding exactly how the Python code in Web2py interacts 
with the HTML. In my desktop GUI apps, a control like a button generates a 
trigger or callback which I can capture and execute code in response. I'm 
sure something like this is happening in web apps too, but I'm not quite 
getting how it works. For example, If I place the following tag in the 
HTML: 
input type=file name=fileID
the page will display a button with which I can select a file with the 
browser's open file dialog. It will even show the file name on the page 
after selection. What I can't see is how I execute a Python function in 
response to this selection or how to get the filename to the function. I'm 
thinking I need some basic instruction in how web programming works so any 
references would be appreciated. I've been working my way through an 
on-line HTML tutorial, but it seems that javascript is also important.

Thanks in advanced,

Eric

-- 
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] Is Web2py suitable for my project

2015-01-26 Thread Eric
Richard,

If you try Bokeh and/or mpld3 please tell me how it went. I'll need 
scientific plots in my application and would welcome any hints on how to 
accomplish this in Web2py.

Eric

On Monday, January 26, 2015 at 9:30:48 AM UTC-6, Richard wrote:

 Didn't know bokeh thanks!

 Richard

 On Sun, Jan 25, 2015 at 10:43 PM, Kiran Subbaraman subbaram...@gmail.com 
 javascript: wrote:

  Eric,
 The best option then is for you to try out the hello-world example in 
 web2py. This will give you a good idea as to how to create a minimal web 
 application, and also insert your code. You need to start here: 
 http://web2py.com/books/default/chapter/29/03/overview#Say-hello
 The stuff you are talking about should be pretty straight-forward in 
 web2py (or any other equivalent web framework).
 You need to create a model file (to store stuff in the db), a controller 
 (where your plotting logic, like that of Bokeh / MPLD3, will reside), and 
 the view (the html where you render your charts, or even embed javascript 
 based plotting libraries - like d3js).
 Feel free to ask questions as you work your way through the initial 
 web2py programming model. 

 
 Kiran Subbaramanhttp://subbaraman.wordpress.com/about/

 On Mon, 26-01-2015 3:22 AM, Eric wrote:
  
 Kiran, 

  Thanks for the response. I'm extremely new to any sort of web 
 programming. I have a bit of Python experience. Unfortunately the response 
 above was simply above my head. I've written file parsers in Python so I 
 can handle that. I'm confident I can write the algorithms too. What I can't 
 figure out is how to integrate a plotting utility like Bokeh or possibly 
 MPLD3 (http://mpld3.github.io/index.html) into Web2py and get the plot 
 to show up in a Web2py created page. I've seen a few examples of how to 
 trigger a browser's file dialog, but don't know how to use that to get a 
 file into the Python parsing script. I'm usually pretty good at finding 
 resources on the web, but my general knowledge of web technologies is a 
 problem.

  Eric

 On Sunday, January 25, 2015 at 3:24:18 AM UTC-6, Kiran Subbaraman wrote: 

  I would use web2py for these requirements, because you get the 
 authentication/authorization, sessions, DAL (for db access) capabilities 
 out of the box.
 You probably need packages in addition to pydal (for DAL support), on 
 top of Flask to accomplish this. Look at the gluino example to see what I 
 mean: https://github.com/mdipierro/gluino

 
 Kiran Subbaramanhttp://subbaraman.wordpress.com/about/

 On Sat, 24-01-2015 9:53 PM, Eric wrote:
  
 Hi all, 

  I'm new to web2py and have been working my way through the learning 
 materials. I have a specific application and am wondering if web2py is a 
 good choice for a framework or something simpler such as Flask. 
 Specifically I want to create a web application (for an intranet) where a 
 user would upload a data file using the standard browser file dialog, have 
 it analyzed by an algorithm I've written in Python and then responses 
 plotted on the page and also a file of results savable using the browsers 
 standard save file dialog. I know enough Python to handle the file parsing, 
 data analysis and result file generation. I'll need access to Python 
 libraries such as Numpy. I've discovered Bokah (http://bokeh.pydata.org) 
 as an attractive plotting library. They use Flask in their tutorial. I 
 haven't found anything particularly clear about how to invoke the browser 
 file dialogs. Eventually I'd like to use a database to archive the uploaded 
 data files and resulting result files along with other information such as 
 user, date, instrument serial number, etc.

  Thanks,

  Eric
  -- 
 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+un...@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+un...@googlegroups.com javascript:.
 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] Is Web2py suitable for my project

2015-01-25 Thread Eric
Hi all,

I'm new to web2py and have been working my way through the learning 
materials. I have a specific application and am wondering if web2py is a 
good choice for a framework or something simpler such as Flask. 
Specifically I want to create a web application (for an intranet) where a 
user would upload a data file using the standard browser file dialog, have 
it analyzed by an algorithm I've written in Python and then responses 
plotted on the page and also a file of results savable using the browsers 
standard save file dialog. I know enough Python to handle the file parsing, 
data analysis and result file generation. I'll need access to Python 
libraries such as Numpy. I've discovered Bokah (http://bokeh.pydata.org) as 
an attractive plotting library. They use Flask in their tutorial. I haven't 
found anything particularly clear about how to invoke the browser file 
dialogs. Eventually I'd like to use a database to archive the uploaded data 
files and resulting result files along with other information such as user, 
date, instrument serial number, etc.

Thanks,

Eric

-- 
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] Is Web2py suitable for my project

2015-01-25 Thread Eric
Kiran,

Thanks for the response. I'm extremely new to any sort of web programming. 
I have a bit of Python experience. Unfortunately the response above was 
simply above my head. I've written file parsers in Python so I can handle 
that. I'm confident I can write the algorithms too. What I can't figure out 
is how to integrate a plotting utility like Bokeh or possibly MPLD3 
(http://mpld3.github.io/index.html) into Web2py and get the plot to show up 
in a Web2py created page. I've seen a few examples of how to trigger a 
browser's file dialog, but don't know how to use that to get a file into 
the Python parsing script. I'm usually pretty good at finding resources on 
the web, but my general knowledge of web technologies is a problem.

Eric

On Sunday, January 25, 2015 at 3:24:18 AM UTC-6, Kiran Subbaraman wrote:

  I would use web2py for these requirements, because you get the 
 authentication/authorization, sessions, DAL (for db access) capabilities 
 out of the box.
 You probably need packages in addition to pydal (for DAL support), on top 
 of Flask to accomplish this. Look at the gluino example to see what I mean: 
 https://github.com/mdipierro/gluino

 
 Kiran Subbaramanhttp://subbaraman.wordpress.com/about/

 On Sat, 24-01-2015 9:53 PM, Eric wrote:
  
 Hi all, 

  I'm new to web2py and have been working my way through the learning 
 materials. I have a specific application and am wondering if web2py is a 
 good choice for a framework or something simpler such as Flask. 
 Specifically I want to create a web application (for an intranet) where a 
 user would upload a data file using the standard browser file dialog, have 
 it analyzed by an algorithm I've written in Python and then responses 
 plotted on the page and also a file of results savable using the browsers 
 standard save file dialog. I know enough Python to handle the file parsing, 
 data analysis and result file generation. I'll need access to Python 
 libraries such as Numpy. I've discovered Bokah (http://bokeh.pydata.org) 
 as an attractive plotting library. They use Flask in their tutorial. I 
 haven't found anything particularly clear about how to invoke the browser 
 file dialogs. Eventually I'd like to use a database to archive the uploaded 
 data files and resulting result files along with other information such as 
 user, date, instrument serial number, etc.

  Thanks,

  Eric
  -- 
 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+un...@googlegroups.com javascript:.
 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] SQLite, or some other database?

2015-01-02 Thread Eric Taw
From reading a lot of web2py tutorials and guides, they always say SQLite 
is good for small implementations of databases, whereas other SQL flavors 
are better suited for larger uses. Is there any reason why? Can I still use 
SQLite if I have a lot of information to store?

-- 
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] cache.disk.clear() crashes in appadmin

2014-10-16 Thread Eric
Hi All,

When I press the 'empty cache' button on the Appadmin I get a nice error:

Traceback (most recent call last):
 File /home/eric/Projects/Web2Py/site/gluon/restricted.py, line 224, in 
restricted
 exec ccode in environment
 File 
/home/eric/Projects/Web2Py/site/applications/cms/controllers/appadmin.py, 
line 654, in module
 File /home/eric/Projects/Web2Py/site/gluon/globals.py, line 392, in lambda
 self._caller = lambda f: f()
 File 
/home/eric/Projects/Web2Py/site/applications/cms/controllers/appadmin.py, 
line 389, in ccache
 cache.disk.clear()
 File /home/eric/Projects/Web2Py/site/gluon/cache.py, line 394, in clear
 storage.clear()
 File /home/eric/Projects/Web2Py/site/gluon/cache.py, line 334, in clear
 del self[key]
 File /home/eric/Projects/Web2Py/site/gluon/cache.py, line 316, in __delitem__
 recfile.remove(key, path=self.folder)
 File /home/eric/Projects/Web2Py/site/gluon/recfile.py, line 36, in remove
 raise IOError
IOError

Is this a known issue? Web2Py crashes also when there are no files and 
directories in the cache folder.

I'm running on Web2Py version 2.9.11

Tnx!

-- 
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: cache.disk.clear() crashes in appadmin

2014-10-16 Thread Eric
@Paolo: Done (http://code.google.com/p/web2py/issues/detail?id=1996)

@Leonel: Thans!

-- 
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: french web2py developper in paris

2014-10-15 Thread eric cuver
I am looking for developers who are paid for intervening to training 
sessions evening and training period for several beginners in code or for 
people who want to create prototypes for their startup. 
as to how people are ruby. there will be training in html, javascript and 
python and web2py. the idea is to do as the ruby community is because in 
France, for example, there was only 4 years ruby was nothing. and now they 
have a lot of job  in ruby​​. because they are on the schools code in paris 
 as bootcamps in usa. So we want to do the same with web2py. I am a state 
places to see if there are developers who live in paris to training 
sessions or bootcamps can come helps us to train people on web2py and 
python. but trainers will pay for the training will pay off.

Le mercredi 15 octobre 2014 00:17:06 UTC+2, Massimo Di Pierro a écrit :

 Looking for projects or for developers?

 On Tuesday, 14 October 2014 04:24:12 UTC-5, eric cuver wrote:

 I want to know is there for developers in web2py on paris for projects in 
 web2py in paris.



-- 
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] french web2py developper in paris

2014-10-14 Thread eric cuver
I want to know is there for developers in web2py on paris for projects in 
web2py in paris.

-- 
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: Semantic UI instead of bootstap

2014-10-14 Thread eric cuver
semantic it's like web2py framework that is to say, the best  in its field
Le mardi 14 octobre 2014 07:17:36 UTC+2, Massimo Di Pierro a écrit :

 I really like semantic ui.

 On Monday, 13 October 2014 09:19:34 UTC-5, Ramos wrote:

 is semantic UI a good frontend ?

 http://semantic-ui.com/

 Regards



-- 
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] about format %Y-%m-%d

2014-10-13 Thread eric cuver
Hello,
someone knows a javascript or method for a user that can not change %d, %m, 
and can not change that Y%.for %d,  %m by default it's still 
January 01

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] Manual reset password link

2014-09-30 Thread Eric
Hi,

Since version 2.9.11 of Web2Py this piece of code can be found in tools.py:

if self.settings.prevent_password_reset_attacks:
key = request.vars.key
if not key and len(request.args)1:
key = request.args[-1]
if key:
session._reset_password_key = key
redirect(self.url(args='reset_password'))
else:
key = session._reset_password_key

Why does this:
if not key and len(request.args)1:

Needs to be bigger than 1? Why not 0?

We used this url to reset passwords:
http://127.0.0.1:8000/choose-new-password/1404975130-6f97a238-a47c-4ed2-b84a-e2837a1c1fbe

This breaks at the moment, now we need to call an url like this:
http://127.0.0.1:8000/choose-new-password/dummy/1404975130-6f97a238-a47c-4ed2-b84a-e2837a1c1fbe

To get enough args :(

choose-new-password() is located in the default.py and default.py is set as 
the default controller in routes.py like this:
default_controller = 'default'

It feeld like 1 is a mistake / bug and it should be 0. In case this is 
done by design, be will add the 'dummy' argument to the url :)


-- 
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: compute and calculate database

2014-09-20 Thread eric cuver
this post was resoulus   to  see the solution see the 
post https://groups.google.com/forum/#!topic/web2py/nb-xnYhJKao

Le mardi 16 septembre 2014 09:21:07 UTC+2, eric cuver a écrit :

 I'm on the home stretch of my application. I want to know I sought but I 
 can not find. from the database. I have this problem. 

 db.define_table ('spot' 
  Field ('analyse_des_besoins', 'double')  analyse_des_besoins== 50 %
  Field ('patent', 'double') 'patent===10%
  Field ('marketing', 'double') marketing === 20%
  Field ('design', 'double') design==10%
  Field ('definition_du_projet', 'double') == 20%
  Field ('time', 'time'))==1h20

 i must convert  Field ('time', 'time')) in minute and then convert it in 
 float to can calculate a percentage with each field ( Field 
 ('analyse_des_besoins',Field ('patent',),   Field ('marketing', 
 'double').. )

 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] Re: web2py 2.9.10 is OUT

2014-09-17 Thread eric cuver
cool thank you. you can tell us the new upgrades please

Le lundi 15 septembre 2014 15:15:43 UTC+2, Massimo Di Pierro a écrit :

 web2py 2.9.10 is out. It fixes some important bugs and upgrades some 
 contrib. packages.




-- 
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] share tip to calculate hours from database

2014-09-17 Thread eric cuver
I share with you a solution that gives leonel camara to a problem that I 
encounter

my question :
users must score the hours or minutes of work performed on the project. 
it's for Timesheet software. obligation: the data must be store in database 
, so virtual field impossible.

the solution was give by leonel camara (thanks lot!!)

one thing you can do is store the time in the database as an integer 
representing minutes or seconds if you need that much resolution the user 
can input hours minutes etc and you convert it to a single number in 
minutes.

from gluon.validators import Validator, translate, regex_time
class IS_SECONDS(Validator):

   def __init__(self, error_message='Enter time as hh:mm:ss'):
   self.error_message = error_message

   def __call__(self, value):
   try:
   ivalue = value
   value = regex_time.match(value.lower())
   (h, m, s) = (int(value.group('h')), 0, 0)
   if not value.group('m') is None:
   m = int(value.group('m'))
   if not value.group('s') is None:
   s = int(value.group('s'))
   
   return (h*3600 + m*60 + s, None)
   except AttributeError:
   pass
   except ValueError:
   pass
   return (ivalue, translate(self.error_message))

db.define_table('planing', 
Field('seconds_worked', 'integer', widget=SQLFORM.widgets.time.widget, 
requires=IS_SECONDS(), label=T('Time Worked')),
Field('seconds_holidays', 'integer', 
widget=SQLFORM.widgets.time.widget, requires=IS_SECONDS(), label=T('Time 
Holidays')),
Field('seconds_total', 'integer', writable=False, compute=lambda row: 
row.seconds_worked + row.seconds_holidays)
)

-- 
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] compute and calculate database

2014-09-17 Thread eric cuver
I'm on the home stretch of my application. I want to know I sought but I 
can not find. from the database. I have this problem. 

db.define_table ('spot' 
 Field ('analyse_des_besoins', 'double')  analyse_des_besoins== 50 %
 Field ('patent', 'double') 'patent===10%
 Field ('marketing', 'double') marketing === 20%
 Field ('design', 'double') design==10%
 Field ('definition_du_projet', 'double') == 20%
 Field ('time', 'time'))==1h20

i must convert  Field ('time', 'time')) in minute and then convert it in 
float to can calculate a percentage with each field ( Field 
('analyse_des_besoins',Field ('patent',),   Field ('marketing', 
'double').. )

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] Re: share datebases with different application

2014-08-29 Thread eric cuver
this is my client wants it that way. it's stupid but I can not do anything. 
no it is not authentication is just exchanges of information between the 
two applications do you have idea ?
Le lundi 25 août 2014 19:29:25 UTC+2, Derek a écrit :

 Sure, why not. But the question is, why? If it's authentication, there is 
 a central authentication service that you can use.

 On Monday, August 25, 2014 4:17:44 AM UTC-7, eric cuver wrote:

 Hi,

 I have 2 applications (AppA, AppB). Each application has a database 
 (AppA.db, AppB.db). 
 There is a table in AppA (AppA.table), which should be used in AppB and 
 There is a table in AppB (AppB.table),
 which should be used in AppA

 it's possible with 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: multiple DAL

2014-08-29 Thread eric cuver
can you give me example please ?

Le lundi 25 août 2014 21:08:47 UTC+2, Niphlod a écrit :

 or you can just use migrate=False and leave it be.

 On Monday, August 25, 2014 7:49:32 PM UTC+2, Leonel Câmara wrote:

 Ohh then you also need to pass the folder argument to your DAL as the 
 sqlite file will not be in your application's database folder but in the 
 other app's folder.



-- 
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] share datebases with different application

2014-08-25 Thread eric cuver
Hi,

I have 2 applications (AppA, AppB). Each application has a database 
(AppA.db, AppB.db). 
There is a table in AppA (AppA.table), which should be used in AppB and 
There is a table in AppB (AppB.table),
which should be used in AppA

it's possible with 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] multiple DAL

2014-08-25 Thread eric cuver
hello everybody,

can we create multiple DAL in same model. for example:

db1 = DAL('sqlite://storage.sqlite')
db.define_table()
db.define_table()
db2 = DAL('sqlite://storage.sqlite')
db.define_table()
db.define_table()




-- 
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: multiple DAL

2014-08-25 Thread eric cuver


Le lundi 25 août 2014 18:29:02 UTC+2, Leonel Câmara a écrit :

 Yes you can, however you probably don't want both DALs using the same db 
 (sqlite is pointing to the same file). Also remember to do 
 db1.define_table, db2.define_table, etc. Instead of just db.define_table.

 Anyway, why do you want 2 DALs with exactly the same model?


because a i looking for the solution for this problem : I have 2 
applications (AppA, AppB). Each application has a database (AppA.db, 
AppB.db). 
There is a table in AppA (AppA.table), which should be used in AppB and 
There is a table in AppB (AppB.table),
which should be used in AppA
 

-- 
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: PeerQuiz

2014-08-14 Thread eric cuver
ok. I just need to know how I can build  PeerQuiz form  in answer section 
with the + and - 

thank you in advance

Le mardi 5 août 2014 17:57:55 UTC+2, Massimo Di Pierro a écrit :

 It is not open source.

 On Sunday, 3 August 2014 12:29:42 UTC-5, eric cuver wrote:

 hello ,

 everybody,
 i looking for peerquiz web2py source http://vimeo.com/83536698  . i dont 
 find in github. 
 somebody know where i can find it ?

 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] about next update web2py

2014-08-11 Thread eric cuver
What are news functionality in the next update to web2py 

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] Re: Web2py, authenticating two types of profile

2014-08-11 Thread eric cuver
i find my solution

it's 
that 
http://stackoverflow.com/questions/23974774/creating-two-separate-registration-forms-in-web2py?rq=1

thank you to help

Le lundi 11 août 2014 12:25:58 UTC+2, lyn2py a écrit :

 Have you looked at auth groups?

 http://web2py.com/books/default/chapter/29/09/access-control

 You can create different types of accounts without separate tables.

 On Sunday, August 10, 2014 3:01:14 PM UTC+8, eric cuver wrote:

 nobody know how we can create two types of accounts or login ?

 Le samedi 9 août 2014 00:27:03 UTC+2, eric cuver a écrit :

 hello everybody,

 i want create one application. i  need to create two types of accounts 
 or login. Each of them should be able to register/login/... buyer/customer 
  account defined by different tables in db.
 how i can do with web2py

 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] Re: Web2py, authenticating two types of profile

2014-08-11 Thread eric cuver
i seen.. but i will not have this probleme because the buyer will never be 
the customer. but can you give me an example about your solution
Le lundi 11 août 2014 19:30:20 UTC+2, Leonel Câmara a écrit :

 I wouldn't implement that solution. Well it depends on the objective, but 
 it seems wrong to me to have 2 user tables when the user being a customer 
 or buyer could just be a field.

 You could make this field readable=False, writable=False and then have the 
 register controller set the default differently according to the type of 
 user registration.

 The stackoverflow solution to me seems that it will create problems in the 
 future when suddenly you have users that are both or 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.


[web2py] Re: Web2py, authenticating two types of profile

2014-08-11 Thread eric cuver
ok thanks you right it's better

Le lundi 11 août 2014 21:44:50 UTC+2, Massimo Di Pierro a écrit :

 Why create a constraint that requires extra work and its only purpose is 
 to reduce functionality?
 While you believe the buyer will never be the customer this is a useless 
 constraint and distinction.

 I would just auth_user and add two extra boolean fields (is_buyer, 
 is_customer) and set them according to your policies. You can then use to 
 registrations for them:

 def register_buyer():
   db.auth_user.is_buyer.default=True
   db.auth_user.is_customer.default=False
   return dict(form=auth.register())

 def register_customer():
   db.auth_user.is_buyer.default=False
   db.auth_user.is_customer.default=True
   return dict(form=auth.register())

 and link them in the right places in your app.



 On Monday, 11 August 2014 13:05:54 UTC-5, eric cuver wrote:

 i seen.. but i will not have this probleme because the buyer will never 
 be the customer. but can you give me an example about your solution
 Le lundi 11 août 2014 19:30:20 UTC+2, Leonel Câmara a écrit :

 I wouldn't implement that solution. Well it depends on the objective, 
 but it seems wrong to me to have 2 user tables when the user being a 
 customer or buyer could just be a field.

 You could make this field readable=False, writable=False and then have 
 the register controller set the default differently according to the type 
 of user registration.

 The stackoverflow solution to me seems that it will create problems in 
 the future when suddenly you have users that are both or 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.


[web2py] Re: Web2py, authenticating two types of profile

2014-08-10 Thread eric cuver
nobody know how we can create two types of accounts or login ?

Le samedi 9 août 2014 00:27:03 UTC+2, eric cuver a écrit :

 hello everybody,

 i want create one application. i  need to create two types of accounts or 
 login. Each of them should be able to register/login/... buyer/customer 
  account defined by different tables in db.
 how i can do with web2py

 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] Re: bootstrap 3 - if you care help test trunk now

2014-08-09 Thread eric cuver
where i can find the web2py version with bootstrap

Le samedi 9 août 2014 09:17:28 UTC+2, Massimo Di Pierro a écrit :

 also help us test the grid in trunk.

 On Saturday, 9 August 2014 02:13:38 UTC-5, Massimo Di Pierro wrote:

 Bootstrap 3 is in trunk now. Please help us test it.
 Also help us test that existing apps are not broken.

 Massimo



-- 
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] Web2py, authenticating two types of profile

2014-08-08 Thread eric cuver
hello everybody,

i want create one application. i  need to create two types of accounts or 
login. Each of them should be able to register/login/... buyer/customer 
 account defined by different tables in db.
how i can do with web2py

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] Re: Add (customer) number to url

2014-08-05 Thread Eric
Hi Derek,

Thank you for your reaction!

I did read the manual, but I could not find the solution that I needed. 
That's why I asked what I asked ;)

Let me see if this is solution we can work with. 



Op vrijdag 1 augustus 2014 00:30:22 UTC+2 schreef Derek:

 RTFM 


 http://www.web2py.com/books/default/chapter/29/04/the-core#Dispatching

 web2py maps GET/POST requests of the form:

 http://127.0.0.1:8000/a/c/f.html/x/y/z?p=1q=2

 to function f in controller c.py in application a, and it stores the 
 URL parameters in the request variable as follows:

 request.args = ['x', 'y', 'z']


 so you could say /a/c/f.html/customernumber and customernumber would be 
 request.args[0]
 On Wednesday, July 30, 2014 2:53:34 AM UTC-7, Eric wrote:

 Hi,

 We need a way to get the customer number into web2py by it's url so we 
 can display the corresponding data to the visitor. To keep it easy for the 
 visitor this number needs to be visible in every url.

 Since the site runs under SSL and we don't want to buy another SSL 
 certificate, we're looking for a different solution, so this isn't an 
 option:
 https://number.sub.domain.com

 That would be the easy way :)

 I was looking at the routers, but I can't figure out how to do something 
 like this in an router and have number available in the Python scripts:
 https://sub.domain.com/number/c/f/a?vars=example

 Is here anyone with an idea how to create this and have the number 
 accessible in Python? The number is a dynamic value, so zero maintenance 
 in the routes would be really, really nice ;)

 The number can probably be retrieved from the HTTP_HOST that is available 
 in Web2Py, but how to handle the number in a router? I've tried this, but 
 that's not working:

 # # -*- coding: utf-8 -*-

 default_controller = 'default'
 default_function = 'index'

 routers = dict(
BASE=dict(default_application='app',
map_static=True,
map_hyphen=True)
 )

 routes_in = (
  # Keep admin working
  ('/admin', '/admin'),
  ('/admin/$anything', '/admin/$anything'),

  # Keep appadmin working
  ('/$app/appadmin', '/$app/appadmin'),
  ('/$app/appadmin/$anything', '/$app/appadmin/$anything'),

  ('/$app/$number/$anything', '/$app/$anything'),

 )

 routes_out = [(x, y) for (y, x) in routes_in]

 Thanks for the input!



-- 
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] cvs web2py model

2014-08-03 Thread eric cuver
hello,

i tried tu create webpy model from csv file with this command :
/home/csvstudio# for line in open('db_departement.py','r'): print line, 

the terminal answer-   bash: Erreur de syntaxe près du symbole inattendu « 
( »

somebody look where my error.

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] PeerQuiz

2014-08-03 Thread eric cuver
hello ,

everybody,
i looking for peerquiz web2py source http://vimeo.com/83536698  . i dont 
find in github. 
somebody know where i can find it ?

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] Add (customer) number to url

2014-07-30 Thread Eric
Hi,

We need a way to get the customer number into web2py by it's url so we can 
display the corresponding data to the visitor. To keep it easy for the 
visitor this number needs to be visible in every url.

Since the site runs under SSL and we don't want to buy another SSL 
certificate, we're looking for a different solution, so this isn't an 
option:
https://number.sub.domain.com

That would be the easy way :)

I was looking at the routers, but I can't figure out how to do something 
like this in an router and have number available in the Python scripts:
https://sub.domain.com/number/c/f/a?vars=example

Is here anyone with an idea how to create this and have the number 
accessible in Python? The number is a dynamic value, so zero maintenance 
in the routes would be really, really nice ;)

The number can probably be retrieved from the HTTP_HOST that is available 
in Web2Py, but how to handle the number in a router? I've tried this, but 
that's not working:

# # -*- coding: utf-8 -*-

default_controller = 'default'
default_function = 'index'

routers = dict(
   BASE=dict(default_application='app',
   map_static=True,
   map_hyphen=True)
)

routes_in = (
 # Keep admin working
 ('/admin', '/admin'),
 ('/admin/$anything', '/admin/$anything'),

 # Keep appadmin working
 ('/$app/appadmin', '/$app/appadmin'),
 ('/$app/appadmin/$anything', '/$app/appadmin/$anything'),

 ('/$app/$number/$anything', '/$app/$anything'),

)

routes_out = [(x, y) for (y, x) in routes_in]

Thanks for the input!

-- 
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: Possible SQLCustomType bug with booleans

2014-07-22 Thread Eric
Hi Anthony,

The code I've posted is working, this is that I define a boolean in the 
SQLCustomType as orginial field type, but in the check I need to check 
against a string. That's weird (in my opinion). When you define a boolean, 
you would expect that you need to check for a boolean in the decoder.

This works:

@staticmethod
def view_boolean_as_text(value):
if value == 'T':
return 'true'
else:
return 'false'


But I would expect that it would work like this:

@staticmethod
def view_boolean_as_text(value):
if value == True:
return 'true'
else:
return 'false'

Since you get a boolean from the db. Thing is that this results in a nice 
error...




Op donderdag 17 juli 2014 17:25:30 UTC+2 schreef Anthony:

 Can't you just use the represent attribute for the custom display (and 
 possibly a custom widget if you need special input as well)? What's wrong 
 with your current code?

 Anthony

 On Thursday, July 17, 2014 9:29:00 AM UTC-4, Eric wrote:

 Hi There,

 Today I needed to use a SQLCustomType to convert a boolean to a string 
 (in view mode) and the other way around when storing it.

 I used this customtype:

 bool_to_text = SQLCustomType(
 type='string',
 native='boolean',
 encoder=lambda value: SQLFormFilters.store_text_as_boolean(value),
 decoder=lambda value: SQLFormFilters.view_boolean_as_text(value)
 )

 And this functions in the class

 @staticmethod
 def store_text_as_boolean(value):
 if value == 'true':
 return 'T'
 else:
 return 'F'

 @staticmethod
 def view_boolean_as_text(value):
 if value == 'T':
 return 'true'
 else:
 return 'false'

 I needed to use this check:
 value == 'T'

 because it looks like the DAL is always giving back a string in this 
 specific situation.

 When I use:
 value == True

 Web2py crashes with this error: 

 AttributeError: 'bool' object has no attribute 'replace'
 http://127.0.0.1:8000/admin/errors/portal#

 Traceback (most recent call last):
   File /home/eric/Projects/Web2Py/BricksSis/gluon/restricted.py, line 220, 
 in restricted
 exec ccode in environment
   File 
 /home/eric/Projects/Web2Py/BricksSis/applications/portal/controllers/medication_templates.py,
  line 147, in module
   File /home/eric/Projects/Web2Py/BricksSis/gluon/globals.py, line 385, in 
 lambda
 self._caller = lambda f: f()
   File /home/eric/Projects/Web2Py/BricksSis/gluon/tools.py, line 3287, in f
 return action(*a, **b)
   File 
 /home/eric/Projects/Web2Py/BricksSis/applications/portal/controllers/medication_templates.py,
  line 71, in edit
 if form.process().accepted:
   File /home/eric/Projects/Web2Py/BricksSis/gluon/html.py, line 2282, in 
 process
 self.validate(**kwargs)
   File /home/eric/Projects/Web2Py/BricksSis/gluon/html.py, line 2219, in 
 validate
 if self.accepts(**kwargs):
   File /home/eric/Projects/Web2Py/BricksSis/gluon/sqlhtml.py, line 1590, 
 in accepts
 self.id_field_name]).update(**fields)
   File /home/eric/Projects/Web2Py/BricksSis/gluon/dal.py, line 10549, in 
 update
 ret = db._adapter.update(%s % table._tablename,self.query,fields)
   File /home/eric/Projects/Web2Py/BricksSis/gluon/dal.py, line 1612, in 
 update
 sql = self._update(tablename, query, fields)
   File /home/eric/Projects/Web2Py/BricksSis/gluon/dal.py, line 1607, in 
 _update
 for (field, value) in fields])
   File /home/eric/Projects/Web2Py/BricksSis/gluon/dal.py, line 1552, in 
 expand
 return str(self.represent(expression,field_type))
   File /home/eric/Projects/Web2Py/BricksSis/gluon/dal.py, line 1978, in 
 represent
 return self.adapt(value)
   File /home/eric/Projects/Web2Py/BricksSis/gluon/dal.py, line 775, in 
 adapt
 return '%s' % obj.replace(', '')
 AttributeError: 'bool' object has no attribute 'replace'


 Oh... I'm using SQLForms in the controller, the view contains a custom 
 form, I'm printing the field like this:

 {{=form.custom.widget.is_specialite}}




-- 
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] Compiling web2py application to run as a native android app

2014-07-20 Thread eric cuver
it is possible compiling web2py application as a native android app ?
if it possible how we do ?

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] Possible SQLCustomType bug with booleans

2014-07-17 Thread Eric
Hi There,

Today I needed to use a SQLCustomType to convert a boolean to a string (in 
view mode) and the other way around when storing it.

I used this customtype:

bool_to_text = SQLCustomType(
type='string',
native='boolean',
encoder=lambda value: SQLFormFilters.store_text_as_boolean(value),
decoder=lambda value: SQLFormFilters.view_boolean_as_text(value)
)

And this functions in the class

@staticmethod
def store_text_as_boolean(value):
if value == 'true':
return 'T'
else:
return 'F'

@staticmethod
def view_boolean_as_text(value):
if value == 'T':
return 'true'
else:
return 'false'

I needed to use this check:
value == 'T'

because it looks like the DAL is always giving back a string in this 
specific situation.

When I use:
value == True

Web2py crashes with this error: 

AttributeError: 'bool' object has no attribute 'replace'
http://127.0.0.1:8000/admin/errors/portal#

Traceback (most recent call last):
  File /home/eric/Projects/Web2Py/BricksSis/gluon/restricted.py, line 220, in 
restricted
exec ccode in environment
  File 
/home/eric/Projects/Web2Py/BricksSis/applications/portal/controllers/medication_templates.py,
 line 147, in module
  File /home/eric/Projects/Web2Py/BricksSis/gluon/globals.py, line 385, in 
lambda
self._caller = lambda f: f()
  File /home/eric/Projects/Web2Py/BricksSis/gluon/tools.py, line 3287, in f
return action(*a, **b)
  File 
/home/eric/Projects/Web2Py/BricksSis/applications/portal/controllers/medication_templates.py,
 line 71, in edit
if form.process().accepted:
  File /home/eric/Projects/Web2Py/BricksSis/gluon/html.py, line 2282, in 
process
self.validate(**kwargs)
  File /home/eric/Projects/Web2Py/BricksSis/gluon/html.py, line 2219, in 
validate
if self.accepts(**kwargs):
  File /home/eric/Projects/Web2Py/BricksSis/gluon/sqlhtml.py, line 1590, in 
accepts
self.id_field_name]).update(**fields)
  File /home/eric/Projects/Web2Py/BricksSis/gluon/dal.py, line 10549, in 
update
ret = db._adapter.update(%s % table._tablename,self.query,fields)
  File /home/eric/Projects/Web2Py/BricksSis/gluon/dal.py, line 1612, in update
sql = self._update(tablename, query, fields)
  File /home/eric/Projects/Web2Py/BricksSis/gluon/dal.py, line 1607, in 
_update
for (field, value) in fields])
  File /home/eric/Projects/Web2Py/BricksSis/gluon/dal.py, line 1552, in expand
return str(self.represent(expression,field_type))
  File /home/eric/Projects/Web2Py/BricksSis/gluon/dal.py, line 1978, in 
represent
return self.adapt(value)
  File /home/eric/Projects/Web2Py/BricksSis/gluon/dal.py, line 775, in adapt
return '%s' % obj.replace(', '')
AttributeError: 'bool' object has no attribute 'replace'


Oh... I'm using SQLForms in the controller, the view contains a custom 
form, I'm printing the field like this:

{{=form.custom.widget.is_specialite}}


-- 
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] pythonanywhere

2014-07-13 Thread eric cuver
Hello, 

I want to run one web2py instance where each web2py application 
will be mapped to different domain and with ability to map some urls 
differently in different domains. i tried without succes 

-- 
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: sublime text 3

2014-07-10 Thread eric cuver
i add folder gluon in package directory et user directory with include  if 
0: from gluon import * but doesnt work

Le mercredi 9 juillet 2014 18:24:28 UTC+2, JorgeH a écrit :

 Thanks for the tip

 And yet...

 Could you post a fool-proof example?

 Thanks

 On Wednesday, July 9, 2014 10:31:36 AM UTC-5, Massimo Di Pierro wrote:

 I do know sublime text. I am assuming there is a way to tell it where to 
 look for python modules for autocomplete.

 On Wednesday, 9 July 2014 10:06:25 UTC-5, JorgeH wrote:

 You mean in the OS dir path??

 On Wednesday, July 9, 2014 7:13:46 AM UTC-5, Massimo Di Pierro wrote:

 If your problem is the lack of autocompletion try add gluon to path and 
 include if 0: from gluon import * on your files. Everything else should 
 work out of the box.

 On Wednesday, 9 July 2014 04:29:49 UTC-5, eric cuver wrote:

 hello,

 how can we do to configure sublime text 3 to work 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] sublime text 3

2014-07-09 Thread eric cuver
hello,

how can we do to configure sublime text 3 to work 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: sublime text 3

2014-07-09 Thread eric cuver
I do not understand how to do it to add the folder gluon to path 

Le mercredi 9 juillet 2014 14:13:46 UTC+2, Massimo Di Pierro a écrit :

 If your problem is the lack of autocompletion try add gluon to path and 
 include if 0: from gluon import * on your files. Everything else should 
 work out of the box.

 On Wednesday, 9 July 2014 04:29:49 UTC-5, eric cuver wrote:

 hello,

 how can we do to configure sublime text 3 to work 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.


  1   2   3   >