[web2py] Re: [web2py:22132] Re: another web2py powered

2015-04-02 Thread Massimo Di Pierro
No. there is one. the app was down because of I mistake in upgrade. On Thursday, 2 April 2015 20:55:41 UTC-5, Ron Chatterjee wrote: > > So there is another web2py site? > > On Thursday, April 2, 2015 at 11:34:22 AM UTC-4, peter wrote: >> >> Powereby is down today, it gives a ticket >> > -- Reso

[web2py] Stupid Question - how do I run the pydal test suite?

2015-04-02 Thread Tom Stratton
I have google for the last hour to try and figure out how to run the unittests in the tests folder for pydal and have come up short. Is there something simple I am missing? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

[web2py] Re: Possible bug report - unicode strings in list:string field generating encode errors

2015-04-02 Thread Tom Stratton
Update - I found the bug reported here: https://github.com/web2py/web2py/issues/697 I have also suggested a fix but I am not deep enough into the code to know if it might break other behaviors. See the bug tracker for my suggested fix and let me know here if you have any thoughts about what els

[web2py] Re: From prototype to a real application. Need professional programming help

2015-04-02 Thread Ramkrishan Bhatt
Hi Richard, Me and Mr. Massimo work together for project development using Web2py. I have gone through the site and we both willing to contribute in the project. Before going ahead, could you please provide some documentation or we can discuss over internet conferencing. For development its r

[web2py] Re: route.py I added the route.py and edit it , but it didn't work

2015-04-02 Thread Ramkrishan Bhatt
its routes.py just rename it and restart the application. On Friday, 3 April 2015 04:09:54 UTC+5:30, Tom Stratton wrote: > > Did you remember to restart web2py? > > See: > http://www.ridgesolutions.ie/index.php/2013/02/20/web2py-make-your-app-the-default-web-application/ > > And there is also a "

[web2py] Re: selected values in widget SQLFORM.widgets.multiple.widget and SQLFORM.widgets.checkboxes.widget

2015-04-02 Thread Ramkrishan Bhatt
Ya its must working with type='list:string' On Friday, 3 April 2015 01:55:49 UTC+5:30, Teemu wrote: > > Hi, > > I do not know if this is bug or not but I am not able to get multiselect > widgets to work properly. I have this kind of lines in my table definition: > > Field('methodsA', type='st

[web2py] Re: For a beginner

2015-04-02 Thread Ron Chatterjee
I was being brief. Here is an idea, there is a book called realpython.com. It has a comprehensive tutorial starting with flask, then web2py and finally django. If you are unsure, you may just want to get the book and follow through the examples in the and see which framework you are most comfor

Re: [web2py] From prototype to a real application. Need professional programming help

2015-04-02 Thread Ron Chatterjee
Can you be little bit more specific? On Thursday, April 2, 2015 at 11:09:37 PM UTC-4, Kiran Subbaraman wrote: > > You could contact one of these companies / developers to partner with you > on this: http://web2py.com/init/default/support > > > Kiran Subb

Re: [web2py] From prototype to a real application. Need professional programming help

2015-04-02 Thread Kiran Subbaraman
You could contact one of these companies / developers to partner with you on this: http://web2py.com/init/default/support Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Fri, 03-04-2015 12:28 AM, Richard van der Zee wrote: I've just started a

[web2py] Re: For a beginner

2015-04-02 Thread Anthony
You can build a web application involving Elasticsearch using either framework. You should probably spend a little time playing with each framework to get a sense of which you prefer. Especially if you are new to web application development, you will likely find it easier to get going with web2

[web2py] Re: For a beginner

2015-04-02 Thread Anthony
On Thursday, April 2, 2015 at 9:52:40 PM UTC-4, Ron Chatterjee wrote: > > http://vschart.com/compare/flask/vs/web2py > Somewhat misleading -- many of the features attributed to Flask are available only via third-party extensions, not as part of the framework. Anthony -- Resources: - http://web

[web2py] Re: New modular DAL!

2015-04-02 Thread Ron Chatterjee
I see. Thank you Anthony:-) On Wednesday, April 1, 2015 at 11:50:03 PM UTC-4, Anthony wrote: > > 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 inste

[web2py] Re: [web2py:22132] Re: another web2py powered

2015-04-02 Thread Ron Chatterjee
So there is another web2py site? On Thursday, April 2, 2015 at 11:34:22 AM UTC-4, peter wrote: > > Powereby is down today, it gives a ticket > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/w

[web2py] Re: For a beginner

2015-04-02 Thread Ron Chatterjee
http://vschart.com/compare/flask/vs/web2py On Thursday, April 2, 2015 at 4:25:40 PM UTC-4, Hema wrote: > > Hello all, > > I wil be doing a project in Python & elasticsearch.. I need to create a > web application Can you pl guide me as to whether I should choose Flask > or web2py? > > with re

[web2py] Re: From prototype to a real application. Need professional programming help

2015-04-02 Thread Ron Chatterjee
I guess that is a relative question. Depends on how much you willing to pay. lol. On Thursday, April 2, 2015 at 4:25:49 PM UTC-4, Richard van der Zee wrote: > > I've just started a new business in the northern part of the Netherlands ( > www.skarp.nl). > Someone build mij idea into a web2py appl

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

2015-04-02 Thread Ron Chatterjee
Best way to call javascript and css files are from layout. and then include the layout like a sandwich inside index.html (or whatever pages you are wishing to use the jss and css). On Thursday, April 2, 2015 at 7:58:29 PM UTC-4, Derek wrote: > > ok first of all, you work with your application an

[web2py] Re: selected values in widget SQLFORM.widgets.multiple.widget and SQLFORM.widgets.checkboxes.widget

2015-04-02 Thread Anthony
What happens if you change the type to "list:string"? On Thursday, April 2, 2015 at 4:25:49 PM UTC-4, Teemu wrote: > > Hi, > > I do not know if this is bug or not but I am not able to get multiselect > widgets to work properly. I have this kind of lines in my table definition: > > Field('meth

[web2py] Re: how to display foreign language symbols

2015-04-02 Thread Alex Glaros
ran a display of data there is only one value: splitted[0] = '9' which causes "list index out of range" error how can I get the rest of the values in the line? thanks Alex -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source cod

[web2py] Re: how to display foreign language symbols

2015-04-02 Thread Alex Glaros
hint on this error? list index out of range def import_a_tab_file(): tabbed_file = open(os.path.join(request.folder,'static','cities1000.txt')).read() for line in tabbed_file: splitted = line.split('\t') db.TempCity.insert(geoNamesID = splitted[0], cityName = splitted[

[web2py] Re: sorting ip address

2015-04-02 Thread Derek
Wrong again. You really should just go to sleep. First, you need to convert your IP addresses to decimal representation, then sort them. import socket, struct def ip2long_1(ip): return struct.unpack("!L", socket.inet_aton(ip))[0] On Tuesday, March 31, 2015 at 3:52:51 PM UTC-7, Niphlod wro

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

2015-04-02 Thread Derek
ok first of all, you work with your application and you should just modify your db.py, layout.html and etc. You should not worry about not having the same thing as in the scaffolding in the latest versions, because as you are aware, web2py is fully backwards compatible. So if your application wo

[web2py] StackShare

2015-04-02 Thread Louis Amon
Just pointing out that web2py should be on StackShare , same as Django and other frameworks. It's not really my place to build web2py's vendor profile so I'll leave that to it's founders (@MassimoDiPierro) I'm using it (as text for now, s

[web2py] Re: route.py I added the route.py and edit it , but it didn't work

2015-04-02 Thread Tom Stratton
Did you remember to restart web2py? See: http://www.ridgesolutions.ie/index.php/2013/02/20/web2py-make-your-app-the-default-web-application/ And there is also a "reload routes" button in the admin interface. Hope that helps. On Thursday, April 2, 2015 at 1:25:43 PM UTC-7, 朱伟 wrote: > > I wrote

[web2py] web2py 2.10.3 si OUT

2015-04-02 Thread Massimo Di Pierro
I posted a new version to address some minor issues. If you upgrade from 2.9.11 or 2.9.12 the auto update may not work and you have to delete the file: web2py/gluon/dal -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

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

2015-04-02 Thread Brian M
I think that Weheh may be on to something. I had been using Apache 2.2.22 and just grabbed a fresh copy of 2.2.29 from Apache Lounge and tried it out on my desktop and it appears that static files are now being served directly by Apache rather

[web2py] Re: Please report here upgrading issues to web2py 2.10.2

2015-04-02 Thread Jim S
Version 2.10.1-stable+timestamp.2015.04.01.03.27.40 I have one table with record versioning turned on. I get the following in my nginx setup... nginx 502 Bad Gateway Looking in the nginx log I see: 2015/04/02 15:37:13 [error] 1040#0: *67 upstream prematurely closed connection while reading r

[web2py] Re: how to display foreign language symbols

2015-04-02 Thread Niphlod
I'm not going to give you the complete solution... a) use https://docs.python.org/2/library/codecs.html to open the file b) use os.path.join to concatenate pieces of paths to build the file location c) assuming splitted = line.split('\t') you're going to get a list of values for every row. ge

[web2py] Possible bug report - unicode strings in list:string field generating encode errors

2015-04-02 Thread Tom Stratton
Hi - I am working with some unicode lists that I am inserting into a postgres database. From the documentation I see that fields of type list:string are converted to | separated strings before being inserted into the db. When attempting to insert a list of values that contains unicode charact

[web2py] For a beginner

2015-04-02 Thread Hema
Hello all, I wil be doing a project in Python & elasticsearch.. I need to create a web application Can you pl guide me as to whether I should choose Flask or web2py? with regards to all, -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/

[web2py] Re: Facing problem of settingup web2py project in Eclipse.

2015-04-02 Thread Revanth Gopi
were you able to resolve that problem ? On Friday, July 20, 2012 at 10:49:29 AM UTC+5:30, Amit wrote: > > Hi, > I followed below link to configure Web2py project in eclipse: > > http://allisterx.blogspot.in/2009/06/using-web2py-framework-on-eclipse.html > > but after setting up when i open my app

[web2py] route.py I added the route.py and edit it , but it didn't work

2015-04-02 Thread 朱伟
I wrote it like this. routers = dict( # base router BASE=dict( default_application='Home', ), ) did I miss something? Thanks Wei -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.

[web2py] From prototype to a real application. Need professional programming help

2015-04-02 Thread Richard van der Zee
I've just started a new business in the northern part of the Netherlands (www.skarp.nl). Someone build mij idea into a web2py application, as a proof of concept. Now it needs to become a real, multi tenant, secure application with an user friendly interface. Are there professional web2py develo

[web2py] selected values in widget SQLFORM.widgets.multiple.widget and SQLFORM.widgets.checkboxes.widget

2015-04-02 Thread Teemu
Hi, I do not know if this is bug or not but I am not able to get multiselect widgets to work properly. I have this kind of lines in my table definition: Field('methodsA', type='string', requires=IS_IN_SET(['method1','method2','method3'], multiple=True, zero='<-- choose -->'), widget=SQLFOR

[web2py] Re: how to display foreign language symbols

2015-04-02 Thread Alex Glaros
okay, have been approaching the wrong way. Can you please help me write the correct code? Here's first attempt: def import_a_tab_file(): rows = open(filename, 'cities1000.txt') ## question: what directory is source file in? for row in rows: db.City.insert(city_name = line.split(

[web2py] Re: Compute expiry date

2015-04-02 Thread Dave S
On Thursday, April 2, 2015 at 6:46:30 AM UTC-7, Annet wrote: > > I a table I defined the following field: > > Field('expiryDate', type='date', > requires=IS_EMPTY_OR(IS_DATE(format='%d-%m-%Y')) > > By default the expiryDate is set to request.now, since there's no need to > monthly update > the

[web2py] Re: how to display foreign language symbols

2015-04-02 Thread Niphlod
why do you need appadmin ? it doesn't import any csv you have lying around.. code a loop over your nicely tab separated lines that inserts into your table. On Thursday, April 2, 2015 at 9:03:07 PM UTC+2, Alex Glaros wrote: > > am trying to import geonames.org cites/countries files, which are

Fw: [web2py] Compute expiry date

2015-04-02 Thread Marco Mansilla
El Thu, 2 Apr 2015 06:46:30 -0700 (PDT) Annet escribió: > I a table I defined the following field: > > Field('expiryDate', type='date', > requires=IS_EMPTY_OR(IS_DATE(format='%d-%m-%Y')) > > By default the expiryDate is set to request.now, since there's no > need to monthly update > the expiry

[web2py] Re: how to display foreign language symbols

2015-04-02 Thread Alex Glaros
am trying to import geonames.org cites/countries files, which are tab delimited I guess the linux "tr" command is a good choice tr '\t' ',' < cities1000.txt > comma-delimited-file Question: is CSV the only format appadmin accepts? -- Resources: - http://web2py.com - http://web2py.com/book (Do

[web2py] Re: how to display foreign language symbols

2015-04-02 Thread Niphlod
nope. if you need to parse a tab separated file, why on earth would you want to convert it to a csv ? On Thursday, April 2, 2015 at 6:31:45 PM UTC+2, Alex Glaros wrote: > > this looks like something that would be very valuable to me but I don't > know what it is. Can you please explain explicit

[web2py] Re: High Memory usage due to uploads_in_blob

2015-04-02 Thread Mandar Vaze
On Thursday, April 2, 2015 at 7:50:29 PM UTC+5:30, Paolo Valleri wrote: > > That is a bug because Grid selects the 'hidden' doc_blob field. > Please open an issue on github > https://github.com/web2py/web2py/issues/896 -Mandar -- Resources: - http://web2py.com - http://web2py.com/book (Docume

Re: [web2py] Re: High Memory usage due to uploads_in_blob

2015-04-02 Thread Mandar Vaze / मंदार वझे
Paolo, On Thu, Apr 2, 2015 at 7:58 PM, Paolo Valleri wrote: > Try to change > https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L2151 > with > filter1 = lambda f: isinstance(f, Field) and f.type != 'blob' > Thanks for the workaround. > On Thursday, April 2, 2015 at 4:20:29 PM UTC+

[web2py] Re: how to display foreign language symbols

2015-04-02 Thread Alex Glaros
this looks like something that would be very valuable to me but I don't know what it is. Can you please explain explicitly? is it replacing all tabs with a comma? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https:

[web2py] Re: how to display foreign language symbols

2015-04-02 Thread Niphlod
is a tool really needed ? for line in file: values = line.split('\t') . On Thursday, April 2, 2015 at 12:33:54 AM UTC+2, Alex Glaros wrote: > > Niphlod, I don't know how to apply that information to this web2py upload > project. > > avoiding Excel, I edited with vi editor (repla

[web2py] Re: manually update password

2015-04-02 Thread Niphlod
with the default widget, a password is holds an "8 asterisks signs" string (). When you receive them, you shouldn't assume password changed. if you're not receiving 8 asterisks back, than that var is holding the password the user has set. On Thursday, April 2, 2015 at 1:52:31 AM UTC+2,

[web2py] Re: [web2py:22132] Re: another web2py powered

2015-04-02 Thread peter
Powereby is down today, it gives a ticket -- 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 Goog

[web2py] Re: SQLFORM question of formstyle and hidden inputs

2015-04-02 Thread lucas
omg, i am a dumba$$. they are there, they are under a different div south of the submit. it escaped my eye. sorry anthony. lucas -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issue

[web2py] Re: High Memory usage due to uploads_in_blob

2015-04-02 Thread Paolo Valleri
Try to change https://github.com/web2py/web2py/blob/master/gluon/sqlhtml.py#L2151 with filter1 = lambda f: isinstance(f, Field) and f.type != 'blob' Paolo On Thursday, April 2, 2015 at 4:20:29 PM UTC+2, Paolo Valleri wrote: > > That is a bug because Grid selects the 'hidden' doc_blob field. > P

[web2py] Re: High Memory usage due to uploads_in_blob

2015-04-02 Thread Paolo Valleri
That is a bug because Grid selects the 'hidden' doc_blob field. Please open an issue on github Paolo On Thursday, April 2, 2015 at 11:03:15 AM UTC+2, Mandar Vaze wrote: > > Hi, > > I have an application that uses uploads_in_blob feature as follows : > > db._adapter.uploads_in_blob = True > >

[web2py] Github tagged releases

2015-04-02 Thread Angelo Compagnucci
Dear Massimo, Developers, I'm in the process of proposing a package for inclusion in buildroot. Buildroot unfortunately doesn't embrace the concept of rolling release so and I'm wondering for a solution. The basic idea is that if I download the buildroot release 2015.02 in a year or two, it shoul

[web2py] Compute expiry date

2015-04-02 Thread Annet
I a table I defined the following field: Field('expiryDate', type='date', requires=IS_EMPTY_OR(IS_DATE(format='%d-%m-%Y')) By default the expiryDate is set to request.now, since there's no need to monthly update the expiry date, I want to calculate it when the user actually updates or cancels

[web2py] Re: SQLFORM question of formstyle and hidden inputs

2015-04-02 Thread Anthony
They should be there. Can you show your code? What version of web2py? On Thursday, April 2, 2015 at 7:24:46 AM UTC-4, lucas wrote: > > hey everyone, > > just a quick question. when i do SQLFORM of default formstyle > (table3cols) i get these hidden inputs: > > value="91a85b0c-8b34-41bb-b8b2-372

[web2py] Re: error: generic_patterns = []

2015-04-02 Thread Anthony
The code included in the scaffolding app is intended to disable all generic views by default unless the requests are local (this is for security reasons, as the generic views can expose data not intended to be exposed). We do not want to enable generic.html by default either. Are you finding ge

[web2py] SQLFORM question of formstyle and hidden inputs

2015-04-02 Thread lucas
hey everyone, just a quick question. when i do SQLFORM of default formstyle (table3cols) i get these hidden inputs: and i get that when the form is submitted, it uses these to properly id the form and such. however, why is it that when i do an SQLFORM of formstyle='divs' that these hidden

Re: [web2py] Re: Cloning SQLlite into PostgreSQL

2015-04-02 Thread Gael Princivalle
Hi Philip. Using UUIDs make the db slower right? http://simononsoftware.com/how-to-store-uuids-in-postgresql/ And you can't store a record like that: my_record = db.my_table(1) Il giorno giovedì 2 aprile 2015 10:52:20 UTC+2, Philip Kilner ha scritto: > > Hi Mirek, > > On 02/04/15 09:35, Mirek Zv

[web2py] Re: 2.10.1 / Windows errors / cache

2015-04-02 Thread Leonel Câmara
> > 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"? No no, I solved both issues that's why I had to have a multitude of browser tabs opens auto-refreshing to replicate the issu

[web2py] AlterEgo

2015-04-02 Thread Philip Kilner
Hi, Just a quick note to report that AlterEgo is throwing tickets for me: - http://www.web2py.com/AlterEgo/default/index HTH -- Regards, PhilK 'a bell is a cup...until it is struck' -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2

[web2py] High Memory usage due to uploads_in_blob

2015-04-02 Thread Mandar Vaze
Hi, I have an application that uses uploads_in_blob feature as follows : db._adapter.uploads_in_blob = True This creates an additional column of BYTEA type at the DB Level (I am using postgres, if it matters) Here is a sample table (This is just to give you the idea, this is not the exact

Re: [web2py] Re: Cloning SQLlite into PostgreSQL

2015-04-02 Thread Philip Kilner
Hi Mirek, On 02/04/15 09:35, Mirek Zvolský wrote: But I don't understand, how is it possible? The id's stay same as in source database ---or--- web2py creates a mapping based on db model and changes foreign keys with primary keys together? New IDs are assigned, so links (e.g. FKs) will be mai

Re: [web2py] Re: Cloning SQLlite into PostgreSQL

2015-04-02 Thread Mirek Zvolský
But I don't understand, how is it possible? The id's stay same as in source database ---or--- web2py creates a mapping based on db model and changes foreign keys with primary keys together? Dne čtvrtek 2. dubna 2015 9:08:55 UTC+2 Gael Princivalle napsal(a): > > Well it's always a shame to see t

[web2py] error: generic_patterns = []

2015-04-02 Thread Dmitry Ermolaev
When I make new app by Wizard if make in db.py response.generic_patterns = ['*'] if request.is_local else [] and all others controllers is disabled! please insert this code instead in db.py: response.generic_patterns = ['*'] if request.is_local else ['html'] -- Resources: - http://web2py.com -

Re: [web2py] Re: Cloning SQLlite into PostgreSQL

2015-04-02 Thread Gael Princivalle
Well it's always a shame to see that the answer was in the web2py book. So shame on me, and thanks to all. CSV all tables at once works perfectly. Il giorno giovedì 2 aprile 2015 08:39:42 UTC+2, Mirek Zvolský ha scritto: > > >> export the whole database to csv and import it through web2py, the >