[web2py] Re: BUG? db.mytable.id.represent with Crud

2010-12-16 Thread hcvst
Loked at the source for SQLTABLE. Setting linkto to None fixed it. def index2(): " List all blog posts " db.blog_posts.title.represent = lambda _: 'replace title' db.blog_posts.id.represent = lambda _: 'replace id' posts = crud.select( db.blog_posts, fields=['blog_p

[web2py] Alternative Auth Fields (not additional ones)?

2010-12-16 Thread Greg
Hello, When my users register I won't have any need for them to enter First name or Last name. I really only need username, email address and password. I can change the label for first_name to 'Username', but they are still required to enter something in the Last Name field. I've tried setting las

Re: [web2py] Re: it case you missed it...

2010-12-16 Thread Branko Vukelic
> - Original Message - > From: Anthony > Sent: 12/17/10 04:22 AM > To: web2py-users > Subject: [web2py] Re: it case you missed it... > So, at least one advantage of BSD is it doesn't require all this > "clearing up". ;) How nice... -- Branko Vukelic branko.vuke...@gmx.com http://www.b

[web2py] Re: it case you missed it...

2010-12-16 Thread Anthony
On Dec 16, 9:45 pm, "Branko Vukelic" wrote: > > I guess it seems odd to say if you build an app using the entire > > web2py framework, then you can close source your app, but if you build > > Entire _unmodified_ web2py framework. Well, it's not clear that your app can be closed sourced only when

Re: [web2py] Re: it case you missed it...

2010-12-16 Thread Branko Vukelic
> - Original Message - > From: Anthony > Sent: 12/17/10 03:33 AM > To: web2py-users > Subject: [web2py] Re: it case you missed it... > I guess it seems odd to say if you build an app using the entire > web2py framework, then you can close source your app, but if you build Entire _unmodifi

Re: [web2py] Re: it case you missed it...

2010-12-16 Thread Bruno Rocha
I made this example (for teaching) https://bitbucket.org/rochacbruno/dal_on_flask/src I've been pointed to include this line: # NOTE: web2py is licensed under GPL2 and Flask is licensed under BSD# So, any derivative using both ['Flask','DAL'] should be GPL (not BSD) *https://bitbucket.org/roc

[web2py] Re: it case you missed it...

2010-12-16 Thread Anthony
On Dec 16, 8:47 pm, "Branko Vukelic" wrote: > > Now that there's a truly standalone DAL, what if someone wants to use > > that in an application? What about some of the other contrib modules, > > like markmin? > > This is a question only Massimo can give a qualified answer to. The following > is

Re: [web2py] Rounding time

2010-12-16 Thread Jonathan Lundell
On Dec 16, 2010, at 5:10 PM, Lorin Rivers wrote: > > I have a function that I use to round time increments. I just realized it > fails when the time rolls over the 24 hour period. > > I also found myself needing to make a second version for rounding to hours. > Anyone care to take a stab at fi

[web2py] Requires login decorator error

2010-12-16 Thread NuclearDragon
I was getting an error when attempting to go to a page that requires you be logged in, if I was not logged in. Traceback: Traceback (most recent call last): File "/xxx/app/gluon/restricted.py", line 188, in restricted exec ccode in environment File "/xxx/app/applications/init/controllers/x

Re: [web2py] Re: it case you missed it...

2010-12-16 Thread Branko Vukelic
> - Original Message - > From: Anthony > Sent: 12/17/10 02:30 AM > To: web2py-users > Subject: [web2py] Re: it case you missed it... > > On Dec 16, 6:14 pm, "Branko Vukelic" wrote: > > Reading the full text of the Apache license, I think dual-licensing web2py > > under GPLv2 > > and Apac

[web2py] Re: it case you missed it...

2010-12-16 Thread Anthony
On Dec 16, 6:14 pm, "Branko Vukelic" wrote: > Reading the full text of the Apache license, I think dual-licensing web2py > under GPLv2 > and Apache License 2.0 would solve all of the problems except 1: reuse of > web2py > components and libraries for building closed-source software. For me, > p

Re: [web2py] delicious is closing

2010-12-16 Thread Albert Abril
I'm importing from delicious. I had created and account right now. Actually seems good! Thanks Bruno! On Fri, Dec 17, 2010 at 2:11 AM, Branko Vukelic wrote: > Hah, cool. It can import delicious bookmarks! Bruno, you saved the day! :D > > > - Original Message - > > From: Bruno Rocha > > S

Re: [web2py] delicious is closing

2010-12-16 Thread Branko Vukelic
Hah, cool. It can import delicious bookmarks! Bruno, you saved the day! :D > - Original Message - > From: Bruno Rocha > Sent: 12/17/10 01:44 AM > To: web2py@googlegroups.com > Subject: Re: [web2py] delicious is closing > > What would happen if OUND & Delicious had a baby: Zootool« >

[web2py] Rounding time

2010-12-16 Thread Lorin Rivers
I have a function that I use to round time increments. I just realized it fails when the time rolls over the 24 hour period. I also found myself needing to make a second version for rounding to hours. Anyone care to take a stab at fixing it to handle the rollover AND hours? def round_off(mins,

Re: [web2py] logging.conf for debugging

2010-12-16 Thread Jonathan Lundell
On Dec 16, 2010, at 5:01 PM, Lorin Rivers wrote: > > [loggers] > keys=root,rocket,markdown,web2py,rewrite,app,welcome,cron > > # the default configuration is console-based (stdout) for backward > compatibility > # > # note that file-based handlers are thread-safe but not mp-safe; > # for mp-safe

Re: [web2py] logging.conf for debugging

2010-12-16 Thread Lorin Rivers
[loggers] keys=root,rocket,markdown,web2py,rewrite,app,welcome,cron # the default configuration is console-based (stdout) for backward compatibility # # note that file-based handlers are thread-safe but not mp-safe; # for mp-safe logging, configure the appropriate syslog handler [handlers] #keys=

Re: [web2py] delicious is closing

2010-12-16 Thread Branko Vukelic
I'm sold! Thanks for the tip, btw. :) > - Original Message - > From: Bruno Rocha > Sent: 12/17/10 01:37 AM > To: web2py@googlegroups.com > Subject: Re: [web2py] delicious is closing > > Zoo Tool has tags, friends and plugins for firefox and chrome. it also can > tag individual images, vid

Re: [web2py] Re: it case you missed it...

2010-12-16 Thread Branko Vukelic
> - Original Message - > From: pbreit > Sent: 12/17/10 01:40 AM > To: web2py@googlegroups.com > Subject: Re: [web2py] Re: it case you missed it... > > Fair enough, I respect that. Massimo has done a wonderful job of adding > really good features while keeping web2py lean. As it gets more

Re: [web2py] delicious is closing

2010-12-16 Thread Bruno Rocha
What would happen if OUND & Delicious had a baby: Zootool« 2010/12/16 Bruno Rocha > Zoo Tool has tags, friends and plugins for firefox and chrome. it also can > tag individual images, videos, audio etc from web. I really like it. > > 2010/12/16 Branko Vukelic > >> Let's not forget the aweso

Re: [web2py] Re: it case you missed it...

2010-12-16 Thread pbreit
Fair enough, I respect that. Massimo has done a wonderful job of adding really good features while keeping web2py lean. As it gets more popular is there a concern that more people will lean on Massimo to add bloat? That would definitely be unfortunate.

[web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-16 Thread Anthony
Yes, works for me now. :) On Dec 16, 5:33 pm, Bruno Rocha wrote: > Problem solved! ->http://powertable.blouweb.com/category > > 2010/12/16 Bruno Rocha > > > > > > > i just found that I.E 6.7.8 breaks if nested table has more than 5 rows. (I > > dont know why) > > I am going to datatables forum t

Re: [web2py] delicious is closing

2010-12-16 Thread Bruno Rocha
Zoo Tool has tags, friends and plugins for firefox and chrome. it also can tag individual images, videos, audio etc from web. I really like it. 2010/12/16 Branko Vukelic > Let's not forget the awesome AND supported firefox plugin. <3 > > > - Original Message - > > From: Albert Abril > >

Re: [web2py] delicious is closing

2010-12-16 Thread Branko Vukelic
Let's not forget the awesome AND supported firefox plugin. <3 > - Original Message - > From: Albert Abril > Sent: 12/17/10 12:52 AM > To: web2py@googlegroups.com > Subject: Re: [web2py] delicious is closing > > tags, public/private , friends, and usability (bookmarklet, nice ui). > > thi

Re: [web2py] Re: it case you missed it...

2010-12-16 Thread Branko Vukelic
> - Original Message - > From: pbreit > Sent: 12/17/10 12:52 AM > To: web2py@googlegroups.com > Subject: Re: [web2py] Re: it case you missed it... > > branko, I'm curious why permissive licensing is a problem for you. is it a > philosophical thing? what's the downside? wouldn't it be cool

[web2py] Re: DAL select cache, and update

2010-12-16 Thread mdipierro
The problem is how to determine which selects are affected by which update. That is a knowledge that is in database, not in cache. We can have an option of update that removes ALL select caches for each update but that you can already do now manually. On Dec 15, 7:42 pm, Dragonfyre13 wrote: > I s

[web2py] Re: DAL select cache, and update

2010-12-16 Thread Dragonfyre13
If this is still the same answer as in 2008, has any thought been given to modifying/adding the behavior mentioned? On Dec 15, 7:42 pm, Dragonfyre13 wrote: > I see some discussion from back in 2008 on the subject, but hoping > something might have changed. > > Is there any way that I can cache a

Re: [web2py] delicious is closing

2010-12-16 Thread Albert Abril
tags, public/private , friends, and usability (bookmarklet, nice ui). this *was* the success of delicious IMHO. On Fri, Dec 17, 2010 at 12:50 AM, Branko Vukelic wrote: > Does it do tagging? I really liked the way delicious bmarks can be tagged > and all... > > > - Original Message - > >

Re: [web2py] Re: it case you missed it...

2010-12-16 Thread pbreit
branko, I'm curious why permissive licensing is a problem for you. is it a philosophical thing? what's the downside? wouldn't it be cool if your code was widely used? cake, django & rails are permissively licensed (as are most frameworks) and it doesn't seem to be a problem. people still seem ex

Re: [web2py] delicious is closing

2010-12-16 Thread Branko Vukelic
Does it do tagging? I really liked the way delicious bmarks can be tagged and all... > - Original Message - > From: Bruno Rocha > Sent: 12/17/10 12:43 AM > To: web2py@googlegroups.com > Subject: Re: [web2py] delicious is closing > > I always prefer to use zootool for bookmarking > http:/

[web2py] Re: it case you missed it...

2010-12-16 Thread pbreit
+1 for permissive. Seems unlikely anyone would want to close up the source of a framework and even if it happened, it shouldn't affect the project. And who would want to use closed source framework? But it should eliminate one of the adoption hurdles which is a good thing. Don't you all want t

Re: [web2py] delicious is closing

2010-12-16 Thread Bruno Rocha
I always prefer to use zootool for bookmarking http://zootool.com/user/rochacbruno/ 2010/12/16 Branko Vukelic > Damn! I have a shitload of bookmarks there... :( > > Anyway, yeah, go for it! You can advertise as "The next Delicious" > > > - Original Message - > > From: Albert Abril > > Se

Re: [web2py] delicious is closing

2010-12-16 Thread Branko Vukelic
Damn! I have a shitload of bookmarks there... :( Anyway, yeah, go for it! You can advertise as "The next Delicious" > - Original Message - > From: Albert Abril > Sent: 12/17/10 12:22 AM > To: web2py@googlegroups.com > Subject: [web2py] delicious is closing > > I'm using delicious from lo

Re: [web2py] delicious is closing

2010-12-16 Thread Bruno Rocha
Nice idea, host it on GAE. 2010/12/16 Albert Abril > I'm using delicious from long time ago. > Today I read that yahoo will close delicious soon. > It's time to migrate to my own bookmark app, question is.. there's a > bookmark application wrote in web2py, should I start one? :D > > Kind regards

[web2py] delicious is closing

2010-12-16 Thread Albert Abril
I'm using delicious from long time ago. Today I read that yahoo will close delicious soon. It's time to migrate to my own bookmark app, question is.. there's a bookmark application wrote in web2py, should I start one? :D Kind regards! -- Albert Abril, @desmondo http://bressol.org

Re: [web2py] Re: it case you missed it...

2010-12-16 Thread Branko Vukelic
Here's an excerpt from Apache License 2.0: ``"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of

[web2py] Re: it case you missed it...

2010-12-16 Thread Michael McGinnis
No opposition here. Like others, I was originally confused whether using the web2py framework would force my web app to be open source. I would welcome a change in license. On Dec 16, 4:33 pm, mdipierro wrote: > GPL2 creates the loophole. The AGPL closes the loophole. The GPL3 was > supposed to i

Re: [web2py] logging.conf for debugging

2010-12-16 Thread Jonathan Lundell
On Dec 16, 2010, at 11:00 AM, Lorin Rivers wrote: > > I have logging writing to the console, but not to the log file. > > Starting with the example, I changed WARNING to DEBUG (everywhere--as > soon as I get it working, I'll be more selective), I set [keys] to > keys=consoleHandler,rotatingFileHa

Re: [web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-16 Thread Bruno Rocha
Problem solved! -> http://powertable.blouweb.com/category 2010/12/16 Bruno Rocha > i just found that I.E 6.7.8 breaks if nested table has more than 5 rows. (I > dont know why) > I am going to datatables forum to discover it. > > 2010/12/16 Bruno Rocha > > >> Anthony, can you test if it works in

[web2py] Re: it case you missed it...

2010-12-16 Thread mdipierro
GPL2 creates the loophole. The AGPL closes the loophole. The GPL3 was supposed to incorporate language from AGPL and close the loophole but did not. It is not clear to me whether GPL3 closes the loophole or not. If it does not (like GPL2 does not). I have no objection to move to GPL3. Yet that do

Re: [web2py] Re: it case you missed it...

2010-12-16 Thread Branko Vukelic
> - Original Message - > From: mdipierro > Sent: 12/16/10 07:56 PM > To: web2py-users > Subject: [web2py] Re: it case you missed it... > If we were to move from GPL2 to GPL3 people would not be allowed to > modify web2py running on their servers without making available the > source code o

[web2py] Re: bug? - "list:string" widget changes from multiple select to separate option list

2010-12-16 Thread Carlos
Hi, I just installed the latest version (1.89.5), and it seems this has been solved. Thanks!, Carlos On Dec 16, 10:10 am, Carlos wrote: > Hi Massimo, > > I'm using web2py 1.89.1. > > Is this fixed in the latest version?. > > Thanks, > >    Carlos > > On Dec 16, 1:22 am, mdipierro wrote: >

Re: [web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-16 Thread Bruno Rocha
i just found that I.E 6.7.8 breaks if nested table has more than 5 rows. (I dont know why) I am going to datatables forum to discover it. 2010/12/16 Bruno Rocha > > Anthony, can you test if it works in I.E 8 -> > http://www.datatables.net/examples/server_side/row_details.html > > Thanks > > > --

[web2py] logging.conf for debugging

2010-12-16 Thread Lorin Rivers
I have logging writing to the console, but not to the log file. Starting with the example, I changed WARNING to DEBUG (everywhere--as soon as I get it working, I'll be more selective), I set [keys] to keys=consoleHandler,rotatingFileHandler. logs/web2py.log gets created on startup, but never gets

[web2py] Re: it case you missed it...

2010-12-16 Thread mdipierro
There is a reason I did not choose GPL3 and that it is that GPL3 tries to close the "SAAS loophole" explained here: http://ross.typepad.com/blog/2007/07/open-source-lic.html I want the loophole to apply to web2py. Let me explain. GPL2 predates SAAS therefore running a web service based on GPL2 s

[web2py] Re: How to fetch already exiting table data with out defining new table

2010-12-16 Thread pbreit
Here's one: https://groups.google.com/d/topic/web2py/mH5Toup0vwk/discussion

Re: [web2py] Off Topic - For amusement only...

2010-12-16 Thread Bruno Rocha
Very nice! 2010/12/16 villas > If you feel like a 3 mins break, just reflect on how Christmas might > have developed today, in this digital age... > > http://www.youtube.com/watch_popup?v=GkHNNPM7pJA&vq=medium -- Bruno Rocha http://about.me/rochacbruno/bio

Re: [web2py] Re: it case you missed it...

2010-12-16 Thread Branko Vukelic
> - Original Message - > From: =?ANSI_X3.4-1968?Q?Jos=3F_L=2E?= > Sent: 12/16/10 07:23 PM > To: web2py@googlegroups.com > Subject: [web2py] Re: it case you missed it... > Also, is there any reason to stay in gpl v2 instead of moving to v3? I think someone already pointed out that GPLv3

[web2py] Re: it case you missed it...

2010-12-16 Thread Jos? L.
On Sunday, December 12, 2010 7:21:52 PM UTC+1, mdipierro wrote: > > I think we should close this discussion. It is not going anywhere. The > license of web2py is not up for discussion. I say (and said) that the GPL > license applies to derivative work only. Applications built with web2py and >

[web2py] Re: Creating database tables tutorial?

2010-12-16 Thread selecta
> Placing that in the controller, and letting it go free. Did you try to place the code into a model? I guess you cannot create table in a controller. Another thing that you could try out is the table wizard that comes with pyMantis, an app that I just entered into the web2py application exibition.

[web2py] Off Topic - For amusement only...

2010-12-16 Thread villas
If you feel like a 3 mins break, just reflect on how Christmas might have developed today, in this digital age... http://www.youtube.com/watch_popup?v=GkHNNPM7pJA&vq=medium

Re: [web2py] Re: it case you missed it...

2010-12-16 Thread pbreit
We are discussing the license because it hinders adoption...hardly a pointless topic. Anthony at least acknowledges this. I posted the question on Quora and it got a reasonable first response: http://www.quora.com/What-is-the-best-license-for-a-web-framework-ex-Cake-Rails-Django-GPL-BSD-or-MIT

[web2py] Re: How to fetch already exiting table data with out defining new table

2010-12-16 Thread mdipierro
The reason you MUST define it in the model is that without the model, web2py does not know how to map SQL types into web2py types (for a varchar can be a string, a password, a upload, or a list: type). On Dec 15, 9:37 pm, sushanth wrote: > Hi, > > I already have few tables with data in mysql.i wa

[web2py] Re: How to fetch already exiting table data with out defining new table

2010-12-16 Thread villas
Hi, FYI there is also a script which can 'read' an existing MySQL DB and create a web2py model file from it. I am not sure where that script is stored at the moment but, if you would like it, please search this group initially. If you still cannot find it, ask again here and I'm sure that I or som

[web2py] Re: it case you missed it...

2010-12-16 Thread Anthony
On Dec 16, 11:11 am, "Branko Vukelic" wrote: > > I don't _think_ I'm missing the main point, as I agree with what you > > state above. > > Then why are we discussing the license? If you understand that GPL is there > to protect > the freeness of the software, and that's why web2py uses it, then t

[web2py] how to make ajax callbacks invisible to redirection?

2010-12-16 Thread weheh
Controller has ajax callback: def dummy_ajax_callback(): return 'jQuery("debug").html("hello world")'; We all know that this can be accessed improperly by redirection: http://www.mydomain.com/myapp/mycontroller/dummy_ajax_callback Of course, this produces garbage results. In the past, I tho

Re: [web2py] Re: it case you missed it...

2010-12-16 Thread Branko Vukelic
> - Original Message - > From: Anthony > Sent: 12/16/10 05:02 PM > To: web2py-users > Subject: [web2py] Re: it case you missed it... > I don't _think_ I'm missing the main point, as I agree with what you > state above. Then why are we discussing the license? If you understand that GPL is t

[web2py] Re: bug? - "list:string" widget changes from multiple select to separate option list

2010-12-16 Thread Carlos
Hi Massimo, I'm using web2py 1.89.1. Is this fixed in the latest version?. Thanks, Carlos On Dec 16, 1:22 am, mdipierro wrote: > which version? I remember fixing this bug some time ago. > > On Dec 15, 11:04 pm, Carlos wrote: > > > > > > > > > Hi weheh, > > > No, I'm not changing the requi

[web2py] BUG? db.mytable.id.represent with Crud

2010-12-16 Thread hcvst
Hi, I'm struggling to change a table's records ID representation when using Crud. (w2p Version 1.89.5 (2010-11-21 22:12:54)) def index1(): " List all blog posts " db.blog_posts.title.represent = lambda _: 'replace title' db.blog_posts.id.represent = lambda _: 'replace id' posts =

[web2py] Re: it case you missed it...

2010-12-16 Thread Anthony
On Dec 16, 2:09 am, "Branko Vukelic" wrote: > > Yes, I agree, but all I said was that the concerns are not invalid (I > > also pointed out an issue that has not thus far been addressed -- > > standalone DAL). I think we can decide to stick with GPL while still > > recognizing it may present a barr

Re: [web2py] Vote in web2py for PyCon 2011 Tutorials

2010-12-16 Thread Branko Vukelic
voted > - Original Message - > From: appydev > Sent: 12/16/10 03:27 PM > To: web2py@googlegroups.com > Subject: Re: [web2py] Vote in web2py for PyCon 2011 Tutorials > > One more vote for web2py! > > 2010/12/15 Bruno Rocha > > > PyCon is made up of a number of different parts, each with

[web2py] Re: How to fetch already exiting table data with out defining new table

2010-12-16 Thread DenesL
Without models defined, I believe you can only access them using SQL commands via executesql. You obviously still need to define the db. recs = db.executesql('select * from your_mysql_table_name;') On Dec 15, 10:37 pm, sushanth wrote: > Hi, > > I already have few tables with data in mysql.i wa

Re: [web2py] Vote in web2py for PyCon 2011 Tutorials

2010-12-16 Thread appydev
One more vote for web2py! 2010/12/15 Bruno Rocha > PyCon is made up of a number of different parts, each with its own goals. > For the talks presented during the conference portion of PyCon, we go for > both breadth and quality. There are enough different sessions and different > tracks that eac

[web2py] ajax form submit

2010-12-16 Thread aungsan
for example, in default.py def user(): return dict(form=auth()) in view {=form}} How do I change it styl, i.e password input box appear next to username not below. And I put the following in the views/default/index.html {{=A('linked page',_href=URL(c='default',f='user'),cid='myid')}} B

Re: [web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-16 Thread Bruno Rocha
Martin, there is a problem. and I dont know if there is a way to solve. When you are loggetOut, click in 'Like' the app redirects to login page, but the vote is not computed. the user thinks he voted, but still have to click in 'like' again. I see you have _next=/default/ilike/329001, but jainrai

[web2py] Re: Result: None and I cannot figure out why [Closed]

2010-12-16 Thread Johann Spies
> data = > plugin_wiki.widget('jqgrid',col_width=130,table=tabel.lower(), >width=950) > return dict(data=data,tabel=tabel) > > the last line was indented 1 tab too many. Apologies for noise on the list. Johann --

[web2py] Re: Web2py Application Exhibition ( Final Day! )

2010-12-16 Thread Martin.Mulone
Thank you anthony. Sorry I was very busy yeasterday. I'll fix this today. And yes don't vote for app exhibition is going to be deleted.