[web2py] How to properly connect to .css and .js ?

2015-04-01 Thread Mirek Zvolský
Hi, I like the approach not start the application from scratch, but to use the scaffolding application: db.py, layout.html, web2py_ajax.html. To have good possibility to upgrade between web2py versions, it is good to do no or minimal changes to previous files. So I try to make my own database m

Re: [web2py] Re: Cloning SQLlite into PostgreSQL

2015-04-01 Thread Mirek Zvolský
>> export the whole database to csv and import it through web2py, the integrity of the references will be preserved. What for magic...? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/i

Re: [web2py] Re: Cloning SQLlite into PostgreSQL

2015-04-01 Thread Johann Spies
On 31 March 2015 at 20:19, Gael Princivalle wrote: > Thanks Ron but:with CSV export: > auth_user_iduser > 3 John > 7 Sally > > And then you import your CSV file you will have: > auth_user_iduser > 1

[web2py] Re: 2.10.1 / Windows errors / cache

2015-04-01 Thread Kiran Subbaraman
Here is the screenshot of the message I see, when I try to clean the app, via the admin app. This is not something that I see all the time, but does occur frequently enough. On Thursda

[web2py] Re: 2.10.1 / Windows errors / cache

2015-04-01 Thread Kiran Subbaraman
Leonel, Thank you for trying to replicate the issue - am guessing you replicated the "cleaning up of the cache issue", and not the "issue while using the cache itself"? I went ahead and refreshed the web2py repo (with your latest PR in it), and tried to test for these issues. I can confirm that

[web2py] Re: New modular DAL!

2015-04-01 Thread Anthony
The functionality/API hasn't changed. The DAL has simply been moved to its own repository (so it can more easily be used outside of web2py), and it has been divided up into separate modules instead of being one big file. Anthony On Wednesday, April 1, 2015 at 11:37:33 PM UTC-4, Ron Chatterjee w

[web2py] New modular DAL!

2015-04-01 Thread Ron Chatterjee
Hello all, I am looking at the changelog for 2.10.1 and it says, " new modular dal" Can someone give me a simple example of what new modular dal is as oppose to regular DAL that we are used to, like db.define_table('table_name',Field('field_name',...))? -- Resources: - http://web2py.com - htt

[web2py] Re: Difference between response.files.insert() and URL(), and congratulations on v2.10

2015-04-01 Thread Anthony
On Wednesday, April 1, 2015 at 7:45:10 PM UTC-4, Tom Campbell wrote: > > (First--congrats on v2.10 and thanks to all you contributors for an > incredible framework.) > > What's the difference between these two lines of code? > > > response.files.insert(1,URL('static','adminlte/bootstrap/css/bootst

[web2py] web2py Complete Reference Manual

2015-04-01 Thread joseph simpson
I like hard copy books.. If the new web2py Complete Reference Manual is ever updated to the 6th edition for hard copy publication, please consider making the book larger. Make the pages longer and make the pages wider, so the book will not be so thick and will have the tendency to stay open and l

[web2py] Re: manually update password

2015-04-01 Thread José Eloy
Hello Niphlod *Because I've *modified* the presentation of the form (I use check boxes to represent multiselect box) and save another variables that they aren't part of the form.* All I need is to know how to recover the password value and save if this changed. Regards. -- Resources: - h

[web2py] Difference between response.files.insert() and URL(), and congratulations on v2.10

2015-04-01 Thread Tom Campbell
(First--congrats on v2.10 and thanks to all you contributors for an incredible framework.) What's the difference between these two lines of code? response.files.insert(1,URL('static','adminlte/bootstrap/css/bootstrap.min.css')) -- Resources: - http://web2py.com - http://web2py.com/book (Docu

[web2py] Re: Cloning SQLlite into PostgreSQL

2015-04-01 Thread Ron Chatterjee
Here is the link he was referring to: https://groups.google.com/forum/#!searchin/web2py-developers/sqlite$20postgres/web2py-developers/QxeJNByj6qc/cpBHsa1ymUkJ On Tuesday, March 31, 2015 at 3:25:29 PM UTC-4, Willoughby wrote: > > I was referring to the script from Alan Etkin in your first post.

[web2py] Re: how to display foreign language symbols

2015-04-01 Thread Alex Glaros
Niphold, I don't know how to apply that information to this web2py upload project. avoiding Excel, I edited with vi editor (replaced commas with semicolons, then replaced tabs with commas) that worked and web2py imported symbols correctly but now I get this error: field larger than field limi

[web2py] Re: open source GIS components

2015-04-01 Thread Dave S
On Wednesday, February 18, 2015 at 3:58:02 PM UTC-8, Serbulent Ocal wrote: > > > Hello, > > I am new in web2py. > > Could someone guide me about how to use open source GIS components > (geoserver, openlayers, postgresql) with web2py? > I would like to develop a web based GIS app with web2py and

[web2py] Re: mod_wsgi error caused (maybe) by css transferred with MIME type text/plain

2015-04-01 Thread Dave S
On Wednesday, April 1, 2015 at 2:39:07 PM UTC-7, Dave S wrote: > > > > On Wednesday, April 1, 2015 at 1:39:09 PM UTC-7, Massimo Di Pierro wrote: >> >> it works for me. What page exactly is spinning endlessly? >> > > default/download eventually stopped spinning and issued a ticket: > Ticket issued

[web2py] Re: mod_wsgi error caused (maybe) by css transferred with MIME type text/plain

2015-04-01 Thread Dave S
On Wednesday, April 1, 2015 at 1:39:09 PM UTC-7, Massimo Di Pierro wrote: > > it works for me. What page exactly is spinning endlessly? > default/download eventually stopped spinning and issued a ticket: Ticket issued: init/216.174.116.238.2015-04-01.20-25-51.8c0f2117-b0bb-4947-abf0-a1c06d0c572

[web2py] Re: Is there any example or plugin for threaded comments?

2015-04-01 Thread Najtsirk
Maybe I do not use the right expresion. I want that users can be able to reply on comments and that this is shown in kind of a indented layout. In the redidclone there is a self-referencing field, but there is no implementation in terms of output. I was looking db().select().as_trees() impleme

[web2py] Re: how to display foreign language symbols

2015-04-01 Thread Niphlod
they handle foreign files with https://docs.python.org/2/library/codecs.html as it's supposed to be ^_^ On Wednesday, April 1, 2015 at 11:08:42 PM UTC+2, Alex Glaros wrote: > > wait > > I closed and opened Excel and question marks are there. Probably not > web2py's fault then. > > So update

[web2py] Re: how to display foreign language symbols

2015-04-01 Thread Alex Glaros
wait I closed and opened Excel and question marks are there. Probably not web2py's fault then. So updated question is how do most people take tab delimited table and convert to CSV so web2py can import? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://gi

[web2py] how to display foreign language symbols

2015-04-01 Thread Alex Glaros
when importing table of world cities http://download.geonames.org/export/dump/cities1000.zip appadmin seems to have lost foreign symbols, e.g originally looked like this: Ordino,ao er di nuo,orudino jiao qu,Ордино,オルディノ教区,奥尔迪诺 they are

[web2py] Re: SQLite: select within transaction

2015-04-01 Thread Val K
OK, it's clear! I have to organise semaphore I've done something like this while not db((db.table.id == x) & (db.table. hidden == False)).update(hidden=True) : sleep(some time) db.commit() to imitate record locking. Many thanks! On Wednesday, April 1, 2015 at 12:35:

[web2py] Re: mod_wsgi error caused (maybe) by css transferred with MIME type text/plain

2015-04-01 Thread Massimo Di Pierro
it works for me. What page exactly is spinning endlessly? On Wednesday, 1 April 2015 15:21:11 UTC-5, Dave S wrote: > > > > On Wednesday, April 1, 2015 at 1:09:44 PM UTC-7, Niphlod wrote: >> >> >> The whole set of tricks to deploy web2py in production is DEEPLY covered >> in the book, so I'll lea

[web2py] Re: Is there any example or plugin for threaded comments?

2015-04-01 Thread Massimo Di Pierro
Not as I would do it today but this old app had threaded comments: https://github.com/mdipierro/web2py-appliances/tree/master/RedditClone On Wednesday, 1 April 2015 15:18:26 UTC-5, Najtsirk wrote: > > HI, > > I am searching for the best solution for threaded comments. Do anybody of > you have pl

[web2py] Re: mod_wsgi error caused (maybe) by css transferred with MIME type text/plain

2015-04-01 Thread Dave S
On Wednesday, April 1, 2015 at 1:09:44 PM UTC-7, Niphlod wrote: > > > The whole set of tricks to deploy web2py in production is DEEPLY covered > in the book, so I'll leave up to you the "document myself" part. > I'm not getting the PythonAnywhere error page today, but web2py.com is spinning en

[web2py] Is there any example or plugin for threaded comments?

2015-04-01 Thread Najtsirk
HI, I am searching for the best solution for threaded comments. Do anybody of you have plugin or at least example of implementation? Best, Kristjan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.c

[web2py] Re: mod_wsgi error caused (maybe) by css transferred with MIME type text/plain

2015-04-01 Thread Niphlod
On Wednesday, April 1, 2015 at 9:58:21 PM UTC+2, weheh wrote: > > I'm not sure if this is a problem or not? > > let's just say it's not a config I'd deploy in production. The whole point of static files is that you don't need any python to ship them, and given you have apache.. using web2py

[web2py] Re: mod_wsgi error caused (maybe) by css transferred with MIME type text/plain

2015-04-01 Thread weheh
I'm not sure if this is a problem or not? On Tuesday, March 31, 2015 at 11:39:07 PM UTC-7, Niphlod wrote: > > you're serving static files with no versioning and with web2py ... > > >1. x-powered-by: >web2py > > > > On Wednesday, April 1, 2015 at 4:43:52 AM UTC+2, weheh wrote: >> >

[web2py] Re: mod_wsgi error caused (maybe) by css transferred with MIME type text/plain

2015-04-01 Thread weheh
I researched a bug in Apache/wsgiserver and my ISP installed a newer version. The problem went away, so it appears to have been a bug in that layer of the stack. On Tuesday, March 31, 2015 at 11:40:50 PM UTC-7, Niphlod wrote: > > the file served wrong come from cloudflare though > > >1. cac

[web2py] Re: web2py 2.10.1 is OUT

2015-04-01 Thread rif
I reproduced the issue and opened a ticket on github. miercuri, 1 aprilie 2015, 17:44:39 UTC+3, Niphlod a scris: > > beware of the dog: since now pydal is a subrepo, releases on github don't > carry the subrepo in it. > > On Wednesday, April 1, 2015 at 4:07:17 PM UTC+2, rif wrote: >> >> I can't r

[web2py] Re: 2.10.1 / Windows errors / cache

2015-04-01 Thread Leonel Câmara
Kiran I had some trouble replicating with 2.10.2 but after putting 6 tabs auto refreshing in the initial page and another tab in the admin cleaning I started seeing the error both with the cache and session. I patched app_cleanup so it would not throw an error when it encountered locked files a

[web2py] Re: Servidor Web2py Modo Produção

2015-04-01 Thread Leonel Câmara
Ahahah you probably should go to the Brazilian users group. I recommend nginx I have been very happy with it. -- 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)

Re: [web2py] rewrite url

2015-04-01 Thread Philip Kilner
Hi Kurt, On 01/04/15 13:44, Kurt Stieger wrote: Hi, I have installed web2py on a webserver with a other webapplication on it. Is it possible that web2py lives in a subdirectory. As example the legacy web application hat the url: http://www.my-fancy-server.com The web2py application should be

[web2py] Re: rewrite url

2015-04-01 Thread Niphlod
using routes.py, something like routes_in = ( ('/web2py/$anything', '/$anything'), ) routes_out = [(x, y) for (y, x) in routes_in] should suffice I prefer being more conservative and allow only "proper" app names given you'd like to publish the app named "myapp", it would be routes

[web2py] Please report here upgrading issues to web2py 2.10.2

2015-04-01 Thread Massimo Di Pierro
Please report here upgrading issues to web2py 2.10.2 from which version? which os? which python version? what is the problem? complete traceback -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/

[web2py] rewrite url

2015-04-01 Thread Kurt Stieger
Hi, I have installed web2py on a webserver with a other webapplication on it. Is it possible that web2py lives in a subdirectory. As example the legacy web application hat the url: http://www.my-fancy-server.com The web2py application should be reachable for evaluation on: http://www.my-fancy-

[web2py] Servidor Web2py Modo Produção

2015-04-01 Thread Israel Filgueira
OLA GALERA, Gostaria de saber qual o servidor de aplicação python, mas recomendado para rodar aplicação de grande porte feito em web2py -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/is

[web2py] Best practices for external form submission?

2015-04-01 Thread Philip Kilner
Hi, I have a web2py app that sits as a WSGI application within a Wordpress site. All works well, but I need to have a form in the WP home page that submits to an (essentially identical) SQLFORM within the web2py app, and displays its errors as if submitted on the web2py page as opposed to the

[web2py] Re: web2py 2.10.1 is OUT

2015-04-01 Thread Niphlod
beware of the dog: since now pydal is a subrepo, releases on github don't carry the subrepo in it. On Wednesday, April 1, 2015 at 4:07:17 PM UTC+2, rif wrote: > > I can't reproduce the issue using zipped releases from github. > > miercuri, 1 aprilie 2015, 17:00:59 UTC+3, rif a scris: >> >> The re

[web2py] Re: web2py 2.10.1 is OUT

2015-04-01 Thread rif
I can't reproduce the issue using zipped releases from github. miercuri, 1 aprilie 2015, 17:00:59 UTC+3, rif a scris: > > The releases from here look > different from what we have, a little confusing. > > miercuri, 1 aprilie 2015, 16:45:09 UTC+3, Massim

[web2py] Re: mod_wsgi error caused (maybe) by css transferred with MIME type text/plain

2015-04-01 Thread Jim S
Was just wondering if you were dealing with 64 bit. But that doesn't appear to be the issue. -Jim On Tuesday, March 31, 2015 at 8:55:56 PM UTC-5, weheh wrote: > > Thanks, Jim. 32-bit Apache Version 2.2.x mod-wsgi for python 2.7 > > On Tuesday, March 31, 2015 at 1:46:26 PM UTC-7, Jim S wrote: >

[web2py] Re: web2py 2.10.1 is OUT

2015-04-01 Thread rif
The releases from here look different from what we have, a little confusing. miercuri, 1 aprilie 2015, 16:45:09 UTC+3, Massimo Di Pierro a scris: > > What version were you upgrading from? -- Resources: - http://web2py.com - http://web2py.com/book (Doc

[web2py] Re: web2py 2.10.1 is OUT

2015-04-01 Thread rif
It was exactly the previous one. miercuri, 1 aprilie 2015, 16:45:09 UTC+3, Massimo Di Pierro a scris: > > What version were you upgrading from? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/w

[web2py] Re: Python 101

2015-04-01 Thread Mirek Zvolský
temp1 object exist only once. temp1 variable is a reference to that object. In temp.append(temp1) you add the reference as item to the list, so finally you have list with 3 items: 3 references to the same object. Now, when you change*) the object, it changes, and all variables referencing it, wil

[web2py] Re: web2py 2.10.1 is OUT

2015-04-01 Thread Massimo Di Pierro
What version were you upgrading from? -- 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 G

Re: [web2py] Re: Python 101

2015-04-01 Thread António Ramos
Got it My confusion was why the three equal elements Now i see it clearly If i add the temp1 3 times to temp, when i change it for the last time inside the loop it changes all the 3 elements inside the full list temp. Thank you 2015-04-01 14:21 GMT+01:00 Anthony : > In the first example, you

Re: [web2py] Re: Python 101

2015-04-01 Thread Anthony
In the first example, you have only a single dictionary (created outside the loop). You then append that single dictionary to a list multiple times. Each item in the list is still just that single dictionary (you are not creating separate copies of the dictionary). In the first loop, you are se

[web2py] Re: Python 101

2015-04-01 Thread Sundar
Python is treating the dictionary as a pure object where the reference is maintained and whatever changes you do (other than redefining it) results in the same changes reflected in all the places where the object occurs. In the first set of code, you are not redefining the dictionary (temp1) and

[web2py] Re: web2py 2.10.1 is OUT

2015-04-01 Thread rif
It looks there is something else that does not get updated properly. Moving the apps in a freshly unzipped web2py instance fixes this issue. miercuri, 1 aprilie 2015, 14:30:19 UTC+3, rif a scris: > > If you performed an update make sure you have the latest welcome app code. > > miercuri, 1 april

[web2py] Re: Web2py 2.10.1 error: define_table argument is not a Field or Table

2015-04-01 Thread Najtsirk
That works!Tnx! On Wednesday, 1 April 2015 14:31:28 UTC+2, rif wrote: > > well, what you can try is to get the latest web2py version, unzip it and > then copy your apps in your new web2py instance. > > It might be something wrong with the update process. > > miercuri, 1 aprilie 2015, 15:25:58 UTC

Re: [web2py] Re: Python 101

2015-04-01 Thread António Ramos
The 2nd example is bullet proof. However the 1st example should work also because if i print temp1 before append temp1 to the temp var i see it like {'a': 0, 'c': 0, 'b': 0} {'a': 1, 'c': 1, 'b': 1} {'a': 2, 'c': 2, 'b': 2} temp=[] temp1={'a':0,'b':0,'c':0} for x in range(3): temp1['a']=x

[web2py] Re: Web2py 2.10.1 error: define_table argument is not a Field or Table

2015-04-01 Thread rif
well, what you can try is to get the latest web2py version, unzip it and then copy your apps in your new web2py instance. It might be something wrong with the update process. miercuri, 1 aprilie 2015, 15:25:58 UTC+3, Najtsirk a scris: > > It's not working for me. > > On Wednesday, 1 April 2015 1

[web2py] Re: Web2py 2.10.1 error: define_table argument is not a Field or Table

2015-04-01 Thread Najtsirk
It's not working for me. On Wednesday, 1 April 2015 13:28:38 UTC+2, rif wrote: > > I fixed this by deleting the welcome app and replacing it with the one > from the latest version. > > miercuri, 1 aprilie 2015, 13:29:24 UTC+3, Najtsirk a scris: >> >> Hi, >> >> i get this error with Web2py 2.10.1

[web2py] Re: idea: new helpers

2015-04-01 Thread Anthony
I don't think we want helpers specific to particular front-end frameworks (at least not in the web2py core -- would be fine as a plugin). Anthony On Wednesday, April 1, 2015 at 1:51:26 AM UTC-4, Dmitry Ermolaev wrote: > > DIV( _class='row my_class') => ROW(_class='my_class') > > DIV( _class='c

[web2py] Re: Python 101

2015-04-01 Thread Leonel Câmara
The difference is that in the second example you're creating the dictionary inside the loop. In the first example you create the dictionary outside so each step of the loop is modifying the same dictionary and then you put that same dictionary 3 times in the list. -- Resources: - http://web2py

[web2py] Python 101

2015-04-01 Thread António Ramos
Please explain why this code temp=[] temp1={'a':0,'b':0,'c':0} for x in range(3): temp1['a']=x temp1['b']=x temp1['c']=x temp.append(temp1) print temp prints [{'a': 2, 'c': 2, 'b': 2}, {'a': 2, 'c': 2, 'b': 2}, {'a': 2, 'c': 2, 'b': 2}] instead of [{'a': 0, 'c': 0, 'b': 0}, {'

[web2py] Re: web2py 2.10.1 is OUT

2015-04-01 Thread rif
If you performed an update make sure you have the latest welcome app code. miercuri, 1 aprilie 2015, 12:22:37 UTC+3, Najtsirk a scris: > > *When I create new simple application, i get this error:* > > SyntaxError: define_table argument is not a Field or Table: table>.is_active > > > On Wednesday,

[web2py] Re: Web2py 2.10.1 error: define_table argument is not a Field or Table

2015-04-01 Thread rif
I fixed this by deleting the welcome app and replacing it with the one from the latest version. miercuri, 1 aprilie 2015, 13:29:24 UTC+3, Najtsirk a scris: > > Hi, > > i get this error with Web2py 2.10.1 on all applications: > > syntaxError: define_table argument is not a Field or Table: . > is_a

Re: [web2py] Re: idea: new helpers

2015-04-01 Thread Marin Pranjić
Dmitry, you can create your own custom helpers and use them in your app. On Wed, Apr 1, 2015 at 8:30 AM, Niphlod wrote: > hell no! > > > On Wednesday, April 1, 2015 at 7:51:26 AM UTC+2, Dmitry Ermolaev wrote: >> >> DIV( _class='row my_class') => ROW(_class='my_class') >> >> DIV( _class='col-sm

[web2py] Re: Web2py 2.10.1 error: define_table argument is not a Field or Table

2015-04-01 Thread Osswalt
Same error here. Oss. -- 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-

[web2py] Web2py 2.10.1 error: define_table argument is not a Field or Table

2015-04-01 Thread Najtsirk
Hi, i get this error with Web2py 2.10.1 on all applications: syntaxError: define_table argument is not a Field or Table: . is_active Don't know how to fix it. Best, kristjan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source co

[web2py] Re: web2py 2.10.1 is OUT

2015-04-01 Thread Najtsirk
*When I create new simple application, i get this error:* SyntaxError: define_table argument is not a Field or Table: .is_active On Wednesday, 1 April 2015 00:26:18 UTC+2, Massimo Di Pierro wrote: > > - welcome app defaults to Bootstrap 3 > - DAL -> pyDAL (thanks Giovanni, Niphlod, Paolo) >

Re: [web2py] Re: web2py 2.10.1 is OUT

2015-04-01 Thread Angelo Compagnucci
Hi Massimo, The realease is not tagget in git. Could you tag it? Thank you! 2015-04-01 0:27 GMT+02:00 Massimo Di Pierro : > Also. Thanks to Kathy and Luca for all your GAE tests! > > > On Tuesday, 31 March 2015 17:26:18 UTC-5, Massimo Di Pierro wrote: >> >> - welcome app defaults to Bootstrap 3