[web2py] When will the next conference on web2py

2016-06-03 Thread LC LC
everything is in the  title

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

2016-06-13 Thread LC LC
Hi,
janrain works for different providers but il does not run for google+.
i ve created an id auth client
Could you explain me the different steps to run google authentification

Thank you

NB: in my model i have :

auth.settings.login_form = RPXAccount(request 
, 
  api_key=settings.rpx_apikey,
  domain=settings.rpx_domain,
  url = settings.home_url+"/user/login")



-- 
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] Using another’s application to session login

2016-11-30 Thread LC LC
Hi,

i found to the auth with this link 
https://web2py.wordpress.com/2010/04/30/using-anothers-application-session-to-login/
 
but it does not work for me ..
Any  different idea ?
How can i do thi stuff ?
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] depy2018 ?

2018-02-26 Thread LC LC
hi
depy2018 ?

-- 
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] NGINX 1.6 ERROR 502 BAD GATEWAY

2017-04-05 Thread LC LC
Hi,

I have followed the 
tuto http://web2py.com/books/default/chapter/29/13/deployment-recipes#Nginx 
and i have the error :
2017/04/05 11:50:39 [crit] 15056#0: *1 connect() to 
unix:///tmp/web2py.socket failed (2: No such file or directory) while 
connecting to upstream,

i tried a touch /tmp/web2py.socket && chmod 777 /tmp/web2py.socket   but 
error, WHY
In the forum there are a lot of answers but none of the work


# /etc/init.d/nginx restart
[ ok ] Restarting nginx (via systemctl): nginx.service.
# /etc/init.d/uwsgi-emperor restart
[ ok ] Restarting uwsgi-emperor (via systemctl): uwsgi-emperor.service.



www-data 14972  0.0  0.0  48320  3492 ?S11:40   0:00 
/usr/bin/uwsgi --ini /etc/uwsgi-emperor/emperor.ini --pidfile 
/run/uwsgi-emperor.pid --daemonize /var/log/uwsgi/emperor.log
www-data 14973  0.0  0.0  48084   656 ?S11:40   0:00  \_ 
/usr/bin/uwsgi --ini /etc/uwsgi-emperor/emperor.ini --pidfile 
/run/uwsgi-emperor.pid --daemonize /var/log/uwsgi/emperor.log
root 15007  0.0  0.0 101568  3164 ?Ss   11:40   0:00 nginx: 
master process /usr/sbin/nginx -g daemon on; master_process on;
www-data 15008  0.0  0.0 101928  3784 ?S11:40   0:00  \_ nginx: 
worker process   
www-data 15009  0.0  0.0 101928  3784 ?S11:40   0:00  \_ nginx: 
worker process   
www-data 15010  0.0  0.0 101928  3784 ?S11:40   0:00  \_ nginx: 
worker process   
www-data 15011  0.0  0.0 101928  3784 ?S11:40   0:00  \_ nginx: 
worker process 

File :
/etc/init/uwsgi-emperor.conf
# Emperor uWSGI script
description "uWSGI Emperor"
start on runlevel [2345]
stop on runlevel [06]
respawn
exec uwsgi --master --die-on-term --emperor /etc/uwsgi --logto 
/var/log/uwsgi/uwsgi.log



File : /etc/uwsgi/web2py.xml


/tmp/web2py.socket
/var/www/web2py/
/=wsgihandler:application

4
60
8
1
/tmp/stats.socket
2000
512
256
192
www-data
www-data



Nginx 1.6

# file /etc/nginx/sites-available/web2py
server {
listen  9090;
server_name $hostname;
#to enable correct use of response.static_version
#location ~* /(\w+)/static(?:/_[\d]+.[\d]+.[\d]+)?/(.*)$ {
#alias /home/www-data/web2py/applications/$1/static/$2;
#expires max;
#}
location ~* /(\w+)/static/ {
root /var/www/web2py/applications/;
#remove next comment on production
#expires max;
}
location / {
#uwsgi_pass  127.0.0.1:9001;
uwsgi_pass  unix:///tmp/web2py.socket;
include uwsgi_params;
uwsgi_param UWSGI_SCHEME $scheme;
uwsgi_param SERVER_SOFTWAREnginx/$nginx_version;
}
}
server {
listen 443 default_server ssl;
server_name $hostname;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_ciphers 
ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA;
ssl_protocols SSLv3 TLSv1;
keepalive_timeout70;
location / {
#uwsgi_pass  127.0.0.1:9001;
uwsgi_pass  unix:///tmp/web2py.socket;
include uwsgi_params;
uwsgi_param UWSGI_SCHEME $scheme;
uwsgi_param SERVER_SOFTWAREnginx/$nginx_version;
}

The keys
 ls -l /etc/nginx/ssl/
total 16
-rw-r--r-- 1 root root 757 avril  5 10:38 server.crt
-rw-r--r-- 1 root root 603 avril  5 10:37 server.csr
-rw-r--r-- 1 root root 891 avril  5 10:38 server.key
-rw-r--r-- 1 root root 963 avril  5 10:38 server.key.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.


[web2py] smartgrid

2017-05-31 Thread LC LC
Hi,
i'd like to have a conditional expression when i use smart grid, is it 
possible
query=db(db.auth_user.id=='2').select()
grid = SQLFORM.smartgrid(query,linked_tables=['coautor','aff'], 
user_signature=True)

i know in the doc it is written "The first argument is a table, not a 
query"

But how can i do if i want to use linked tables ?

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

2017-05-31 Thread LC LC
Thank you very much
but i have new problem it shows on right the links Auth memberships  Auth 
events   Auth cases ... 

and i'd like to select and not show all the linked tables

Le mercredi 31 mai 2017 17:45:17 UTC+2, Anthony a écrit :
>
> Use the "constraints" argument, which is a dictionary with table names as 
> keys and queries as values.
>
> SQLFORM.smartgrid(db.auth_user,
>   constraints=dict(auth_user=db.auth_user.id == 2),
>   ...)
>
> Anthony
>
> On Wednesday, May 31, 2017 at 11:03:06 AM UTC-4, LC LC wrote:
>>
>> Hi,
>> i'd like to have a conditional expression when i use smart grid, is it 
>> possible
>> query=db(db.auth_user.id=='2').select()
>> grid = SQLFORM.smartgrid(query,linked_tables=['coautor','aff'], 
>> user_signature=True)
>>
>> i know in the doc it is written "The first argument is a table, not a 
>> query"
>>
>> But how can i do if i want to use linked tables ?
>>
>> 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: smartgrid

2017-05-31 Thread LC LC
sorry we have to let linked_tables  
Sorry and thank you

Le mercredi 31 mai 2017 21:21:23 UTC+2, LC LC a écrit :
>
> Thank you very much
> but i have new problem it shows on right the links Auth memberships  Auth 
> events   Auth cases ... 
>
> and i'd like to select and not show all the linked tables
>
> Le mercredi 31 mai 2017 17:45:17 UTC+2, Anthony a écrit :
>>
>> Use the "constraints" argument, which is a dictionary with table names as 
>> keys and queries as values.
>>
>> SQLFORM.smartgrid(db.auth_user,
>>   constraints=dict(auth_user=db.auth_user.id == 2),
>>       ...)
>>
>> Anthony
>>
>> On Wednesday, May 31, 2017 at 11:03:06 AM UTC-4, LC LC wrote:
>>>
>>> Hi,
>>> i'd like to have a conditional expression when i use smart grid, is it 
>>> possible
>>> query=db(db.auth_user.id=='2').select()
>>> grid = SQLFORM.smartgrid(query,linked_tables=['coautor','aff'], 
>>> user_signature=True)
>>>
>>> i know in the doc it is written "The first argument is a table, not a 
>>> query"
>>>
>>> But how can i do if i want to use linked tables ?
>>>
>>> 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] Linked table and represent

2017-07-23 Thread LC LC
Hi,

Below you can find my code and my question

my db:

db.define_table('voyageur',
   Field ('Nom'),
   Field 
('Prenom'),
   Field ('Usuel'),
..
   Field 
('Scolarisation'), 
   
   Field ('Dpt')
)
db.define_table(
'presence',
Field 
('Nom_id',db.voyageur,writable=False),
Field 
('present_le',type='date'),
Field 
('terrain',requires
 = IS_IN_DB 
(db, 
'terrain.lieu', '%(lieu)s',zero=T 
('choose one')))
)


controller:

def index():
form = SQLFORM 
.smartgrid(db.voyageur)
records = SQLFORM 
.smartgrid(db.voyageur,linked_tables=['voyageur','presence'],user_signature=True,maxtextlength=100,deletable=True,\
   editable=True,create=True,showbuttontext=False, 
paginate=200,  buttons_placement = 'left',links_placement = 'left')


When i click on "presence" i 'd like to see Non (from voyageur table) instead 
of Nom_id, how can i do with represent i think

thanks in advance , 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: Linked table and represent

2017-07-23 Thread LC LC
Forget it stupid question . Jus need to use representation .
Sorry

Le dimanche 23 juillet 2017 14:36:07 UTC+2, LC LC a écrit :
>
> Hi,
>
> Below you can find my code and my question
>
> my db:
>
> db.define_table('voyageur',
>Field <https://iins-neuro.u-bordeaux.fr/examples/global/vars/Field>('Nom'),
>Field 
> <https://iins-neuro.u-bordeaux.fr/examples/global/vars/Field>('Prenom'),
>Field 
> <https://iins-neuro.u-bordeaux.fr/examples/global/vars/Field>('Usuel'),
> ..
>Field 
> <https://iins-neuro.u-bordeaux.fr/examples/global/vars/Field>('Scolarisation'),
> 
>Field <https://iins-neuro.u-bordeaux.fr/examples/global/vars/Field>('Dpt')
> )
> db.define_table(
> 'presence',
> Field 
> <https://iins-neuro.u-bordeaux.fr/examples/global/vars/Field>('Nom_id',db.voyageur,writable=False),
> Field 
> <https://iins-neuro.u-bordeaux.fr/examples/global/vars/Field>('present_le',type='date'),
> Field 
> <https://iins-neuro.u-bordeaux.fr/examples/global/vars/Field>('terrain',requires
>  = IS_IN_DB 
> <https://iins-neuro.u-bordeaux.fr/examples/global/vars/IS_IN_DB>(db, 
> 'terrain.lieu', '%(lieu)s',zero=T 
> <https://iins-neuro.u-bordeaux.fr/examples/global/vars/T>('choose one')))
> )
>
>
> controller:
>
> def index():
> form = SQLFORM 
> <https://iins-neuro.u-bordeaux.fr/examples/global/vars/SQLFORM>.smartgrid(db.voyageur)
> records = SQLFORM 
> <https://iins-neuro.u-bordeaux.fr/examples/global/vars/SQLFORM>.smartgrid(db.voyageur,linked_tables=['voyageur','presence'],user_signature=True,maxtextlength=100,deletable=True,\
>editable=True,create=True,showbuttontext=False, 
> paginate=200,  buttons_placement = 'left',links_placement = 'left')
>
>
> When i click on "presence" i 'd like to see Non (from voyageur table) instead 
> of Nom_id, how can i do with represent i think
>
> thanks in advance , 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] appadmin

2017-07-25 Thread LC LC
Hi,

Why can i see tables like auth_user, auth_group, auth_event in appadmin.
the tables exist however ..
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: appadmin

2017-07-25 Thread LC LC
Solved : 
https://stackoverflow.com/questions/8643664/new-database-refuses-to-show-up-in-web2py-appadmin


Le mardi 25 juillet 2017 21:37:47 UTC+2, LC LC a écrit :
>
> Hi,
>
> Why can i see tables like auth_user, auth_group, auth_event in appadmin.
> the tables exist however ..
> 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] CSS and SQLFORM.GRID

2017-08-09 Thread LC LC
Hello,

I use my own css file, but when i try to use in my view {{=records}} the 
code generates web2py style  class ..
note : in my controller i use sqlform.grid

the purpose is to custom the grid with the css used. i don ont know if i am 
clear ...

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] smartgrid request

2017-09-24 Thread LC LC
Hello,

def index():
records = 
SQLFORM.smartgrid(dbvoy.voyageur,linked_tables=['voyageur','presence'],user_signature=True,maxtextlength=100,deletable=True,\
   editable=True,create=True,showbuttontext=False, 
paginate=200,  buttons_placement = 'left',links_placement = 'left')

I do not find how to add a condtion to replace dbvoy.voyageur by 
dbvoy.voyageur.Birth < '2000-09-01'  , it does not work the rror shown 
'Query' object has no attribute '_tablename'
Could you help me 
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.