[web2py] Re: What is the difference between :eval and some div id say 'target' in ajax?

2016-04-19 Thread Anthony
It is explained in the documentation: http://web2py.com/books/default/chapter/29/11/jquery-and-ajax#Eval-target On Tuesday, April 19, 2016 at 10:42:01 AM UTC-4, donnoas...@gmail.com wrote: > > for example: what is the difference the both? > ajax('echo', ['name'], ':eval') > ajax('echo',

[web2py] Re: internal error:size does not fit in an int

2016-04-19 Thread Anthony
I think it's a limitation of gzip. We might be able to work around it, but maybe not worth it to accommodate such a rare case. I would recommend instead doing a custom pack of the app, excluding whatever is taking up so much space (presumably either a large SQLite file or lots of uploads). Then

[web2py] Re: internal error:size does not fit in an int

2016-04-19 Thread Niphlod
awww... an application 2gb in size ? what's in there ? report it as a bug: dunno if it'll ever get fixed but seems that web2py is putting everything in memory before dumping to the tar. On Tuesday, April 19, 2016 at 1:05:12 PM UTC+2, Shaun Smith wrote: > > Hi > > I receive the following error

Re: [web2py] How do I avoid this error?

2016-04-19 Thread Richard Vézina
Did you check if there is record with empty username? If you try to add not null over a column/table that is not empty it may happen that some record(s) don't respect the new rule so your constraint can't be apply... You need to first update your records make sure none are empty than try again the

[web2py] Re: deploying on openshift

2016-04-19 Thread Manuele Pesenti
Il 19/04/16 14:25, Manuele Pesenti ha scritto: > Hi! > Can anyone help me to deploy a web2py application on openshift? > First, how can I setup a working copy of web2py framework and second, > how can the openshift controller in admin can be used for deploying > applications? > > Thanks a lot > >

[web2py] Re: help setup nssm services in windows

2016-04-19 Thread Niphlod
path is still the path to the python executable. startup dir can be the dir of web2py, but is not essential arguments is the path to web2py.py plus options to the web2py commandline (e.g. c:\path\to\web2py.py -K appname) On Tuesday, April 19, 2016 at 2:47:23 PM UTC+2, Jason Solack wrote: > >

[web2py] Re: deploying web2py on IIS

2016-04-19 Thread Dmitri Ermolaev
Yes! not need to downlad full MS Visual C вторник, 5 апреля 2016 г., 4:59:40 UTC+3 пользователь Massimo Di Pierro написал: > > are you proposing this for including in web2py? > > On Sunday, 3 April 2016 03:51:20 UTC-5, Dmitri Ermolaev wrote: >> >> *wfastcgi.py for IIS and web2py* >> >>

[web2py] What is the difference between :eval and some div id say 'target' in ajax?

2016-04-19 Thread donnoascer
for example: what is the difference the both? ajax('echo', ['name'], ':eval') ajax('echo', ['name'], 'target') where target is the id of a div -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: How to find the entry in a table with the highest ID

2016-04-19 Thread Dave S
On Tuesday, April 19, 2016 at 3:18:10 AM UTC-7, Jack Lodge wrote: > > When i try this method the Item_Request fills in the ID as None > > Please show your code. /dps > > On Saturday, April 16, 2016 at 5:09:39 PM UTC+1, Richard wrote: >> >> Hello Jack, >> >> You mean you want to pass the id

[web2py] Re: internal error:size does not fit in an int

2016-04-19 Thread Leonel Câmara
Yep this is a bug in the zlib library python uses, nothing we can do here. It has only been fixed (more of a workaround than a fix) in python 3.5 (see here ) as far as I know. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: How to change login form such that it will ask the field username (added to auth) instead of email?

2016-04-19 Thread Anthony
You should not be adding your own "username" field to Auth. Instead, just do: auth.define_tables(username=True) or alternatively: auth.settings.use_username = True auth.define_tables() If that case, the registration and login forms will automatically include the username field. Anthony On

[web2py] Re: How to compare between two datetime in web2py?

2016-04-19 Thread Anthony
Always show the traceback or explain in detail the error -- much harder to diagnose based on "gives me an error." Also, why aren't the last_active and last_seen fields datetime fields? Anthony On Tuesday, April 19, 2016 at 3:16:04 AM UTC-4, Steve Joe wrote: > > in db,py >

[web2py] Re: Struggling with simple SOAP call...

2016-04-19 Thread Dave S
On Tuesday, April 19, 2016 at 5:28:17 AM UTC-7, Pbop wrote: > > I am trying to learn how to use the pysimplesoap client to consume a > service outside of Web2Py. > > Example in book works great, and I have not some useful threads in the > community about authentication which is phase 2, but I

[web2py] Re: What's wrong in this syntax?

2016-04-19 Thread villas
We do not know what the error is, but in this code: person = db(db.auth_user.id==5).select().first() cmp = person.last_seen If person is not found, then person is None. If person is None, then person.last_seen will raise an error. -- Resources: - http://web2py.com -

[web2py] What is the difference between the both?

2016-04-19 Thread Steve Joe
ajax('{{=URL("default","data")}}',[],'target'); where target is id of a div and ajax('{{=URL("default","data")}}',[],':eval); How do their functionality differ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: How do I send same mail to a list of email ids?

2016-04-19 Thread Dave S
On Tuesday, April 19, 2016 at 1:24:34 PM UTC-7, Emmanuel Dsouza wrote: > > mail.send('ma...@some.com ' , #here i want to attach a list > of mail ids. > 'Subject', > 'Body' > ) I think you just put a list in the 'to' argument. mail.send(['firstn...@there.com',

[web2py] Combobox- Formulário

2016-04-19 Thread Giovanna Hessmann
Oi, estou com uma dúvida, como faço para colocar o Label "campus" como um combobox? Agradeço. def index(): container = DIV(_class='container') form = FORM(_action=URL('pesquisa','pesquisar'), _method='post') form.append(LABEL('Nome')) form.append(INPUT(_name='nome',

[web2py] built-in wiki

2016-04-19 Thread briannd81
I uploaded the image via the media function of the built-in wiki. I created a link to the larger image to display it when user click on the thumbnail. But instead, it downloads the larger image. Please advise how to display the image instead of download it through the anchor tag. Thanks, CD

[web2py] built-in wiki

2016-04-19 Thread briannd81
I use the built-in wiki for my application. I created a page (slug) and upload the image using the built-in media function. I created a link to display the large image when user clicked on the thumbnail, but instead it downloads the image. This is my code within the page. Please advise how

[web2py] How do I send same mail to a list of email ids?

2016-04-19 Thread Emmanuel Dsouza
mail.send('m...@some.com' , #here i want to attach a list of mail ids. 'Subject', 'Body' ) -- 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

[web2py] Re: How do I send same mail to a list of email ids?

2016-04-19 Thread Niphlod
mail.send has to,cc and ccn that take either a list or a string. to send to two email addresses in the "to", use mail.send(to=['ma...@example.com', 'ma...@example.com'], ) On Tuesday, April 19, 2016 at 10:24:34 PM UTC+2, Emmanuel Dsouza wrote: > > mail.send('ma...@some.com ' , #here i want

[web2py] Re: How to change login form such that it will ask the field username (added to auth) instead of email?

2016-04-19 Thread Steve Joe
I did the following and it works. Is there anything which I am losing? auth = Auth(db) auth.settings.extra_fields['auth_user']= [Field('username', requires=[IS_NOT_EMPTY(), IS_LENGTH(minsize=6, maxsize=15)], unique=True)] auth.define_tables(username=False, signature=False)

[web2py] deploy to pythonanywhere broken in >= 2.14.x version

2016-04-19 Thread 黄祥
just want to report deploy to pythonanywhere is broken in >= 2.14.x version no error traceback occured, yet the result is not expected. usually the button show working in a couple minutes (depends on the apps deployed), yet in the 2.14.x version, the button show working just in few seconds, yet

Re: [web2py] Re: Struggling with simple SOAP call...

2016-04-19 Thread Phil Baruch
Thanks Dave for the reply. I downloaded wireshark, and I am not seeing the packet, and sorting by destination address does not show the packet. now it may be there and I am not looking at Wireshark the right way. I went and tried a half dozen other open source / free SOAP web services from

[web2py] Re: built-in wiki

2016-04-19 Thread Dave S
On Tuesday, April 19, 2016 at 2:09:32 PM UTC-7, bria...@gmail.com wrote: > > I uploaded the image via the media function of the built-in wiki. I > created a link to the larger image to display it when user click on > the thumbnail. But instead, it downloads the larger image. > > Please advise

[web2py] Re: built-in wiki

2016-04-19 Thread Dave S
On Tuesday, April 19, 2016 at 3:36:18 PM UTC-7, Dave S wrote: > > > > On Tuesday, April 19, 2016 at 2:09:32 PM UTC-7, bria...@gmail.com wrote: >> >> I uploaded the image via the media function of the built-in wiki. I >> created a link to the larger image to display it when user click on >> the

[web2py] ckeditor error

2016-04-19 Thread Henk huisman
I installed ckEditor from the repository. When I try to use it with a simple SQLFORM like def test(): form = SQLFORM.factory( Field('requiredfield', required=True, notnull=True), Field('textfield', 'text', widget=ckeditor.widget) ) return dict(form=form) I

[web2py] Re: checkboxes framework7.io and validate

2016-04-19 Thread 'DenesL' via web2py-users
The solution I came up to this issue is at http://forum.framework7.io/#!/bugs-and-issues:formtojson-checkbox-encodin I would like to hear from others that might be using F7 with web2py. Denes -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: How to ensure each row in the db table having distinct value of a partcular field?

2016-04-19 Thread mfarees . knysys
Field('username', unique=True) -- 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] Re: How to compare between two datetime in web2py?

2016-04-19 Thread Steve Joe
in db,py auth.settings.extra_fields['auth_user']= [Field('last_active', default=request.utcnow+datetime.timedelta(0,19800), readable=False, writable=False), Field('last_seen', default=request.utcnow+datetime.timedelta(0,19800), readable=False, writable=False)] in controller for person in

[web2py] Re: How to compare between two datetime in web2py?

2016-04-19 Thread mfarees . knysys
from datetime import datetime datetime1 = "2016-04-19 01:25:09.9090" datetime1 = datetime.strptime(datetime1, "%Y-%m-%d %H:%M:%S.%f") # Converts string to datetime object datetime2 = "2016-04-19 01:25:09.8765" datetime2 = datetime.strptime(datetime2, "%Y-%m-%d %H:%M:%S.%f") # Converts

[web2py] What's wrong in this syntax?

2016-04-19 Thread Steve Joe
in db.py: auth.settings.extra_fields['auth_user']= [Field('last_active', default=request.utcnow+datetime.timedelta(0,19800), readable=False, writable=False), Field('last_seen', default=request.utcnow+datetime.timedelta(0,19800), readable=False, writable=False)] in controller

[web2py] Re: Problems setting up multiple domains

2016-04-19 Thread Niphlod
either that or set up apache to reverse proxy a web2py process (slow, but still better than facing that error). or check for the infinite issues people are having with apache here in this group and everywhere on google with mod_wsgi. On Monday, April 18, 2016 at 9:16:46 PM UTC+2, Marko

Re: [web2py] Re: Pre populating form with list:string field

2016-04-19 Thread Carlos Cesar Caballero Díaz
Many thanks, your suggestion solves my problem. Greetings. El 18/04/16 a las 13:25, 'DenesL' via web2py-users escribió: Hmmm... you are right. I would have to check the source. As an alternative you can do: | Field('test','list:string',default=['asdasd','2435345']), | On Monday, April 18,

[web2py] What's wrong in this syntax?

2016-04-19 Thread Anthony
It helps if you report the 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

[web2py] deploying on openshift

2016-04-19 Thread Manuele Pesenti
Hi! Can anyone help me to deploy a web2py application on openshift? First, how can I setup a working copy of web2py framework and second, how can the openshift controller in admin can be used for deploying applications? Thanks a lot Manuele -- Resources: - http://web2py.com -

[web2py] Struggling with simple SOAP call...

2016-04-19 Thread Pbop
I am trying to learn how to use the pysimplesoap client to consume a service outside of Web2Py. Example in book works great, and I have not some useful threads in the community about authentication which is phase 2, but I am just trying to start simple. Unfortunately, my proof of concept to

[web2py] Re: How do I make form field have atleast 10 char long input by the user?

2016-04-19 Thread Leonel Câmara
requires=IS_LENGTH(minsize=10, maxsize=511) -- 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

Re: [web2py] Re: How to find the entry in a table with the highest ID

2016-04-19 Thread Jack Lodge
When i try this method the Item_Request fills in the ID as None On Saturday, April 16, 2016 at 5:09:39 PM UTC+1, Richard wrote: > > Hello Jack, > > You mean you want to pass the id of the inserted record to another > controller ? > > # Controller form 1 > if form.process(dbio=False).accept: >

[web2py] How do I make form field have atleast 10 char long input by the user?

2016-04-19 Thread Emmanuel Dsouza
Field('longname') #what to write in requires=? -- 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

[web2py] How do I avoid this error?

2016-04-19 Thread Emmanuel Dsouza
adding the field: Field('username', requires=IS_NOT_EMPTY(), unique=True) gives me the following error: Cannot add a UNIQUE column How to avoid this error? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] internal error:size does not fit in an int

2016-04-19 Thread Shaun Smith
Hi I receive the following error message when I try to pack an application that has a size of 2GB. The question title "internal error:size does not fit in an int" shows the flashed error message. I am using web2py version 2.14.3-stable+timestamp.2016.03.26.17.54.43. I have made an alternative

[web2py] How to change login form such that it will ask the field username (added to auth) instead of email?

2016-04-19 Thread Steve Joe
username field is also unique -- 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] help setup nssm services in windows

2016-04-19 Thread Jason Solack
Hello all, I'm trying to setup a service in windows to utilize the scheduler. I found this: http://www.web2pyslices.com/slice/show/1614/nssm-webserver-and-scheduler-as-services-in-windows-oses but the version of NSSM is different than the version shown in the example above. I have path