[web2py] Default value for upload filename

2013-09-27 Thread Martin Weissenboeck
Hi, I have a SQLFORM with a field with type="upload". How can I prepare a "start value" for the filename? Regards, Martin (Sorry - maybe I have sent this questiion twice) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] grid, smartgrid and ignore_default_filters

2013-09-27 Thread Martin Weissenboeck
Hi, I am using default filters at many places. Now I want to bulid a grid or a smartgrid, but I have to set "ignore_default_filters=True". How can it be done? The parameter"query" seems not be the right way. Regards, Martin -- Resources: - http://web2py.com - http://web2py.com/book (Documentatio

[web2py] smartgrid and represent

2013-09-27 Thread Mirko
Hi, I'm using 2.5.1 and I defined a table with a default format which I override in my controller with "represent" attribute and then I call smartgrid on another table referencing the first one. When I call the controller, smartgrid shows a tabular display and the representation I overrode is

[web2py] Re: Default value for upload filename

2013-09-27 Thread Niphlod
you can't "preselect" a value for it, no browser will allow a web page to "automatically" fetch a file on the client's computer it's a security issue and I'm not sure it will ever be supported . NB: it's a "problem" of the browser, not web2py's Il giorno venerdì 27 settembre 2013 10:05:03

Re: [web2py] Re: Default value for upload filename

2013-09-27 Thread Martin Weissenboeck
Good pioint - thank you for the explanation. 2013/9/27 Niphlod > you can't "preselect" a value for it, no browser will allow a web page to > "automatically" fetch a file on the client's computer it's a security > issue and I'm not sure it will ever be supported . NB: it's a "problem" of >

[web2py] Re: Virtual Fields and Smartgrid not working as expected

2013-09-27 Thread hiro
Small bump, this error is still present in latest stable version. On Thursday, September 19, 2013 10:49:35 AM UTC+2, hiro wrote: > > In the book I read: > > *Showing virtual fields in SQLFORM.grid and smartgrid* > In recent versions of web2py, virtual fields are shown in grids like > normal field

[web2py] Re: smartgrid and represent

2013-09-27 Thread Mirko
Here's a code example : db definition: db.define_table('person', Field('name'), format='%(name)s') db.define_table('thing', Field('name'), Field('owner_id','reference person'), format='%(name)s') controller: def manage_test(): db.thing.owner_id.represent=lambda id, row: '%s' % db.person[ro

[web2py] Re: Virtual Fields and Smartgrid not working as expected

2013-09-27 Thread Mirko
Hi, I confirm this error here with 2.5.1 Ciao ciao Mirko On Thursday, September 19, 2013 10:49:35 AM UTC+2, hiro wrote: > > In the book I read: > > *Showing virtual fields in SQLFORM.grid and smartgrid* > In recent versions of web2py, virtual fields are shown in grids like > normal fields: either

[web2py] Re: smartgrid and represent

2013-09-27 Thread Anthony
The dropdown on a create/edit form is not controlled by the field's represent attribute -- instead, it is the field's IS_IN_DB validator that creates the dropdown. So, you could either manually override the default IS_IN_DB validator, or just change the db.person._format attribute, which will a

[web2py] Error upload file on 2.6.4

2013-09-27 Thread Relsi Hur Maron
Hi all, I have a upload javascript in my app tha call a function in my controller to upload files. It was working fine until now, so I update my web2py to latest version and now I get te error: "not indexable" in my upload function. Well, my functions is: def upload_callback(): if 'qqfi

[web2py] Re: smartgrid and represent

2013-09-27 Thread Mirko
Hi Anthony, and thanks for answering. Actually db.person._format = lambda row: '%s' % row.name.upper() doesnt not affect the dropdown list building... I had to add this db.thing.owner_id.requires=IS_IN_DB(db,'person.id',lambda row: '%s' % row.name.upper()) to have the dropdown list in upper

[web2py] Re: from devel list

2013-09-27 Thread Loïc
>Shortly, my point is that at the moment web2py is filling specific niche >of being mostly used in intranet and/or smaller apps, but by having >general CMS/ecommerce app ala Mezzanine/Cartridge, the usage of the >framework could exponentially increase considering other 'pros' of the >framework.

Re: [web2py] Re: Error trying to view Errors for my app

2013-09-27 Thread Jim S
Thanks - Went into admin and did a Clean. Solved the problem. -Jim On Thursday, September 26, 2013 4:10:31 PM UTC-5, Niphlod wrote: > > login remotely and > cd applications/appname/errors > rm * > > or just go into the main page of admin, click on the button next to the > app and press clean (

Re: [web2py] Re: from devel list

2013-09-27 Thread Richard Vézina
CMS is dead!! Yes there is still need for it, but there is plenty of already mature and working solution out there. With the frameworks you can make much better than any CMS will never be able to do by developping a specific app that address the exact needs of your cusomers. For sure it requires mo

[web2py] Re: Error upload file on 2.6.4

2013-09-27 Thread Niphlod
try current trunk. Il giorno venerdì 27 settembre 2013 15:17:54 UTC+2, Relsi Hur Maron ha scritto: > > > Hi all, I have a upload javascript in my app that call a function in my > controller to upload files. > > It was working fine until now, so I update my web2py to latest version > and now I

[web2py] Re: Error upload file on 2.6.4

2013-09-27 Thread Relsi Hur Maron
Thanks! Now is working. It is a production app, no problem to use the current trunk? Em sexta-feira, 27 de setembro de 2013 11h20min01s UTC-3, Niphlod escreveu: > > try current trunk. > > Il giorno venerdì 27 settembre 2013 15:17:54 UTC+2, Relsi Hur Maron ha > scritto: >> >> >> Hi all, I have

[web2py] Re: smartgrid and represent

2013-09-27 Thread Anthony
Can you show your exact code (the code you showed can't be the code you're using, as there would be no add or edit buttons with that code)? It definitely works when I try it. Anthony On Friday, September 27, 2013 9:22:37 AM UTC-4, Mirko wrote: > > Hi Anthony, and thanks for answering. > > Actua

[web2py] Re: from devel list

2013-09-27 Thread Gour
On Fri, 27 Sep 2013 10:16:12 -0400 Richard Vézina wrote: > CMS is dead!! I don't agree. > Yes there is still need for it, but there is plenty of > already mature and working solution out there. But not for web2py. > With the frameworks > you can make much better than any CMS will never be a

[web2py] Re: from devel list

2013-09-27 Thread Gour
On Fri, 27 Sep 2013 06:32:28 -0700 (PDT) Loïc wrote: > Personnally when I looked for a CMS build in web2py I didn't find > anything generic and *simple *enough to build my customers websites. Same here and that's why I'll explore Mezzanine for my needs. > Then I decided to develop my own little

Re: [web2py] Re: from devel list

2013-09-27 Thread Loïc ESPERN
Depends on what you (or your customers) need... I developped my little CMS to build a presentation website for a local organization of firefighters in my city. They hadn't a lot of money to expend, and they needed something very simple, to edit some webpages content. Wordpress / Joomla were alread

[web2py] Re: from devel list

2013-09-27 Thread Loïc
>I do not recall if I tried it...maybe it was too simple. Which one it >was? Yes simple is the word :-) https://github.com/espern/tiny_website http://www.tinywebsite.net/ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

[web2py] contributing patches

2013-09-27 Thread Ricardo Cárdenas
(Apologies if this has been asked before.) Kudos for web2py and for this community; happy to have found you. Web2py's very useful for my projects; even enjoyable! I'd like to pay it back, starting with minor patches that I think could be useful to others. I can fork and watch on github, and gen

[web2py] Re: from devel list

2013-09-27 Thread Gour
On Fri, 27 Sep 2013 08:12:37 -0700 (PDT) Loïc wrote: > Yes simple is the word :-) :-) > https://github.com/espern/tiny_website > http://www.tinywebsite.net/ Nope, I didn't try it. It was created *after* I already pretty much gave up idea to find appropriate web2py-based CMS, but your project l

Re: [web2py] Re: from devel list

2013-09-27 Thread Loïc ESPERN
Neither do I... However I'm open to ideas/contributions to improve it, step by step Regards 2013/9/27 Gour > On Fri, 27 Sep 2013 08:12:37 -0700 (PDT) > Loïc wrote: > > > Yes simple is the word :-) > > :-) > > > https://github.com/espern/tiny_website > > http://www.tinywebsite.net/ > > Nope, I

[web2py] Re: smartgrid and represent

2013-09-27 Thread Mirko
Hi Anthony, it is working now, sorry for the inconvenience. Thanks again! On Friday, September 27, 2013 4:40:05 PM UTC+2, Anthony wrote: > > Can you show your exact code (the code you showed can't be the code you're > using, as there would be no add or edit buttons with that code)? It > definite

Re: [web2py] Re: from devel list

2013-09-27 Thread Jim S
I am no expert on all of these CMS systems but have used WordPress in the past to build some websites for local youth sports clubs. Right now I have one that is a WordPress site and one that is a web2py app. Instead of writing a web2py app for these types of things what I would love to see is

Re: [web2py] Re: from devel list

2013-09-27 Thread Richard Vézina
I don't say re-invent the wheel. If you have a couple of clients, you will re-use app, so it get tested overtime. As mention Loîc, for most client CMS is overkill and only serve the purpose to keeping the developper away form CSS. A basic html page is more then enough for greate number of small bus

Re: [web2py] Re: from devel list

2013-09-27 Thread Richard Vézina
+1 Jim :) Or just take a web2py tiny CMS ans build on it and commit your addon to the web2py-cms project, so we all get a good tiny CMS to address some client needs in this area rapidly... Richard On Fri, Sep 27, 2013 at 12:11 PM, Jim S wrote: > I am no expert on all of these CMS systems b

[web2py] Problem with Does web2py modify python strings?

2013-09-27 Thread Vinicius Assef
Hey all. I'm facing a strange problem concerning special characters. Using web2py shell, through command line (linux shell), I do this: # start $ python web2py.py -S welcome web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2013 Version 2.6.4-stable+timestamp.20

Re: [web2py] Re: batch script - best way to reopen a closed database connection?

2013-09-27 Thread Michele Comitini
Ricardo, Your use case has been useful to pinpoint some issues with the semantic of commit/rollback/close in the DAL. We are working on it to improve ease of use. So thank you! mic 2013/9/27 Ricardo Cárdenas > @michele, @niphlod, @Derek > > My solution oddly turned out to be a combination of

Re: [web2py] Problem with Does web2py modify python strings?

2013-09-27 Thread Richard Vézina
Could it be the encoding of the file that content your bash script? Richard On Fri, Sep 27, 2013 at 12:23 PM, Vinicius Assef wrote: > Hey all. > > I'm facing a strange problem concerning special characters. > > Using web2py shell, through command line (linux shell), I do this: > > # ---

[web2py] Re: from devel list

2013-09-27 Thread Gour
On Fri, 27 Sep 2013 12:17:04 -0400 Richard Vézina wrote: > I don't say re-invent the wheel. If you have a couple of clients, you > will re-use app, so it get tested overtime. Why not contributing such codebase to the web2py community, so that others can built on that. > A basic html page is mo

[web2py] Re: View have to be updated

2013-09-27 Thread Dave S
On Wednesday, September 25, 2013 9:44:06 PM UTC-7, Gael Princivalle wrote: > > I've found my mistake. View "lista_articoli.html" was not in the "default" > folder. > I've done that too. =8-O /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] PyCharm 3.0 Opens to the Community. It supports the Web2py

2013-09-27 Thread manuscriptum
PyCharm 3.0 Opens to the CommunityAn outstanding lineup of new features in v3.0 comes along with the most exciting announcement: an open-source version of PyCharm is available! pyCharm recognizes existing web2py projects and can automatically create new ones. It understands the web2py internal te

[web2py] SQLFORM.grid

2013-09-27 Thread Gael Princivalle
Hi. I want to make a simple SQLFORM.grid test. I have one table. I've tried to make a lot of changes, but it don't works. With this code the ticket is 'str' object has no attribute 'tablename'. Someone can help me ? MY DB: db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all'])

[web2py] International table names

2013-09-27 Thread Ruud Schroen
Hi, i'm working on a project atm and im using web2admin as the admin interface. Is there a way to show different table names depending on the language? The table names don't actually have to change, but i would like web2py to show translations in the grid. (BTW: i'm NOT talking about field labe

[web2py] Seeking Skilled Web2py Developer with UX experience

2013-09-27 Thread Mark Graves
Hey guys, I've been developing an application myself over the past 3 years. I've finally got a solid version 1.0. I'm refining it, deploying it, and looking for a skilled web2py/UX developer's help. I've got a CTO ready to come on board. We are pitching VC next month, and I'll be pitching a

[web2py] Re: contributing patches

2013-09-27 Thread Massimo Di Pierro
Thank you Ricardo. github PR or patches via googlecode issues are two common solutions. On Friday, 27 September 2013 10:43:51 UTC-5, Ricardo Cárdenas wrote: > > (Apologies if this has been asked before.) > > Kudos for web2py and for this community; happy to have found you. Web2py's > very useful

[web2py] RSS - storing news in database

2013-09-27 Thread lesssugar
I'm planning to implement RSS aggregator in my app, using instruction from the book: http://web2py.com/books/default/chapter/29/10/services?search=rss#RSS The twist is to firstly store the news in my database, and display the feed using the stored data. My questions: 1) Does anyone know whet

[web2py] Re: web2py Italy

2013-09-27 Thread Massimo Di Pierro
benissimo! On Friday, 27 September 2013 03:37:23 UTC-5, Gael Princivalle wrote: > > Hi. > > For web2py users that speak Italian, I've create the web2py-it group. It > could be a complementary tool for the Italian web2py community. > https://groups.google.com/forum/?fromgroups#!forum/web2py-it > >

[web2py] Re: contributing patches

2013-09-27 Thread Anthony
If you're not already on it, you should join the developers Google Groupas well. That's a good place to discuss ideas or get feedback. Anthony On Friday, September 27, 2013 1:42:24 PM UTC-4, Massimo Di Pierro wrote: > > Than

[web2py] web2py Italy

2013-09-27 Thread Gael Princivalle
Hi. For web2py users that speak Italian, I've create the web2py-it group. It could be a complementary tool for the Italian web2py community. https://groups.google.com/forum/?fromgroups#!forum/web2py-it Ciao ! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://g

Re: [web2py] Problem with Does web2py modify python strings?

2013-09-27 Thread Vinicius Assef
It wasn't a bash script, Richard. I made exactly as I described: straight from terminal. On Fri, Sep 27, 2013 at 2:23 PM, Richard Vézina wrote: > Could it be the encoding of the file that content your bash script? > > Richard > > > On Fri, Sep 27, 2013 at 12:23 PM, Vinicius Assef > wrote: >> >>

[web2py] Re: web2py Italy

2013-09-27 Thread Paolo Caruccio
Ben fatto! Il giorno venerdì 27 settembre 2013 10:37:23 UTC+2, Gael Princivalle ha scritto: > > Hi. > > For web2py users that speak Italian, I've create the web2py-it group. It > could be a complementary tool for the Italian web2py community. > https://groups.google.com/forum/?fromgroups#!forum/

Re: [web2py] International table names

2013-09-27 Thread Vinicius Assef
If you customize the app, yes. Just show {{=T(tablename)}} instead of {{=tablename}}. Of course, you need do make the manual translation. On Fri, Sep 27, 2013 at 7:33 AM, Ruud Schroen wrote: > Hi, i'm working on a project atm and im using web2admin as the admin > interface. > Is there a way to s

[web2py] Re: SQLFORM.grid

2013-09-27 Thread Anthony
fields should be a list of Field objects, not field names. Anthony On Friday, September 27, 2013 11:17:57 AM UTC-4, Gael Princivalle wrote: > > Hi. > > I want to make a simple SQLFORM.grid test. I have one table. I've tried to > make a lot of changes, but it don't works. With this code the ticke

[web2py] Re: web2py Italy

2013-09-27 Thread paolo betti
Iscritto! :-) Il giorno venerdì 27 settembre 2013 10:37:23 UTC+2, Gael Princivalle ha scritto: > > Hi. > > For web2py users that speak Italian, I've create the web2py-it group. It > could be a complementary tool for the Italian web2py community. > https://groups.google.com/forum/?fromgroups#!for

Re: [web2py] International table names

2013-09-27 Thread Massimo Di Pierro
Notice there are also db.table._singular and db.table._plural which are customizable. They should still be passed through T(db.table._singular) On Friday, 27 September 2013 12:50:09 UTC-5, viniciusban wrote: > > If you customize the app, yes. > > Just show {{=T(tablename)}} instead of {{=tablen

[web2py] Re: grid, smartgrid and ignore_default_filters

2013-09-27 Thread Massimo Di Pierro
Just committed to trunk: SQLFORM.grid(...,ignore_common_filters=True) Please check it and let us know if it works as expected. Thanks. On Friday, 27 September 2013 03:15:18 UTC-5, mweissen wrote: > > > > Hi, > I am using default filters at many places. Now I want to bulid a grid or a > smartgri

[web2py] Re: PyCharm 3.0 Opens to the Community. It supports the Web2py

2013-09-27 Thread Willoughby
To clarify - the open source version doesn't offer integrated framework support. Framework support (including web2py) is a feature of the Paid version: http://www.jetbrains.com/pycharm/features/editions_comparison_matrix.html Very well done, I might add - I've been using the EAP releases and hav

[web2py] Re: Virtual Fields and Smartgrid not working as expected

2013-09-27 Thread Massimo Di Pierro
I can confirm the problem and I opened a ticket: https://code.google.com/p/web2py/issues/detail?id=1692 On Thursday, 19 September 2013 03:49:35 UTC-5, hiro wrote: > > In the book I read: > > *Showing virtual fields in SQLFORM.grid and smartgrid* > In recent versions of web2py, virtual fields are

Re: [web2py] Re: from devel list

2013-09-27 Thread Richard Vézina
:) On Fri, Sep 27, 2013 at 1:34 PM, Gour wrote: > On Fri, 27 Sep 2013 12:17:04 -0400 > Richard Vézina > wrote: > > > I don't say re-invent the wheel. If you have a couple of clients, you > > will re-use app, so it get tested overtime. > > Why not contributing such codebase to the web2py commun

Re: [web2py] Problem with Does web2py modify python strings?

2013-09-27 Thread Richard Vézina
Ha ok, I was miss leading by the linux shell... Could it be that you need u('éà') ?? don't know "normalize" Richard On Fri, Sep 27, 2013 at 1:47 PM, Vinicius Assef wrote: > It wasn't a bash script, Richard. > > I made exactly as I described: straight from terminal. > > On Fri, Sep 27, 2013 at

[web2py] Re: Virtual Fields and Smartgrid not working as expected

2013-09-27 Thread hiro
Thank you! On Friday, September 27, 2013 8:14:55 PM UTC+2, Massimo Di Pierro wrote: > > I can confirm the problem and I opened a ticket: > > https://code.google.com/p/web2py/issues/detail?id=1692 > > On Thursday, 19 September 2013 03:49:35 UTC-5, hiro wrote: >> >> In the book I read: >> >> *Showin

[web2py] Re: contributing patches

2013-09-27 Thread Niphlod
in addition to joining the developers group, there are some (absolutely not required, but good to have) main ideas to follow (it's how currently most of contributors are dealing with PR): - github is preferred for their PR system - make your patch on a topic branch against current master trunk -

Re: [web2py] Problem with Does web2py modify python strings?

2013-09-27 Thread Vinicius Assef
On Fri, Sep 27, 2013 at 3:37 PM, Richard Vézina wrote: > Ha ok, I was miss leading by the linux shell... Could it be that you need > u('éà') ?? No. the "áéíóú".decode("utf-8") should do that. And really does, in standard Python shell, outside web2py. > > > On Fri, Sep 27, 2013 at 1:47 PM, Vinic

[web2py] Re: RSS - storing news in database

2013-09-27 Thread Dave S
On Friday, September 27, 2013 10:43:27 AM UTC-7, lesssugar wrote: > > I'm planning to implement RSS aggregator in my app, using instruction from > the book: > > http://web2py.com/books/default/chapter/29/10/services?search=rss#RSS > > The twist is to firstly store the news in my database, and dis

[web2py] Re: Error upload file on 2.6.4

2013-09-27 Thread Niphlod
if your "now" is 2.6.4, then current trunk adds only bug fixes and no new (potentially untested) features. On Friday, September 27, 2013 4:31:15 PM UTC+2, Relsi Hur Maron wrote: > > > Thanks! Now is working. > > It is a production app, no problem to use the current trunk? > > Em sexta-feira, 27

Re: [web2py] Problem with Does web2py modify python strings?

2013-09-27 Thread Richard Vézina
Ok, but why do you need to do that in web2py? I remember have read something about encoding in the book that was saying don't need to concern about that in web2py. Richard On Fri, Sep 27, 2013 at 2:46 PM, Vinicius Assef wrote: > On Fri, Sep 27, 2013 at 3:37 PM, Richard Vézina > wrote: > > Ha o

[web2py] Re: from devel list

2013-09-27 Thread Gour
On Fri, 27 Sep 2013 17:53:57 +0200 Loïc ESPERN wrote: > Neither do I... :-) > However I'm open to ideas/contributions to improve it, step by step Pls. give me some today to learn more about web development in general, as well as about web2py to be able to give some worthy piece of advice. For

Re: [web2py] Re: Error upload file on 2.6.4

2013-09-27 Thread Relsi Hur Maron
Cool! Thanks!! 2013/9/27 Niphlod > if your "now" is 2.6.4, then current trunk adds only bug fixes and no new > (potentially untested) features. > > > On Friday, September 27, 2013 4:31:15 PM UTC+2, Relsi Hur Maron wrote: >> >> >> Thanks! Now is working. >> >> It is a production app, no problem t

[web2py] Re: web2py Italy

2013-09-27 Thread Dave S
On Friday, September 27, 2013 10:43:46 AM UTC-7, Massimo Di Pierro wrote: > > benissimo! > > On Friday, 27 September 2013 03:37:23 UTC-5, Gael Princivalle wrote: >> >> Hi. >> >> For web2py users that speak Italian, I've create the web2py-it group. It >> could be a complementary tool for the Italia

Re: [web2py] Problem with Does web2py modify python strings?

2013-09-27 Thread Vinicius Assef
I was making a maintenance in table data through shell. Despite that, I'm still curious to discover why this behaviour is different from natural Python behaviour. On Fri, Sep 27, 2013 at 3:53 PM, Richard Vézina wrote: > Ok, but why do you need to do that in web2py? I remember have read somethin

Re: [web2py] Re: contributing patches

2013-09-27 Thread Michele Comitini
Massimo, Niphlod can we add those instructions to the book? A chapter "Contributing to web2py" can be helpful, don't you think? 2013/9/27 Niphlod > in addition to joining the developers group, there are some (absolutely > not required, but good to have) main ideas to follow (it's how currentl

Re: [web2py] Re: web2py Italy

2013-09-27 Thread Michele Comitini
Ecco arrivo per ultimo come sempre! ;-) 2013/9/27 Dave S > On Friday, September 27, 2013 10:43:46 AM UTC-7, Massimo Di Pierro wrote: >> >> benissimo! >> >> On Friday, 27 September 2013 03:37:23 UTC-5, Gael Princivalle wrote: >>> >>> Hi. >>> >>> For web2py users that speak Italian, I've create t

Re: [web2py] Re: contributing patches

2013-09-27 Thread Dave S
Or at least listed somewhere that can reference. /dps On Friday, September 27, 2013 11:58:40 AM UTC-7, Michele Comitini wrote: > > Massimo, Niphlod > can we add those instructions to the book? A chapter "Contributing to > web2py" can be helpf

Re: [web2py] Re: contributing patches

2013-09-27 Thread Niphlod
I guess so, this ("documenting how to contribute") has been raised up once or twice already but until now there have been no "fixed rules". On Friday, September 27, 2013 8:58:40 PM UTC+2, Michele Comitini wrote: > > Massimo, Niphlod > can we add those instructions to the book? A chapter "Contri

[web2py] Re: Problem with Does web2py modify python strings?

2013-09-27 Thread Anthony
Which OS are you using? Here's what I get on Ubuntu 12.04: $ python web2py.py -S welcome web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2013 Version 2.6.0-development+timestamp.2013.08.15.17.14.24 Database drivers available: SQLite(sqlite3), MySQL(pymysql), PostgreSQL( pg8000),

Re: [web2py] Re: contributing patches

2013-09-27 Thread Massimo Di Pierro
we will. We also need a page on how to report security issues. On Friday, 27 September 2013 13:58:40 UTC-5, Michele Comitini wrote: > > Massimo, Niphlod > can we add those instructions to the book? A chapter "Contributing to > web2py" can be helpful, don't you think? > > > > 2013/9/27 Niphlod >

Re: [web2py] Problem with Does web2py modify python strings?

2013-09-27 Thread Michele Comitini
On your terminal you have to look at locales setup. Issue the following: $ locales You should have utf-8 based locale. For instance: LANG=en_US.UTF-8 On the browser look on the prefereces, see if you have locale/language settings supporting UTF-8. If you have UTF-8 both on terminal and browser,

Re: [web2py] Re: contributing patches

2013-09-27 Thread Roberto Perdomo
We speak about that few days ago here: https://groups.google.com/forum/m/#!topic/web2py-developers/DvRqziEe_GE El sep 27, 2013 2:28 PM, "Michele Comitini" escribió: > Massimo, Niphlod > can we add those instructions to the book? A chapter "Contributing to > web2py" can be helpful, don't you thi

Re: [web2py] Re: contributing patches

2013-09-27 Thread Michele Comitini
My opinion is that we should find a something similar to a wiki integral to web2py.com and/or web2pyslices.com . The base of the platform should be web2py itself. The blogging would also nice. The community is growing... ;-) 2013/9/27 Roberto Perdomo > We speak about that few days ago here:

Re: [web2py] Problem with Does web2py modify python strings?

2013-09-27 Thread Vinicius Assef
Anthony, I'm using Ubuntu server 12.04 inside a Vagrant machine with provided by Virtualbox. Michele, my $LANG is exactly en_US.UTF-8, like yours. Would it be a problem with my OS? As I explained in first message, it works with standard Python shell, without web2py environment loaded. The proble

Re: [web2py] Problem with Does web2py modify python strings?

2013-09-27 Thread Anthony
What happens if you run a Python file that includes the following: import code code.interact() Anthony On Friday, September 27, 2013 3:33:45 PM UTC-4, viniciusban wrote: > > Anthony, I'm using Ubuntu server 12.04 inside a Vagrant machine with > provided by Virtualbox. > > Michele, my $LANG is

[web2py] Problem with SQLFORM to add a record with some known field

2013-09-27 Thread Tao Wang
I'm just beginning to learn web2py. A beginner question about how to insert a record using sqlform form = SQLFORM(db.filecomment, fields=['file_id', 'filecomment']) I can get the file_id, so I do not need user to file this field. What the user only need to file the 'filecomment' field. How coul

[web2py] Re: contributing patches

2013-09-27 Thread Anthony
For enhancements, many bonus points if you also simultaneously or shortly thereafter submit a PR adding documentation of the new feature to the book: https://github.com/mdipierro/web2py-book. At the very least, post some details and example code so that someone else can easily update the book.

Re: [web2py] Problem with Does web2py modify python strings?

2013-09-27 Thread Vinicius Assef
Anthony, I think you're in the right direction. See: # begin $ python Python 2.7.3 (default, Apr 10 2013, 06:20:15) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> print "á" á >>> import code >>> print "á" á >>> code.interact() Pytho

Re: [web2py] Problem with Does web2py modify python strings?

2013-09-27 Thread Vinicius Assef
A new situation. Before calling code.interact(): >>> len("á") # len() == 2 is OK 2 >>> "á" # 2 bytes: ok '\xc3\xa1' >>> code.interact() Python 2.7.3 (default, Apr 10 2013, 06:20:15) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >

Re: [web2py] Problem with Does web2py modify python strings?

2013-09-27 Thread Anthony
I'm not sure what's wrong -- I cannot reproduce it on an Ubuntu 12.04 desktop or server. Anthony On Friday, September 27, 2013 4:03:00 PM UTC-4, viniciusban wrote: > > A new situation. > > Before calling code.interact(): > >>> len("á") # len() == 2 is OK > 2 > >>> "á" # 2 bytes: ok > '\xc3

[web2py] Re: Problem with SQLFORM to add a record with some known field

2013-09-27 Thread Jim S
Are you using SQLFORM.grid? -Jim On Friday, September 27, 2013 2:38:01 PM UTC-5, Tao Wang wrote: > > I'm just beginning to learn web2py. A beginner question about how to > insert a record using sqlform > > form = SQLFORM(db.filecomment, fields=['file_id', 'filecomment']) > > I can get the file_i

[web2py] Re: custom form validation doesn't work

2013-09-27 Thread Massimo Di Pierro
The problems was identified by Anthony in this thread: https://groups.google.com/forum/?fromgroups#!searchin/web2py/custom$20form$20jquery/web2py/7Meea7Ul0o8/4ZdrD9hP5MEJ On Saturday, 15 December 2012 17:27:51 UTC-6, jonas wrote: > > Hi. > > I have a default form that is passed in view: {{=form}

Re: [web2py] Re: Custom form with jquery acts weird

2013-09-27 Thread Massimo Di Pierro
Actually the problem you have is different. The links you refer to both had the same problem and it was addressed by Anthony in his post. You cannot do: form=crud.create(db.comments) if form.process().accepted because crud.create already calls process() internally, you it was called twice. You

[web2py] Re: "Not indexable" error when disabling app from admin

2013-09-27 Thread Massimo Di Pierro
Should be fixed in trunk. On Wednesday, 18 September 2013 18:14:36 UTC-5, HittingSmoke wrote: > > Apologies. It is: 2.6.3-stable+timestamp.2013.09.15.17.01.20 > > On Wednesday, September 18, 2013 4:08:48 PM UTC-7, Massimo Di Pierro wrote: >> >> Which version? >> >> On Wednesday, 18 September 2013

[web2py] Re: Custom form with jquery acts weird

2013-09-27 Thread Jordan Ladora
Hi Massimo, Thanks for your help. I think I'm crystal clear on your explanation regarding the button, but I'm still confused on the other issue that Anthony answered previously, despite his and your posts.. In my controller I used: form = SQLFORM.factory(*fields) if form.accepts(request,

[web2py] Re: contributing patches

2013-09-27 Thread Tim Richardson
I've started Chapter 15 and when the skeleton is a bit fleshed out I'll submit a PR for the book. I'll include in the contents all the points raised here. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.g

Re: [web2py] Multiple buttons in links of smartgrid

2013-09-27 Thread 黄祥
how to add the header for multiple buttons? i mean 1 header field that have multiple buttons on the body. when i try it return an error : TypeError: 'list' object is not callable my code : invoice_links=[dict(header=T('Print'), body=[lambda row: A(I(_class='icon-print'), _title=T("Print Invoi

[web2py] Re: Custom form with jquery acts weird

2013-09-27 Thread Anthony
If you follow Massimo's suggestion: Cancel everything seems to work fine. What problem do you have after making that change? Anthony On Friday, September 27, 2013 9:00:47 PM UTC-4, Jordan Ladora wrote: > > Hi Massimo, > > Thanks for your help. I think I'm crystal clear on your explanation > r

[web2py] Getting started with routes.py error: No module named fileutils ?

2013-09-27 Thread User
Using web2py Version 2.6.4-stable+timestamp.2013.09.22.17.43.26 with Python 2.7. I've got web2py up and running with a simple app. Now I'm trying to get routes working. What I did was copy routes.patterns.example.py from /examples to the folder and rename to routes.py. Reloading routes fr