My app is getting errors when routing custom profile URLs with non-
english characters. Here's a sample URL:
2011-12-18 23:07:14.292 /profile/carlos_alvarez%20el
%C3%B3segui_9w5Z1HdEW 500 53ms 0kb Mozilla/5.0 (compatible; Googlebot/
2.1; +http://www.google.com/bot.html)
173.245.56.25 - - [18/Dec/2
Update: Following christian's example, it seems that looping over the
Rows object in controller does nothing, but looping over it on the
view is working.
My controllers and models are almost exactly the same, at least the
fields that are affected. I am testing on localhost:8080 first,
although sam
same with Jarrod, up to date with web2py and GAE sdk
web2py: 1.98.2 (2011-08-04 00:47:09)
gae: 1.5.3
Yes there is data in the namespace.
Thanks,
Arbie
On Aug 28, 5:36 am, howesc wrote:
> i do this all the time and have never had problems.
>
> what web2py version are you using? are you certain
Hello, I have this app in gae where I want to fetch the latest 20
profiles. The model is:
***
db.define_table('userprofile',
Field('owner', 'reference auth_user', readable=False,
writable=False, default=auth.user_id),
Field('created', 'datetime',
Thanks for the replies guys. I started off with pbreit's snippet:
http://groups.google.com/group/web2py/browse_thread/thread/6cc84d9fb609e74/cdb0d848ed691e40?q=paypal+pbreit#cdb0d848ed691e40
First I ran into a problem in which paypal is saying I'm not
authorized to make the api call. Some googling
Hello,
Would just like to know if anybody has successfully implement a simple
Paypal express checkout procedure under the AppEngine environment? I
searched around and I found no instances where anyone has implemented
this. So far all I've found were:
http://web2pyslices.com/main/slices/take_slice
rt BaseAdapter, SQLDB, SQLField, DAL, Field
>
> Massimo
>
> On May 25, 11:36 am, Arbie Samong wrote:
>
>
>
>
>
>
>
> > I just finished setup of kubuntu on an old laptop and ported my
> > project to it. However, when I try to start web2py with:
>
&g
I just finished setup of kubuntu on an old laptop and ported my
project to it. However, when I try to start web2py with:
python web2py.py --password test
I get the error:
Traceback (most recent call last):
File "web2py.py", line 16, in
import gluon.widget
File "/home/arbie/cvstash/gluon
That worked! Thanks Massimo.
I downloaded the latest and that got rid of the error. Also I restored
the try-catch block.
Thanks,
Arbie
On May 20, 11:40 pm, Massimo Di Pierro
wrote:
> I think you have an old GAE SDK.
>
> Massimo
>
> On May 20, 10:05 am, Arbie Samong wrote:
&
ry:
> from new import classobj
> from google.appengine.ext import db as gae
> from google.appengine.api import namespace_manager, rdbms
> from google.appengine.api.datastore_types import Key ### needed
> for belongs \
> on
> ID
> from google.a
Admin is disabled there. If you want to check for errors go see your
console. On production, check the server logs at the left menu on your
dashboard.
Regards,
Arbie
On May 20, 11:08 am, Pierluigi Martini wrote:
> I am trying to deploy an application on GAE using web2py.
>
> I am running GAE SDK
Hi Massimo,
I tried to use python2.5 and I still get the same output:
python2.5 dev_appserver.py web2py/
Thanks,
Arbie
On May 20, 11:44 am, Massimo Di Pierro
wrote:
> appengine SDK requires python 2.5
>
> On May 19, 9:47 pm, Arbie Samong wrote:
>
> > Hello Massimo, thanks f
19, 9:24 am, Arbie Samong wrote:
>
> > This is the error I get:
>
> > ERROR 2011-05-19 14:07:16,175 restricted.py:145] Traceback (most
> > recent call last):
> > File ".../gae/web2py/gluon/restricted.py", line 181, in restricted
> > exec ccode in
This is the error I get:
ERROR2011-05-19 14:07:16,175 restricted.py:145] Traceback (most
recent call last):
File ".../gae/web2py/gluon/restricted.py", line 181, in restricted
exec ccode in environment
File ".../gae/web2py/applications/resume/models/db.py", line 9, in
db = DAL('gae
Anybody experienced enabling recaptcha via:
recaptcha = Recaptcha(request, recaptcha_public_key,
recaptcha_private_key)
auth.settings.register_captcha = recaptcha
And after creating the keys it works for a day. Next day the recaptcha
frame is gone.
What I do is to check on the generated html and
thanks for the replies guys, I eventually settled for a custom
validator. I tried to put it in the controller but somehow I can't
check if the form was submitted, and calling
form.accepts(request.vars, session) already inserts the value
MAX_ENTRIES = 3
class CAN_ADD(object):
def __init__(self,
Hello, I was wondering if there's a way to limit the allowed number of
insertable objects in the DAL, without the need to manually check it
in the controller? Suppose I have a table of pineapples that is owned
by a user, and I want the user to only be allowed three(3) pineapples?
Of course that co
Check the logs in the GAE page for your app. Top one should be the
latest.
On Apr 17, 4:18 am, Karol Marcjan wrote:
> In my controller I've got a following action defined:
>
> @auth.requires_login()
> def chapter():
> chapter_id = int(request.args[0])
>
> chapter = db.chapter[chapter_id]
>From what I can understand you want your data available even after a
redirect. POST won't have that, so you should either store it on the
session, with cookies or with the database. If it's just temporary I
would suggest using session variables.
Regards,
Arbie
On Apr 5, 3:38 pm, Brian Will wrot
@martin - that helped me passed the try-except block at the beginning,
but when the Image module is used on the other parts of the code it
went haywire. I'll look into it probably more changes to make it adapt
with GAE.
@howesc - I was able to make it work without using the file system
read and wr
In appengine.google.com you have your dashboard, and one of the menu
choices on the left would be the Logs. Click on that, and the first
entry should be the latest. You'll definitely see an error message
there.
Regards,
Arbie
On Apr 5, 12:00 pm, kawate wrote:
> Version 1.94.6 (2011-03-27 18:20:3
lt;http://code.google.com/p/pyfpdf/source/browse/fpdf.py#21>
>
> 2011/4/4 Arbie Samong
>
>
>
>
>
>
>
>
>
> > Follow-up question, how do I get PIL to be recognized as installed? I
> > tried easy_install on the whole system, then on the virtual env, t
Follow-up question, how do I get PIL to be recognized as installed? I
tried easy_install on the whole system, then on the virtual env, then
copying the PIL/ folder to site-packages, but nothing seems to work.
Thanks,
Arbie
On Apr 4, 10:35 pm, Arbie Samong wrote:
> OK update, PIL is be
OK update, PIL is being required because I have an image tag in my
view, I removed the tag and the pdf was downloaded fine. Would love to
have images written properly, though.
Regards,
Arbie
On Apr 4, 10:30 pm, Arbie Samong wrote:
> OK what I'm trying right now is something straight ou
'Content-Type']='application/pdf'
return pdf.output(dest='S')
and it gives the error:
RuntimeError: FPDF error: PIL not installed
in which I copied the PIL/ folder from /usr/lib/python2.6/dist-
packages/PIL to the web2py/site-packages/ folder and no effect. PIL is
already
did not check? If it does it
> should be easy to change it to use a StringIO instead.
>
> On Apr 4, 9:08 am, Arbie Samong wrote:
>
>
>
>
>
>
>
> > Did anyone figure out how to let users download pdf's that contains
> > data from the database under
Did anyone figure out how to let users download pdf's that contains
data from the database under GAE? Appengine does not allow file
writing, and most pdf writing libraries I've tried involves
temporarily writing in the disk.
I ported the whole thing from django, took me like a couple of days,
and I'm really impressed on how it makes most of the tasks trivial,
easy and reliable. Most of the issues were having to make it work on
GAE, but no biggie. Just wanna thank Massimo and the rest of the
web2py folks for being aweso
Hey man you may want to use janrain which also supports openid. I use
it for my app and it works fine. Massimo explained the setup here:
http://blip.tv/file/4912976
Regards,
Arbie
On Mar 31, 12:08 am, Will Stevens wrote:
> I have continued battling with this. Still no luck...
>
> Any input wou
This got rid of the errors. Thanks Massimo.
The only thing I added was a try-except block on search() when no people
were found. The simpler version of the query also restricted the search
somehow (had to search first name and last name with the right
capitalization) but I guess that's the trad
I actually tried the tutorial posted here:
http://blip.tv/file/4912976
and here are some information that wasn't mentioned but might be helpful for
absolute beginners like me:
-
You must first register with janrain and take note of the application
name
-
In models/d
I encountered the same error because I tried to point the
handler.script field in app.yaml to web2py.py. I changed to
gaehandler.py and it worked.
So in app.yaml instead of -
handlers:
- url: .*
script: web2py.py
I used -
handlers:
- url: .*
script: gaehandler.py
Hope that helps.
Regards,
32 matches
Mail list logo