[web2py] Re: Get a Web2py cloud instance in less than 30 seconds

2014-12-11 Thread Richard D
Works nice :) Richard D On Friday, December 5, 2014 5:46:50 PM UTC+1, Enrique Conci wrote: Hi There! My name is Enrique and I work for Terminal.com, a cloud computing provider. We were playing a little bit with web2py and we think it's a really good product, so we decided create a new

[web2py] Re: Get a Web2py cloud instance in less than 30 seconds

2014-12-11 Thread Mirek Zvolský
Postgres: Yes, there is almost all. But I think you can install what you want, not only use predefined installations (snaps). Example: apt-get -y install lighttpd Btw current web2py snap run with Rocket 1.2.6. If somebody will make (or describe) snap with Lighttpd or Nginx, it would be great. Or

[web2py] presenting None values in SQLFORM.grid

2014-12-11 Thread Yebach
Hello In my SQLFORM.grid I have fields of type integer (as in database) and if they are null the presentation in my view is None. I would like to change them to be presented as empty Any suggestions? thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Verification email is not sent

2014-12-11 Thread Yebach
These are my settings. Are you using standard form for registration or custom form? ## configure email mail = auth.settings.mailer mail.settings.server = 'mx.fdff.si:25' mail.settings.sender = '' mail.settings.login = 'ix' mail.settings.tls = False auth.messages.verify_email = T('Click

[web2py] Re: presenting None values in SQLFORM.grid

2014-12-11 Thread Anthony
Field('myfield', 'integer', represent=lambda v, r: v if v is not None else '') Maybe we should add an option to the grid for this, as it seems to be a common need. On Thursday, December 11, 2014 7:38:40 AM UTC-5, Yebach wrote: Hello In my SQLFORM.grid I have fields of type integer (as in

[web2py] Re: presenting None values in SQLFORM.grid

2014-12-11 Thread Simon Ashley
something like this may help: db.table.field.represent = lambda value, row: DIV(value if value else '-', etc...) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: Verification email is not sent

2014-12-11 Thread Richard D
Thank you, I think mail.settings.tls = False did it :) Richard D On Wednesday, December 10, 2014 9:34:56 PM UTC+1, Richard D wrote: Hi, In my app standard email can be send using mail.send(to=['ric The registration email is not sent however. db.py: ## configure email

[web2py] query and fields involved

2014-12-11 Thread Massimiliano
Is there a way to know if a field is involved in a query inspecting the query object? Thank you -- Massimiliano -- 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

[web2py] Re: query and fields involved

2014-12-11 Thread Anthony
Maybe something like this: def query_fields(query): from gluon.dal import Query fields = [] for element in (query.first, query.second): if isinstance(element, Field): fields.append(element) elif isinstance(element, Query):

[web2py] Re: migrate and fake_migrate

2014-12-11 Thread Jose
El miércoles, 10 de diciembre de 2014 16:54:17 UTC-3, Niphlod escribió: BTW, what you are experiencing is totally predictable, but you're barking at the wrong tree. now: migrate=True, fake_migrate=False I start with a database empty. db = DAL('postgres://usr:psw@localhost/sisteq2',

[web2py] Re: Is it possible to append content to a block from multiple included files?

2014-12-11 Thread Leonel Câmara
I find that usually {{super}} is enough for my needs. You can make something like this {{extend 'file_1.html'}} pThis is file_2.html/p {{block jquery_code}} {{super}} //Some jquery code here {{end}} Then you just include file_2.html and it will have both its jquery_code and file_1.html

[web2py] Re: migrate and fake_migrate

2014-12-11 Thread Niphlod
ProgrammingError: column f2 of relation mi_tabla does not exist Once again.. this exception is raised when some piece of code references f2 from mi_tabla. I'd be happy to find that piece of code for you if you pack an app that reproduces the issue. -- Resources: -

[web2py] web2py on a dedicated server

2014-12-11 Thread Gael Princivalle
Hello all. One of my customers have took a 11 dedicated server and want to install inside web2py. I've got only a web2py Webfaction experience so I don't know exactly how can I help him. He have install web2py in a apache2 mod_wsgi. The welcome application run but don't find css files: The

[web2py] Re: web2py on a dedicated server

2014-12-11 Thread Dave S
On Thursday, December 11, 2014 11:53:04 AM UTC-8, Gael Princivalle wrote: Hello all. One of my customers have took a 11 dedicated server and want to install inside web2py. I've got only a web2py Webfaction experience so I don't know exactly how can I help him. He have install web2py in

[web2py] Re: web2py on a dedicated server

2014-12-11 Thread Paolo Valleri
My suggestion is to use nginx with uwsgi, I use it on VMs hosted on ip-exchange On Thursday, December 11, 2014 8:53:04 PM UTC+1, Gael Princivalle wrote: Hello all. One of my customers have took a 11 dedicated server and want to install inside web2py. I've got only a web2py Webfaction

Re: [web2py] Re: Is it possible to append content to a block from multiple included files?

2014-12-11 Thread Lisandro Rostagno
Thank you very much for your answers. For what I need, I will have to go with Massimo's approach. That's because I need to include several files (file1.html, file2.html, file3.html, etc...) from index.html. The ugly thing is that I will end up with several {{block ..}} in the layout.html file,

[web2py] How do you handle audits?

2014-12-11 Thread Alex Glaros
If you want to check user activity history, how do you normally do that? Is it using a combination of record versioning, then going to server to see access_log to get ip_address of user if needed? Am seeking to avoid having to add fields like ip_address of user on records that are created or

[web2py] Re: How do you handle audits?

2014-12-11 Thread Alex Glaros
what is the difference between record versioning and this? http://www.web2pyslices.com/slice/show/1362/audit-trail -- 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

[web2py] Re: How do you handle audits?

2014-12-11 Thread Niphlod
depends on what you need to track, and what report you need to run on user activity. If you need to store the info about who changed what at what time, it's not going to be easier than simply using the battery-included versioning. If instead you want to show something as userA started following

[web2py] Re: web2py on a dedicated server

2014-12-11 Thread Niphlod
@gael: aside from suggestions of using something else, that are not useful for someone telling that I find myself stucked with provider X all that it takes is to tune apache2 config accordingly to what is needed, specifically a rewrite rule that you can find everywhere in scripts/setup*

[web2py] Re: web2py on a dedicated server

2014-12-11 Thread Dave S
On Thursday, December 11, 2014 3:10:16 PM UTC-8, Niphlod wrote: @gael: aside from suggestions of using something else, that are not useful for someone telling that I find myself stucked with provider X all that it takes is to tune apache2 config accordingly to what is needed,

[web2py] Re: jquery ui dialog icon

2014-12-11 Thread José Eloy
I've discovered that is not only the icon is not displayed, but other controls aren't themed correctly, by example the buttons. Is web2py css blocking the jquery ui css? What's the better way to include jquery ui in web2py? Regards. -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: migrate and fake_migrate

2014-12-11 Thread Jose
El jueves, 11 de diciembre de 2014 16:52:48 UTC-3, Niphlod escribió: ProgrammingError: column f2 of relation mi_tabla does not exist Once again.. this exception is raised when some piece of code references f2 from mi_tabla. I'd be happy to find that piece of code for you if you

[web2py] jquery ui theming

2014-12-11 Thread José Eloy
Hello! What's the correct way to include jquery ui in my web2py application? Actually I use the following: link rel=stylesheet href={{=URL('static', 'jquery-ui-1.11.2.custom/jquery-ui.css')}} type=text/css media=all/ script src={{=URL('static', 'jquery-ui-1.11.2.custom/jquery-ui.js')}}

[web2py] Re: migrate and fake_migrate

2014-12-11 Thread Jose
A few days ago I reported this [1] fault. I understand that failure, to happen to everyone, had reported long ago. I wonder if maybe I have something in my environment that causes these failures occur as illogical. [1] https://code.google.com/p/web2py/issues/detail?id=2023start=100 --

[web2py] Re: jquery ui dialog icon

2014-12-11 Thread Derek
the crickets are the sound of people saying 'whats this got to do with web2py'. Try opening your javascript console and developer tools of your browser to find out what's wrong. On Thursday, December 11, 2014 4:22:21 PM UTC-7, José Eloy wrote: I've discovered that is not only the icon is

[web2py] Re: migrate and fake_migrate

2014-12-11 Thread Jose
If instead of removing the field, create a new one, so does db.define_table('mi_tabla', Field('f1', 'integer'), #Field('f2', 'integer'), Field('f3', 'integer'), Field('f4', 'integer'), Field('f5', 'integer'), migrate='mi_tabla.table' ) First run, works

[web2py] Re: jquery ui theming

2014-12-11 Thread weheh
Hi Jose, two comments. 1) forget jquery UI ... move to Bootstrap. I used jquery UI for a long time and moved to Bootstrap because it's easier to use and better at what it does. And it's better to start with Bootstrap than to have to migrate to it later on. 2) Regarding your question, your code