[web2py] Set Time

2013-05-31 Thread REM
Greetings! I am just beginning to use web2py and I noticed that, in going through the manual and working on the create wiki section, when I added the RSS feed section, the indicated creation time listed for the wiki was hours and hours earlier than its actual local creation time. Other time asp

[web2py] Manual: RE built-in wiki

2013-05-31 Thread REM
Felicitations, Fellow Primates! I'm working through the web2py manual and, having reached the built-in wiki section and following the instructions, after the built-in wiki is created (logged in as admin, of course otherwise we couldn't create it to begin with), we navigate to the index for the

[web2py] Re: Set Time

2013-05-31 Thread REM
are created. That is the time of the > server, not the time of the client. > > > On Friday, 31 May 2013 11:00:10 UTC-5, REM wrote: >> >> Greetings! >> >> I am just beginning to use web2py and I noticed that, in going through >> the manual and wor

[web2py] More Manual Issues

2013-06-04 Thread REM
Still working through the manual, however puzzling and unexplained things do still occur. For instance: why does this code (cut and pasted from P.233) - placed in a view of course - always generate a syntax error? {{=DIV(B(I("hello ", ""))), _class="myclass")}} Well, first I thought it was beca

Re: [web2py] Re: More Manual Issues

2013-06-04 Thread REM
thanks for your assistance. I do appreciate it very much! On Tuesday, June 4, 2013 12:22:09 PM UTC-4, Anthony wrote: > > OK, not sure what to say -- it definitely works for me. Can you show the > full traceback you are getting? > > Anthony > > On Tuesday, June 4, 20

[web2py] Errors in form, please check it out....... HOW?

2013-06-17 Thread REM
I'm attempting to understand a few things and decided to test out one of the items at: http://web2py.com/appliances Specifically, the video library example at the bottom of the page. I tried installing it from the URL feature on the admin page but I get the message: "Errors in form, please chec

[web2py] Implementing the download action in the manual's "images" tutorial application

2013-07-17 Thread REM
Hello, folks. I started back at the top of the manual again and I am understanding much more by progressing slowly and with copious notes. So far, so good. However, I have come across a bit of a puzzling issue with the latter part of the "images" tutorial. After creating the dbases, uploading

[web2py] Re: Implementing the download action in the manual's "images" tutorial application

2013-07-18 Thread REM
trying to do this? > > src="{{=URL('download', > args=image.file)}}" /> > > > > On Thursday, 18 July 2013 01:20:48 UTC-5, REM wrote: >> >> Hello, folks. >> >> I started back at the top of the manual again and I am understanding much &

[web2py] Re: Implementing the download action in the manual's "images" tutorial application

2013-07-18 Thread REM
ake a different action and save the > image in your Downloads folder. That would be a client-side action and it > must be triggered by user interaction or coded into the HTML with JS. > > Did I answer the question? > > > On Thursday, 18 July 2013 02:53:49 UTC-5, REM wrote:

[web2py] Re: Errors in form, please check it out....... HOW?

2013-07-21 Thread REM
y, you too. On Monday, June 17, 2013 10:04:50 AM UTC-4, REM wrote: > > I'm attempting to understand a few things and decided to test out one of > the items at: http://web2py.com/appliances > > Specifically, the video library example at the bottom of the page. I tried > i

[web2py] Book correction: Forms and Validators - 7.2.3 (5th ed. p.364-5)

2013-08-19 Thread REM
It would appear that there's a slight error or two in Chapter 7 in section 7.2.3 In the controller the book has: def display_form(): record = db.person(request.args(0)) or redirect(URL('index')) form = SQLFORM(db.person, record, deletable=True, upload=URL('download'))

[web2py] Another Book Correction Needed (5th ed P.369)

2013-08-20 Thread REM
There appears to be another error in the 5th Edition Web2Py book in Chapter 7 on P.369. The issue is with the following code block: def list_records(): REGEX = re.compile('^(\w+).(\w+).(\w+)\=\=(\d+)$') match = REGEX.match(request.vars.query) if not match: redirect(URL('error

[web2py] Adding jQuery effects back into a manual form

2013-09-05 Thread REM
I found it necessary to create a manual form, but I'd like to add back the cool default jQuery effects to report on validation errors for the one input field. Is there a quick way to access and pass these jQuery effects back in to my manual form? Here's the db definition: db = DAL('mysql://us

[web2py] Help with 5th ed. book example 11.2.1 not working (conditional fields in forms)

2013-09-06 Thread REM
I am trying out the 11.2.1 book example on p.504, and it just doesn't function at all. I've tried it with Firefox and Chromium and the behavior is the same. Instead of the spouse name field appearing when the box is checked, nothing happens. I've checked the book code against the web book code

[web2py] Re: Making validators trigger only when data is present

2013-09-17 Thread REM
owed.')]) > > > Anthony > > On Tuesday, September 17, 2013 2:44:14 PM UTC-4, REM wrote: >> >> I have a form field which is not required, but when it is submitted with >> data, I want the data to be validated. The problem is, I get the validator >> triggerin

[web2py] Making validators trigger only when data is present

2013-09-17 Thread REM
I have a form field which is not required, but when it is submitted with data, I want the data to be validated. The problem is, I get the validator triggering when the form is submitted with no value in that field. I want it to wait until there's data in there to validate it and ignore it if bl

[web2py] Re: Making validators trigger only when data is present

2013-09-17 Thread REM
In further exploration, there's some inconsistencies in behavior. Sometimes it triggers the error and sometimes it doesn't. I haven't yet figured out what the determining factor is. On Tuesday, September 17, 2013 4:02:53 PM UTC-4, REM wrote: > > Actually, in checking out

[web2py] Re: Making validators trigger only when data is present

2013-09-17 Thread REM
;^[a-zA-Z0-9\s\#\.\$\-\_]+$', > error_message='Character > Not Allowed.')]) > > > Anthony > > On Tuesday, September 17, 2013 2:44:14 PM UTC-4, REM wrote: >> >> I have a form field which is not required, but when it is submitted with >> data,

[web2py] Inserting NULL with SQLFORM, list:string, and multiple=True

2013-09-24 Thread REM
I am inserting data into my trusty mysql db using SQLFORM. One of the form elements is a drop-down list of states. The behavior I wish to happen is to either insert a |normal|list|of|states| or, if nothing is selected, NULL. However, when nothing is selected, it is inserting ||, and I can't seem

[web2py] Re: Inserting NULL with SQLFORM, list:string, and multiple=True

2013-09-25 Thread REM
7;|'.join(bar_escape(item) for item in items if > str(item).strip()) > > I guess one could override it but it may break something in web2py. Why? > > > > On Tuesday, 24 September 2013 23:51:27 UTC-5, REM wrote: >> >> I am inserting data into my trusty mysql db u

[web2py] 2.7.4 update leaves admin interface rendering strangely

2013-11-01 Thread REM
Well, it's surprising that there's no other report of this, but here goes: I just upgraded to 2.7.4 in the same way I always do: * Tarball the old web2py dir * download the new web2py_src.zip & unzip elsewhere * Copy the new web2py dir straight over the old one * chown it as www-data & check perm