[web2py] append script with no extension

2014-12-24 Thread Manuele Pesenti
Hi! Is there a way to include this url as a script using response.files.append method (or something similar)? script src=http://maps.google.com/maps/api/js?v=3amp;sensor=false;/script The problem seams to be that it got no extension so it's not recognized from the include_files method of the

Re: [web2py] Re: docker

2014-12-24 Thread Tito Garrido
HI Massimo, It is working on a virtual machine using Ubuntu.. this is the steps that I have followed: I have built the image and tagged as web2py1 using: sudo docker build -t web2py1 . So an image has been generated called web2py1. To run in on an exposed port I have ran: docker run -i -P -t

[web2py] how to use glyphicon

2014-12-24 Thread mcamel
Hi all, I've realized web2py uses 'app/static/images/glyphicons-halflings.png' (and the white version) in a CSS way. For example, the edit button on a grid is rendered to something like: span class=icon pen icon-pencil glyphicon glyphicon-arrow-pencil/span I want to use those icons that way,

[web2py] Re: append script with no extension

2014-12-24 Thread Leonel Câmara
Not really response.files is for local files. I just add that script tag to my layout.html. -- 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

Re: [web2py] append script with no extension

2014-12-24 Thread Massimiliano
Maybe using a block in the head of template? On Wed, Dec 24, 2014 at 10:54 AM, Manuele Pesenti manuele.pese...@gmail.com wrote: Hi! Is there a way to include this url as a script using response.files.append method (or something similar)? script

[web2py] Hello World!

2014-12-24 Thread Gyanendra Mishra
I just wanted to say hi to the community. Hi! The framework looks magical currently and I want to reduce that magic.I don't feel that I am in control of the framework. I just started learning and building apps with web2py.I have some competitive programming experience and I have built a few apps

Re: [web2py] Re: reddit clone - foreign key constraint failed

2014-12-24 Thread Chris Simpson
Hi William, Thanks for the information! Regards, 2014-12-23 8:33 GMT+00:00 William Chen williamch...@gmail.com: Hi Chris, I had the same problem and found this thread when I was searching for a solution. The solution is to simply create 1 or more comments using app admin. If table B

[web2py] caching model data

2014-12-24 Thread harsha tanguturi
I would like to cache the model data i.e., caching the selects and update the cache whenever the data is updated. Putting simply a caching layer has to present before the database layer and any changes to the database should be reflected in cache too. -- Resources: - http://web2py.com -

[web2py] Re: how to use glyphicon

2014-12-24 Thread Massimo Di Pierro
:-) On Wednesday, 24 December 2014 07:04:48 UTC-6, mcamel wrote: Hi all, I've realized web2py uses 'app/static/images/glyphicons-halflings.png' (and the white version) in a CSS way. For example, the edit button on a grid is rendered to something like: span class=icon pen icon-pencil

Re: [web2py] Re: append script with no extension

2014-12-24 Thread Manuele Pesenti
Il 24/12/14 14:22, Leonel Câmara ha scritto: Not really response.files is for local files. I just add that script tag to my layout.html. Thank you Leonel and Massimiliano, that's what I've done... but I wanted to load this script only where needed. No way to do it programmatically? M. --

[web2py] happy holidays everybody

2014-12-24 Thread Massimo Di Pierro
I wish a happy holidays to everybody in this community. As a Christmas present and mostly the work of Giovanni Barillari we have re-released the web2py DAL as a separate Python package under the BSD license: https://pypi.python.org/pypi/pyDAL https://github.com/web2py/pydal Now you can more

[web2py] Re: Hello World!

2014-12-24 Thread Massimo Di Pierro
Feel free to ask questions. It is magical but not as much as it may seem. On Wednesday, 24 December 2014 03:55:46 UTC-6, Gyanendra Mishra wrote: I just wanted to say hi to the community. Hi! The framework looks magical currently and I want to reduce that magic.I don't feel that I am in

[web2py] adding html to SQLform.grid

2014-12-24 Thread Yebach
Hello Is it possible to add html (span) to SQLFORM.grid. I have a color picker widget and it works ok but it colors the whole field. I would like to add a new html tag inside a table where color picker would be presentet. It is possible to do this inside web2py or do I have to write JS code.

[web2py] Re: adding html to SQLform.grid

2014-12-24 Thread mcamel
Hi, You can do DOM parsing at web2y level with something like: grid = SQLFORM.grid(...) table = grid.element(table) # or grid[1][0] table.insert(0, TR(LABEL('label1:'), INPUT(_name='_myname', _type= 'text', ))) 0 for the first, -1 for the last... More at

[web2py] Re: datetime smart query

2014-12-24 Thread mcamel
Iso format like: day_and_time = 2000-01-01 00:00:00 Must be ISO and UTC regardless you are using (and seeing) localized format and/or timezone (at least just now). Related question: https://groups.google.com/forum/?fromgroups=#!topic/web2py/fDP4mrIFdXg Regards. El martes, 20 de mayo de 2014

[web2py] Re: Daily task on production: scheduler or cron?

2014-12-24 Thread Lisandro
Thank you very much Tim, excelent info. I will use web2py's Scheduler, because it will be easy to write some code and let the user change the configuration from the webapp. However, I have one last concern about system resources on production. As I'm going to use this in production, my webapp

[web2py] Upgrade issues with 2.9.11

2014-12-24 Thread DJ
Hello, I wanted to share an issue that has come up after upgrading to 2.9.11 on CentOS.6.6/Apache. a) First the existing applications broke after the upgrade b) Admin interface would not load up properly (no icons and unable to login) In the served html pages, an additional folder _2.9.11 is

[web2py] Re: happy holidays everybody

2014-12-24 Thread DJ
Congrats Massimo and happy holidays! On Wednesday, December 24, 2014 8:48:18 AM UTC-5, Massimo Di Pierro wrote: I wish a happy holidays to everybody in this community. As a Christmas present and mostly the work of Giovanni Barillari we have re-released the web2py DAL as a separate Python

[web2py] Re: happy holidays everybody

2014-12-24 Thread Jim S
Massimo Seems to be an issue trying to install using pip install. Getting the following trying to install: Downloading/unpacking pyDAL Could not find any downloads that satisfy the requirement pyDAL Cleaning up... No distributions at all found for pyDAL -Jim On Wednesday, December 24,

Re: [web2py] Re: happy holidays everybody

2014-12-24 Thread 'FERNANDO VILLARROEL' via web2py-users
pyDAL +10 I wish you merry christmas and happy new year Massimo and everybody of this community. Fernando On Wednesday, December 24, 2014 12:48 PM, DJ sebastianjaya...@gmail.com wrote: Congrats Massimo and happy holidays! On Wednesday, December 24, 2014 8:48:18 AM UTC-5, Massimo

[web2py] Re: happy holidays everybody

2014-12-24 Thread Leonel Câmara
Happy holidays everyone! Great job on the DAL! -- 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

Re: [web2py] Re: happy holidays everybody

2014-12-24 Thread Tito Garrido
*Happy holidays! Awesome gift!* On Wed, Dec 24, 2014 at 2:39 PM, Leonel Câmara leonelcam...@gmail.com wrote: Happy holidays everyone! Great job on the DAL! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Upgrade issues with 2.9.11

2014-12-24 Thread Niphlod
since 2.1.0 (almost an year ago) we have static asset management (you can read about it here http://web2py.com/books/default/chapter/29/04/the-core?search=static_version#Static-asset-management) . you need to alter your AliasMatch ^/([^/]+)/static/(.*)

[web2py] Re: Daily task on production: scheduler or cron?

2014-12-24 Thread Niphlod
a) Some people never consider this as a possibility, but if you have 3 apps, e.g. app1, app2 and app3, you can run one scheduler for all applications. The default mode is built to process by default tasks coming from the same app that queues them, but the switch is still there:

Re: [web2py] Re: append script with no extension

2014-12-24 Thread Niphlod
No way to do it programmatically? unless you code something of your own, from that url (or any other without extension) web2py can't figure out what type of script to generate. on a totally (un)related note, this seems to work fine

[web2py] Re: caching model data

2014-12-24 Thread Niphlod
so, what's the issue you're facing ? On Wednesday, December 24, 2014 12:29:24 PM UTC+1, harsha tanguturi wrote: I would like to cache the model data i.e., caching the selects and update the cache whenever the data is updated. Putting simply a caching layer has to present before the database

[web2py] Re: unescaped HTML code in wiki page

2014-12-24 Thread Niphlod
How can avoid this? What I'm missing from the documentation? the render parameter ?! -- 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

Re: [web2py] Re: Domain model and web2py DAL

2014-12-24 Thread Alan Evangelista
On Tuesday, December 23, 2014 1:16:52 PM UTC-2, Alan Evangelista wrote: It might be easier if you provide a concrete example of what you are trying to achieve (perhaps using the syntax of an existing ORM or using pseudo-code) and explain how the DAL falls short. Using SQLAlchemy as

[web2py] Re: happy holidays everybody

2014-12-24 Thread Richard D
To all web2py users and developers, Merry X-mas and a happy New Year. Richard D On Wednesday, December 24, 2014 2:48:18 PM UTC+1, Massimo Di Pierro wrote: I wish a happy holidays to everybody in this community. As a Christmas present and mostly the work of Giovanni Barillari we have

Re: [web2py] Re: unescaped HTML code in wiki page

2014-12-24 Thread Manuele Pesenti
Il 24/12/14 19:13, Niphlod ha scritto: How can avoid this? What I'm missing from the documentation? the render parameter ?! the render parameter is fixed to HTML but I've tryed 'html' with the same result... This is my controller: def wiki(): return auth.wiki(render=HTML) and this is

[web2py] Re: Upgrade issues with 2.9.11

2014-12-24 Thread DJ
Thank you so much for that quick answer. This is why I love the web2py community!! On Wednesday, December 24, 2014 12:41:51 PM UTC-5, Niphlod wrote: since 2.1.0 (almost an year ago) we have static asset management (you can read about it here

Re: [web2py] Re: happy holidays everybody

2014-12-24 Thread Michele Comitini
+1 Merry X-mas and a DAL dominated 2015! 2014-12-24 20:45 GMT+01:00 Richard D richard.dijks...@planet.nl: To all web2py users and developers, Merry X-mas and a happy New Year. Richard D On Wednesday, December 24, 2014 2:48:18 PM UTC+1, Massimo Di Pierro wrote: I wish a happy holidays

Re: [web2py] Re: Domain model and web2py DAL

2014-12-24 Thread Michele Comitini
In DAL it can be done like one single command: db.define_table('my_items', Field('name', 'string', length=100), Field('description', 'string', length=400), Field('priority', 'integer'), Field('creator_id', 'reference user'), Field('dept_id', 'reference

Re: [web2py] Re: sublime text 3

2014-12-24 Thread al ex
I use Sublime Text 3 and installed Pakage Manager, SublimeLinter and Pylint as indicated in http://www.sublimelinter.com/en/latest/installation.html Then, in Sublime Text | Preferences | Package Settings | SublimeLinter | Settings - User I have set linters / pylint / paths as follows {

[web2py] Re: happy holidays everybody

2014-12-24 Thread samuel bonill
The links on https://pypi.python.org/pypi/pyDAL are brokens El miércoles, 24 de diciembre de 2014 08:48:18 UTC-5, Massimo Di Pierro escribió: I wish a happy holidays to everybody in this community. As a Christmas present and mostly the work of Giovanni Barillari we have re-released the

[web2py] Re: happy holidays everybody

2014-12-24 Thread Vladimir Makarov
I wish you merry Christmas and happy New Year Massimo and everybody of this community. Web2py changed my mind and now all my projects are lovengly built with web2py! Thank you... On Wednesday, December 24, 2014 4:48:18 PM UTC+3, Massimo Di Pierro wrote: I wish a happy holidays to everybody