Re: [web2py] Re: sending html emails.... bug ...

2018-06-08 Thread António Ramos
Gmail in mobile works better. It does not show the attached photos at the
bottom.

Regards

2018-06-07 18:31 GMT+01:00 Leonel Câmara :

> Nothing you can do about that Ramos. It depends on the email client. You
> could use online images instead of sending them with the email but then you
> will run into problems because some clients won't display external images
> without explicit permission.
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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


[web2py] Re: s3fs uploadfs error saying file name cannot be string - must be unicode

2018-06-08 Thread Leonel Câmara
Well the error is pretty explicit. Convert path to unicode.

Instead of:

path='attachments.files.ad112b05475e6e3e.4c61632045766...e7669746174696f6e2028456e676c697368292e706466.pdf'

Use:

path=u'attachments.files.ad112b05475e6e3e.4c61632045766...e7669746174696f6e2028456e676c697368292e706466.pdf'

-- 
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: Getting Error ModuleNotFoundError: No module named 'urllib2'

2018-06-08 Thread Leonel Câmara
Suhas can you try these changes:

https://github.com/web2py/web2py/pull/1944/files



>

-- 
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: LDAP Authentication never work

2018-06-08 Thread Leonel Câmara
Note that your function is decorated with 

@auth.requires_login()

However you only change the authentication method to LDAP inside that same 
function, so before the function runs it will only have the regular login 
and will require it. You need to do that stuff before the controller 
function runs in a model file.

-- 
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: LDAP Authentication never work

2018-06-08 Thread Suhas Jadhav
Are you saying i should do as below? It did not work for me.


from gluon.contrib.login_methods.ldap_auth import ldap_auth
auth.settings.actions_disabled=['register','change_password','request_reset_password','retrieve_username','profile']
auth.settings.remember_me_form = False
auth.settings.login_methods=[ldap_auth(
mode='ad',
server='ldaps://chexadcexp001.expeso.com:636',base_dn='ou=Service
Accounts,dc=sea,dc=corp,dc=com') ]
@auth.requires_login()
def test():
return locals()

On Fri, Jun 8, 2018 at 2:59 AM Leonel Câmara  wrote:

> Note that your function is decorated with
>
> @auth.requires_login()
>
> However you only change the authentication method to LDAP inside that same
> function, so before the function runs it will only have the regular login
> and will require it. You need to do that stuff before the controller
> function runs in a model file.
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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


[web2py] Re: s3fs uploadfs error saying file name cannot be string - must be unicode

2018-06-08 Thread b00m_chef
I have upgraded to the master branch on github, and here is the new error:

Ticket ID

184.67.247.98.2018-06-08.17-44-04.323a9bf9-4ee3-4150-9c1c-bacc7b84e0df
 coercing to Unicode: need string or buffer, 
tuple foundVersion
web2py™ Version 2.16.1-stable+timestamp.2018.05.24.15.00.45Traceback

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.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.

Traceback (most recent call last):
  File "/home/watr/web2py/gluon/restricted.py", line 219, in restricted
exec(ccode, environment)
  File "/home/watr/web2py/applications/dev/controllers/attachments.py" 
, line 
179, in 
  File "/home/watr/web2py/gluon/globals.py", line 421, in 
self._caller = lambda f: f()
  File "/home/watr/web2py/gluon/tools.py", line 3856, in f
return action(*a, **b)
  File "/home/watr/web2py/applications/dev/controllers/attachments.py" 
, line 
112, in add
if form.process().accepted:
  File "/home/watr/web2py/gluon/html.py", line 2302, in process
self.validate(**kwargs)
  File "/home/watr/web2py/gluon/html.py", line 2240, in validate
if self.accepts(**kwargs):
  File "/home/watr/web2py/gluon/sqlhtml.py", line 1889, in accepts
field.uploadfolder)
  File "/home/watr/web2py/gluon/packages/dal/pydal/objects.py", line 1756, in 
store
dest_file = self.uploadfs.open(unicode(newfilename), 'wb')
  File "/home/watr/.local/lib/python2.7/site-packages/fs/base.py", line 1129, 
in open
bin_file = self.openbin(path, mode=bin_mode, buffering=buffering)
  File "applications/dev/modules/fs_s3/_s3fs.py", line 570, in openbin
info = self._getinfo(path)
  File "applications/dev/modules/fs_s3/_s3fs.py", line 485, in _getinfo
obj = self._get_object(path, _key)
  File "applications/dev/modules/fs_s3/_s3fs.py", line 344, in _get_object
obj = self.s3.Object(self._bucket_name, _key)
  File "applications/dev/modules/fs_s3/_s3fs.py", line 365, in s3
endpoint_url=self.endpoint_url
  File "/home/watr/.local/lib/python2.7/site-packages/boto3/__init__.py", line 
92, in resource
return _get_default_session().resource(*args, **kwargs)
  File "/home/watr/.local/lib/python2.7/site-packages/boto3/session.py", line 
389, in resource
aws_session_token=aws_session_token, config=config)
  File "/home/watr/.local/lib/python2.7/site-packages/boto3/session.py", line 
263, in client
aws_session_token=aws_session_token, config=config)
  File "/home/watr/.local/lib/python2.7/site-packages/botocore/session.py", 
line 842, in create_client
token=aws_session_token)
  File "/home/watr/.local/lib/python2.7/site-packages/botocore/credentials.py", 
line 250, in __init__
self._normalize()
  File "/home/watr/.local/lib/python2.7/site-packages/botocore/credentials.py", 
line 259, in _normalize
self.access_key = botocore.compat.ensure_unicode(self.access_key)
  File "/home/watr/.local/lib/python2.7/site-packages/botocore/compat.py", line 
135, in ensure_unicode
return unicode(s, encoding, errors)
TypeError: coercing to Unicode: need string or buffer, tuple found

In file: /home/watr/web2py/applications/dev/controllers/attachments.py

1.

 at 0x7f823ac5ed30, file 
"/home/watr/web2py/applications/dev/controllers/attachments.py", line 4>




On Friday, 8 June 2018 02:31:34 UTC-7, Leonel Câmara wrote:
>
> Well the error is pretty explicit. Convert path to unicode.
>
> Instead of:
>
>
> path='attachments.files.ad112b05475e6e3e.4c61632045766...e7669746174696f6e2028456e676c697368292e706466.pdf'
>
> Use:
>
>
> path=u'attachments.files.ad112b05475e6e3e.4c61632045766...e7669746174696f6e2028456e676c697368292e706466.pdf'
>

-- 
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] Masking external url

2018-06-08 Thread e27gis
Hello,

I have a web2py portal that has several applications, some of them are just 
a redirection to external urls.

I would like to mask these urls (hide the true external url to the users) 
as if they are pure web2py applications, and also make impossible for the 
users so paste directly these links without logging in. 

Do you have an idea how I could do it ?

Thank you very much.

Best Regards.

Thierry

-- 
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] Am I be able to use file with Rdata extension as my database?

2018-06-08 Thread yifan li
Hi everyone,

I'm new to Web2py. I have a project that I need to use a dataset that has 
been trained saved as 'train.Rdata' and some R code to make prediction. I 
have found that I can use rpy2 to embedded R code into python. But, is 
there any way would you recommended for me to use Rdata in web2py? Thank 
you!

Yifan

-- 
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: s3fs uploadfs error saying file name cannot be string - must be unicode

2018-06-08 Thread Leonel Câmara
Again, your new error is pretty explicit boto was expecting a string in 
your access_key and found a tuple there. You probably used a tuple with 
your key and secret in aws_access_key instead of just the key. The secret 
should go in aws_secret_key.

-- 
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: Masking external url

2018-06-08 Thread Dave S


On Friday, June 8, 2018 at 12:22:38 PM UTC-7, e27...@gmail.com wrote:
>
> Hello,
>
> I have a web2py portal that has several applications, some of them are 
> just a redirection to external urls.
>
> I would like to mask these urls (hide the true external url to the users) 
> as if they are pure web2py applications, and also make impossible for the 
> users so paste directly these links without logging in. 
>
> Do you have an idea how I could do it ?
>
> Thank you very much.
>
> Best Regards.
>
> Thierry
>

You can use the fetch()  function to go external, and then turn around and 
send the response  as your response.  This may be a bit complicated if the 
external resource uses XSS, and getting all the javascript and cxx files 
lined up may be a pain.

Another option might be to use an iframe, but while I've examined iframes I 
haven't spent a lot of time at it.

/dps

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


[web2py] Re: s3fs uploadfs error saying file name cannot be string - must be unicode

2018-06-08 Thread watr
The solution was in the code I posted originally. I had commas at the 
declaration of the public and private key. After removing the commas I can 
now upload.

*Before:*
bucket = "pobook",
region = 'ca-central-1',
aws_akey = "##",
aws_skey = ""

*After:*
bucket = "pobook"
region = 'ca-central-1'
aws_akey = "##"
aws_skey = ""



On Friday, 8 June 2018 12:36:06 UTC-7, Leonel Câmara wrote:
>
> Again, your new error is pretty explicit boto was expecting a string in 
> your access_key and found a tuple there. You probably used a tuple with 
> your key and secret in aws_access_key instead of just the key. The secret 
> should go in aws_secret_key.
>

-- 
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 with UploadFS = s3 Not working with Delete and Download

2018-06-08 Thread watr
Here is my code:
from fs_s3 import S3FS
import datetime

bucket = "pobook"
region = 'ca-central-1'
aws_akey = "##"
aws_skey = ""

myfs = S3FS(
bucket,
aws_access_key_id=aws_akey,
aws_secret_access_key=aws_skey,
region=region
)

db.define_table('attachments',
Field('name', 'string', requires=IS_NOT_EMPTY()),
Field('files', 'upload', uploadfs = myfs, autodelete=True)
)

However, the default SQLFORM.grid "file" link gives a local link, not a 
link to the S3 file, so it fails. I created a download button to get around 
this.

I am unable to use the "Delete" or default "file" download link in 
SQLFORM.grid.

-- 
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] Classes: Iteration of Row Objects & Updating

2018-06-08 Thread Mark Billion
Ive checked the docs and am sure I am missing it, but can someone please 
confirm or deny: If I iterate a row class attribute via another class 
method, updates applied by that method will will update the underlying row 
attribute?

For example:

__init__:
 self.dbobj = db(db.foo.bar>0).select()

def abc:
 for x in self.dbobj:
 x.attribute = "a"

My question is whether the self.dbobj attribute characteristic is now set 
to "a" for all records until the object is either destroyed or reupdated.  
I know I could test it, but I was wondering if there was a definitive 
answer...

-- 
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 with UploadFS = s3 Not working with Delete and Download

2018-06-08 Thread watr
I am currently using the boto3 library to manipulate the s3 via:

import boto3

bucket = 'pobook'
region = 'ca-central-1'
aws_akey = ''
aws_skey = '##'

myfs = S3FS(
bucket,
aws_access_key_id=aws_akey,
aws_secret_access_key=aws_skey,
region=region
)

#s3fs = S3FS(bucket, aws_access_key_id="AKIAISLT7VNRCBEKP3EA", 
aws_secret_access_key="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", 
region="ca-central-1")

s3conn = boto3.Session(
aws_access_key_id=aws_akey,
aws_secret_access_key=aws_skey,
region_name=region
)

s3 = s3conn.resource("s3")

def s3delete(bucket, file_name):
if not (bucket == None) and not (file_name == None):
obj = s3.Object(bucket, file_name)
obj.delete()
return True
else:
return False




On Friday, 8 June 2018 14:21:17 UTC-7, watr wrote:
>
> I am running web2py from source pulled from github master this morning.
>
> Here is my code:
> from fs_s3 import S3FS
> import datetime
>
> bucket = "pobook"
> region = 'ca-central-1'
> aws_akey = "##"
> aws_skey = ""
>
> myfs = S3FS(
> bucket,
> aws_access_key_id=aws_akey,
> aws_secret_access_key=aws_skey,
> region=region
> )
>
> db.define_table('attachments',
> Field('name', 'string', requires=IS_NOT_EMPTY()),
> Field('files', 'upload', uploadfs = myfs, autodelete=True)
> )
>
> However, the default SQLFORM.grid "file" link gives a local link, not a 
> link to the S3 file, so it fails. I created a download button to get around 
> this.
>
> I am unable to use the "Delete" or default "file" download link in 
> SQLFORM.grid.
>

-- 
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] Catch form submission and switch value of a form field

2018-06-08 Thread watr
Is it possible to catch a form submission before it is processed into the 
DB and switch a value in a form field?

-- 
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: LDAP Authentication never work

2018-06-08 Thread 黄祥
pls try (not tested)
*models/db.py*
from gluon.contrib.login_methods.ldap_auth import ldap_auth
auth.settings.login_methods.append(ldap_auth(
mode='ad', 
server='ldaps://chexadcexp001.expeso.com:636',base_dn='ou=Service 
Accounts,dc=sea,dc=corp,dc=com') )
auth.settings.login_methods = [ldap_auth]

*controllers/default.py*
@auth.requires_login()
def test():
return locals()

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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Catch form submission and switch value of a form field

2018-06-08 Thread 黄祥
perhaps you can use onvalidation to switch it's value in a form field
ref:
http://web2py.com/books/default/chapter/29/07/forms-and-validators#onvalidation

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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: certbot vs web2py -- geoip import break

2018-06-08 Thread Dave S


On Tuesday, May 8, 2018 at 10:42:51 PM UTC-7, Dave S wrote:
>
>
>
> On Friday, May 4, 2018 at 3:45:25 PM UTC-7, Dave S wrote:
>>
>> Here's a wierd one:
>>
>> AWS Linux, nginx, uwsgi, web2py 2.15.4, very stable.  
>>
>> I use certbot --nginx to update my certs (yes, Let's Encrypt), which 
>> works 
>>
>
[...]
 

>
>> But then my module which imports geolite2 from geoip gets "import error: 
>> "No module named geoip\".  Running python from the command line, and 
>> importing geoip manually, has no such problem.  python web2py.py -S has no 
>> such problem.
>>
>> certbot (actually certbot-auto) updated python-tools, but then used a 
>> virtual environment.  But it seems to have caused something to go awry.  Do 
>> I need to restart my uwsgi master?  (I'm not yet crowned as emporer.)
>>
>> Any clues as to what's going on here?
>>
>>
> No geoip users here?
>

Restarting uwsgi seems to have fixed the issue (aside from my not having 
proper notes on the command line I had used when I got the log rotation to 
work)
 
/dps

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


[web2py] include python libraries that needed in web2py app to distribute to another

2018-06-08 Thread 黄祥
*ref:*
https://groups.google.com/forum/#!newtopic/web2py/web2py/_lNJg6XLl4c

*question:*
1. which folder that must be included in app modules/ (e.g. 
~/web2py/applications/init/modules) folder?
e.g.
$ ls -l ~/miniconda3/envs/python2
drwxr-xr-x  42 sugizo  staff  1428 May 21 07:28 bin
drwxr-xr-x  19 sugizo  staff   646 May 20 18:57 conda-meta
drwxr-xr-x  91 sugizo  staff  3094 May 20 18:57 include
drwxr-xr-x  92 sugizo  staff  3128 May 20 18:57 lib
drwxr-xr-x   8 sugizo  staff   272 May 20 18:57 share
drwxr-xr-x   7 sugizo  staff   238 May 20 18:57 ssl
2. what is the different above method with pip install python_packages or 
using pip install -r requirements.txt ?
3. or even with pyinstaller (not sure can work to bundle python libraries 
for *nix environment), comment ?

*ref pyinstaller:*
https://pyinstaller.readthedocs.io/en/v3.3.1/operating-mode.html

thanks and 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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Classes: Iteration of Row Objects & Updating

2018-06-08 Thread Anthony
On Friday, June 8, 2018 at 5:49:07 PM UTC-4, Mark Billion wrote:
>
> Ive checked the docs and am sure I am missing it, but can someone please 
> confirm or deny: If I iterate a row class attribute via another class 
> method, updates applied by that method will will update the underlying row 
> attribute?
>
> For example:
>
> __init__:
>  self.dbobj = db(db.foo.bar>0).select()
>
> def abc:
>  for x in self.dbobj:
>  x.attribute = "a"
>
> My question is whether the self.dbobj attribute characteristic is now set 
> to "a" for all records until the object is either destroyed or reupdated.
>

Yes.

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