I'd like to know the answer to this as well - what is the preferred
way.
In the meantime, can you pass 'keepvalues=True' to your
form.accepts() ? http://web2py.com/book/default/section/7/1
The nice thing about doing the redirect is that you're not constantly
bothered with the resubmit form data p
I apologize. I tried to push 1.81.1 just before leaving for
Europython, made a mistake in commit and have been unable to connect
for 20 hours. I am posting 1.81.2 with the bugfix.
SORRY.
Massimo
On 16 Lug, 23:49, Thadeus Burgess wrote:
> One thing Ive learned. NEVER update your production code
In trunk now as 1.81.2. Thank you!
On 16 Lug, 15:40, "mr.freeze" wrote:
> Please try changing line 1401 of tools.py from:
> if self.settings.login_form:
> to...
> else:
>
> Not sure why this line was changed but it seems to be the problem.
>
> On Jul 16, 3:34 pm, Phyo Arkar wrote:
>
> >
which file is this?
On 16 Lug, 20:07, Scott wrote:
> In the current trunk I propose modifying line 549 to read as follows:
>
> stat.strip_dirs().sort_stats("time").print_stats(80)
>
> This will cause the profile output to be sorted by the "tottime"
> column and limit the output to the first 80 li
Please DO NOT USE 1.81.1 because auth does not work. I just posted
1.81.2 which fixes the problem.
Here was talked about descentralized servers.
Ok, there's news about it:
*Large scale web-services such as Twitter need thousands of servers to
manage the flow of updates sent out by their millions of users. As a result,
keeping all these servers updated with the latest data can be time and
resour
After some more poking around with winpdb (a marvelously useful tool,
IMO), it looks like the cleanest way to get the web2py mangled id of a
form.custom.widget named 'foo' is:
id = form.custom.widget.foo.['_id']
or equivalently,
id = form.custom.widget['foo']['_id']
The following do *not* work:
i
The error I mentioned in my first post still appears.
Traceback (most recent call last):
File "/usr/home/jose/web2py/gluon/restricted.py", line 178, in
restricted
exec ccode in environment
File "/usr/home/jose/web2py/applications/csr/models/db.py", line 31,
in
auth.define_tables(user
I went nuts until I found why one cron task in my application was run twice
every minute, instead of once.
The reason was plain simple: I had a symbolic link to make it the 'init'
application.
Is this the expected behavior? Should web2py detect symbolic links to a
duplicate application (that is a
Why don't you use routes instead of symbolic links? Anyway, if you
send me a patch I will fix this.
On 17 Lug, 09:32, Álvaro J. Iradier
wrote:
> I went nuts until I found why one cron task in my application was run twice
> every minute, instead of once.
>
> The reason was plain simple: I had a sy
fixed in trunk now. Thanks.
there is more thing to check and I will post 1.81.4.
Massimo
On 17 Lug, 09:30, Jose wrote:
> The error I mentioned in my first post still appears.
>
> Traceback (most recent call last):
> File "/usr/home/jose/web2py/gluon/restricted.py", line 178, in
> restricted
>
Changelog compared to 1.80.*
- Usual bug-fixes.
- curd forms work with .load now.
- New welcome app with better look, superfish menu and jQuery 1.4.2
- Increased security. It means you can place {{=}} inside tag
attributes without worry about injections. Thanks Craig Youkins
- Last but not
Let me add that RPX is integrated with the web2py Role Based Access
Control. You can still create groups and permissions locally using the
web2py appadmin. Works on GAE.
On 17 Lug, 10:18, mdipierro wrote:
> Changelog compared to 1.80.*
>
> - Usual bug-fixes.
>
> - curd forms work with .load now.
(Note: I've cross-posted this on the winpdb group, but that group
doesn't seem to have a lot of activity so I'm putting it here in case
someone has already worked this out.)
I recently started using winpdb to debug web2py applications. Great
product! In the past I've tended break out a debugger
This is what makes ruby fail. :) I am soo loving python!
On Sat, 2010-07-17 at 11:41 +0200, Albert Abril wrote:
> Here was talked about descentralized servers.
>
> Ok, there's news about it:
> Large scale web-services such as Twitter need thousands of servers to
> manage the flow of updates sent
Hello everyone,
I was trying to do a validation in db.py like:
db.define_table('poll',
SQLField('question', 'text', requires=[IS_NOT_EMPTY(),
IS_NOT_IN_DB(db(db.poll.author == user_id), 'poll.question',
error_message = 'Question already existed!')], length=120)
SQLField('author', db.auth_user, de
What does the error say?
On Jul 17, 1:47 pm, Zhe Li wrote:
> Hello everyone,
>
> I was trying to do a validation in db.py like:
>
> db.define_table('poll',
> SQLField('question', 'text', requires=[IS_NOT_EMPTY(),
> IS_NOT_IN_DB(db(db.poll.author == user_id), 'poll.question',
> error_message = 'Qu
Hi Mr.Freeze,
It said KeyError: 'poll',
Error traceback
Traceback (most recent call last):
File "/Users/zheli/Development/workspace/zenmezheng/web2py/gluon/
restricted.py", line 178, in restricted
exec ccode in environment
File "/Users/zheli/Development/workspace/zenmezheng/web2py/
applic
Try moving the requires after the define_table. I believe it is trying
to reference poll before it is created.
db.define_table('poll',
Field('question', 'text', length=120, ),
Field('author', db.auth_user, default=user_id,
readable=False,writable=False))
db.poll.qu
Cool, it works now! Thanks a lot!
Cheers!
On Jul 17, 9:59 pm, "mr.freeze" wrote:
> Try moving the requires after the define_table. I believe it is trying
> to reference poll before it is created.
>
> db.define_table('poll',
> Field('question', 'text', length=120, ),
>
Hello everyone,
I am new at web2py and learning its features . I have some questions .
1.I am looking at the code of one program named radio where jpgrid
tables are used for data presentation. I cant find how to translate
field names . I first thought to do it like T('name') in the name of
th
That would help, wouldn't it? :-)
gluon/main.py, under def responder2(s, h).
On Jul 17, 3:27 am, mdipierro wrote:
> which file is this?
>
> On 16 Lug, 20:07, Scott wrote:
>
>
>
>
>
>
>
> > In the current trunk I propose modifying line 549 to read as follows:
>
> > stat.strip_dirs().sort_stats("
Better late than never! Here are a few cosmetic changes for the
Widget Builder page. Please note that I've only included the lines to
be changed; the rest of the lines should remain as-is.
Thanks!
bar_chart: Uses Google charting API to embed a bar chart
* names is a list of comma separated labe
23 matches
Mail list logo