[web2py:36560] Hybrid SQLForm errors

2009-12-05 Thread James
Hi, I'm new to Web2Py, and am struggling with debugging a problem which is most likely caused by my lack of understanding of the back-end of Web2Py. I'm writing an app that creates a form using SQLForm, which I display using a form.custom.widget.etc. I've then added to this form an input (Numbero

[web2py:36561] Re: Hybrid SQLForm errors

2009-12-05 Thread mdipierro
Hi James, the problem is that you cannot accept the same form in a loop. The first time will pass but the second time it will not. My guess is that you want something like this: def ManageAssets(): form = SQLFORM(db.AssetTable) if form.accepts(request.vars, dbio=False) and request.vars.Nu

[web2py:36562] Re: Hybrid SQLForm errors

2009-12-05 Thread James
Beautiful, thanks! That sorts that out, now I can get some movement on this thing. Thanks for your help. --James -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from

[web2py:36563] Re: new on web2pyslices.com: WebGrid

2009-12-05 Thread David
Nicely! On Dec 4, 2:44 pm, "mr.freeze" wrote: > This is a module I wrote to generate a grid that supports paging, > sorting, crud links, totals and a few other things.  It's still a work > in progress but seems to be functioning nicely: > > http://www.web2pyslices.com/main/slices/take_slice/39 >

Re: [web2py:36564] google code svn > mercurial (done!?)

2009-12-05 Thread Álvaro Justen [Turicas]
On Fri, Dec 4, 2009 at 20:43, mdipierro wrote: > I have migrated the google code repository from svn to mercurial. > >    http://code.google.com/p/web2py/source/browse/#hg > > Thanks to Yarko for being pushy in this direction. > > It works for me but please check if it works for you too. If you do

[web2py:36565] Re: getting stable version equivalent from SVN

2009-12-05 Thread Yarko Tymciurak
On Dec 4, 1:52 pm, Fred wrote: > On Dec 4, 11:36 am, Jonathan Lundell wrote: > > > > The nice thing about it is that you can create a tag for an official > > release, and then users can access the release by its name, rather than > > having to figure out the corresponding svn revision num

[web2py:36566] Re: upgrade app

2009-12-05 Thread Yarko Tymciurak
On Dec 4, 6:41 pm, mdipierro wrote: > The fact is google code continues to hold the old svn. A number have > complained about the web2py history being big and making the pull too > long. I thought it was good to start from scratch. Was I wrong? > > Massimo > Since google code keeps the old reposi

[web2py:36567] Re: new on web2pyslices.com: WebGrid

2009-12-05 Thread villas
Hi Mr Freeze, I've just been playing around with it and I was really impressed. It seems stable and so I'm already making plans to use it. I need to right-justify numbers, format numbers, grand totals, use icons etc. I'm not sure about using the lamba functions yet. If you get time to provide an

[web2py:36568] Re: upgrade app

2009-12-05 Thread Yarko Tymciurak
On Dec 5, 9:18 am, Yarko Tymciurak wrote: > On Dec 4, 6:41 pm, mdipierro wrote: > > > The fact is google code continues to hold the old svn. A number have > > complained about the web2py history being big and making the pull too > > long. I thought it was good to start from scratch. Was I wrong?

[web2py:36569] Re: new on web2pyslices.com: WebGrid

2009-12-05 Thread mr.freeze
The grid will try to use the field's 'represent' function if present so you may try that first before customizing the entire row. Hope that helps. On Dec 5, 9:20 am, villas wrote: > Hi Mr Freeze, > > I've just been playing around with it and I was really impressed. It > seems stable and so I'm al

[web2py:36570] Re: google code svn > mercurial (done!?)

2009-12-05 Thread Yarko Tymciurak
On Dec 4, 7:03 pm, mdipierro wrote: > Actually this is something I am trying to understand. Google code > seems to require a choice hg or svn. I thought that google code would > store the data so that one could retrieve it in both svn and hg but it > seems now only the old data is available in svn

[web2py:36571] Re: google code svn > mercurial (done!?)

2009-12-05 Thread mr.freeze
I may be misreading but are you saying that SVN will *not* be supported going forward? On Dec 5, 9:39 am, Yarko Tymciurak wrote: > On Dec 4, 7:03 pm, mdipierro wrote: > > > Actually this is something I am trying to understand. Google code > > seems to require a choice hg or svn. I thought that

Re: [web2py:36572] Re: google code svn > mercurial (done!?)

2009-12-05 Thread Thadeus Burgess
I believe so. We are using Mercurial now for development. You can still access the old revisions through SVN, but everything from this point forward, will be with mercurial. -Thadeus On Sat, Dec 5, 2009 at 9:46 AM, mr.freeze wrote: > I may be misreading but are you saying that SVN will *n

[web2py:36573] MVC and Web Service Client Design

2009-12-05 Thread David
Hey guys, I've been working on converting my PHP web service client for eBay to web2py . I've got it successfully pulling the time from the eBay servers using xml.dom.minidom and I am quite excited about this because it's a lot easier to do so far. I am still a bit confused on the MVC way of doi

[web2py:36574] Re: new on web2pyslices.com: WebGrid

2009-12-05 Thread mr.freeze
I added an example to the slice of how to customize the footer (just before the screenshot). On Dec 5, 9:20 am, villas wrote: > Hi Mr Freeze, > > I've just been playing around with it and I was really impressed. It > seems stable and so I'm already making plans to use it. > > I need to right-just

[web2py:36575] Re: Sphinx

2009-12-05 Thread Yarko Tymciurak
On Dec 4, 9:45 am, mdipierro wrote: > Hi Dimitri, > > A few months back, Hans, Tim, Jonathan helped port most (if not all) > the docstrings to Sphinx. Tim also wrote a script to generate Sphinx > documentation from the docstrings (which in web2py/doc/ Yes - Tim nicely proposed a system of minimum

[web2py:36576] Re: Error retrieving data from legacy table, mysql. Python2.6 x64 MySQL

2009-12-05 Thread DenesL
On 4 dic, 17:17, mdipierro wrote: > There is not trivial solution since different databases handle blobs > in different ways (which is why web2py normally base64 encodes them) > and there are issues with escaping and encoding. If you do not need > that column, I suggest use a sql view to eliminat

Re: [web2py:36577] Re: web2py mod_wsgi apache problem

2009-12-05 Thread Oguz Yarimtepe
Oh god, i was just planing to try centos to deploy it. Why is it that much hard? Seems i should be using Ubuntu. On Wed, 2 Dec 2009 09:54:23 -0600 Thadeus Burgess wrote: > I could never get apache/mod_wsgi to install on centos5, so I switch to > ubuntu. -- Oguz Yarimtepe -- You received thi

[web2py:36578] haha vs aha!?

2009-12-05 Thread mdipierro
Denes pointed out that in a few occasions I have used 'haha!' instead of 'aha!'. I always used it to meant a "moment of insight" and never a laugther. I was not aware there was a difference between the two expressions. I apologize. Thank you Denes for pointing this out. My english is as good as it

[web2py:36579] jmeter usage for testing web2py

2009-12-05 Thread Oguz Yarimtepe
Hi, I was trying to test my web2py application by using jmeter. I am not sure whether anybody tried it in this list but i followed the steps mentioned here: http://one-size-doesnt-fit-all.blogspot.com/2009/06/stress-load-testing-web-applications.html It worked for a PHP application and i was ab

[web2py:36580] Re: google code svn > mercurial (done!?)

2009-12-05 Thread Yarko Tymciurak
On Dec 5, 9:46 am, "mr.freeze" wrote: > I may be misreading but are you saying that SVN will *not* be > supported going forward? Yes - that is correct. You can browse the old SVN repository at http://web2py.googlecode.com/svn (as per http://code.google.com/p/support/wiki/ConvertingSvnToHg) > >

Re: [web2py:36581] Re: upgrade app

2009-12-05 Thread Jonathan Lundell
On Dec 5, 2009, at 7:18 AM, Yarko Tymciurak wrote: > Finally, you will not have BOTH svn and mercurial: people who used to > use SVN and are not comfortable with command line checkout should > consider getting ToirtiseHG to get / checkout web2py: > http://tortoisehg.bitbucket.org/ Just for the

Re: [web2py:36582] Re: google code svn > mercurial (done!?)

2009-12-05 Thread Jonathan Lundell
BTW, http://www.web2py.com/examples/default/download still says SVN for the latest. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web

[web2py:36583] Re: new on web2pyslices.com: WebGrid

2009-12-05 Thread villas
> The grid will try to use the field's 'represent' function if present > so you may try that first before customizing the entire row. Hope that > helps. Yes, I'd missed that little gem! Thanks for the 'Footer' example too. D -- You received this message because you are subscribed to the Google G

[web2py:36584] Decimal Problem

2009-12-05 Thread villas
Massimo could you please check line 3060 in sql.py This line: decimals = [int(x) for x in field.type[9:-1].split(',')][-1] Should be: decimals = [int(x) for x in field.type[8:-1].split(',')][-1] Regards, D -- You received this message because you are subscribed to the Google Groups "web2py-us

[web2py:36585] Re: haha vs aha!?

2009-12-05 Thread villas
> Masimo Of course we forgive you, you even get your own name wrong! Now that's qualifies as "haha" !! :-) D -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from thi

[web2py:36586] Re: upgrade app

2009-12-05 Thread Yarko Tymciurak
On Dec 5, 11:23 am, Jonathan Lundell wrote: > On Dec 5, 2009, at 7:18 AM, Yarko Tymciurak wrote: > > > Finally, you will not have BOTH svn and mercurial:  people who used to > > use SVN and are not comfortable with command line checkout should > > consider getting ToirtiseHG to get / checkout web2

Re: [web2py:36587] MVC and Web Service Client Design

2009-12-05 Thread Thadeus Burgess
The functions that retrieves/stores the data should go in your models. Your controllers use these functions and manipulate the data, to save it will pass the data to a save model. So gettime() would just call a function say getdata(). getdata() would httplib the external data and check it for erro

[web2py:36588] Re: haha vs aha!?

2009-12-05 Thread mdipierro
LOL On Dec 5, 11:38 am, villas wrote: > > Masimo > > Of course we forgive you, you even get your own name wrong! > > Now that's qualifies as "haha" !! > :-)  D -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email t

Re: [web2py:36589] Re: web2py mod_wsgi apache problem

2009-12-05 Thread Thadeus Burgess
Are you going to be using mediatemple? Don't do it, they are a waste of money. If you want a vps, go with slicehost, if you want shared go with webfaction. I even had difficulties setting web2py up on gentoo... it's a real problem when every distro thinks they need to change how a package works.

Re: [web2py:36590] Re: web2py mod_wsgi apache problem

2009-12-05 Thread Thadeus Burgess
There is always something to be said for software that DWIM :) -Thadeus On Sat, Dec 5, 2009 at 11:50 AM, Thadeus Burgess wrote: > Are you going to be using mediatemple? Don't do it, they are a waste > of money. If you want a vps, go with slicehost, if you want shared go > with webfaction. >

Re: [web2py:36591] Re: upgrade app

2009-12-05 Thread Jonathan Lundell
On Dec 5, 2009, at 9:47 AM, Yarko Tymciurak wrote: > On Dec 5, 11:23 am, Jonathan Lundell wrote: >> On Dec 5, 2009, at 7:18 AM, Yarko Tymciurak wrote: >> >>> Finally, you will not have BOTH svn and mercurial: people who used to >>> use SVN and are not comfortable with command line checkout shou

Re: [web2py:36592] Re: Sphinx

2009-12-05 Thread Thadeus Burgess
I agree.. lets vote to ratify the vote that we made about the vote on ratifying the votes of this voting session. As I am diving deeper into gluon, I would love to help contribute to documentation. Morover I am interested in documentation for plug-ins/modules, since I am developing plugin-central

[web2py:36593] Re: google code svn > mercurial (done!?)

2009-12-05 Thread mr.freeze
That's mildly annoying as subversion is still widely used in the enterprise. On Dec 5, 11:20 am, Yarko Tymciurak wrote: > On Dec 5, 9:46 am, "mr.freeze" wrote: > > > I may be misreading but are you saying that SVN will *not* be > > supported going forward? > > Yes - that is correct. > > You can

[web2py:36594] Re: google code svn > mercurial (done!?)

2009-12-05 Thread Yarko Tymciurak
On Dec 5, 12:00 pm, "mr.freeze" wrote: > That's mildly annoying as subversion is still widely used in the > enterprise. We have been talking about moving to mercurial in google code since last February - and we suggested we would do it in September... CVS is still used by some too, but I don't

Re: [web2py:36595] Re: google code svn > mercurial (done!?)

2009-12-05 Thread Thadeus Burgess
I have been trying to figure out, how do you do code review? -Thadeus On Sat, Dec 5, 2009 at 12:12 PM, Yarko Tymciurak wrote: > > > On Dec 5, 12:00 pm, "mr.freeze" wrote: >> That's mildly annoying as subversion is still widely used in the >> enterprise. > > We have been talking about moving

[web2py:36596] Re: google code svn > mercurial (done!?)

2009-12-05 Thread mr.freeze
> We have been talking about moving to mercurial in google code since > last February - and we suggested we would do it in September... Yes, but I didn't realize that they were mutually exclusive, meaning that subversion updates would stop when mercurial started. > CVS is still used by some too,

[web2py:36597] web2py code reviews (a test)

2009-12-05 Thread Yarko Tymciurak
Google Code provides a code review tool. Let's figure out how to use this. Here are the basics: To to the file / line you want to comment on; double-click the line; enter your comment. Here are the administrative details: To accept comments, a "project" (by default) allows comments by project

[web2py:36598] Re: Decimal Problem

2009-12-05 Thread mdipierro
will fix soon. thanks On Dec 5, 11:34 am, villas wrote: > Massimo could you please check line 3060 in sql.py > > This line: > decimals = [int(x) for x in field.type[9:-1].split(',')][-1] > > Should be: > decimals = [int(x) for x in field.type[8:-1].split(',')][-1] > > Regards, D -- You receive

[web2py:36599] mercurial and bazaar timings

2009-12-05 Thread Yarko Tymciurak
FYI - I made clean clones from both launchpad and google code / mercurial today. To ensure that the server was "queued" / cached, I did a checkout, deleted my local clone, and then repeated the checkout (timed the second time). I think you will be pleased with the results - here's what I got (Co

[web2py:36600] Re: upgrade app

2009-12-05 Thread Yarko Tymciurak
On Dec 1, 8:51 pm, mdipierro wrote: > I am not sure if there is a question. > > People are supposed to use the stable distribution (not svn or bzr). > In that case you unzip, the *.w2p are there. You upgrade with > > web2py --upgrade=yes > > svn and bzr are for testers. I commit any modifications,

[web2py:36601] Re: mercurial and bazaar timings

2009-12-05 Thread mdipierro
I can confirm. :-) On Dec 5, 1:34 pm, Yarko Tymciurak wrote: > FYI -  I made clean clones from both launchpad and google code / > mercurial today. > > To ensure that the server was "queued" / cached, I did a checkout, > deleted my local clone, and then repeated the checkout (timed the > second ti

[web2py:36602] Re: web2py code reviews (a test)

2009-12-05 Thread Yarko Tymciurak
It appears mercurial code review of branches is not yet in place - http://code.google.com/p/support/issues/detail?id=2514 you can create a clone, open it for comments, and refer to an issue on the main project, but it looks like you will only have line-by-line comments; You will be missing genera

[web2py:36603] Re: Sphinx

2009-12-05 Thread Yarko Tymciurak
On Dec 5, 11:58 am, Thadeus Burgess wrote: > I agree.. > > lets vote to ratify the vote that we made about the vote on ratifying > the votes of this voting session. LOL :-) -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group

[web2py:36604] Re: new on web2pyslices.com: WebGrid

2009-12-05 Thread mr.freeze
You didn't miss it, I added it after the fact. One note - currently you can only use one WebGrid per page. I should have a fix for this soon. On Dec 5, 11:30 am, villas wrote: > > The grid will try to use the field's 'represent' function if present > > so you may try that first before customizing

[web2py:36605] Re: haha vs aha!?

2009-12-05 Thread Mengu
massimo, you have broken tons of hearts. :) On Dec 5, 7:18 pm, mdipierro wrote: > Denes pointed out that in a few occasions I have used 'haha!' instead > of 'aha!'. I always used it to meant a "moment of insight" and never a > laugther. I was not aware there was a difference between the two > exp

[web2py:36606] Re: web2py mod_wsgi apache problem

2009-12-05 Thread Yarko Tymciurak
On Dec 5, 11:50 am, Thadeus Burgess wrote: > Are you going to be using mediatemple? Don't do it, they are a waste > of money. If you want a vps, go with slicehost, if you want shared go > with webfaction. PyCon hosts with Tummy.com - you should check them out too (if you're going to look at slice

[web2py:36607] Re: upgrade app

2009-12-05 Thread Yarko Tymciurak
On Dec 5, 11:55 am, Jonathan Lundell wrote: > On Dec 5, 2009, at 9:47 AM, Yarko Tymciurak wrote: > > > On Dec 5, 11:23 am, Jonathan Lundell wrote: > >> On Dec 5, 2009, at 7:18 AM, Yarko Tymciurak wrote: > . > Example: there's a menu item not just for diff with head, but diff with > previous

[web2py:36608] Re: mercurial and bazaar timings

2009-12-05 Thread Yarko Tymciurak
come to think of it, that might not be a "fair" timing: web2py repository VERSIONS derived files (and binary ones at that) - the *.w2p files; That can create huge change sets Massimo - can you think of how to derive the *.w2p files, and NOT check them in? This would be better, so that ther

[web2py:36609] Re: haha vs aha!?

2009-12-05 Thread weheh
Aha! I had spent s much time wondering and worrying about the haha! comments (not) that I am now giggling with understanding. I can't help but say ahahahahaha! -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email

[web2py:36610] Re: haha vs aha!?

2009-12-05 Thread weheh
Aha! I had spent s much time wondering and worrying about the haha! comments (not) that I now giggle with understanding, "ahahahahaha!" (Oops, I hope I didn't just violate the new rules of conduct?! (nervous haha!)) -- You received this message because you are subscribed to the Google Groups

[web2py:36611] update process

2009-12-05 Thread Wes James
I have this in a controller: def qentry(): if auth.is_logged_in(): redirect(URL(r=request,c='default',f='page1')) student=db(db.student.sid==2).select() form=crud.update(db.student,student[0], next='qresults') return dict(form=form) The first time the page runs it should just retu

[web2py:36612] Re: update process [RESOLVED]

2009-12-05 Thread Wes James
Sorry - It was not validating and I see why now - validation error was keeping it from going to the "next". -wes On Sat, Dec 5, 2009 at 4:59 PM, Wes James wrote: > I have this in a controller: > > def qentry(): >    if auth.is_logged_in(): redirect(URL(r=request,c='default',f='page1')) >    stud

Re: [web2py:36613] Re: mercurial and bazaar timings

2009-12-05 Thread Thadeus Burgess
I posted my sample .hgignore for a web2py project, should work *since we don't want databases or sessions with the commits* -Thadeus On Sat, Dec 5, 2009 at 3:27 PM, Yarko Tymciurak wrote: > come to think of it, that might not be a "fair" timing: > > web2py repository VERSIONS  derived files

Re: [web2py:36614] Re: google code svn > mercurial (done!?)

2009-12-05 Thread Thadeus Burgess
I found this post about mercurial clones.. http://forums.sketchucation.com/viewtopic.php?f=314&t=22761&start=0&st=0&sk=t&sd=a -Thadeus On Sat, Dec 5, 2009 at 12:24 PM, mr.freeze wrote: >> We have been talking about moving to mercurial in google code since >> last February - and we suggeste

Re: [web2py:36615] Re: google code svn > mercurial (done!?)

2009-12-05 Thread Thadeus Burgess
Looks as if you will have to do this command line. hg pull https://web2py.googlecode.com/hg/ hg merge hg update -Thadeus On Sat, Dec 5, 2009 at 6:36 PM, Thadeus Burgess wrote: > I found this post about mercurial clones.. > > http://forums.sketchucation.com/viewtopic.php?f=314&t=22761&st

Re: [web2py:36616] Re: google code svn > mercurial (done!?)

2009-12-05 Thread Thadeus Burgess
And these can be set in your hgrc file [paths] default = https://thadeusburgess-web2py.googlecode.com/hg/ web2py = https://web2py.googlecode.com/hg/ [auth] username = *** password = *** -Thadeus On Sat, Dec 5, 2009 at 6:38 PM, Thadeus Burgess wrote: > Looks as if you will have to do this c

[web2py:36617] Re: mercurial and bazaar timings

2009-12-05 Thread Yarko Tymciurak
yes - we should include this in the repository (some .hgignore file). It won't matter if people update for their needs, as it will just merge but we should have a basic default .hgignore. On Dec 5, 6:26 pm, Thadeus Burgess wrote: > I posted my sample .hgignore for a web2py project, should w

[web2py:36618] Count with INNER JOIN and WHERE

2009-12-05 Thread James
Hi, I've read through the manual and the Cookbook, and found some details about how to use a left outer join with count, but don't understand how to use it correctly. I'm hoping that if I post some SQL that does what I want, that someone can translate it to Web2Py code for me. Despite mentioning t

[web2py:36619] Re: Count with INNER JOIN and WHERE

2009-12-05 Thread weheh
Have you tried something like this? db((db.TypeTable.TypeID=='Desktop') & (db.AssetTable.TypeID==db.TypeTable.id)).count() -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscr