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
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
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
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
>
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
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
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
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
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?
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
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
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
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
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
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
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
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
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
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
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
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)
>
>
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
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
> 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
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
> 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
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
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
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
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.
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.
>
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
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
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
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
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
> 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,
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
60 matches
Mail list logo