[web2py] Re: .update_or_insert not optimized!!

2012-05-03 Thread puercoespin
> You're manual version updates only two fields, whereas update_or_insert > updates six fields -- maybe that's the difference. > > Anthony > Yes, but I want to insert a new record with six fields, but update only two if the record exists. How to do that with .update_or_insert?

[web2py] Re: web2py resources

2012-05-03 Thread puercoespin
Maybe it can include blogs about web2py from the users of web2py-users group, exemple Omi Chiba, Bruno or Martin Mulone, (to cite a few). El lunes, 30 de abril de 2012 21:49:41 UTC+2, Anthony escribió: > > Most web2py resources can be found on web2py.com, but here are some > Google Groups top

[web2py] Anyone having experience creating FaceBook apps using web2py and GAE?

2012-05-03 Thread David Marko
Anyone havng experience creating FaceBook apps using web2py and GAE? GAE can be used for this, just want to know whether expect any technical obstacles/dificulties when using web2py for this? Thank you, David

[web2py] An insult to web2py ?

2012-05-03 Thread António Ramos
a person just wrote this about web2py in a portuguese forum Anyone care to coment? Viva, Eu conheci primeiro o web2py e só uns meses depois o Django. Ao início achei bastante interessante (a ferramenta de admin, tutorial fácil de seguir, etc.). O que me fez saltar do web2py para o django e nunca

[web2py] Re: Noob Question. How do I make an external link?

2012-05-03 Thread zounds
LoL! Just realized that you answered my question on stackoverflow as well. Thanks again for your help!

[web2py] Re: An insult to web2py ?

2012-05-03 Thread Anthony
Well, I had to use Google Translate, so not sure I got everything, but here are a few thoughts: - Sounds like he used web2py quite a long time ago, before the DAL was re-written, and before countless other improvements, so this is not really a criticism of the current web2py. - web2

[web2py] Re: An insult to web2py ?

2012-05-03 Thread Stefan Scholl
António Ramos wrote: > a person just wrote this about web2py in a portuguese forum > Anyone care to coment? I recognize the language from about 1/4 of the spam I receive.

[web2py] A helper callback

2012-05-03 Thread Fülöp Gergely
Hello, I would like to use the callback parameter to call my client-side js instead of replacing the content of an element. In the web2py.js I've found that the ajax() function makes it possible in the else part: jQuery.ajax({type: "POST", url: u, data: query, success: function(msg) { if( t) { if(

[web2py] Re: CMS question

2012-05-03 Thread Aurelijus Useckas
First of all it looks very promissing. I would just consider including some more options into the editing toolbar. *Underline* for instance, or perhaps even some additional fonts? Or do we want the style to be in line with the CSS only? That's a reasonable idea too. What about if I want to edi

[web2py] Re: A helper callback

2012-05-03 Thread Anthony
> > But I've found this in the A helper: > self['_onclick']="ajax('%s',[],'%s');%sreturn false;" % \ > (self['callback'],self['target'] or '',d) > > The single quotes are there regardless the type of target. > > So how can I specify any target of type other than string? > > Yes I know if I u

[web2py] Re: .update_or_insert not optimized!!

2012-05-03 Thread Anthony
> > You're manual version updates only two fields, whereas update_or_insert >> updates six fields -- maybe that's the difference. >> >> Anthony >> > > Yes, but I want to insert a new record with six fields, but update only > two if the record exists. How to do that with .update_or_insert? > Lo

Re: [web2py] list:reference question about order and unordered reference id list

2012-05-03 Thread Richard Vézina
I use IS_IN_DB with a set not the table directly... analyst_set = db((db.auth_group.role=='analyst') & (db.auth_user.id==db.auth_membership.user_id) & (db.auth_membership.group_id==db.auth_group.id)) requires=IS_IN_DB(analyst_set,'auth_user.id','%(initials)s',\ multiple=True,cache=(ca

Re: [web2py] list:reference question about order and unordered reference id list

2012-05-03 Thread Richard Vézina
Ok, I remove the IS_IN_DB validator and now I get unordered list... So, look like it the problem... I will try to change it... Richard On Thu, May 3, 2012 at 9:53 AM, Richard Vézina wrote: > I use IS_IN_DB with a set not the table directly... > > analyst_set = db((db.auth_group.role=='analyst')

Re: [web2py] list:reference question about order and unordered reference id list

2012-05-03 Thread Richard Vézina
Think that "sort=False" does the trick!! Thanks for help, I think you can close the issue... Do you want I leave the solution with the issue? Richard On Thu, May 3, 2012 at 10:02 AM, Richard Vézina wrote: > Ok, I remove the IS_IN_DB validator and now I get unordered list... So, > look like it

[web2py] Re: An insult to web2py ?

2012-05-03 Thread villas
> Some further reading: http://www.quora.com/What-are-the-advantages-of-web2py-over-Django Really good summary!

Re: [web2py] list:reference question about order and unordered reference id list

2012-05-03 Thread Richard Vézina
Wait I think it return the element base on the orderby... I test further. Richard On Thu, May 3, 2012 at 10:05 AM, Richard Vézina wrote: > Think that "sort=False" does the trick!! > > Thanks for help, I think you can close the issue... Do you want I leave > the solution with the issue? > > Ric

[web2py] Re: CMS question

2012-05-03 Thread Massimo Di Pierro
On Thursday, 3 May 2012 07:45:40 UTC-5, Aurelijus Useckas wrote: > > First of all it looks very promissing. I would just consider including > some more options into the editing toolbar. *Underline* for instance, or > perhaps even some additional fonts? Or do we want the style to be in line > w

[web2py] Re: Moving web2py app to other server

2012-05-03 Thread Bill Thayer
What I did was to practice with the tutorial app from the book. I made the small app on my local machine using the rocket server and sqlite then practiced moving it to a server with MySQL and Apache. That successful exercise is what made me decide to go forward with web2py vs. django. Perhaps

[web2py] Re: Options for making a chat application with web2py

2012-05-03 Thread mrtn
Thanks! I think I will try SockJS. My main concern with Socket.io is that it does not seem to be well maintained and the documentation is not very good. If there is any other alternative, please feel free to list here. On Wednesday, May 2, 2012 10:28:29 PM UTC-4, Anthony wrote: > > Looks like

[web2py] Re: web2py resources

2012-05-03 Thread Massimo Di Pierro
Please append here. > >

[web2py] Re: CMS question

2012-05-03 Thread Anthony
> > We cannot add more features to the toolbar. I included those features that > all current browser support. Changing attributes like attribute > text-decoration:underline is not supported by all browsers. This is a > editeableContent issue. Anyway, I think the style should be handles by the

[web2py] New style - Lazy Field

2012-05-03 Thread Marcello
Hello, I need to implement a lazy field, that should have some lines of code, with some conditions... The new style example in the book, just have simple calculation fields... Can someone point me some example on it's syntax ?? I could make it with the old way, but would like to do with new sty

[web2py] Re: New style - Lazy Field

2012-05-03 Thread Anthony
I believe the argument to Field.Virtual and Field.Lazy just needs to be a callable object that takes a Row object as an argument, so you could write a function and then pass that function. def myfield(row): [code to generate field value from row object] return value db.mytable.myvirtual

[web2py] Re: CMS question

2012-05-03 Thread Massimo Di Pierro
Another piece of the puzzle is in trunk gluon/contrib/autolinks.py You can use it with other CMSes as well. On Sunday, 22 April 2012 11:24:50 UTC-5, Massimo Di Pierro wrote: > > Let's say we want to build a new kick-ass CMS. > > My technical side tells me that the best way it to use markup langu

[web2py] Re: CMS question

2012-05-03 Thread Massimo Di Pierro
Have you seen this? http://bluepeneditor.com/ Ideally I would like something like that which injects a in the page. Although it will not be in the first release. Perhaps somebody here with good JS skills may want to try reproduce it or can help me find an open source version of their JS module.

[web2py] Re: New style - Lazy Field

2012-05-03 Thread Marcello
Anthony, Worked fine... Thanks very much... Marcello On Thursday, May 3, 2012 1:07:35 PM UTC-3, Anthony wrote: > > I believe the argument to Field.Virtual and Field.Lazy just needs to be a > callable object that takes a Row object as an argument, so you could write > a function and then pa

[web2py] Re: CMS question

2012-05-03 Thread Ross Peoples
Looking at the "better" version of that you just added to trunk, this is pretty cool! I also looked at bluePen editor. That is very cool and looks like something I did once using jQuery UI components. I can't seem to find the code I wrote for it. It was a proof-of-concept that didn't really go

Re: [web2py] Re: Moving web2py app to other server

2012-05-03 Thread Richard Vézina
Marko, What you really wanna do? If your db is squlite, you can just copy the whole app folder and sub-folders and put it in the new server with the same version of web2py and it should work... Just make sure you set properly the owner of the files and folders, permissions should stay the same (n

[web2py] Re: CMS question

2012-05-03 Thread Massimo Di Pierro
If you can find it that is all we need. Would help a lot. On Thursday, 3 May 2012 12:08:17 UTC-5, Ross Peoples wrote: > > Looking at the "better" version of that you just added to trunk, this is > pretty cool! > > I also looked at bluePen editor. That is very cool and looks like > something I di

Re: [web2py] Anyone having experience creating FaceBook apps using web2py and GAE?

2012-05-03 Thread Michele Comitini
Web2py + GAE + Facebook is a good fit. Just be aware that using fb graph API server side you have to take those connections into account, since GAE will make you pay for those if they go over-quota. mic Il giorno 03/mag/2012 11:30, "David Marko" ha scritto: > Anyone havng experience creati

[web2py] Installing scheduler on linux

2012-05-03 Thread Michael Toomim
Anyone have a recipe to make the scheduler run on boot? I'm using ubuntu. Web2py is run in apache (using the recipe in the book), so I can't just use the cron @reboot line. This is the line that needs to be run when my system boots: python /home/web2py/web2py/web2py.py -K It seems ubuntu us

[web2py] Re: Why Bottle and Web2py?

2012-05-03 Thread Michael Toomim
I think the best combination of web2py and bottle would be, as you suggested—importing the web2py DAL into bottle. The DAL is the most important thing that bottle lacks, and the web2py DAL is great to plug into other projects. I use it a lot for that. That said, in my experience, you will quick

[web2py] Re: An insult to web2py ?

2012-05-03 Thread Tiago Almeida
Hi, Other than trying to start a flame war, I don't see reasons for bringing my comment from the portuguese python group to here. Anyway, since Anthony cared to comment I'll also comment. - I'm glad DAL was re-written. When I left web2py it was a mess and there were many objections to touching

[web2py] Trying to implement a full-page calendar

2012-05-03 Thread Cindy Michalowski
Hello all, I am trying to implement a full page calendar as part of a web2py website, and after many google/bing/etc. searches I'm finding very few results. Basically, I want to make a calendar - month view only - that allows the user to view a calendar in the current month by default, and then a

[web2py] Re: web2py resources

2012-05-03 Thread newnomad
For those without any prior python knowledge, is it useful or essential to first exercise it, using the learnpythonthehardway book for example? Or would it confuse, and is the advise to dive directly into web2py? > >

[web2py] Re: RFC: web2py-based workflow engine

2012-05-03 Thread Cliff
Ross, This comes at an opportune time, as I have been asked to do some workflow work. Here's where you need authorization. This scenario has two players, a department manager and the company accountant. An invoice comes to the department manager, so at that point we might call its state rec

[web2py] My home made ide

2012-05-03 Thread Ricardo Pedroso
Hi, Just to let you know that I uploaded to github my ugly home made web2py ide. It was a big hack to let me do web2py development on my own way. Basically is a thin "wrapper" around vim (my editor of choice). I only have linux so I don't know if it works on Mac/Windows (In theory it should work

[web2py] Re: An insult to web2py ?

2012-05-03 Thread Anthony
First, welcome, and thanks for taking the time to share your thoughts. > Other than trying to start a flame war, I don't see reasons for bringing > my comment from the portuguese python group to here. > I don't think anyone was trying to start a flame war. I assume he was just seeking clarifi

Re: [web2py] My home made ide

2012-05-03 Thread Bruno Rocha
Amazing! I cloned and I am using it now, the console tabs is a killer feature! I loved having tracebacks and webserver logs here. Can you explain how the "eval shell" works? Thank you for sharing this, I will try to contribute! On Thu, May 3, 2012 at 10:30 PM, Ricardo Pedroso wrote: > Hi, > >

[web2py] Re: web2py resources

2012-05-03 Thread Anthony
On Thursday, May 3, 2012 8:20:28 PM UTC-4, newnomad wrote: > > For those without any prior python knowledge, is it useful or essential to > first exercise it, using the learnpythonthehardway > book for > example? Or would it confuse, and is the advise to dive d

Re: [web2py] My home made ide

2012-05-03 Thread Ricardo Pedroso
On Fri, May 4, 2012 at 2:41 AM, Bruno Rocha wrote: > Amazing! > > I cloned and I am using it now, the console tabs is a killer feature! I > loved having tracebacks and webserver logs here. > > Can you explain how the "eval shell" works? Wow, you were quick... You must be in debug mode. Then you

[web2py] web2py with Google Charts

2012-05-03 Thread weheh
In trying to get web2py to talk to Google charts, I need to be able to create a "DataTable" for Google charts that looks like this (taken from their doc): { cols: [{id: 'A', label: 'NEW A', type: 'string'}, {id: 'B', label: 'B-label', type: 'number'}, {id: 'C', label: 'C-labe

Re: [web2py] My home made ide - Screenshots

2012-05-03 Thread Ricardo Pedroso
As requested by Massimo, I've upload some screenshots: https://github.com/rpedroso/gweb2py/raw/master/screenshots/gweb2py00.png https://github.com/rpedroso/gweb2py/raw/master/screenshots/gweb2py01.png https://github.com/rpedroso/gweb2py/raw/master/screenshots/gweb2py02.png https://github.com/rpedr

[web2py] Very basic question about href and redirect

2012-05-03 Thread Madu
Sorry for this basic question but I don't why the hyperlink is not working: New DB Insert What I want is to redirect to this URL when the link is clicked, but when I load the page it automatically redirects. I have experienced this with other HTML tags too. Can somebody please explain why the P

[web2py] Re: Very basic question about href and redirect

2012-05-03 Thread pbreit
I think all you want is this: New DB Insert

[web2py] Re: An insult to web2py ?

2012-05-03 Thread Massimo Di Pierro
Dear Tiago, No problem at all. All comments can help us improve and or give us an opportunity for clarification. On Thursday, 3 May 2012 16:04:14 UTC-5, Tiago Almeida wrote: > > Hi, > > Other than trying to start a flame war, I don't see reasons for bringing > my comment from the portuguese pyt

[web2py] Re: My home made ide

2012-05-03 Thread Massimo Di Pierro
very nice! On Thursday, 3 May 2012 20:30:11 UTC-5, Ricardo Pedroso wrote: > > Hi, > > Just to let you know that I uploaded to github my ugly home made web2py > ide. > It was a big hack to let me do web2py development on my own way. > > Basically is a thin "wrapper" around vim (my editor of cho

[web2py] Re: Very basic question about href and redirect

2012-05-03 Thread Madu
Thanks pbreit! That was it. So whatever Python code inside {{}} will be executed, irrespective of the link is clicked or not. On Friday, May 4, 2012 12:30:46 PM UTC+9, pbreit wrote: > > I think all you want is this: > New DB Insert >

[web2py] Re: Very basic question about href and redirect

2012-05-03 Thread Anthony
On Thursday, May 3, 2012 11:25:01 PM UTC-4, Madu wrote: > > Sorry for this basic question but I don't why the hyperlink is not working: > New DB Insert > Note, redirect('some_url') is equivalent to raise HTTP(303, Location='some_url'). So, when redirect() is called, you are raising an exception

[web2py] Re: CMS question

2012-05-03 Thread Massimo Di Pierro
This is what I have so far. https://github.com/mdipierro/w2cms requires beautifulsoup still requires some work, specifically testing and usability. In order to edit-in-place you must click on the text then edit it. If you cut and part a link to you a youtube page, it will embed the video. If y

[web2py] Re: Very basic question about href and redirect

2012-05-03 Thread Anthony
> > So whatever Python code inside {{}} will be executed, irrespective of the > link is clicked or not. > Note, the Python code is not sent to the browser. When a web2py URL is requested, before returning a response to the browser, web2py executes the template on the server. At that time, all

Re: [web2py] My home made ide - Screenshots

2012-05-03 Thread José Ricardo Borba
Very impressive. Very good job. I will be glad if you share with us. José Ricardo Borba Porto Alegre - RS 2012/5/3 Ricardo Pedroso > As requested by Massimo, I've upload some screenshots: > > https://github.com/rpedroso/gweb2py/raw/master/screenshots/gweb2py00.png > https://github.com/rpedroso/

Re: [web2py] My home made ide - Screenshots

2012-05-03 Thread Kenny Chung
beautiful. looking great! On Thu, May 3, 2012 at 9:12 PM, José Ricardo Borba wrote: > Very impressive. Very good job. I will be glad if you share with us. > > José Ricardo Borba > Porto Alegre - RS > > > 2012/5/3 Ricardo Pedroso > >> As requested by Massimo, I've upload some screenshots: >> >> h

[web2py] default/user.html and custom form

2012-05-03 Thread Annet
I'd like to divide the default/user.html forms into a body and footer part, the body containing the fields the footer containing the cancel and submit button, something like this: Login with your Leonexus ID Enter your username and password the form fields here

Re: [web2py] default/user.html and custom form

2012-05-03 Thread Bruno Rocha
http://web2py.com/books/default/chapter/29/7#Custom-forms On Fri, May 4, 2012 at 3:30 AM, Annet wrote: > > > Login with your Leonexus ID > > > Enter your username and password > > {{=form.custom.begin}} > > {{=form.custom.username.widget}} > {{=form.custom.password.wid