Re: [web2py] Re: Appengine, inbound mail code placement...

2011-04-21 Thread mattynoce
just as a follow-up here, i got this to work simply using a combination of what everyone said. here's what i did: i added the following to my app.yaml above the handlers: section: inbound_services: - mail under handlers (and for me, below remote_api), i added the following code: - url:

Re: [web2py] Re: Alternative for annoying default javascript integer/double/decimal validtors

2011-03-23 Thread mattynoce
it seems something has to be done about the internationalization, but i think this solution is definitely a step in the right direction. as i posted earlier (https://groups.google.com/d/topic/web2py/HTBuheF-xzs/discussion), this is a big problem in safari and chrome, and leads to a bad user

Re: [web2py] Re: web2py applications and version control systems

2011-03-21 Thread mattynoce
i'm a n00b when it comes to version control, so i'm wondering if i can ask some specific questions. i've RTFM but i'm sure there are things i'm missing, so feel free to let me know if my questions are too n00bish. i'm using GAE and i'm on a mac, using the web2py source code (not the compiled

Re: [web2py] appadmin troubles

2011-03-14 Thread mattynoce
hi jonathan. i tried renaming routes.py and leaving the default config, and that actually did not work either. so something happened in the upgrade that screwed things up. i had a web2py-wide routes file in my last version, but it simply had the error code and nothing else. i didn't fully grok

Re: [web2py] appadmin troubles

2011-03-14 Thread mattynoce
ps my app is indeed named init and the controllers folder has appadmin.py. forgot to reply to that last time.

Re: [web2py] appadmin troubles

2011-03-14 Thread mattynoce
woah! i just found it. i neglected to mention that i was running on gae, using the mac sdk. i didn't think to mention it. but it looks like that's an important piece here. i had been checking my log file and it was telling me it was returning 404 errors. unfortunately, i took that to mean

Re: [web2py] appadmin troubles

2011-03-14 Thread mattynoce
jonathan, you do have a fair point -- i already have to edit that file each time i upgrade, as you say, to change the application and version, as well as add in some handlers for gae. so it's not that big a deal to go in and do this as well, so long as i know to do it. but i think your second

[web2py] appadmin troubles

2011-03-13 Thread mattynoce
hi, i just upgraded to 1.93.2 from 1.89.1 and my appadmin link is no longer working. i get the following error by going to http://localhost:8080/init/appadmin: invalid controller (appadmin/index) the only things i changed from the default routes file were: #

[web2py] Re: Overriding the Default verify_email

2011-02-07 Thread mattynoce
here's what i do: in db.py: auth.settings.verify_email_onaccept = lambda form: __afterVerify(form) def __afterVerify(form): # any custom actions you want, including calling funtions in either the model or the controller # in my case, i log in my user. logInUser(db.auth_user[form.id])

[web2py] username or email

2011-02-03 Thread mattynoce
hi all. i know we can use username instead of email by simply adding username=True to auth, but i wanted to know if there happened to be a way to use either. for example, i have parent and children users, and i want kids to use username, since they might not have email addresses. but i want

[web2py] Re: username or email

2011-02-03 Thread mattynoce
or email not sure if this fits, but if it is ok, i can give you exact code (i use something very similar to this) On Thu, Feb 3, 2011 at 8:18 PM, mattynoce mattyn...@gmail.com wrote: hi all. i know we can use username instead of email by simply adding username=True to auth, but i wanted to know

[web2py] Re: component .load

2010-12-30 Thread mattynoce
the extension piece, but if this will work in concept, i'll go back to using it in the future. thanks, matt On Dec 30, 9:30 am, Jonathan Lundell jlund...@pobox.com wrote: On Dec 29, 2010, at 3:25 PM, mattynoce wrote: hi all. i have a component i'm plugging into the middle of a page, but i

[web2py] Re: component .load

2010-12-30 Thread mattynoce
request.extension inside that function and everything should work as i was hoping. much obliged. On Dec 30, 9:59 am, Jonathan Lundell jlund...@pobox.com wrote: On Dec 30, 2010, at 9:49 AM, mattynoce wrote: if i can override request.extension and have it propagate, that's totally fine. if, for example, i

[web2py] component .load

2010-12-29 Thread mattynoce
hi all. i have a component i'm plugging into the middle of a page, but i want that component to act seamlessly with the rest of the page. i do NOT want the component to do what components usually do and act independently. i need to include variable files, and components are the only way i can find

[web2py] variable include

2010-12-28 Thread mattynoce
hi all. i'm trying to have variable files included into my view, but i'm not sure that it's possible since it seems includes are compiled before runtime. i want to do something like: div {{include nextStep + '.html'}} /div that isn't working because it gets compiled. so i tried: {{function

[web2py] Re: Loading component with vars

2010-12-28 Thread mattynoce
i can confirm. request.args always comes through, whether ajax or not. request.vars is dependent upon ajax. {{=LOAD('comment', 'conversation_dropdown.load',vars={'dashboard':True}, ajax=False)}} : vars = {} {{=LOAD('comment', 'conversation_dropdown.load',vars={'dashboard':True}, ajax=True)}} :

[web2py] Re: Loading component with vars

2010-12-28 Thread mattynoce
ps version 1.89.1 On Dec 28, 12:12 pm, mattynoce mattyn...@gmail.com wrote: i can confirm. request.args always comes through, whether ajax or not. request.vars is dependent upon ajax. {{=LOAD('comment', 'conversation_dropdown.load',vars={'dashboard':True}, ajax=False)}} : vars

[web2py] Re: variable include

2010-12-28 Thread mattynoce
great call, luther. thank to you and ron for the help. here was the solution: 1) have the main view code call a component i called stepFunc 2) have stepFunc then render the appropriate mini-view [views] ** first, i defined a view for each step. so there's a folder at default/views/step and it

[web2py] Re: executing code from db

2010-12-27 Thread mattynoce
bump. any thoughts on running code stored in the db through the web2py interpreter? On Dec 23, 3:17 pm, mattynoce mattyn...@gmail.com wrote: hi all. i know this doesn't sound like a superb idea, but i may have to do something like it. i have data coming from the db and being displayed

[web2py] Re: executing code from db

2010-12-27 Thread mattynoce
for now. thanks, matt On Dec 27, 11:16 am, mdipierro mdipie...@cs.depaul.edu wrote: cube2py does that. http://code.google.com/p/cube2py/source/browse/models/plugin_wiki.py?... On Dec 27, 12:56 pm, mattynoce mattyn...@gmail.com wrote: bump. any thoughts on running code stored in the db

[web2py] Re: executing code from db

2010-12-27 Thread mattynoce
on second thought (or third, or fourth), don't worry about this. i'm going to redo my setup so i don't have to pull code from the db or try to template templates. thanks, matt On Dec 27, 1:02 pm, mattynoce mattyn...@gmail.com wrote: hm. this is true, but what i'm looking to do is a little

[web2py] executing code from db

2010-12-23 Thread mattynoce
hi all. i know this doesn't sound like a superb idea, but i may have to do something like it. i have data coming from the db and being displayed to the user as instructions. do this, go there, etc. i'd like to have that data executed in the environment, so i could say do this,

[web2py] Re: Please help: Are these errors?

2010-12-01 Thread mattynoce
i get this error when i have mismatched data, but only on certain fields. i haven't done the example that you're talking about exactly, but maybe this can help. i have a normal auth_user table, a period table and an element table that look like this: auth_user period: userid, ... element:

[web2py] gae, lists and scaling

2010-12-01 Thread mattynoce
i'm using web2py on gae and creating a system that will incorporate friending and a friend feed of sorts. earlier this year, i made friends a list in the auth_user table, but upon watching brett slatkin's talk on list properties (http://www.youtube.com/watch? v=AgaL6NGpkB8), i got nervous because

[web2py] remember widget

2010-11-24 Thread mattynoce
hi all. i'm making a custom login form and, as per this thread, can't get the remember widget to show up: http://groups.google.com/group/web2py/browse_thread/thread/8519e2e48891f03e/258643e0875d0027?hl=enlnk=gstq=custom+widget+remember#258643e0875d0027 it's not {{=form.custom.widget.remember}}.

[web2py] Re: remember widget

2010-11-24 Thread mattynoce
wrote: I do not think the remember widget exists. The HTML is injected in the form. There is no widget because it does not go in the database model. On Nov 24, 12:43 pm, mattynoce mattyn...@gmail.com wrote: hi all. i'm making a custom login form and, as per this thread, can't get the remember

[web2py] Re: verification login

2010-11-18 Thread mattynoce
): from gluon.storage import Storage session.auth = Storage(user=user, last_visit=request.now, expiration=auth.settings.expiration) On Nov 17, 1:26 pm, mattynoce mattyn...@gmail.com wrote: hi, i hope this is an easy question, but i didn't find answers elsewhere in the forum. here's what i'm

[web2py] verification login

2010-11-17 Thread mattynoce
hi, i hope this is an easy question, but i didn't find answers elsewhere in the forum. here's what i'm looking to do: 1) a parent registers with the site 2) the parent registers her child using just an email address 3) the child receives the verification email, and clicks on the link 4) the

[web2py] Re: radio button issue

2010-11-11 Thread mattynoce
unfortunately, that didn't work either. both your version and mine show the proper thing online: o Yes o No but neither version will allow me to click on No and have it register as False in the database. i even made it simpler: Field('isComplete', 'boolean', widget=SQLFORM.widgets.radio.widget,

[web2py] Re: radio button issue

2010-11-11 Thread mattynoce
to do. matt On Nov 11, 12:40 pm, mattynoce mattyn...@gmail.com wrote: unfortunately, that didn't work either. both your version and mine show the proper thing online: o Yes o No but neither version will allow me to click on No and have it register as False in the database. i even made

[web2py] Re: web2py 1.88.1 is OUT

2010-11-11 Thread mattynoce
i'm seeing appadmin break for my auth_user table with a picture. when i have a photo, update works fine. when the photo is not there, i get an error: KeyError: 'picture_blob' and from top to bottomw: gluon/restricted.py line 188 init/controllers/appadmin.py:update line 410 gluon/globals.py line

[web2py] radio button issue

2010-11-10 Thread mattynoce
can anyone figure out something going wrong here? i'm trying to get radio buttons that return True/False but show Yes/No to the user. these buttons look good but no matter what you select, they return True. this happens in appadmin, so there's nothing strange in my view code.

[web2py] problem with double input on safari and chrome

2010-10-25 Thread mattynoce
hi, i'm running across a problem and want to alert the community about it. i don't yet have a solution but am working on it. maybe one of you has done it before. what's happening the javascript that prevents you from putting bad characters in the double input fields is also acting strangely in

[web2py] reset_password and response.render

2010-10-21 Thread mattynoce
hi all. i'm trying to have a consistent html email look and feel for my site. one issue i'm having is with auth.messages like reset_password and response.render. in a controller, i can do this: email = {} email['address'] = 'mye...@mail.com' context = dict(email=email) messageHtml

[web2py] Re: GAE appadmin weirdness

2010-10-21 Thread mattynoce
hi, anyone having this same issue with list:integer? matt On Oct 8, 10:26 am, mattynoce mattyn...@gmail.com wrote: i'm having a similar type of issue. i have the following field: Field('friends','list:integer', default=[], readable=False, writable=False), and it generally works fine

[web2py] Re: gae strangeness with symbol

2010-10-07 Thread mattynoce
 am, mattynoce mattyn...@gmail.com wrote: hi all. i have an interesting problem with in gae and wanted to see if i could get some thoughts. in my program, i have used in queries many times and had it work. for example, query A works fine: (A) db((db.timeframe.isActive==True

[web2py] sms provider

2010-08-17 Thread mattynoce
has anyone used massimo's relatively new sms command in a program? have you found a provider that you like? i'm working on a team where we're looking to add sms technology, where users can text in updates and we can text them back with alerts and status updates and such. but at a couple cents per

[web2py] gae strangeness with symbol

2010-08-10 Thread mattynoce
hi all. i have an interesting problem with in gae and wanted to see if i could get some thoughts. in my program, i have used in queries many times and had it work. for example, query A works fine: (A) db((db.timeframe.isActive==True) (db.timeframe.userID==15)).select() but query B does not:

[web2py] Re: Can not send verification email

2010-07-27 Thread mattynoce
i did a slightly different fix in tools.py, starting on line 537: if attachments: result = mail.send_mail(sender=self.settings.sender, to=to, subject=subject, body=text, html=html,

[web2py] hiding email password

2010-05-23 Thread mattynoce
hi, i have a question about sending emails. i'm running my program on google app engine, and due to google's rules i need to have an administrator as the from for all my emails. so i created an account, let's call it sampleemai...@gmail.com, figuring that would be the from for all my emails for

[web2py] Re: gae import error

2010-05-03 Thread mattynoce
. On May 2, 10:01 am, mattynoce mattyn...@gmail.com wrote: hi, i was attempting to add a listproperty to my db.py file and encountered an import error. i haven't added the listproperty yet, i just added the import line: from gluon.contrib.gql import gae and i put it after the default

[web2py] Re: gae import error

2010-05-03 Thread mattynoce
, mattynoce mattyn...@gmail.com wrote: i'm on a mac and i have the google app engine launcher installed in my applications folder, and it works fine for uploading and deploying. is there something else i need to be doing? matt On May 2, 6:23 pm, mdipierro mdipie...@cs.depaul.edu wrote

[web2py] gae import error

2010-05-02 Thread mattynoce
hi, i was attempting to add a listproperty to my db.py file and encountered an import error. i haven't added the listproperty yet, i just added the import line: from gluon.contrib.gql import gae and i put it after the default mail lines and before i redefined the user table (which is working).

[web2py] Re: gae appadmin

2010-03-19 Thread mattynoce
...@gmail.com wrote: to use appadmin on GAE I had to either use https or comment out the security checks On Mar 17, 12:16 pm, mattynoce mattyn...@gmail.com wrote: hi, i've looked at some posts but can't seem to make this work. i can get appadmin to work on my local

[web2py] gae appadmin

2010-03-16 Thread mattynoce
hi, i've looked at some posts but can't seem to make this work. i can get appadmin to work on my local version of gae launcher (on a mac), but when i upload it, i can't get it to work on app engine even over https. i tried to migrate from 1.74.11 to 1.76.5 but when i did that, i couldn't get the

[web2py] orderby upper issue

2010-01-12 Thread mattynoce
i have an issue with upper and gae (separate from other orderby=upper questions i've seen) i was hoping you could comment on. i have this line: select(...orderby=(db.table.field.upper()) and when the select returns an empty set, it looks fine on web2py. however, when the select returns an empty

[web2py:36186] content-type email on gae

2009-11-29 Thread mattynoce
hi, i've been testing out my registration system on my mac and local google app engine, and the email registration has worked fine. when i make the smtp changes and push it up to gae, i still get the emails and they function properly but there's content-type gibberish everywhere. is there a way i

[web2py:33706] gae like operator

2009-10-26 Thread mattynoce
hi, i have a question regarding google app engine. i'm trying to institute a search feature, where people can type into a box and get a result. i understand that gae doesn't allow use of like because it results in a full table scan and their datastore is built to not allow for anything that

[web2py:33735] Re: OR and LIKE on GAE

2009-10-26 Thread mattynoce
i think this is a great idea. i'm currently trying to implement a search that would ordinarily use LIKE and have had two problems: 1) i can't use LIKE, so your new suggestion would be wonderful. i was planning to write it on my own, so having syntax for it would be wonderful. 2) i would like my

[web2py:33071] error tickets on gae

2009-10-17 Thread mattynoce
hi everyone. i've been creating an app and it works fine with the web2py launcher on my computer, but when i use the google app engine on my computer or deploy it to gae, registration causes an error (among other things). what i haven't been able to find through searching is how to view tickets

[web2py:32744] create verification key

2009-10-12 Thread mattynoce
hi, i'm looking to email verification separate from the auth_user class. i know the concept but what i'd like to do is use the same function that auth uses to create its random string. is there a simple function i can call to return a long, quasi-random string? for example, i want to do

[web2py:27906] Re: hidden fields

2009-08-03 Thread mattynoce
to hearing what's out there. matt On Aug 3, 5:59 am, Fran francisb...@googlemail.com wrote: On Aug 2, 9:19 pm, mattynoce mattyn...@gmail.com wrote: hi, i have a question about hidden fields. i have a form that looks like this: fields=['f1','f2','f3'...] hidden=dict(fieldname=val) form

[web2py:27860] hidden fields

2009-08-02 Thread mattynoce
hi, i have a question about hidden fields. i have a form that looks like this: fields=['f1','f2','f3'...] hidden=dict(fieldname=val) form = SQLFORM(db.table, fields=fields, showid=False, hidden=hidden) in the view it's simply {{=form}} when i look at the view, there's a hidden input field

[web2py:27870] Re: hidden fields

2009-08-02 Thread mattynoce
but are hidden because writable=False. You need to set writable=True after the form is created, before the form is accepted. If web2py thinks they are not writable will not allow a client to write in them, as a security measure. Massimo On Aug 2, 3:19 pm, mattynoce mattyn...@gmail.com wrote

[web2py:27782] verification problem

2009-08-01 Thread mattynoce
hi, i'm having the following problem. i want to have email verification, so i added in the following lines from the pdf on the homepage (and changed the mail settings for my server): from gluon.tools import * mail=Mail() mail.settings.server=smtp.example.com:25

[web2py:27785] Re: verification problem

2009-08-01 Thread mattynoce
an error, it may be because you do not have valid keys from recaptcha.com On Aug 1, 2:38 pm, mattynoce mattyn...@gmail.com wrote: hi, i'm having the following problem. i want to have email verification, so i added in the following lines from the pdf on the homepage (and changed the mail

[web2py:18557] Re: new web2py video about Auth, Service

2009-03-24 Thread mattynoce
very nice work, massimo. i've had trouble keeping up with which features are newly available in web2py and this tutorial is a great help. thank you. matt On Mar 18, 4:06 am, Michal Jursa mic...@jursa.cz wrote: Absolutely not massimo, you are a star and your screencasts are great. Mike alias

[web2py:17986] web2py on gae on mac

2009-03-13 Thread mattynoce
hi all. i'm trying to get web2py to work through the google app engine on a mac, and i'm having some difficulty. see this thread for details: http://groups.google.com/group/web2py/browse_thread/thread/e58c2fa3212b04a7/dfcfc7ec91949acf?lnk=gstq=web2py.app+resources#dfcfc7ec91949acf the

[web2py:13345] Re: T3 is out!!!!!!!!!

2008-12-11 Thread mattynoce
in reply to massimo's question about merging: as a noob, i find the web2py/t2/t3 stuff very confusing. i was convinced that web2py is the way i should go for my new development. then i read about t2 and liked that it could handle the higher-level things like login and upload. but i didn't (and

[web2py:12908] adding custom field to sqlset

2008-12-04 Thread mattynoce
hi, i'm a newbie to web2py but i'm very intrigued. the issue i'm having is that i'd like to associate information with rows of a sqlset. for example, i am creating a page that enrolls/unenrolls users (students) in a program (section). i want to list the students in the section, then list all