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:
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
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
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
ps my app is indeed named init and the controllers folder has appadmin.py.
forgot to reply to that last time.
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
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
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:
#
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])
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
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
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
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
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
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
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)}}
:
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
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
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
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
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
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,
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:
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
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}}.
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
):
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
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
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,
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
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
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.
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
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
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
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
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
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:
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,
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
.
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
, 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
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).
...@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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
60 matches
Mail list logo