How would I go about creating a select field with SQLFORM.factory that
gives output like this?
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
I know that I can do it with regular FORM like this:
weekdays = [[1,"Monday"],[2, "Tuesday"],[3,"Wednesday"],[4,"Thursday"],
[5,"Friday"],[6,"
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 experience?
--
You received this message because you are subscribed to the Google Groups
"web2py-users" g
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 from 100 users every moment?
What might be expected load on system given that machin
When I run "python web2py.py -M -S mywiki", I get the following error:
In [9]: for i in range(5): print i
0
1
2
3
4
When I run "python web2py.py -S mywiki", the above code works though.
Does anyone know the fix for this ?
Thanks.
--
You received this message because you are subscribed to the
Did you update Mercurial?
On Dec 31 2009, 5:52 pm, mdipierro wrote:
> The correct behaviour is the latter. Which version ever caused the
> former behavior?
>
> Massimo
>
> On Dec 31, 4:24 am, szimszon wrote:
>
> > Hello!
>
> > Possible I found a bug.
>
> > It's the "[id]" thing with crud next ur
So I'm finishing up my first web2py program (has been interesting,
once you 'get' the web2py way of doing things. One last thing left.
I need to link the actions of a few inputs from a SQLForm together.
Specifically I need a double email inputs that have to matched but
don't really need the secon
There have been a couple posts to this list from people who couldn't
get cron's @reboot to work. I found the following problems:
1) the crondance function has an argument for "startup", setting it to
True tells it to run the @reboot tasks. However, crondance is never
called with startup=True, so r
>> 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!
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to t
It is indeed a tricky business; even for a single DB, there are
changes between versions. This means it is probably too complicated to
track all keywords for all versions of all DBs.
Perhaps we should simply try to keep a master list of all the main
keywords. I think the list below is pretty good
I vote in a planet, web2py-planet
--
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...@googlegroups.com.
For more options,
It's great that Thadeus is making some blog entries for web2py. He is
a good writer and Blogitizor already looks good.
I wonder whether there is a 'blog roll' of any other interesting
Web2py blogs? I would also enjoy visiting them. If there isn't a
"blog roll" anywhere, perhaps we could start on
Hi Thadeus,
How do you do to show the posts in determined category where you
have two or more words in the name of you category ? I'm looking in
your blog now and see this in : http://web2py.thadeusb.com/weblog/category/Web
Development
Do you can show me the code of controller of categoy func
> requires=IS_EXPR('str(value) > "%s"' % str(datetime.date.today()))
That works great, thanks.
--
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 em
It is frustrating, when you have an app, working perfectly with
sqlite, and during deployment you run into Exceptions that are
database dependent, like using the word left as a column name or
running an empty IN(belongs) SQL statement that runs perfectly on
sqlite, but crashes on postgres.
May
Yes... You are right I could. It was late, I was heading to bed, and I
just threw the last question in :)
-Thadeus
On Thu, Dec 31, 2009 at 7:22 AM, Guido Kollerie wrote:
> On 31 dec 2009, at 09:19, Thadeus Burgess wrote:
>
>> Are dates stored in the database as UTC?
>
> Should depend on data
there was a problem. It is now fixed. please try again:
http://web2py.com/cards/default/index
On Dec 31, 12:46 am, mdipierro wrote:
> http://web2py.com/cards/default/index
>
> you need:
> - your latitude
> - your longitude
> - a photo of you or of your town
--
You received this message becaus
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 -*-
import re
from BeautifulSoup import BeautifulStoneSoup
# see http://effbot.org/zone/python-list.htm
# http
The problem here:
{{if (pledged_labor_hours == 0):}}
{{pass}}
{{else:}}
{{=form}}
{{pass}}
Is that it should be
{{if (pledged_labor_hours == 0):}}
{{else:}}
{{=form}}
{{pass}}
because "else:" closes the first "if:" so you do not need pass.
On Dec 31, 10:56 am, Auden RovelleQuartz wrote:
> <
<>
{{extend 'm_layout.html'}}
{{=message}}
{{if (pledged_labor_hours == 0):}}
{{pass}}
{{else:}}
{{=form}}
{{pass}}
<>
the above code in a view file gives the following error:
<>
Error traceback
1.
2.
3.
4.
5.
6.
7.
Traceback (most recent call last):
File "gluon/restricted.py", line 171, in
oops.
http://groups.google.com/group/web2py/browse_thread/thread/6c945e287e90d398#
On Dec 31, 9:06 am, werner wrote:
> Hi everyone,
>
> Posted this via GMANE about 2 hours ago (responded to autoauth), but
> it still does not show up - apologies if it shows up twice.
>
> I am just starting to loo
No. I think it is a problem with the video. Should have been:
db.book_translation.insert(
book=book,
language='en'
title = "web2py for Dummies",
description = "web2py described in simple words.")
db.book_translation.insert(
book=book,
lan
Before
db.oppty_main.origin_account_id.writable=False
insert
db.oppty_main.origin_account_id.represent=lambda id: SPAN(db.account
[id].name)
On Dec 31, 8:54 am, Miguel Lopes wrote:
> On Wed, Dec 30, 2009 at 4:10 PM, mdipierro wrote:
> > Are you talking about forms you made or forms in appadmi
The correct behaviour is the latter. Which version ever caused the
former behavior?
Massimo
On Dec 31, 4:24 am, szimszon wrote:
> Hello!
>
> Possible I found a bug.
>
> It's the "[id]" thing with crud next url...
>
> Before:
>
> url:http://127.0.0.1:8000/borverseny/adatok/sablonok
>
> controll
:-)
On Dec 31, 2:13 am, Thadeus Burgess wrote:
> OMG!!! It has risen from the depths!!! It is... no not Godzilla... its
> BLOGITIZOR.
>
> I still have to edit some of the posts since they were converted from
> wordpress to markdown... I will be switching my main domain over when
> I'm sure things
It will be easier to add something like it.
On Dec 31, 1:04 am, Thadeus Burgess wrote:
> Can the new DAL have a list of protected keywords for the database and
> throw and exception if you try to define a column with the keyword?
>
> -Thadeus
--
You received this message because you are subscri
Hi everyone,
I am just starting to look at web2py to use it for my first web
application (currently doing stuff using Python/wxPython for a desk top
app), been looking at TurboGears 2 and Django.
The project I would like to do with web2py (or one of the others) should
run on GAE (which seems t
Jake írta:
> Good luck with that
>
> On Dec 30, 11:27 pm, Massimo Di Pierro
> wrote:
>
>> http://london.craigslist.co.uk/stp/1531016430.html
>>
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To post to this group, send email
Hi everyone,
Posted this via GMANE about 2 hours ago (responded to autoauth), but
it still does not show up - apologies if it shows up twice.
I am just starting to look at web2py to use it for my first web
application (currently doing stuff using Python/wxPython for a desk
top app), been looking
On Wed, Dec 30, 2009 at 4:10 PM, mdipierro wrote:
> Are you talking about forms you made or forms in appadmin? forms in
> appadmin ignore writable and readable by design. Your own forms should
> not ignore them.
My forms are not behaving as I expected (although that might be the
intended behavior
It isn't only to use Python from NaCl, you could to use Qt [1] :)
It has been built some frameworks to developing desktop applications
as if were web app. (using html, css and JS for the UI) but at the end
the desktop widgets will be used for web apps. which is very cool.
[1] http://labs.trolltec
On 31 dec 2009, at 09:19, Thadeus Burgess wrote:
> Are dates stored in the database as UTC?
Should depend on database configuration (timezone settting) I presume.
> How do you convert the dates between UTC / locale ?
Use pytz (http://pypi.python.org/pypi/pytz/)
from datetime import datetime
im
Hi,
Solved with this (remove the ' character)
category_name = request.get_vars.category_name
category_name = category_name[1:category_name.rfind("'")]
Thanks by all help .
-- Leandro.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To pos
I used your first suggestion and it worked, only place where I need to
do a check is that if query = [], then I can't use query = reduce
(lambda a,b:(a&b),queries). Thanks a lot.
On Dec 31, 9:24 am, mdipierro wrote:
> another option is
>
> qset=db()
> if arg1 == "xyz": qset=qset(db.abc.id > 0)
>
Master Massimo,
On Dec 30, 5:59 pm, mdipierro wrote:
> 1) GAE rules. Here is a quick fix.
>
> posts = db((db.posts.category == cat.id)).select(db.posts.ALL).sort
> (lambda r['created'],reverse=True)
Perfect !, this code solved this problem.
> 2) Try one of these variations
>
> if request.args[0
Hello!
Possible I found a bug.
It's the "[id]" thing with crud next url...
Before:
url: http://127.0.0.1:8000/borverseny/adatok/sablonok
controllers/adatok.py:
def sablonok():
...
n='sablonsor_jog/[id]'
sablon_sor=crud.create(db.oklevel_sablon,
message=T("Oklevél sablon
Are dates stored in the database as UTC?
How do you convert the dates between UTC / locale ?
Is request.now in UTC?
-Thadeus
--
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 unsu
OMG!!! It has risen from the depths!!! It is... no not Godzilla... its
BLOGITIZOR.
I still have to edit some of the posts since they were converted from
wordpress to markdown... I will be switching my main domain over when
I'm sure things are smoothed out.
http://web2py.thadeusb.com/
-Thadeus
-
37 matches
Mail list logo