Yes, indeed, if I add to the user() controller the following code:
form=auth()
if form.errors:
response.flash=DIV(form.errors,_class='error')
Then I would have seen immediately that one of my fields was missing
from the view. Perhaps this should be the default behavior of the auth
user
You do not get a ticket because there is no programming error, it is
just that the form submission does not pass validation and the
validation error cannot be displayed because the widget associated to
the field that should display the error is not there. When you have
form errors it is always usef
I think the problem is the following: You need to run the program with
dev_appserver, register, login and create some posts and some
comments. As you use it locally, dev_appserver will write index.yaml
for you and list the indices you need. After you have fully used the
app locally then you upload
Aha! I found the problem. My actual user table has an additional field
in it that was missing in my view. When I add the field to the view,
it all works fine, now. I think it's odd (perhaps a benign bug) that I
don't get a ticket, which made my bug harder to discover. I had
already pared down the t
hmmm. The GAE logs say I am missing an index.
Below are a couple of log entries.
In FILE: /base/data/home/apps/mutantacct4/1.338874278338316080/
applications/blog/controllers/default.py
Traceback (most recent call last):
File "/base/data/home/apps/mutantacct4/1.338874278338316080/gluon/
restri
The code below works for me. Something else is wrong in your code.
Perhaps sessions are not being saved?
auth.settings.table_user = db.define_table('auth_user',
Field('email',length=128,label=T('Email'),default='',unique=True),
Field('password','password',readable=False,label=T('Password')
Utterly outrageous. I have written a nasty comment on LULU.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegro
What does the GAE log say, as opposed to the web2py ticket?
Odd it runs on dev_appserver and not GAE.
Could it be "post" is a reserved keyword and cannot be used as a mode
name?
If that is the case the docs do not say it.
massimo
On Jan 1, 10:09 pm, Chad wrote:
> Also ...
> when running GAE loca
Massimo,
The last 2 posts look like they're off thread. Back to the custom form
with auth profile:
# model
auth_table = db.define_table(
auth.settings.table_user_name,
Field('email',length=128,label=T('Email'),default='',unique=True),
Field('password','password',readable=False,label=T('Pass
Also ...
when running GAE locally the datastore works, I can create posts using
the create_post action. When actually running in GAE it doesn't work,
I receive a "Internal Error" when trying to view the create_post
action.
--- begin ticket data ---
value: (dp0 S'output' p1 S'' p2 sS'layer' p3 S'/
I can't create using appadmin either. When I click on the "insert new
post" link I receive an internal error. "insert new comment" does the
same thing.
--- begin ticket data ---
ticket_data
value: (dp0 S'output' p1 S'' p2 sS'layer' p3 S'/base/data/home/apps/
mutantacct4/1.338872944811925236/appli
Normally the datastore does not create tables until you put data in
them.
Can you create posts using?
http:///yourapp/appadmin
I do not see anything wrong in this line
form = crud.create(db.post)
Can you tells us what errors you get from GAE?
Massimo
On Jan 1, 8:45 pm, Chad wrote:
>
I'm really enjoying learning web2py, but I am running into problems
when using it with Google App Engine.
I followed the example at
http://www.web2py.com/AlterEgo/default/show/253
which works fine locally, but when trying to run in GAE I can't seem
to create posts. When I look at the entities usin
You should be able to web2py 1.74.5 run with 2.4 provided that they
install for you pysqlite and hashlib.
On Jan 1, 7:38 pm, Adnan Smajlovic wrote:
> I am trying to workout the installation problem with HostGator, who
> unfortunately only supports Python 2.4 at the moment. I understand that I
I am trying to workout the installation problem with HostGator, who
unfortunately only supports Python 2.4 at the moment. I understand that I
should go with 2.5 and need to take the risk to do it myself on just
purchased VPS from them.
Are there somewhere good instructions how to install version 2
sorry cannot say without looking at the action and the view.
On Jan 1, 7:00 pm, weheh wrote:
> Massimo, there were indeed some hidden fields, but it made no
> difference whether I inserted them or not. I did discover that I had
> {{form.custom.begin}} instead of {{=form.custom.begin}} and
> {{for
Massimo, there were indeed some hidden fields, but it made no
difference whether I inserted them or not. I did discover that I had
{{form.custom.begin}} instead of {{=form.custom.begin}} and
{{form.custom.end}} instead of {{=form.custom.end}}, which I fixed,
but that had no effect. I even got rid o
h, nasty!
On Jan 1, 5:08 pm, Massimo Di Pierro wrote:
> This guyhttp://stores.lulu.com/williambookplagiarizes books by other
> authors and sells them on lulu, including the web2py book. This is
> bad. Lulu.com has been contacted two days ago but no action so far.
--
You received this me
Thank you for the patch toomim. I am uploading it in trunk now.
User achipa wrote cron.py and I believe @reboot was only meant to work
wuth extcron.
I am sure this can be changed but I need to think about it. If you
have any idea let me know.
Massimo
On Dec 31 2009, 5:49 pm, toomim wrote:
> Th
This is truly terrible... particularly given that you already sell
this title on Lulu --- shame on their processes...
On Jan 1, 4:08 pm, Massimo Di Pierro wrote:
> This guyhttp://stores.lulu.com/williambook plagiarizes books by other
> authors and sells them on lulu, including the web2py bo
I suggest look at the generated default form first. I suspect the
form.custom.widget.it that makes a hidden input field may be missing.
On Jan 1, 4:43 pm, weheh wrote:
> I'm making custom forms for all the auth stuff so that I have precise
> control over the look and feel in order to make it cons
I think this is what you looking for.
http://web2py.com/examples/static/epydoc/index.html
On Jan 1, 4:11 pm, pihentagy wrote:
> On Jan 1, 6:34 pm, mdipierro wrote:
>
>
>
> > On Jan 1, 9:48 am, pihentagy wrote:
> > > I cannot understand why you should write:
> > > Field('customer', db.partner,
I'm making custom forms for all the auth stuff so that I have precise
control over the look and feel in order to make it consistent with the
rest of my site. I got a custom form working with login, but it's not
working for profile. Things look like this:
# view
form.custom.begin,
DIV(
On Jan 1, 6:34 pm, mdipierro wrote:
> On Jan 1, 9:48 am, pihentagy wrote:
> > I cannot understand why you should write:
> > Field('customer', db.partner, requires=IS_IN_DB(db,
> > 'partner.id','partner.id'))
>
> > and not just simply
> > Field('customer')
> The sytnax is Field(name, type). Th
This guy http://stores.lulu.com/williambook plagiarizes books by other
authors and sells them on lulu, including the web2py book. This is
bad. Lulu.com has been contacted two days ago but no action so far.
--
You received this message because you are subscribed to the Google Groups
"web2py-u
Okay it's clear now. I have to modify my app then... :-o I have to say
that it's better now :) But it's not right documented it the book :-o
Thanks anyway.
On jan. 1, 21:37, mdipierro wrote:
> Sorry you are right.
>
> crud.settings.controller ='adatok'
>
> next can have three possible values:
Sorry you are right.
crud.settings.controller ='adatok'
next can have three possible values:
1) a full url starting with http://
2) an absolute url starting with /
3) a function/args than it is relative to /application/controller/
where controller is crud.settings.controller
If in some early
Perfect, Thank You! I didn't realize that IS_IN_SET() had a labels
argument available that would set the text to be shown in the select
box. So many little treasures hidden away in web2py :)
>From the epydocs for web2py.gluon.validators.IS_IN_SET()
__init__(self, theset, labels=None, error_m
You mean
crud.settings.controller ='adatok'
?
Or what is the relation of auth and the next [id] thing? What if I
doesn't have auth at all?
If I understand it well then the crud "next" parameter's relative path
is the uri's part after the application and the default controller:
So the expected b
Hi Gergo,
Thank you very much for your email. Your prospective as a Django user
is very valuable here.
On Jan 1, 9:48 am, pihentagy wrote:
> Hi all!
>
> After some django experience I tried to learn web2py. My impressions
> and issues:
>
> I cannot understand why you should write:
> Field('custo
It really depends on what "Can this handle requests from 100 users
every moment?" means.
The bottleneck is probably the db.
Before you benchmark and/or go to production make sure you:
- bytecode compile your app
- set all your models to migrate = False
Massimo
On Dec 31 2009, 9:00 pm, vvk wrote
auth.settings.controller='myctl'
On Jan 1, 8:01 am, kbochert wrote:
> I'm trying to use my custom login page.
>
> In models\db.py I put
>
> auth.settings.login_url = "/myapp/myctl/user/login"
>
> When I go to a protected page, I get the expected login page 'myapp
> \myctl\user\login' .
>
You are right. There was an ambiguity in the previous version that
made it behave in different ways in different cases. You you can
specify this behavior:
auth.settings.controller ='adatok'
You can also set
auth.settings.controller =None
to make the controller to be the same as the one of the c
form=SQLFORM(...)
form[0].insert(position, TR(
LABEL(self.messages.verify_email + ':'),
INPUT(_name="email_two",
_type="email",
requires=IS_EXPR('value==%s' % \
weekdays =
("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday")
form = SQLFORM.factory(Field('dow',requires=IS_IN_SET(range
(1,8),weekdays,multiple=True)))
On Jan 1, 12:32 am, Brian M wrote:
> How would I go about creating a select field with SQLFORM.factory that
> gives outp
web2py/httpserver.log
The last column is the time.
On Dec 31 2009, 11:19 pm, toomim wrote:
> I'm building an app that can have ~50 users connecting at a time. I
> want to know if pages load slowly for them so I can make it faster.
> How can I find and record page the load times my users experien
The -M import models. Somewere in one of your models there you call
the attribute lenght of a dict object (obj.len) and it does not exist.
Massimo
On Dec 31 2009, 8:31 pm, Sujan Shakya wrote:
> When I run "python web2py.py -M -S mywiki", I get the following error:
>
> In [9]: for i in range(5)
Hi all!
After some django experience I tried to learn web2py. My impressions
and issues:
I cannot understand why you should write:
Field('customer', db.partner, requires=IS_IN_DB(db,
'partner.id','partner.id'))
and not just simply
Field('customer')
and on the other hand how a validator defines
Give it a try with "apache bench" :)
On Jan 1, 5:00 am, vvk wrote:
> Hi all,
>
> I've to write a portal for my college in next semester. I want to
> discuss regarding scalabilty of web2py.
>
> Configuration of Deployment:
> Apache + Mod WSGI + Postgresql + https only
>
> Can this handle requests
I'm trying to use my custom login page.
In models\db.py I put
auth.settings.login_url = "/myapp/myctl/user/login"
When I go to a protected page, I get the expected login page 'myapp
\myctl\user\login' .
If I enter a user email and a bad password, I get sent to the page
'myapp\default\use
I, for one, have no idea. There are a large number of stress testing
tools available. Give it a try, and let us know :)
On Dec 31 2009, 10:00 pm, vvk wrote:
> Hi all,
>
> I've to write a portal for my college in next semester. I want to
> discuss regarding scalabilty of web2py.
>
> Configurati
Hello David,
On Dec 31 2009, 5:32 pm, villas wrote:
> >> I vote in a planet, web2py-planet
>
> Could you specify the URL please. My google search returned "Kpax",
> but that was described as "a CMS from another planet" so it can't be
> that one!
I believe there is still this project ... then this
thank you both, I will apply one or the other
and a happy new year to you :)
On Dec 29 2009, 3:57 am, Thadeus Burgess
wrote:
> What about...
>
> auth.settings.login_url = URL(r=request, c='admin/user', f='login')
> auth.settings.logged_url = URL(r=request, c='admin/user', f='profile')
> auth.sett
There is a small thread about the behavior of the [id]:
http://groups.google.com/group/web2py/browse_frm/thread/eca9b3d5e71c32f0/3f87cba2c93f5c2c?lnk=gst&q=%5Bid%5D#3f87cba2c93f5c2c
which says to me that:
If I call crud with the
http://127.0.0.1:8000/borverseny/adatok/sablonok
url, the next="s
Hehe... dang, link broken. :P
Buy it! Make a site! Great idea!
On Thu, 2009-12-31 at 12:31 +0100, Laszlo Zsolt Kiss wrote:
> Jake írta:
> > Good luck with that
> >
> > On Dec 30, 11:27 pm, Massimo Di Pierro
> > wrote:
> >
> > > http://london.craigslist.co.uk/stp/1531016430.html
> > >
for this purpose i am using a jquery plugin named highlight.
On Dec 31 2009, 6:05 pm, stelg wrote:
> Enclosed an example that i use to highlight words in a text string
> which might also contain HTML tags and entities.
>
> Maybe you can use it in your Web2py applications?
>
> # -*- coding: utf-8
46 matches
Mail list logo