[web2py] Re: How to use twitter bootstrap style
Il 06/07/2012 10:31, orsomannaro ha scritto: In a SQLFORM form I set: buttons = [ INPUT(_type='submit', _value='go', _class='btn btn-primary'), INPUT(_type='button', _value='info', _class='btn btn-info'), ] but buttons have not bootstrap style (btn-primary button are not blue, there are no space between the two button). the problem seem to be _value
Re: [web2py] Re: How to use twitter bootstrap style
Il 06/07/2012 12:11, stefaan ha scritto: Not sure if it would solve your problem, but sometimes you need to clear the browser cache to see the effect of changes in css. yes, but this is not my case. tnk
Re: [web2py] Re: How to use twitter bootstrap style
Il 06/07/2012 10:52, Annet ha scritto: This works for me: but not for me :( my web2py_ajax.html (I tried several changes): ... {{ response.files.insert(0,URL('static','js/jquery.js')) response.files.insert(1,URL('static','css/calendar.css')) response.files.insert(2,URL('static','js/calendar.js')) response.files.insert(3,URL('static','js/web2py.js')) response.include_meta() response.include_files() }} I also tried to insert bootstrap.css in layout.html: response.files.append(URL('static','css/skeleton.css')) response.files.append(URL('static','css/web2py.css')) response.files.append(URL('static','css/bootstrap.css')) and this change a lot of things but not buttons style, so I think that's not the corrects way ...
[web2py] How to use twitter bootstrap style
In a SQLFORM form I set: buttons = [ INPUT(_type='submit', _value='go', _class='btn btn-primary'), INPUT(_type='button', _value='info', _class='btn btn-info'), ] but buttons have not bootstrap style (btn-primary button are not blue, there are no space between the two button). My be I must install twitter-boostrap? What I have to do? Thank.
Re: [web2py] standalone we-app example
>> web-app example? wxPython solution thank you anyway :)
[web2py] standalone we-app example
How can I dowload a web2py standalone web-app example? Tnk.
[web2py] Web2Py + Mercurial + uWSGI + Nginx in Ubuntu 12.04
After installing Web2Py with this script: http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh I made some changes to integrate a Mercurial server. It seem to work but I'm a newbie, so I would like someone give me feedback. Thanks. = Mercurial = == install == apt-get install mercurial adduser --ingroup www-data hg == users == cd /home/hg/ htpasswd -mc hgusers hg htpasswd -m hgusers pc-user == config == vi /home/hg/hgweb.config [paths] / = /var/www/web2py/applications/* == wsgi script == mkdir /var/www/hg/ cp /usr/share/doc/mercurial-common/examples/hgweb.wsgi /var/www/hg/ chown hg:www-data /var/www/hg/hgweb.wsgi vi /var/www/hg/hgweb.wsgi config = "/home/hg/hgweb.config" from mercurial import demandimport; demandimport.enable() from mercurial.hgweb import hgweb application = hgweb(config) =uWSGI = vi /etc/uwsgi/apps-available/web2py.xml python 127.0.0.1:9001 /var/www/web2py/ /w2p=/var/www/web2py/wsgihandler.py /hg=/var/www/hg/hgweb.wsgi (thanks to Roberto for this) = Nginx = vi /etc/nginx/sites-available/web2py server { listen 443; server_name $hostname; ssl on; ssl_certificate /etc/nginx/ssl/web2py.crt; ssl_certificate_key /etc/nginx/ssl/web2py.key; location / { uwsgi_pass 127.0.0.1:9001; include uwsgi_params; uwsgi_param UWSGI_SCHEME $scheme; uwsgi_param SERVER_SOFTWAREnginx/$nginx_version; } location /hg { auth_basic "Secure Login"; auth_basic_user_file /home/hg/hgusers; uwsgi_pass 127.0.0.1:9001; include uwsgi_params; uwsgi_param SCRIPT_NAME ""; uwsgi_param UWSGI_SCHEME $scheme; uwsgi_param SERVER_SOFTWAREnginx/$nginx_version; } } https:///w2p/ ==> Web2Py (or https:///) https:///hg/ ==> Hg
Re: [web2py] Re: nginx+uWSGI+Web2Py for Ubuntu Precise 12.04
Than you very much Roberto but I have some doubts.. Create a WSGI module for mercurial: # call it hg_wsgi.py in which directory? Finally configure uWSGI: following the installing script in object, I used /etc/uwsgi/apps-available/web2py.xml to configure uwsgi for web2py, so I'm a little confused reading this configuration instruction... :(
Re: [web2py] Re: nginx+uWSGI+Web2Py for Ubuntu Precise 12.04
Il 29/05/2012 15:43, Roberto De Ioris ha scritto: Do you want web2py under /w2p and mercurial under something like /hg for the same domain ? Yes, perfect!!
[web2py] Re: nginx+uWSGI+Web2Py for Ubuntu Precise 12.04
Il 28/05/2012 18:00, orsomannaro ha scritto: how must I modify nginx and uwsgi configuration file if I what web2py respond in https:///w2p/ ? I have a sever with nginx+uwsgi+Web2Py and I would like also to configure hgweb(Mercurial), but I'm not able to configure nginx/uwsgi... no one??
[web2py] Re: nginx+uWSGI+Web2Py for Ubuntu Precise 12.04
On 18/05/2012 18:01, orsomannaro wrote: I made some modify to setup-web2py-nginx-uwsgi-ubuntu.sh script to fit it to Ubuntu Precise 12.04. how must I modify nginx and uwsgi configuration file if I what web2py respond in https:///w2p/ ? Thank
Re: [web2py] Re: Forms with horizontal fields
On 28/05/2012 09:23, Johann Spies wrote: You can also look at the solidform plugin: http://dev.s-cubism.com/plugin_solidform Great! Thank you!
Re: [web2py] Re: Forms with horizontal fields
On 25/05/2012 18:22, Niphlod wrote: to hide something , you can set it as readable = False, or keep a list of fields to display and pass it to SQLFORM as a parameter. As for the arrangement, try to create a small function to serialize the form in the view: Thank you very much Niphlod. I'm happy to read you, because I bookmarked your post concerning "Bootstrap and custom forms and widgets" and I'm waiting the moment you release your app :)
Re: [web2py] Re: Forms with horizontal fields
On 25/05/2012 16:08, Massimo Di Pierro wrote: You need to do it using jquery. Thank you Massimo. And for the other things? There is no way?
[web2py] Forms with horizontal fields
I'm starting with Web2Py. I have a model with a large number of fields and I need to display them all together in the view. To arrange/group them logically I need to display them in a horizontal way. In some cases I need to hide some of these fields, depending on users rights. How can I do this? Is there a way to create different custom div-based forms layout for a single model and let the controller to decide which one to use in the views? Thank you
Re: [web2py] Re: nginx+uWSGI+Web2Py for Ubuntu Precise 12.04
Il 19/05/2012 21:43, Massimo Di Pierro ha scritto: can you please open an issue in google code and link your patch there. done
[web2py] "bad gategay" error
I too had the "bad gategay" error because of two problems: - missing to install uwsgi-plugin-python - missing to add "python" in web2py.xml
[web2py] nginx+uWSGI+Web2Py for Ubuntu Precise 12.04
I made some modify to setup-web2py-nginx-uwsgi-ubuntu.sh script to fit it to Ubuntu Precise 12.04. Differences with the previous script: - install nginx and uwsgi from Precise reporitory - load python plugin in uwsgi configuration file for web2py setup-web2py-nginx-uwsgi-ubuntu-precise.sh Description: Bourne shell script