[web2py] web2py default application suggestion

2011-03-22 Thread Keith Pettit
I'm fairly new to web2py and had a question early on. How could I make a app I created in web2py show up by default. Not that I didn't like the "welcome" app but I wanted to set my own as default. Somebody in IRC #web2py told me to rename my app to "init" which worked. There wasn't a way I s

[web2py] How do I set web2py applications as separate virtualhosts?

2011-03-22 Thread Keith Pettit
Web2py works great for me through Apache and mod_wsgi. All seems fast and clean. But now that I'm creating multiple web2py applications. How can I deploy multiple web2py applications as separate virtualhosts? Basically I want to do something like: app1.mydomain.com goes to App1 app2.mydomain

Re: [web2py] Re: web2py default application suggestion

2011-03-22 Thread Keith Pettit
> the commandline. So based on that experience to make it easier I would > > suggest the following: > > > > 1) In the admin allow users to rename applications > > 2) in the admin allow users to select a "default" application. I think > that > > would be nicer than renaming a app with a useful name to "init". > > > > Thanks for taking the time. > -- Keith Pettit Prodesy Tech Inc. keith.pet...@prodesy.com 832-200-6153 x2307

Re: [web2py] Re: web2py default application suggestion

2011-03-22 Thread Keith Pettit
not quite sure what the deal is with that. I think one of the two files > is from the old routers file and just never got cleaned up. > > On Mar 22, 2011, at 2:27 PM, Keith Pettit wrote: > > That worked. Thank you for the help. > > Just a note, in my default install of

Re: [web2py] Re: web2py default application suggestion

2011-03-22 Thread Keith Pettit
Thanks that helps me understand a bit better. Being a newbie I'd suggest just having the one example. When looking I didn't really know what the files were or that they are competing methods to do the same thing. Even if the naming is better like you suggest, it would still make me wonder

[web2py] Re: video about new RESTful APIs

2011-03-22 Thread Keith Pettit
Ah this is great. I love the video and the examples on this post work nice. By the way which voice app is that you use for your recordings. Cepstral maybe. It's a very pleasant voice? *Question:* What is the difference between RESTful APIs and CRUD? I've been going through the web2py book

[web2py] Best way to have dynamic user created Questionnaire?

2011-04-06 Thread Keith Pettit
I needed to create a app with a questionnaire, easy enough. But the needs of questionnaire keep changing. It has eventually evolved into something where the user needs to be able to change the questionnaire and be able to add new ones. I'm having trouble figureing out the best way to allow a

[web2py] Re: Best way to have dynamic user created Questionnaire?

2011-04-06 Thread Keith Pettit
Ah, thanks. I'll take a look. I did find a PHP app that does most of what I need http://www.limesurvey.org/ I'm trying to take it apart to see how it works.

[web2py] Wizard bug when creating a table auth_group

2011-04-11 Thread Keith Pettit
I wanted to try the Wizard out. Very kick ass by the way. But I found a bug. I wanted a group table so I specified a "auth_group" table. I added group onto auth_user as well. That caused it so I got all sorts of errors in the created app. Any page I would go to I would see " KeyError: 't_

[web2py] Re: Wizard bug when creating a table auth_group

2011-04-11 Thread Keith Pettit
Ah, got it. Thanks for the help. I didn't know auth_user created those tables along with it. In case anybody is wondering it looks like it creates the following tables: auth_event auth_group auth_membership auth_permission auth_user Thanks again, -Keith

[web2py] Wizard comments/suggestions

2011-04-11 Thread Keith Pettit
First of all, I love it. This gives me a huge start on creating an application. It may not be perfect but it gives a great start. I had some comments/questions about some of the different parts of the wizard that I put below. *Step 1: Setting Parameters* Plugins: Where does it get it's plugi

[web2py] Access Control not in db.py?? How to modify?

2011-04-19 Thread Keith Pettit
I'm still learning web2py, I'm working on access control and was confused by a few things I was hoping to understand better. 1 - Why is auth_user in db.py, but none of the other auth_ tables are? 2 - If I wanted to add or modify any of the auth tables, how would I do that? auth_user is in db.p

[web2py] Re: Access Control not in db.py?? How to modify?

2011-04-19 Thread Keith Pettit
I appreciate the help. I'll give the plugin a try and read through the docs you suggested. One note. auth_user was in db.py if I created a "New simple application" or went through the "New Application Wizard". Which I is part of what was confusing me. Thanks, -Keith

[web2py] Re: Access Control not in db.py?? How to modify?

2011-04-19 Thread Keith Pettit
That was my bad I was looking at the wrong application. I have too many test apps that I'm playing around with :) Also I just tried the web2py.plugin.useradmin.w2p which I think is OK. It's very basic but has a nice si

[web2py] Howto create parent and children at same time?

2011-04-20 Thread Keith Pettit
I have a ticket system for trucks. Each ticket or parent has 1 or more loads (children). I'm having trouble figuring out how to create a (parent) and multiple children at the same time. I'm trying to avoid going through a dialog where they have to fillout a ticket, save, then add loads. I w

Re: [web2py] Howto create parent and children at same time?

2011-04-20 Thread Keith Pettit
I would prefer to do that in the controller and not depend on javascript. It would be a big problem if javascript was turned off. Thanks for the suggestion though. -Keith