[web2py] Re: Error: Connection lost during download

2020-11-10 Thread SR
How do I fix this? Any suggestion would be appreciated.

On Tuesday, November 10, 2020 at 11:47:53 AM UTC-6 Clemens wrote:

> If I had to guess, I'd say, that your web server is running in a timeout 
> while downloading such a large file.
>
> Best regards
> Clemens
>
> On Tuesday, November 10, 2020 at 6:41:35 PM UTC+1 SR wrote:
>
>> Hi
>> I store my uploaded file in the web2py "static" folder.
>> One of the download link for linux binaries fails.  It downloads 1GB, 
>> then fails.
>> This is the link:
>>
>> https://cryoem.bcm.edu/cryoem/static/software/continuous_build/eman2_sphire_sparx_huge.linux.unstable.sh
>> . 
>> Is this problem due to the file is larger than 1GB? Could it be related 
>> to one of the server settings?
>> Could you help me figure out what is going on?
>> Thank you very much in advance.
>>
>> Regards
>> Sneka.
>>
>

-- 
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/497258a6-da49-4c7d-810d-37d5dc817dc8n%40googlegroups.com.


[web2py] Error: Connection lost during download

2020-11-10 Thread SR
Hi
I store my uploaded file in the web2py "static" folder.
One of the download link for linux binaries fails.  It downloads 1GB, then 
fails.
This is the link:
https://cryoem.bcm.edu/cryoem/static/software/continuous_build/eman2_sphire_sparx_huge.linux.unstable.sh
. 
Is this problem due to the file is larger than 1GB? Could it be related to 
one of the server settings?
Could you help me figure out what is going on?
Thank you very much in advance.

Regards
Sneka.

-- 
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/486ce844-7842-4c34-a762-9eb21e3291b1n%40googlegroups.com.


[web2py] Re: Unable to create Auth tables

2018-01-23 Thread SR
I deleted the auth tables from the /databases folder in my MYSQL and tried 
to rebuild it but getting this error:

Ticket ID

10.51.133.94.2018-01-23.11-38-10.52ecfb9b-da14-4a88-a568-063c7b741936
 (1050, "Table 'auth_user' already 
exists")Version
web2py™ Version 2.14.6-stable+timestamp.2016.05.10.00.21.47Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.

Traceback (most recent call last):
  File "/opt/web2py_apps/web2py/gluon/restricted.py", line 227, in restricted
exec ccode in environment
  File "/opt/web2py_apps/web2py/applications/cryoem/models/db.py" 
<https://10.10.10.101/admin/default/edit/cryoem/models/db.py>, line 108, in 

auth.define_tables(username=False, signature=False)
  File "/opt/web2py_apps/web2py/gluon/tools.py", line 2376, in define_tables
format='%(first_name)s %(last_name)s (%(id)s)'))
  File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/base.py", line 834, in 
define_table
table = self.lazy_define_table(tablename,*fields,**args)
  File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/base.py", line 873, in 
lazy_define_table
polymodel=polymodel)
  File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", 
line 482, in create_table
self.create_sequence_and_triggers(query, table)
  File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", 
line 1369, in create_sequence_and_triggers
self.execute(query)
  File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", 
line 1388, in execute
return self.log_execute(*a, **b)
  File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", 
line 1382, in log_execute
ret = self.get_cursor().execute(command, *a[1:], **b)
  File "/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py", line 205, in 
execute
self.errorhandler(self, exc, value)
  File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py", line 36, in 
defaulterrorhandler
raise errorclass, errorvalue
OperationalError: (1050, "Table 'auth_user' already exists")


On Monday, January 22, 2018 at 6:29:16 PM UTC-6, Jim S wrote:
>
> See Anthony's original answer to this question.  All you should need to do 
> is remove the associated *.table files from the /databases folder.  Also, 
> make sure you have migrations turned on by setting migrate=True in you 
> DAL() setup.
>
> -Jim
>
> On Monday, January 22, 2018 at 6:06:10 PM UTC-6, SR wrote:
>>
>> How do we recreate the auth tables after it has been dropped in mysql 
>> database?
>> I would really appreciate your help. 
>>
>> On Monday, November 25, 2013 at 8:34:18 PM UTC-6, Anthony wrote:
>>>
>>> web2py thinks it already created those tables (you dropped them outside 
>>> of web2py, so it doesn't know they're gone). Try removing the associate 
>>> *.table files in the /databases folder (they store the migration 
>>> information for each table).
>>>
>>> Anthony
>>>
>>> On Monday, November 25, 2013 9:22:58 PM UTC-5, Julien Courteau wrote:
>>>>
>>>> (a) I did: drop table ;  == ["auth_user", 
>>>> "auth_group", etc...] in a sqlite3 shell;
>>>>
>>>> (b) I refresh my index page: web2py execute the auth.define_table() 
>>>> silently but no tables had been
>>>> created (sql.log contains no create table). I tried to figure out 
>>>> what's happening without success.
>>>> It did the same if I create a fresh new app. I use web2py 2.5.1. Any 
>>>> clues? How Could I do to figure 
>>>> out the problem?
>>>> Thanks.
>>>>
>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Database administration error

2018-01-23 Thread SR
I changed the signature =True in my "auth.define_tables" which created 
extra fields in the auth_user table and after that I am getting this error.
Yes Web2py is installed in /opt directory. This is a production machine.

On Monday, January 22, 2018 at 6:31:44 PM UTC-6, Jim S wrote:
>
> Seems like you might have a permissions error.  Are you running web2py as 
> root?
>
> Looks like web2py is install in the /opt directory.  Is this a production 
> or development machine?
>
> -Jim
>
> On Monday, January 22, 2018 at 5:49:30 PM UTC-6, SR wrote:
>>
>> When I try to open my Database Administration window I am getting this 
>> error ticket:
>> Error ticket for "cryoem"Ticket ID
>>
>> 10.51.133.94.2018-01-22.17-44-57.ddaeb556-9bc8-46b4-8dde-99a3c6eee6e7
>>  (1025, "Error on rename of 
>> './db_cryoem/#sql-6313_9e' to './db_cryoem/auth_user' (errno: 150)")
>> Version
>> web2py™ Version 2.14.6-stable+timestamp.2016.05.10.00.21.47Traceback
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>> 8.
>> 9.
>> 10.
>> 11.
>> 12.
>> 13.
>> 14.
>> 15.
>> 16.
>> 17.
>> 18.
>> 19.
>> 20.
>> 21.
>> 22.
>> 23.
>> 24.
>> 25.
>>
>> Traceback (most recent call last):
>>   File "/opt/web2py_apps/web2py/gluon/restricted.py", line 227, in restricted
>> exec ccode in environment
>>   File "/opt/web2py_apps/web2py/applications/cryoem/models/db.py" 
>> <https://10.10.10.101/admin/default/edit/cryoem/models/db.py>, line 109, in 
>> 
>> auth.define_tables(username=False, signature=False)
>>   File "/opt/web2py_apps/web2py/gluon/tools.py", line 2376, in define_tables
>> format='%(first_name)s %(last_name)s (%(id)s)'))
>>   File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/base.py", line 834, 
>> in define_table
>> table = self.lazy_define_table(tablename,*fields,**args)
>>   File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/base.py", line 873, 
>> in lazy_define_table
>> polymodel=polymodel)
>>   File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", 
>> line 510, in create_table
>> fake_migrate=fake_migrate
>>   File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", 
>> line 623, in migrate_table
>> self.execute(sub_query)
>>   File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", 
>> line 1388, in execute
>> return self.log_execute(*a, **b)
>>   File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", 
>> line 1382, in log_execute
>> ret = self.get_cursor().execute(command, *a[1:], **b)
>>   File "/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py", line 205, in 
>> execute
>> self.errorhandler(self, exc, value)
>>   File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py", line 36, 
>> in defaulterrorhandler
>> raise errorclass, errorvalue
>> OperationalError: (1025, "Error on rename of './db_cryoem/#sql-6313_9e' to 
>> './db_cryoem/auth_user' (errno: 150)")
>>
>>

-- 
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: Database administration error

2018-01-23 Thread SR


On Monday, January 22, 2018 at 5:49:30 PM UTC-6, SR wrote:
>
> When I try to open my Database Administration window I am getting this 
> error ticket:
> Error ticket for "cryoem"Ticket ID
>
> 10.51.133.94.2018-01-22.17-44-57.ddaeb556-9bc8-46b4-8dde-99a3c6eee6e7
>  (1025, "Error on rename of 
> './db_cryoem/#sql-6313_9e' to './db_cryoem/auth_user' (errno: 150)")
> Version
> web2py™ Version 2.14.6-stable+timestamp.2016.05.10.00.21.47Traceback
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
> 8.
> 9.
> 10.
> 11.
> 12.
> 13.
> 14.
> 15.
> 16.
> 17.
> 18.
> 19.
> 20.
> 21.
> 22.
> 23.
> 24.
> 25.
>
> Traceback (most recent call last):
>   File "/opt/web2py_apps/web2py/gluon/restricted.py", line 227, in restricted
> exec ccode in environment
>   File "/opt/web2py_apps/web2py/applications/cryoem/models/db.py" 
> <https://10.10.10.101/admin/default/edit/cryoem/models/db.py>, line 109, in 
> 
> auth.define_tables(username=False, signature=False)
>   File "/opt/web2py_apps/web2py/gluon/tools.py", line 2376, in define_tables
> format='%(first_name)s %(last_name)s (%(id)s)'))
>   File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/base.py", line 834, 
> in define_table
> table = self.lazy_define_table(tablename,*fields,**args)
>   File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/base.py", line 873, 
> in lazy_define_table
> polymodel=polymodel)
>   File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", 
> line 510, in create_table
> fake_migrate=fake_migrate
>   File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", 
> line 623, in migrate_table
> self.execute(sub_query)
>   File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", 
> line 1388, in execute
> return self.log_execute(*a, **b)
>   File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", 
> line 1382, in log_execute
> ret = self.get_cursor().execute(command, *a[1:], **b)
>   File "/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py", line 205, in 
> execute
> self.errorhandler(self, exc, value)
>   File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py", line 36, 
> in defaulterrorhandler
> raise errorclass, errorvalue
> OperationalError: (1025, "Error on rename of './db_cryoem/#sql-6313_9e' to 
> './db_cryoem/auth_user' (errno: 150)")
>
>

-- 
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: Unable to create Auth tables

2018-01-22 Thread SR
How do we recreate the auth tables after it has been dropped in mysql 
database?
I would really appreciate your help. 

On Monday, November 25, 2013 at 8:34:18 PM UTC-6, Anthony wrote:
>
> web2py thinks it already created those tables (you dropped them outside of 
> web2py, so it doesn't know they're gone). Try removing the associate 
> *.table files in the /databases folder (they store the migration 
> information for each table).
>
> Anthony
>
> On Monday, November 25, 2013 9:22:58 PM UTC-5, Julien Courteau wrote:
>>
>> (a) I did: drop table ;  == ["auth_user", 
>> "auth_group", etc...] in a sqlite3 shell;
>>
>> (b) I refresh my index page: web2py execute the auth.define_table() 
>> silently but no tables had been
>> created (sql.log contains no create table). I tried to figure out what's 
>> happening without success.
>> It did the same if I create a fresh new app. I use web2py 2.5.1. Any 
>> clues? How Could I do to figure 
>> out the problem?
>> Thanks.
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Database administration error

2018-01-22 Thread SR
When I try to open my Database Administration window I am getting this 
error ticket:
Error ticket for "cryoem"Ticket ID

10.51.133.94.2018-01-22.17-44-57.ddaeb556-9bc8-46b4-8dde-99a3c6eee6e7
 (1025, "Error on rename of 
'./db_cryoem/#sql-6313_9e' to './db_cryoem/auth_user' (errno: 150)")Version
web2py™ Version 2.14.6-stable+timestamp.2016.05.10.00.21.47Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.

Traceback (most recent call last):
  File "/opt/web2py_apps/web2py/gluon/restricted.py", line 227, in restricted
exec ccode in environment
  File "/opt/web2py_apps/web2py/applications/cryoem/models/db.py" 
, line 109, in 

auth.define_tables(username=False, signature=False)
  File "/opt/web2py_apps/web2py/gluon/tools.py", line 2376, in define_tables
format='%(first_name)s %(last_name)s (%(id)s)'))
  File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/base.py", line 834, in 
define_table
table = self.lazy_define_table(tablename,*fields,**args)
  File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/base.py", line 873, in 
lazy_define_table
polymodel=polymodel)
  File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", 
line 510, in create_table
fake_migrate=fake_migrate
  File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", 
line 623, in migrate_table
self.execute(sub_query)
  File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", 
line 1388, in execute
return self.log_execute(*a, **b)
  File "/opt/web2py_apps/web2py/gluon/packages/dal/pydal/adapters/base.py", 
line 1382, in log_execute
ret = self.get_cursor().execute(command, *a[1:], **b)
  File "/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py", line 205, in 
execute
self.errorhandler(self, exc, value)
  File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py", line 36, in 
defaulterrorhandler
raise errorclass, errorvalue
OperationalError: (1025, "Error on rename of './db_cryoem/#sql-6313_9e' to 
'./db_cryoem/auth_user' (errno: 150)")

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: DAL Query string for MariaDB

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



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

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] DAL Query string for MariaDB

2017-01-20 Thread SR
What will be DAL Query string in db.py for MariaDB database in my Centos 7 
machine?
Is this right?
db = DAL('mysql://root:password@localhost/db_name’ 
)

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Disabling all sidebars

2016-10-04 Thread SR
Change the both sidebars to False in the layout.html file.



On Tuesday, October 4, 2016 at 8:23:40 PM UTC-5, Oasis Agano wrote:
>
> Greetings is there an easy way of disabling all left and right sidebars 
> completely either through the css or a py function.
> im trying to create a full width index page which is all static but with 
> the dynamic menu on top.
>
>

-- 
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] embed a video file

2016-09-26 Thread SR
How do I embed a video file in my webpage?

-- 
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] Upload files folder setup

2016-09-23 Thread SR

When we upload a file via an upload field, by default it goes into the 
/web2py/applications/yourapp/uploads folder, can we specify a different 
folder in a remote server?

-- 
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: Login page - Menu bar does not work

2016-09-22 Thread SR
I would really appreciate if you could be more specific?

On Wednesday, September 21, 2016 at 6:18:11 PM UTC-5, SR wrote:
>
> When I am in the Login page, the menu items does not work.
> Any idea why it is not working?
> 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] Login page - Menu bar does not work

2016-09-21 Thread SR
When I am in the Login page, the menu items does not work.
Any idea why it is not working?
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: Assign users to multiple groups

2016-09-21 Thread SR
Thanks a lot.

On Wednesday, September 21, 2016 at 5:40:39 PM UTC-5, SR wrote:
>
> How can I assign a particular user to 3 different groups?
> Any suggestions?
> 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: Assign users to multiple groups

2016-09-21 Thread SR
How I do it using the web2py's "Administrative Interface"?


On Wednesday, September 21, 2016 at 5:40:39 PM UTC-5, SR wrote:
>
> How can I assign a particular user to 3 different groups?
> Any suggestions?
> 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] Assign users to multiple groups

2016-09-21 Thread SR
How can I assign a particular user to 3 different groups?
Any suggestions?
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: show_if logical operators

2016-07-24 Thread SR
This should work:
db.mytable.roles.show_if = (db.mytable.name.contains('red'))

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