[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-08-24 Thread Rob_McC
Massimo: I'm trying it out, and I like what I see so far. The *Welcome* application HTML comments seem to through several validation errors. http://127.0.0.1:8001/welcome/default/index 1. [image: Error] *Line 99 , Column 26*: Consecutive hyphens d

[web2py] Re: How to use user_bar() in Welcome app - custom login menu navbar

2014-08-20 Thread Rob_McC
Thanks for help guys. I think I must have added that to default.py at some point, while trying to learn to cusomize a navbar http://127.0.0.1:8000/admin/default/edit/welcome/controllers/default.py Sorry for confusion. At any rate,I took Massimo's suggestion, and coded the navbar in html. I

[web2py] How to use user_bar() in Welcome app - custom login menu navbar

2014-08-16 Thread Rob_McC
Not sure why, but the *welcome application *has a custom navbar in controller. userbar() I don't think it is used for anything... I want to use it to learn how customize navbar menu but - * How do I call this from the view? * Thanks, Rob /Contents/Resources/applications/exampl

[web2py] Re: querying database if a user exists, and retrieve fields if exists, is there a better way.

2013-08-31 Thread Rob_McC
Thanks... that was just what I needed. I learned about: Ternary conditional operator in Python http://stackoverflow.com/questions/394809/ternary-conditional-operator-in-python *and I understand much better the D

[web2py] Simple steps to run web2py on Ubuntu Desktop 12.04 (precise) 64-bit - linux

2013-08-31 Thread Rob_McC
Having run web2py on Mac and windows effortlessly ... I expected the same on Ubuntu... but... I found it a bit harder to get running. Ubunto Desktop works great on old Windows machines, and it is fun to play with. I bought a used $30 computer and installed Ubunto and was impressed with how fast

[web2py] querying database if a user exists, and retrieve fields if exists, is there a better way.

2013-08-10 Thread Rob_McC
- This code is working, but... - is there a better or shorter way to accomplish this. ~ thanks for help. Rob {{ # QUESTION: # is there a more direct way of accomplishing this? # file: userinfo.html (a web2py view) # I'm logged in as # user: jdoe # this will return first_name

[web2py] Curious admin upload behavior: file name changed when uploading to static/css: - becomes _

2013-08-07 Thread Rob_McC
I occasionally upload a file through admin panel, i.e. http://example.com/admin/default/design/welcome I noticed when uploading to: static/css that *- *or transformed to *_* *(dashes are changed to underscore) * Example: I upload to static/css css/my-file11.css but once uploaded it is ch

[web2py] Good Basic Tutorial: "Twitter Clone in web2py" - source on github.

2013-08-06 Thread Rob_McC
I found a good tutorial today on web2py, there are 3 parts, source on github. https://github.com/neilisfragile/witter Nice to see more and more learning resources for web2py. I seem to learn best from examples. Twitter Clone Tutorial in web2py 30 June, 2013 Link: http://fragile.org.uk/2013

[web2py] Re: Nice change to admin interface for editing files, what about static files?

2013-08-06 Thread Rob_McC
I just discovered, it wasn't obvious to me, that the headings will *COLLAPSE * the file list. I also like to Cmd- Click on a file to open in a NEW tab in my Browser. Collapse Feature Example: While editing a file, like db.py, the menu is: models db.py menu.py controllers

[web2py] Nice change to admin interface for editing files, what about static files?

2013-08-05 Thread Rob_McC
I just updated to 2.5.1, and really liked the admin interface for editing files. (list of files are displayed on left side of screen- see attached file), I find that MUCH faster to switch between files. Very, very nice ! thanks. __ *Question*: Why don't my static files (like .css) sho

[web2py] Re: How to disable modifying Email in auth.profile()

2013-06-06 Thread Rob_McC
Lio: Not sure if this would be helpful, it was for my app. It seems to work so far. *This allows users to login with * - email OR - username I have a message reminding them they can login with either. I don't allow changing username, but allow changing email. I also will remove the Forgot you

[web2py] Got Logging working on my Mac - mail.settings.server = 'logging' - for testing emails, without sendi

2013-06-06 Thread Rob_McC
Just wanted to share this. Good news, I actually got this to work on localhost... and it was pretty easy. I wanted to use "logging"while doing a lot of testing,

[web2py] Re: I liked this

2013-06-06 Thread Rob_McC
Excellent... thanks.. I was sure this was a twitter bootstrap, or skeleton, or something responsive, it looks modern and flat UI. It's not responsive... and uses an older tag... http://www.w3.org/TR/html4/loose.dtd";> Not sure why... Sure great advise though Rob -- --- You received thi

[web2py] Re: Custom reset-password email message, with username- Plain text, not html

2013-06-05 Thread Rob_McC
Thanks a lot Anthony and Niphlod. That was a big help - I'll give that a go. I did customize the password reset message, and thought I would post it here if it would be helpful to anyone. Any suggestions / optimizations are welcome. The default settings email send an email like this: - - -

[web2py] Re: Custom reset-password email message, with username- Plain text, not html

2013-06-05 Thread Rob_McC
Thanks Anthony. in db.py This gives me an error auth.messages.reset_password = 'Hey ' + auth.user.username + ' Click on the link http://' + request.env.http_host+URL('default','user',args=[ 'reset_password'])+'/%(key)s to reset your password' Errror: ('NoneType' object has no attribut

[web2py] Re: Custom reset-password email message, with username- Plain text, not html

2013-06-05 Thread Rob_McC
; > db.auth_user.username > > with > > db.auth_user.username.name > > On Tuesday, 4 June 2013 22:01:28 UTC-5, Rob_McC wrote: >> >> Hey.. >> >> I want to customize the reset-password message, to in include the >> username, >> >> >> I get this err

[web2py] Custom reset-password email message, with username- Plain text, not html

2013-06-04 Thread Rob_McC
Hey.. I want to customize the reset-password message, to in include the username, I get this error: cannot concatenate 'str' and 'Field' objects What am I missing? File: db.py auth.messages.reset_password = 'Hey ' + db.auth_user.username + ' click on the link http://'+request.env.http_

[web2py] Re: Disable button in /admin

2013-06-04 Thread Rob_McC
Just a comment, this wasn't obvious to me, but is now. I found this, which helped * http://www.web2py.com/book/default/chapter/03#Startup enable/disable* each application. When an application is disabled it cannot be called remotely but it is not disabled form localhost. This means disabled app

[web2py] Re: Caution when updating web2py- welcome app is overwritten

2013-05-20 Thread Rob_McC
Thanks, I knew of "init" but I didn't know the priority of loading. R The default loading app is "init", before "welcome". > > -- --- 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

[web2py] Re: Caution when updating web2py- welcome app is overwritten

2013-05-19 Thread Rob_McC
Thanks Alan... Yep, that's pretty clear in docs... (just read it now :) *This will upgrade all the libraries as well as the applications admin, > examples, welcome. It will also create a new empty file "NEWINSTALL". Upon > restarting, web2py will delete the empty file and package the welcome a

[web2py] Caution when updating web2py- welcome app is overwritten

2013-05-19 Thread Rob_McC
My web2py app was called *welcome*, and I upgraded to new 2.4.6 version with the by pressing the button in the admin panel. I noticed my app called *welcome*, was overwritten by the *default welcome*that comes with web2py. I always take a backup before I upgrade, so , no worries.. but I thought

[web2py] Re: Password Change, not checking if old password is valid.

2012-11-23 Thread Rob_McC
M: >Please open a ticket and I will look into this asap . *DONE:* http://code.google.com/p/web2py/issues/detail?id=1180 Many thanks, I hope this is the right procedure for trouble tickets, i.e. discuss on Google Groups first (in case it is an error on my part) ... Then, submit ticket if it loo

[web2py] Password Change, not checking if old password is valid.

2012-11-22 Thread Rob_McC
Hey: Been doing a lot of testing lately... It appears that Password Change should be checking OLD password, Here are the details of my tests: *Using*: web2py Version 2.2.1 (2012-10-21 16:57:04) stable Steps: 1- Create a NEW app, PasswordChange 2- Register a new user User: jsm...@gmailx

[web2py] Re: How to response.flash when Profile is saved, and not when viewed.

2012-11-22 Thread Rob_McC
. I think I figured it out, . Once again, it boils down just to a few lines of code :) - Here is the solution: I'm still testing it, but so far so good. Note: For the longest time, I had two "r" in request.env.http_referer which DID NOT WORK. Ref: https://groups.google.com/forum/?fromgroups=

[web2py] How to response.flash when Profile is saved, and not when viewed.

2012-11-18 Thread Rob_McC
Any help on this would be appreciated... For my app, when a user saves their Profile, I want them to stay on Profile, with at response.flash = T("Profile SAVED.") message at top. I have it all working, but the message is displayed when the user clicks on nav bar Profile AND when they press t

[web2py] Re: Very simple issue: redirect on login - auth.settings.login_next

2012-11-18 Thread Rob_McC
Hey thanks Peter. I changed it, tested it, all is 100%. Rob --

[web2py] Re: Very simple issue: redirect on login - auth.settings.login_next

2012-11-17 Thread Rob_McC
Anthony: Thanks... I appreciate everyone's help on this thread. I did what you suggested. and I now have it working (perfectly- I think) . I added 2 lines to db.py and inserted into layout.html referrer_actions=None as shown in detail below. I also learned how to redirect a user, after t

[web2py] Re: Very simple issue: redirect on login - auth.settings.login_next

2012-11-16 Thread Rob_McC
Hey Anthony: Q >How does someone arrive at your login page? Is it via the "Login" link generated by the auth.navbar()? A: I have tested a few ways... here are my findings *Method 1* - From home page, http://127.0.0.1:8000/AuthRedirect/default/user/login?_next=/AuthRedirect/default/index

[web2py] Re: Very simple issue: redirect on login - auth.settings.login_next

2012-11-16 Thread Rob_McC
Thanks ! I spend some more time wrestling with this, and expanding my knowledge of this feature of web2py, which I enjoy doing. *GOOD NEWS*, I finally got it to work, on a simple web2py app. - just by adding 2 lines in the right place. (copy of working code below) Now, I'm not sure if a "bug"

[web2py] Very simple issue: redirect on login - auth.settings.login_next

2012-11-11 Thread Rob_McC
I have read the discussions on this, for a long time - but am a bit lost. I created a simple app called "init" added a welcome page and that works. http://127.0.0.1:8000/init/default/welcome displays a sample page. I add this to my db.py auth.navbar(referrer_actions=None) # added tp de

[web2py] Re: Screenplay formatting with web2py - markdown2.py

2012-08-27 Thread Rob_McC
*Thanks* Massimo... I didn't know you could do it without modifying the .py file, I'll try some things out. Rob --

[web2py] Re: need a simple wiki...

2012-08-21 Thread Rob_McC
Thanks ! works perfectly. > youtu.be is not a well known oembed service provider. Funny the http://youtu.be/theVideoID tag, is all they've been using to SHARE a link lately. Also, the markmin syntax seems to work well. http://web2py.com/examples/static/markmin.html

[web2py] Re: need a simple wiki...

2012-08-21 Thread Rob_McC
Do I have to set something to get this to embedd youtube? Thanks, Rob ## Index Rob page content http://youtu.be/AHBjHCAUjus On Monday, August 20, 2012 9:30:09 PM UTC-4, Massimo Di Pierro wrote: > > I think the problem is that we broke trunk as we are running some tests... > > On Monday, 20

[web2py] Re: How to get started with web2py's Debug? - very basic questions

2012-08-20 Thread Rob_McC
Mine doesn't hang, I just get this error.. on a default type of app. *Set Breakpoint on /Users/robooo/Documents/signa_web2py_2_00/web2py/web2py.app/Contents/Resources/applications/welcome/controllers/default.py at line 1: Line /Users/robooo/Documents/signa_web2py_2_00/web2py/web2py.app/Conten

Re: [web2py] Re: Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-17 Thread Rob_McC
Still trying to make my username example, google-like. Google prohibits a very small set of bad words. I have a BADWORDS working outside of the validation, but when I insert in validation, I get error. Any help would be appreciated, I bet it is one little thing :) I get error name 'BADWORDS'

[web2py] Re: Electronic voting anybody?

2012-08-17 Thread Rob_McC
Thanks Massimo for your attention to matter. Note > 1) is actually a feature. All ballots are always public. OK, I get it it just with real elections, ballots are secret, and handled with such care... but... maybe electronic voting is different... *However *For the public to know t

Re: [web2py] Re: Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-17 Thread Rob_McC
Thanks David and Anthony: 1- I will reorder validtors for final example, most common ones first. 2- Good suggestion: I'll try to write a web2pyslices, I like that site a lot as it can offer more complete solutions than these discussions often do. 2- A validator? *Question:* Would it

[web2py] Re: Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-16 Thread Rob_McC
Anthony: . Thanks for submitting a patch. *Quick Question: With all of the below validations *1- Do they ALL execute or 2- Execution stops at the first one that fails, What I mean is say a user uses a username="bill" the first validator will display the message, but does web2py continue t

[web2py] Re: Electronic voting anybody?

2012-08-16 Thread Rob_McC
Massimo: *>Can you please give it one more try?* . But of course. *But first, I wanted to say thanks for creating web2py, and supporting it, it really is excellent just excellent... * *- - - - - - - - - - - - - - - - - - - - - - - *Here is my Beta test report: Name of Election: *"

[web2py] Re: Electronic voting anybody?

2012-08-16 Thread Rob_McC
Be glad to test some more, here are details from my previous test: *Here are the TWO confirmation email I received. * Times are noted, they were quite close NOTE: Will you have a TIME ZONE setting for the application? Then, I would know, what time voted on based on my time zone... Candidate

[web2py] Re: Electronic voting anybody?

2012-08-16 Thread Rob_McC
Massimo: Thanks... I did more testing this morning, 1- set up 3 voters, one with email ending in .on.ca, and I didn't get that one, maybe it is our server, I checked JUNK email, nothing 2- the other 2 emails worked, got email, got voting confirmation, BUT.. confirmation shows I definetly v

[web2py] Re: Electronic voting anybody?

2012-08-15 Thread Rob_McC
Hey Massimo Looks much better... OK, I tried again. IN Safari on my Mac I created an election. The https: error never came up, I was redirected to http:// Email was sent, inviting to vote. Big ELECTION by Rob Link to vote: https://tests.web2py.com/evote/default/vote/4/voter-7F5D4676F16E4094A

Re: [web2py] Re: bad image and word Validator

2012-08-15 Thread Rob_McC
*Note:* I didn't know what *.compile* was used. *Now I do:* http://docs.python.org/library/re.html re.compile(*pattern*, *flags=0*) Compile a regular expression pattern into a regular expression object, which can be used for matching using its match()

[web2py] Re: Install in hostgator

2012-08-15 Thread Rob_McC
Hi: I have several separate hosting accounts on hostgator, for last 6 years, been happy, good support, php runs well, wordpress, joomla, drupal etc. *But, for web2py, I now have an account on: *https://www.webfaction.com/ I have hosting on GAE, but many issues there I wasn't happy with... T

Re: [web2py] Re: bad image and word Validator

2012-08-15 Thread Rob_McC
Anthony: *>As I mentioned earlier, replace BADWORDS.match(value) with BADWORDS.search(value). *. Sorry I missed that, you made it perfectly clear... *> add word boundaries r'\b' to the RE, >.. Though he said he explicitly did not want to do that. *. Sorry I wasn't clear on that but the word

Re: [web2py] Re: bad image and word Validator

2012-08-15 Thread Rob_McC
Thanks guys! I appreciate it Here is my code, which works, *but.. *as noted in my comments, if * asdf* is a racial slur, then *youasdf* should NOT be allowed as a username, even if *youasdf *is somehow taken in another context, in a real name or word. User will have to pick another use

[web2py] Re: bad image and word Validator

2012-08-15 Thread Rob_McC
thanks once again. -1- I'll move to a module as you suggested. -2- The code is just the .py file (below), To test out, I just through it in *layout.html* {{=IS_BAD()('badass')}} Here is badword.py, from post above import base64, re BADWORDS=re.compile(base64.b64decode( """KGFob

Re: [web2py] Re: Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-15 Thread Rob_McC
villas: *>because it really demonstrates how to customise auth.* . thanks for comment... . I wonder, would it be a* good idea *for me to upload an EXAMPLE .w2p that summarized this thread? which would just be the "Welcome" app, with the customized auth etc.? . I also wonder, that the

[web2py] Re: bad image and word Validator

2012-08-15 Thread Rob_McC
I have badwords.py working. I want to use as a badwords filter for username, so (lower case, no spaces), just as google accounts do. Just a couple questions: * Q1*- I placed this code in db.py - Is that where it is suppose to go? *Q2*- I thought the python *.match* would work the way I want, b

[web2py] Re: Electronic voting anybody?

2012-08-14 Thread Rob_McC
Very cool app. I noticed following: 1- Had to add security exception in Firefox browser, https:// when I clicked on https://tests.web2py.com/evote/default/index 2- Is "Voted on" column suppose to record the date?" my is blank 3- When I voted, it said it would send me an email, but I didn'

[web2py] What purpose? Search - Edit App Screen - web2py application, v 1.99 and 2.00

2012-08-14 Thread Rob_McC
*Quick Question: What does the search box do at the top, when editiing a web2py app? *(see screenshot)* * I assumed it would search all my app files for occurrence of a word, then present me with a list of which files contained that word. (Like Coda, BBEdit, - most text edtitors let you

Re: [web2py] Re: Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-14 Thread Rob_McC
Thanks. -1- *>you might consider the IS_STRONG validator as well. *. What a quick and easy way to increase security of passwords, thanks for tip. This is what I love about web2py. http://web2py.com/books/default/chapter/29/7 Example: requires = IS_STRONG(min=10, special=2, upper=2) where

Re: [web2py] Re: Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-14 Thread Rob_McC
Hey Jon: *Q: * > BTW, are you deliberately *forbidding* upper-case letters? *A: *. *Yes*, just like Google does, usernames are lowercase, although if your gmail username is *johnsmith* you can log in with *JohnSmith*, or *JOHNSMITH*, or *Johnsmith* etc.

[web2py] Re: How to get started with web2py's Debug? - very basic questions

2012-08-13 Thread Rob_McC
Anthony: *>It sounds like he actually opened that file in the admin editor and hit the toggle breakpoint button, which yielded the error. * . Yes, that is what I did- Note: Tried in Version 1.99.7 and Version 2.0.0 (2012-08-09 04:44:17) dev thanks. Rob --

[web2py] Re: Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-13 Thread Rob_McC
Just tried with web2py *2.0* release. It *worked* . auth.define_tables(username=True) db.auth_user.username.requires.insert(0,IS_MATCH("[a-z].*")) So, thanks everyone, this certainly answered my first post about the error. I'll posts my working username code, that behaves the way Google username

[web2py] Re: How to get started with web2py's Debug? - very basic questions

2012-08-13 Thread Rob_McC
Q: >Do you have this file? A: . Sure, it is just the default file when I created the simple app to learn how to use debug- Here it is, also *attached*. Thanks for looking at this. R # -*- coding: utf-8 -*- # this file is released under public domain and you can use without limitations ##

[web2py] How to get started with web2py's Debug? - very basic questions

2012-08-13 Thread Rob_McC
I have used debuggers before, and I want to use web2py debug feature. 1. I create a new simple app, 2. bring up db.py file 3. go to line 10, press *[toggle breakpoint]* button 4. get this error Set Breakpoint on /Users/robxxx/Documents/r_web2py_1_99/web2py/web2py.app/Contents/

[web2py] Re: Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-13 Thread Rob_McC
Anthony: Thanks for continued help. I greated a new simple app, inserted the two line, where I hope they should go. (in bold, below is entire source) This is the only thing chaned in the simple app. *I Get The Same error:* 'tuple' object has no attribute 'insert' *File: RAM_SIMPLE_INSERT/MODEL

[web2py] Re: Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-11 Thread Rob_McC
bute 'insert' I now understand the .insert with lists etc, and why if I don't .insert, it will not fire the web2py validators. But I don't see what is wrong with the example Thanks, Rob Rob On Friday, August 10, 2012 3:09:00 PM UTC-4, Anthony wrote: > > On Friday, A

[web2py] Re: Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-10 Thread Rob_McC
Anthony: You're correct about log gin out and back in, but I did gain access to jsmith's account upon registration, and* I could (and did)* * change his password in profile, and now I control his account *- locking smith out. I did assume that the "old validator" *would still fire,* and no

[web2py] Re: Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-10 Thread Rob_McC
Anthony: Didn't seem right to me either... *>By default, the username field has an IS_MATCH and and IS_NOT_IN_DB validator, * . I did see the web2py regex for that somewhere. and noticed the appropriate validators. *Here is what I tested: (using user names)* 0- start a blank web2py app with

Re: [web2py] Re: Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-10 Thread Rob_McC
Thanks Jonathan. *Q1:* *>(Does Google really forbid upper case?)* . I wouldn't say forbid, but if your name google user name is jonlun, or jon.lun you can sign in with JonLun, or JON.LUN - But. I notice* in web2py,* I can have users like JSMITH, jSmith, smith - and I can't think of a reason

Re: [web2py] Re: Simple ? How to remove Form Name (form :) from FORM Helper

2012-08-07 Thread Rob_McC
rochacbruno: * * Thanks! It worked, and email is sent, and form: is no longer there. I'm going to to a working sample - might be helpful to others. Rob {{extend 'layout.html'}} RAM_Contact_Form: Contact Us {{=form}} On Tuesday, August 7, 2012 6:30:01 PM UTC-4, rochacbruno wrote: > > rep

[web2py] Re: Simple ? How to remove Form Name (form :) from FORM Helper

2012-08-07 Thread Rob_McC
My goal, is to have a simple email form that can be customized... What I have is working, except for the form: being displayed. I wonder if there is a simpler way to create a email form. Thanks Rob --

[web2py] Re: Simple ? How to remove Form Name (form :) from FORM Helper

2012-08-07 Thread Rob_McC
Thanks Anthony. Yes, my function ends in *RAM_Contact_Us/controllers/default.py* with... return dict(form=form) *RAM_Contact_Us/views/default/contactus.html* contains only this: {{extend 'layout.html'}} RAM_Contact_Form: Contact Us {{=BEAUTIFY(response._vars)}} Here is entire Function

[web2py] Simple ? How to remove Form Name (form :) from FORM Helper

2012-08-07 Thread Rob_McC
I'm sure it is easy, but I couldn't figure it out. *Q:* *How do you remove the* *form :* *from the table generated with FORM() helper.* * * See red box on screen shot. *Reason*: I'm building a tutorial on how to do a simple Email form in web2py. Thanks! ~Rob def contactus(): form=FORM(TABL

[web2py] How to get HTML 5 Validation for base files - 3 changes - Create New Application wizard.

2012-08-06 Thread Rob_McC
Just a very small point. I made 3 changes to allow me to get HTML validation @ http://validator.w3.org/ I like to validate my code as I go, I seem to forget to close my tags, or silly errors creep in if I don't. I know sometimes, I allow my pages *NOT* to pass http://validator.w3.org/ but o

[web2py] Enforcing - like gmail: first character of your username should be a letter (a-z) or number.

2012-08-06 Thread Rob_McC
I notice that several characters are not allowed in web2py user names, like ~ and !, but "." (period) and "-" are allowed. Quick Question: Is there an easy way to restrict usernames to only allow a-z as first letter? *Reason:* I will have other uses for the url with . and - in them. *

[web2py] Re: Copyright with current year in footer - automatic updating - suggestion.

2012-08-06 Thread Rob_McC
Thanks Annett for *one line* solution. It worked. Rob On Monday, August 6, 2012 1:26:02 AM UTC-4, Annet wrote: > > This is much shorter: > {{=request.now.year}} > Annet. > --

[web2py] Having trouble with computed fields referencing id field.

2012-08-05 Thread Rob_McC
. I created a simple app, with only this in it, . I can get computed field to work , but never referencing the id field. I think the trouble is that 'id' is never updated, so it is not available for compute= . I don't think I can do this when the record is first created, since an 'id' has not b

[web2py] Re: Simple Translatable FAQ pages - what approach?

2012-08-04 Thread Rob_McC
Alan: . Thanks very much. . I didn't know that was an option. . I tried it and it works perfectly. . I added this to my *db.py* file, field 'arrange' is to order the questions - I just enter an integer to sort. db.define_table('faq',Field('question','string'),Field('answer','string'), Field('

Re: [web2py] Copyright with current year in footer - automatic updating - suggestion.

2012-08-04 Thread Rob_McC
Thanks for insight... *Q: Where did you see © preferred?* >Ref: http://www.copyrightauthority.com/copyright-symbol/ *"However,... always use the number code instead of the symbol code ©"* (after examining the site, maybe not an authority? :) Comment: *>Finally, there's a legal argument

[web2py] Copyright with current year in footer - automatic updating - suggestion.

2012-08-04 Thread Rob_McC
Still new to python and web2py - sure enjoying it, I wonder if this is a good idea? Automatic updating year of (c) notice of footer i.e. © 2012 Your Company Name this is updated to the servers clock, automatically changes to 2013, when it is time. *Notes:* 1. I read it is better to use ©

[web2py] Re: Making part of User's Profile public - viewable by anyone with url

2012-08-01 Thread Rob_McC
Massimo . Once again, *many* thanks. *It worked 100%* ~ Rob . I have summarized what you taught me here: What file does: ** * http://somesocialwebsite/~jsmith * will redirect to: *http://somesocialwebsite/default/user/profile* FileName: *routes.py* *File Loc

[web2py] Making part of User's Profile public - viewable by anyone with url

2012-07-31 Thread Rob_McC
Haven't been able to find a solution to this on Groups - I'm NEW to web2py, but enjoying it a great deal. Note: I learned how to make custom fields in User's table, that was easy. *Assumptions*: *User: jsmith Custom fields: Country, Age Country=Canada Age=34* I want to make a few of the