On Tuesday, May 9, 2017 at 11:08:22 AM UTC-7, Joe Barnhart wrote: > > It's embarrassing to admit, but I'm really clueless when it comes to > collaborating using git. I had barely mastered hg before the change and > I'm only able to figure out basic checkout-checkin stuff with git or I'd > contribute more. I'm more of an old-school programmer who cut his teeth on > cvs. > > -- Joe > > Most of it can be done with the github.com UI, but if you're uncomfortable about it, send me the text you'd like to see. I've already done a couple PRs against the manual. I'll be happy to give you credit in the log message. (There's a git adapter for Mercurial, but I haven't tried using it against anything yet. I'll let you know when I do.)
/dps > On Tuesday, May 9, 2017 at 7:35:08 AM UTC-7, Anthony wrote: >> >> Good point. Maybe submit a PR to the book repo. >> >> On Monday, May 8, 2017 at 5:07:01 PM UTC-4, Joe Barnhart wrote: >>> >>> In the section about SQLFORM, the description of hidden fields is >>> demonstrably wrong. The code example is: >>> >>> form.vars.a = request.vars.a >>> form = SQLFORM(..., hidden=dict(a='b')) >>> >>> >>> Since the variable "form" is created on the second line, it is not >>> available on the first as the target of an assignment. >>> >>> I do not know what the documentation should say, but I suspect its a bit >>> more complex than this simple two-line example. I've been struggling with >>> this most of the day and saving the values from hidden fields still eludes >>> me. I can't assign the fields in an "onvalidation" method because the >>> accepts() logic specifically looks for fields which are in the request.vars >>> and excludes them from the saved fields. I've been tracing thru "validate" >>> and "accept" in FORM and SQLFORM most of the day looking for a crack in the >>> armor to get my hidden fields saved. >>> >>> Joe >>> >>> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.