[web2py:38151] SQLFORM.factory how to make a select field without database?

2009-12-31 Thread Brian M
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,"

[web2py:38150] Catching & logging slow load times

2009-12-31 Thread toomim
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

[web2py:38149] Scalability of Web2py

2009-12-31 Thread vvk
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

[web2py:38148] Getting error in web2py shell

2009-12-31 Thread Sujan Shakya
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

[web2py:38147] Re: 1.74.5 is OUT

2009-12-31 Thread guruyaya
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

[web2py:38146] Linked sqlform inputs

2009-12-31 Thread Delaney
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

[web2py:38145] Cron @reboot is broken

2009-12-31 Thread toomim
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

[web2py:38144] Re: Blogitizor

2009-12-31 Thread villas
>> 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

[web2py:38143] Re: Database Keywords

2009-12-31 Thread villas
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

[web2py:38142] Re: Blogitizor

2009-12-31 Thread Leandro - ProfessionalIT
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,

[web2py:38141] Re: Blogitizor

2009-12-31 Thread villas
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

[web2py:38140] Re: Blogitizor

2009-12-31 Thread Leandro - ProfessionalIT
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

[web2py:38139] Re: IS_EXPR validator [SOLVED]

2009-12-31 Thread villas
> 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

Re: [web2py:38138] Re: Database Keywords

2009-12-31 Thread Thadeus Burgess
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

Re: [web2py:38137] Dates

2009-12-31 Thread Thadeus Burgess
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

[web2py:38136] Re: Send web2py a greeting card - Happy New Year

2009-12-31 Thread mdipierro
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

[web2py:38135] Highligth search word in tekst with HTML tags en entities

2009-12-31 Thread stelg
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

[web2py:38134] Re: bug in .../application/views editor?

2009-12-31 Thread mdipierro
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: > <

[web2py:38133] bug in .../application/views editor?

2009-12-31 Thread Auden RovelleQuartz
<> {{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

[web2py:38132] Re: i18n for content

2009-12-31 Thread mdipierro
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

[web2py:38131] Re: I18n for content

2009-12-31 Thread mdipierro
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

[web2py:38130] Re: rendering a Select as a Label

2009-12-31 Thread mdipierro
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

[web2py:38129] Re: 1.74.5 is OUT

2009-12-31 Thread mdipierro
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

[web2py:38128] Re: Blogitizor

2009-12-31 Thread mdipierro
:-) 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

[web2py:38127] Re: Database Keywords

2009-12-31 Thread mdipierro
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

[web2py:38125] I18n for content

2009-12-31 Thread Werner F. Bruhin
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

Re: [web2py:38124] Re: LOL

2009-12-31 Thread Laszlo Zsolt Kiss
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

[web2py:38126] i18n for content

2009-12-31 Thread werner
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

Re: [web2py:38123] Re: rendering a Select as a Label

2009-12-31 Thread Miguel Lopes
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

[web2py:38122] Re: Editor from browser

2009-12-31 Thread Joan Miller
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

Re: [web2py:38121] Dates

2009-12-31 Thread Guido Kollerie
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

[web2py:38120] Re: Two Errors [SOLVED]

2009-12-31 Thread Leandro - ProfessionalIT
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

[web2py:38119] Re: Problem with Postgresql DAL

2009-12-31 Thread vvk
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) >

[web2py:38118] Re: Two Errors (Now one Error)

2009-12-31 Thread Leandro - ProfessionalIT
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

[web2py:38117] Re: 1.74.5 is OUT

2009-12-31 Thread szimszon
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

[web2py:38116] Dates

2009-12-31 Thread Thadeus Burgess
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

[web2py:38115] Blogitizor

2009-12-31 Thread Thadeus Burgess
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 -