[web2py] DAL select() on "id" field returns Row functions

2012-04-04 Thread Aaron
I've defined a table in my models file with the usual db.define_table method/syntax, omitting my auto_increment id field (since web2py adds this automatically). However, when I perform a select on my table, I get very different results depending on whether I include the id field in my list of fi

[web2py] Re: Current user's username? Customized access control with Auth and LDAP?

2012-03-08 Thread Aaron
gt; > And I work now on storing first name, last name, and email user prefs from > ldap. I think I can send a patch to Massimo tomorrow. > > 2012. március 8., csütörtök 20:25:12 UTC+1 időpontban Aaron a következőt > írta: >> >> Also, what meaning does the @auth.requires_me

[web2py] Re: Current user's username? Customized access control with Auth and LDAP?

2012-03-08 Thread Aaron
o it would be an entry's Distinguished Name/Domain Components. Thanks, Aaron On Thursday, March 8, 2012 6:04:15 AM UTC-8, Aaron wrote: > > I'm using gluon.tools.Auth and the default ldap_auth login_method to > provide access control to my web2py application. > Now, once the

[web2py] Current user's username? Customized access control with Auth and LDAP?

2012-03-08 Thread Aaron
I'm using gluon.tools.Auth and the default ldap_auth login_method to provide access control to my web2py application. Now, once the user has successfully logged in (@auth.require_login() passes), I want to find out which user is logged in, and some of this user's attributes. I could get addition

[web2py] Add Appending Fields to a Form with Ajax

2011-12-05 Thread Aaron Levin
Hi, I'm really enjoying the simplicity of Web2py. However, for the life of me, I cannot figure out a way to accomplish this without re-writing FORM/SQLFORM. So, I know I'm not understanding something :) I'm writing a small app to make lists. Each list has many "items". I'd like a user to be able

[web2py] Quick Question about Wiki Tutorial: .default attribute for db foreign-key field

2011-11-27 Thread Aaron Levin
ly enjoying learning this framework, thank you. Best, Aaron Levin

[web2py] Re: Admin without HTTPS?

2011-09-29 Thread Aaron
> Anthony > > > > > > > > On Tuesday, September 27, 2011 3:12:46 PM UTC-4, Aaron wrote: > > > Hi, we're in the early stages of developing our web2py applications, > > and we don't really care if we expose the admin interface over HTTP, > > a

[web2py] Admin without HTTPS?

2011-09-27 Thread Aaron
ps from the VMs' host machine. Is there a way to disable the "Admin is disabled because insecure channel" message and run the admin application over HTTP during development? Thanks, Aaron

[web2py] Re: How to trigger generic views

2011-09-21 Thread Aaron
erhaps I'll add response.generic_patterns = ['*'] to my model during testing, making sure to take it out thereafter. Thanks again! -Aaron On Sep 21, 4:21 pm, Anthony wrote: > Please seehttps://groups.google.com/d/msg/web2py/SF7oKIWWPSE/m98V_tfd-V0J.

[web2py] How to trigger generic views

2011-09-21 Thread Aaron
I'm in the early stages of writing a web2py application, and I want to retrieve the data returned by one of my actions in JSON format. As I understand it, the documentation seems to say that if I navigate to ../[application]/[controller]/[action].json then the dictionary returned by my action shou

[web2py] web2py with Mongrel2 web server

2011-09-15 Thread Aaron
han Apache, using WSGI? Thanks, Aaron

[web2py] Re: password widget, validators and ending up with asterisks

2011-09-03 Thread Aaron Mahler
Ok. Makes sense. So I wasn't nuts or "doing it wrong". :) Thanks! - Aaron On Sep 2, 9:31 pm, Massimo Di Pierro wrote: > Field('name',type='password') makes use data can only go in but never > out to forms. > > On Sep 2, 5:29 pm, Aaron Mahler

[web2py] Re: password widget, validators and ending up with asterisks

2011-09-02 Thread Aaron Mahler
ord field is part of that user record and I don't want those fields appearing in clear text. - Aaron On Sep 1, 10:32 pm, pbreit wrote: > Is there a reason you aren't using web2py's login? > > If you want to customize the login page, you can do this in > views/defa

[web2py] password widget, validators and ending up with asterisks

2011-09-01 Thread Aaron Mahler
t that doesn't work... hence the dirty workaround above. Thoughts? - Aaron

[web2py] Re: Link calling function w/results in modal popup?

2011-08-24 Thread Aaron Mahler
Just to be sure I'm not missing a far simpler approach here... is there a way with the Minimal Modal plugin to assign the results of a function call to its content argument? - Aaron On Aug 24, 12:11 pm, Aaron Mahler wrote: >  That first example looks very close. Let me study that o

[web2py] Re: Link calling function w/results in modal popup?

2011-08-24 Thread Aaron Mahler
That first example looks very close. Let me study that one a bit... Thanks! - Aaron On Aug 24, 12:08 pm, Anthony wrote: > Maybehttp://labs.blouweb.com/PowerGrid/default/gridinpopuporhttp://powertable.blouweb.com/category. > > > > > > > > On Wednesday, August

[web2py] Link calling function w/results in modal popup?

2011-08-24 Thread Aaron Mahler
ot; link needs to be creating the modal popup and calling a function/URL that returns the info to be shown. Any pointers and/or code examples that might help me achieve this in a sane manner? :) Thanks! - Aaron

Re: [web2py] web2py vs. django for Manipulating LDAP Records?

2011-08-11 Thread Aaron Mahler
José, Thanks for the quick reply and the link to the subversion. I'm exploring some of the LDAP code now to get a sense of how they are handling it. Thanks! - Aaron 2011/8/11 José Luis Redrejo Rodríguez > There's not a dal interface to ldap, but a auth interface. > Some

[web2py] web2py vs. django for Manipulating LDAP Records?

2011-08-11 Thread Aaron Mahler
g about an LDAP DAL, but there appeared to be no replies. Maybe something has changed since? Any input would be greatly appreciated! - Aaron

[web2py] Permission Denied error when updating field

2010-06-11 Thread Aaron Crowe
I'm working on an application that takes a Turtle Art (.ta) file, runs it, creates a .png of the result, and displays it in a table. So far I can create the .png and it's placed in the uploads folder with the same name as the original .ta file but when i try to run session.new_image = form.var

[web2py] Re: Referencing Images From the Database

2010-06-07 Thread Aaron Crowe
.file)}}" / > > > > you must have the 'download' action in default.py > > On Jun 7, 11:26 am, Aaron Crowe wrote: > > > I have an image stored in the database as db.comment.file and I'm > > trying to view it by using its location in application/M

[web2py] Referencing Images From the Database

2010-06-07 Thread Aaron Crowe
I have an image stored in the database as db.comment.file and I'm trying to view it by using its location in application/My_App_Name/ uploads using When looking at the page source the filename is correct but the image doesn't render. Is my path wrong for a view in My_App_Name/views/ default or a

[web2py] Database Image Rendering

2010-06-03 Thread Aaron Crowe
How would I go about rendering an image that's been uploaded and stored in a database?

[web2py] Clearing Database Tables

2010-06-02 Thread Aaron Crowe
What would the code be to delete either all entries in a database table or all entries in a given field within that table?

[web2py] Image upload

2010-06-01 Thread Aaron Crowe
I'm just getting started with web2py and I'm looking for a way for the user to upload an image and have it stored in the database. Any suggestions or links to relevant code would be appreciated.