Re: [web2py] Re: User Authorization + Download management

2010-03-21 Thread Matthew McNaughton
not (db(queryID).update(Filename=request.args(0))) : > db.userSoftware.insert(user_id > =auth.user_id,Filename=request.args(0),Release_Date=appVer.id) > > > > On Mar 21, 1:12 pm, Matthew McNaughton wrote: > > Thanks for all the help so far! Now that I got the userID and fi

Re: [web2py] Re: User Authorization + Download management

2010-03-21 Thread Matthew McNaughton
uery = db.userSoftware.user_id == auth.user_id > if not db(query).update(filename=request.args(0)): >db.userSoftware.insert(user_id = > auth.user_id,filename=request.args(0)) > return response.download(request,db) > > there is only request.args(0) in your cas

Re: [web2py] Re: User Authorization + Download management

2010-03-21 Thread Matthew McNaughton
hank you again for all the assistance. On Sat, 2010-03-20 at 10:42 -0700, mdipierro wrote: > You can put them in db.py after auth=..., or in a registration > controller or simply in the user() action. As long as they are > executed before the registration form runs. > > Massimo >

Re: [web2py] Re: User Authorization + Download management

2010-03-20 Thread Matthew McNaughton
download function > > def download(): > ### log the download, filename is in request.args(0) and user in > auth.user_id > return response.download(request,db) > > > On Mar 20, 2:11 am, Matthew McNaughton wrote: > > Greetings all, > > I'

[web2py] User Authorization + Download management

2010-03-20 Thread Matthew McNaughton
Greetings all, I've read the access control section in book a couple times over, and I still can't completely figure out authorization. I want to do the following: I want to add all newly registered users to a specific group called "users", which I have already created in auth_groups I have anothe

[web2py] Layout Plugin

2010-03-19 Thread Matthew McNaughton
Greetings team, I recently tried to use the layout plugin, but my experience has been less than stellar. After installing the plug in, and choosing a design to use, I get a web2py site with only text and no color. While I would love to get the layout plugin to work, any design would be good at thi

Re: [web2py] Re: Ctrl-S is not saving file in admin file editor

2010-03-16 Thread Matthew McNaughton
Not sure if this still helps, but I can confirm to having the same problem in u Ubuntu with Google chrome as well On Mar 16, 2010 4:27 PM, "Wes James" wrote: I took edit_area_full.js and took out the single line of js and put in: editAreaLoader.iframe_script = '

Re: [web2py] Re: IMG Helper

2010-03-13 Thread Matthew McNaughton
eld('logo', 'upload', requires=IS_IMAGE())) apps.application.name.requires = [IS_NOT_EMPTY(), IS_NOT_IN_DB(apps, apps.application.name)] On Sat, 2010-03-13 at 10:59 -0800, DenesL wrote: > > On Mar 13, 1:15 pm, Matthew McNaughton wrote: > > Thanks for the quick

Re: [web2py] Re: IMG Helper

2010-03-13 Thread Matthew McNaughton
Thanks for the quick response. The database holds the actual image not the URL? On Mar 13, 2010 1:06 PM, "DenesL" wrote: On Mar 13, 12:57 pm, Matthew McNaughton wrote: > Greetings team, Hi Matthew and welcome > I'm fairly new to HTML and WEB2PY and I am having some

[web2py] IMG Helper

2010-03-13 Thread Matthew McNaughton
Greetings team, I'm fairly new to HTML and WEB2PY and I am having some problems with code below. I am trying to write a view that pulls information from a database, called applications, and displays it on the page. Specifically, I can't seem to find the syntax for the IMG HTML helper? Also if I wan