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 f
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 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:
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 g
but a simple switch of the web2py folder
> > > > from
> > > > 1.74 to 1.76 makes the gae launcher either work or not so i figure it's
> > > not
> > > > me.
>
> > > > matt
>
> > > > On Wed, Mar 17, 2010 at 9:18 PM, mdipi
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). he
ay 2, 10:01 am, mattynoce 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
>
> &
7;s source code to handle the conversion. that
may be an incorrect assumption.
thanks!
matt
On May 3, 10:21 am, mdipierro wrote:
> Are you using the web2py binary distribution? If so that uses its own
> python and will not see GAE libs installed. Make sure you run from
> source and use P
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
> trunk:http://groups.google.com/group/web2py/browse_thread/thread/814b346bb0...
>
> cfh
>
> On Aug 10, 10:44 am, mattynoce wrote:
>
> > hi all. i have an interesting problem with & in gae and wanted to see
> > if i could get some thoughts.
>
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. however, when i'm in the gae appadmin and
i try to modify a user's record, if the user has an empty list for
friends, i get thi
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 wrote:
> i'm having a similar type of issue. i have the following field:
>
> Field('friends','list:integer', default=[], readable=False,
> writable=False),
>
> and
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
s
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.
Field('isComplet
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,
ecause this
seems like something you should be able to do.
matt
On Nov 11, 12:40 pm, mattynoce 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
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 9
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"
mail.settings.sender="y...@examp
he email. This may be
> because it cannot connect to the server.
>
> With captcha. If you get an error, it may be because you do not have
> valid keys from recaptcha.com
>
> On Aug 1, 2:38 pm, mattynoce wrote:
>
> > hi, i'm having the following problem. i want to have
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 for
s corresponds to fields in the table 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.
>
>
still a relative newbie with web2py. thank you for the help so far
and i look forward to hearing what's out there.
matt
On Aug 3, 5:59 am, Fran wrote:
> On Aug 2, 9:19 pm, mattynoce wrote:
>
> > hi, i have a question about hidden fields.
> > i have a form that looks like th
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 something
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 t
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 wou
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 se
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 c
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 s
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 stud
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 do
hi all. i've done a lot with ajax, but am building my first web2py
app, and i have a question. i've searched the newsgroup but i
apologize if i'm overlooking a post.
i work for a school, and i have tables for students, courses, and a m-
m called studentcourses. i'm building an enrollment page tha
id).delete()
>
> def add_student()
> course_id=request.vars.course_id
> student_id = request.vars.student_id
> drop_student()
> return db.studentcourses.insert
> (student=student_id,course=course_id)
>
> Sorry I did not quite answer your question.
>
> Ma
hi all. i know hosting has come up a lot on this group, and i have
read as many posts as i could find. but i still have a question:
does anyone have a web2py good hosting solution for a non-sysadmin?
i'm a programmer but don't have much experience with hosting. i've
always used hosting providers
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=gst&q=web2py.app+resources#dfcfc7ec91949acf
the instructi
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 wrote:
> Absolutely not massimo, you are a star and your screencasts are great.
>
> Mike alias Plysak :)
>
>
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 child
_logInUser(user):
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 wrote:
> hi, i hope this is an easy question, but i didn't find answers
> elsewhere in the forum.
>
&g
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=en&lnk=gst&q=custom+widget+remember#258643e0875d0027
it's not {{=form.custom.widget.remember}}.
tabase model.
>
> On Nov 24, 12:43 pm, mattynoce wrote:
>
> > 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/8519e2e488...
>
>
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: perio
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 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, {{=user.first_
bump. any thoughts on running code stored in the db through the web2py
interpreter?
On Dec 23, 3:17 pm, mattynoce 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 display
some templating
would be helpful for now.
thanks,
matt
On Dec 27, 11:16 am, mdipierro wrote:
> cube2py does that.
>
> http://code.google.com/p/cube2py/source/browse/models/plugin_wiki.py?...
>
> On Dec 27, 12:56 pm, mattynoce wrote:
>
> > bump. any thoughts on running code st
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 wrote:
> hm. this is true, but what i'm looking to d
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:
{{include nextStep + '.html'}}
that isn't working because it gets compiled. so i tried:
{{function getInclu
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)}}
: v
ps version 1.89.1
On Dec 28, 12:12 pm, mattynoce 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
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
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
to work on a redirect so i'd get around 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 wrote:
> On Dec 29, 2010, at 3:25 PM, mattynoce wrote:
>
>
>
>
>
> > hi all.
t set request.extension inside that function and
everything should work as i was hoping.
much obliged.
On Dec 30, 9:59 am, Jonathan Lundell wrote:
> On Dec 30, 2010, at 9:49 AM, mattynoce wrote:
>
>
>
>
>
> > if i can override request.extension and have it propagate, that's
> >
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
parent
u can set label to "username
> 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 wrote:
> > hi all. i know we can use username instead of email by
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])
au
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:
#
http://groups.google.com/group/web2
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 tha
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 p
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
ma
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
exp
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: /_ah/mai
64 matches
Mail list logo