[web2py] Re: fatal bug in 1.77.3

2010-04-26 Thread mdipierro
I cannot reproduce the problem from Mac with FF. request.flash = 'ok' should be response.flash = 'ok' but that is not causing your problem. On Apr 26, 12:55 am, hywang why00...@163.com wrote: error also occurs when run web2py from source on window platform. no better result

[web2py] Re: fatal bug in 1.77.3

2010-04-26 Thread mdipierro
Do you have a view with a custom form? On Apr 25, 10:53 pm, hywang why00...@163.com wrote: I run web2py from source on centos 5.3. When upload a file, an error occurs. -db.py--- db.define_table('easy_test',     Field('picture', 'upload') ) -controller

[web2py] web sites Personal informatoin in Massachusetts

2010-04-26 Thread Yarko Tymciurak
Interesting: http://www.sqlmag.com/print/sql-server/A-New-Law-that-Will-Change-the-Way-You-Build-Database-Applications.aspx -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

[web2py] Re: fatal bug in 1.77.3

2010-04-26 Thread hywang
i has no view . when i test newest version in google hg server, web2py works well, but if I add IS_IMAGE() validator, some error occured again. ver1.6x works well On 4月26日, 下午2时01分, mdipierro mdipie...@cs.depaul.edu wrote: Do you have a view with a custom form? On Apr 25, 10:53 pm, hywang

[web2py] pool_size=

2010-04-26 Thread annet
I came across this post: http://groups.google.com/group/web2py/browse_thread/thread/82c1b8cdc14eddee/45040c681742a3b1?lnk=gstq=pool_size%3D#45040c681742a3b1 ... and read paragraph 6.1 and 6.2 of the manual. In paragraph 6.1 the connection strings reads like: db = DAL('sqlite://storage.db',

[web2py] Re: MySQL server has gone away

2010-04-26 Thread annet
Massimo, Accessing revision 1854 results in an Internal Server Error. Kind regards, Annet. -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

[web2py] Re: fatal bug in 1.77.3

2010-04-26 Thread hywang
no better result if i create my own view. when i use newest version from google hg server, i can upload file correctly, but if i add a validator IS_IMAGE to 'upload' field, an error will occur also. On 4月26日, 下午2时01分, mdipierro mdipie...@cs.depaul.edu wrote: Do you have a view with a custom

[web2py] Re: fatal bug in 1.77.3

2010-04-26 Thread hywang
may be it is an ooold bug, Discussion about it can be found here: http://groups.google.com/group/web2py/browse_thread/thread/bdfb9bb617488d5/641e843715eb8b11?lnk=gstq=raise+TypeError%2C+%22not+indexable%22#641e843715eb8b11 On 4月26日, 下午3时44分, hywang why00...@163.com wrote: no better result if i

[web2py] cookie.strip('') - AttributeError: 'Morsel' object has no attribute 'strip'

2010-04-26 Thread Rohan
I am trying to fetch some information from cookie cookie = cookies.get(xyz, ) if not cookie: return None args = dict((k, v[-1]) for k, v in cgi.parse_qs(cookie.strip('')).items()) but on running, i am getting AttributeError: 'Morsel' object has no attribute 'strip' error Can someone

Re: [web2py] Re: job

2010-04-26 Thread Álvaro Justen [Turicas]
On Mon, Apr 26, 2010 at 00:43, Eric Vicenti ericvice...@gmail.com wrote: Hi guys, I'm the one who posted this job. Jason, lets talk. oDesk probably wont share an email in fear we will make a deal behind their backs, but you have mine now. I would love to get some community advice and make

[web2py] Re: job

2010-04-26 Thread hamdy.a.farag
Hi Jason, you need to register there and complete an english language exam and pass before you're able to apply to jobs read the odesk help. On Apr 25, 7:27 am, Jason Brower encomp...@gmail.com wrote: I tried applying for it, and it didn't do anything.  Why can't they just give me an email.

Re: [web2py] Re: Web2py on Macbook

2010-04-26 Thread Johann Spies
On 24 April 2010 16:06, mdipierro mdipie...@cs.depaul.edu wrote: I use a Mac and I am not the only one on the list. All video tutorials on Vimeo are made with Mac. Including the one that explains how to deploy on GAE. I have watched the video and made some progress but both on Linux and on my

[web2py] ToscaWidgets

2010-04-26 Thread lannick
Hi, Does anyone know and have used ToscaWidgets with web2py ? (http:// toscawidgets.org/ ) Regards, Lannick -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

Re: [web2py] Re: fatal bug in 1.77.3

2010-04-26 Thread Timothy Farrell
Massimo, I know you sent me an email on this but I can't find it so I'll just reply to the list. Rocket is dying in this case because the object it has received from web2py is not a valid WSGI response. A valid WSGI response must be either a list or generator (Rocket is a little more tolerant and

[web2py] Custom validators and SQLForm

2010-04-26 Thread Johann Spies
The definition: db.define_table(navrae, Field(begindatum, date, default=None), Field(einddatum, date, default=None), Field(gebruiker, string, length=8, notnull=True, default='NULL'), Field(ipadres, string, length=15, notnull=True, default='NULL'), Field(datum_van_navraag,

[web2py] Re: cookie.strip('') - AttributeError: 'Morsel' object has no attribute 'strip'

2010-04-26 Thread mdipierro
I think cookie.value.strip('')).items( On Apr 26, 3:22 am, Rohan yourbuddyro...@gmail.com wrote: I am trying to fetch some information from cookie     cookie = cookies.get(xyz, )     if not cookie: return None     args = dict((k, v[-1]) for k, v in cgi.parse_qs(cookie.strip('')).items())

[web2py] Re: fatal bug in 1.77.3

2010-04-26 Thread mdipierro
I think we need some debugging. His code is def hello(): form = SQLFORM(db.easy_test) if form.accepts(request.vars, session): request.flash = 'ok' return dict(form=form) and web2py returns a list with a string in this case (the generic view that renders the dict()). I do not

[web2py] Re: Do you know Redis?

2010-04-26 Thread knitatoms
Good tutorial on Redis from Simon Willison: http://simonwillison.net/static/2010/redis-tutorial/ interesting use of it for session data. On Mar 17, 6:05 pm, mdipierro mdipie...@cs.depaul.edu wrote: You can do this also with cache.disk. You can cache any primitive python structure including

[web2py] r=request problem.

2010-04-26 Thread annet
In an html e-mail view I have the following links: {{=A('View it in your browser', _href=URL(r=request,c='clublocatormail',f='browser_version',args=[item.bedrijfcontactpersoon.bedrijf_id,item.contactpersoon.id]), _target=_blank)}} img src={{=URL(r=request,c='static',f='crm/media/header.jpg')}}

[web2py] Re: r=request problem.

2010-04-26 Thread mdipierro
img src=http://www.fitwise.nl/ mock_crm{{=URL(r=request,c='static',f='crm/media/header.jpg')}} alt=Header width=600 height=192 / You know the hostname, the email program does not. On Apr 26, 9:21 am, annet annet.verm...@gmail.com wrote: In an html e-mail view I have the following links:

[web2py] Re: pool_size=

2010-04-26 Thread Yarko Tymciurak
On Apr 26, 2:17 am, annet annet.verm...@gmail.com wrote: I came across this post: http://groups.google.com/group/web2py/browse_thread/thread/82c1b8cdc1... ... and read paragraph 6.1 and 6.2 of the manual. In paragraph 6.1 the connection strings reads like: db = DAL('sqlite://storage.db',

[web2py] Re: pool_size=

2010-04-26 Thread mdipierro
DAL is not doing a keepalive on connections but web2py in trunk will try 5 times to reopen closed connections. On Apr 26, 10:21 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Apr 26, 2:17 am, annet annet.verm...@gmail.com wrote: I came across this post:

Re: [web2py] Re: fatal bug in 1.77.3

2010-04-26 Thread Timothy Farrell
My assumption that web2py is returning something other than a list comes from the traceback. Why would calling: len(returned_obj) go into the cgi module if it was a string? Rocket alone does not use the cgi module at all so the returned object must be related to it somehow. We know that

[web2py] Re: Web2py on Macbook

2010-04-26 Thread Yarko Tymciurak
On Apr 26, 7:32 am, Johann Spies johann.sp...@gmail.com wrote: On 24 April 2010 16:06, mdipierro mdipie...@cs.depaul.edu wrote: I use a Mac and I am not the only one on the list. All video tutorials on Vimeo are made with Mac. Including the one that explains how to deploy on GAE. I have

[web2py] Re: fatal bug in 1.77.3

2010-04-26 Thread mdipierro
I cannot reproduce this either. It is not an internationalization issue. I suspect something else in the code is causing this. We need to see at the entire code. On Apr 26, 10:37 am, Timothy Farrell tfarr...@swgen.com wrote: My assumption that web2py is returning something other than a list

[web2py] Re: Web2py on Macbook

2010-04-26 Thread mdipierro
I think GAE uses 8080 as default and I suspect he is using dev_appserver. @Johann, can you walk us step by step in what you do and show more details about the error you get? Massimo On Apr 26, 10:37 am, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Apr 26, 7:32 am, Johann Spies

[web2py] Re: r=request problem.

2010-04-26 Thread annet
Massimo, Isn't the view being rendered by web2py before it's send to the mail server? Regards, Annet On Apr 26, 4:27 pm, mdipierro mdipie...@cs.depaul.edu wrote: img src=http://www.fitwise.nl/ mock_crm{{=URL(r=request,c='static',f='crm/media/header.jpg')}} alt=Header width=600 height=192

[web2py] Re: r=request problem.

2010-04-26 Thread mdipierro
Yes. and the way it is rendered is correct for a web page because the browser knows the hostname already (since you typed it in to request the page). The recipient of the email does not. On Apr 26, 10:46 am, annet annet.verm...@gmail.com wrote: Massimo, Isn't the view being rendered by web2py

[web2py] java vs python performance on GAE

2010-04-26 Thread mdipierro
http://distractable.net/coding/google-appengine-java-vs-python-performance-comparison/ -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

[web2py] Re: SEO

2010-04-26 Thread mdmcginn
To add to what Massimo said, make sure each page has a unique title and meta-description. Search engines don't like websites where every page appears to be identical. Also, don't count on them reading Javascript. When you view the source of the page, remember that's what the search engine crawler

[web2py] Re: Custom validators and SQLForm

2010-04-26 Thread Yarko Tymciurak
On Apr 26, 9:11 am, Johann Spies johann.sp...@gmail.com wrote: The definition: db.define_table(navrae,     Field(begindatum, date, default=None),     Field(einddatum, date, default=None),     Field(gebruiker, string, length=8, notnull=True, default='NULL'),     Field(ipadres, string,

Re: [web2py] Re: SEO

2010-04-26 Thread Jonathan Lundell
On Apr 26, 2010, at 9:01 AM, mdmcginn wrote: To add to what Massimo said, make sure each page has a unique title and meta-description. Search engines don't like websites where every page appears to be identical. Also, don't count on them reading Javascript. When you view the source of the

[web2py] Re: pool_size=

2010-04-26 Thread Yarko Tymciurak
On Apr 26, 10:53 am, annet annet.verm...@gmail.com wrote: Yarko, Thanks for answering my question: I host my application at WebFaction, so I won't at a pool_size argument in the connection string. The link to the writeup is very useful. You are welcome, Annet. I'm glad you found the

[web2py] Re: java vs python performance on GAE

2010-04-26 Thread Yarko Tymciurak
On Apr 26, 11:00 am, mdipierro mdipie...@cs.depaul.edu wrote: http://distractable.net/coding/google-appengine-java-vs-python-perfor... ... interesting; not sure you can draw any specific conclusions, but note that Groovy is a dynamic language implemented in jvm, dynamic like Ruby of Python.

[web2py] Re: r=request problem.

2010-04-26 Thread annet
Now I understand the problem. When I rewrite the _href: {{=A('View it in your browser', _href=http://127.0.0.1:8000; + URL(r=request,c='clublocatormail',f='browser_version',args=[item.bedrijfcontactpersoon.bedrijf_id,item.contactpersoon.id]), _target=_blank)}} ... the problem is solved. I guess

[web2py] generated multilevel menu

2010-04-26 Thread Julius Minka
I have to implement following 4-level menu in my view: ul class=menu1 lia href=#Level1a/a/li lia href=#Level1b/a/li lia href=#Level1c*/a ul class=menu1 lia href=#Level2a*/a ul class=menu1 lia href=#Level3a*/a ul

Re: [web2py] Re: r=request problem.

2010-04-26 Thread Jonathan Lundell
On Apr 26, 2010, at 9:41 AM, annet wrote: Now I understand the problem. When I rewrite the _href: {{=A('View it in your browser', _href=http://127.0.0.1:8000; + URL(r=request,c='clublocatormail',f='browser_version',args=[item.bedrijfcontactpersoon.bedrijf_id,item.contactpersoon.id]),

[web2py] How do i get this working?

2010-04-26 Thread Pystar
Hi guys, I am developing an sms-to-web advertising platform and I am having some problems, here is how it works. Interested website/blog owners register on the platform,then any visitor to that website can then text a 140 character advert to a short code, the user's prepaid account gets deducted,

[web2py] Re: How do i get this working?

2010-04-26 Thread mdipierro
You can do jsonp (http://bob.pythonmac.org/archives/2005/12/05/remote- json-jsonp/) but I am not sure it solves the same prpblem you want to solve. On Apr 26, 3:41 pm, Pystar aitoehi...@gmail.com wrote: Hi guys, I am developing an sms-to-web advertising platform and I am having some problems,

[web2py] Re: How do i get this working?

2010-04-26 Thread Pystar
So Mdipierro, What do you suggest I use? On Apr 26, 10:06 pm, mdipierro mdipie...@cs.depaul.edu wrote: You can do jsonp (http://bob.pythonmac.org/archives/2005/12/05/remote- json-jsonp/) but I am not sure it solves the same prpblem you want to solve. On Apr 26, 3:41 pm, Pystar

[web2py] Re: Translate small words

2010-04-26 Thread Francisco Costa
I'm sorry to wast your time Massimo. I tripled check and I found it.. My browser was crazy. On Apr 24, 3:02 pm, mdipierro mdipie...@cs.depaul.edu wrote: I am very perplexed. There is not check about word length in gluon/ translate.py. I tried and it works for me. Can you please try again? On

[web2py] questions on example in official web2py book

2010-04-26 Thread frankz
Hi, in the web2py official book, in the image blog example, Could anyone help explain what the following line mean? image = db(db.image.id==request.args(0)).select()[0] I duplicate the same code but I find URL htttp://127.0.0.1:8000/images/default/show gives me an error, index out of range How

[web2py] Re: questions on example in official web2py book

2010-04-26 Thread Yarko Tymciurak
On Apr 26, 4:38 pm, frankz frank.zhu.min...@gmail.com wrote: Hi, in the web2py official book, in the image blog example, Referring to http://web2py.com/book/default/section/3/6?search=image+blog Could anyone help explain what the following line mean? image =

[web2py] Re: generated multilevel menu

2010-04-26 Thread Yarko Tymciurak
did you look at your controller/menu.py file? You should be able to see how to generate this dynamically; On Apr 26, 12:31 pm, Julius Minka j...@minka.sk wrote: I have to implement following 4-level menu in my view: ul class=menu1 lia href=#Level1a/a/li lia href=#Level1b/a/li lia

[web2py] Re: generated multilevel menu

2010-04-26 Thread Yarko Tymciurak
... sorry - I meant models/menu.py, of course... On Apr 26, 12:31 pm, Julius Minka j...@minka.sk wrote: I have to implement following 4-level menu in my view: ul class=menu1 lia href=#Level1a/a/li lia href=#Level1b/a/li lia href=#Level1c*/a   ul class=menu1   lia href=#Level2a*/a        

[web2py] Re: How do i get this working?

2010-04-26 Thread mdipierro
I will get a easier life with iframes because you completely decouple embedding page with the embedded content so you will have complete control on the latter. On Apr 26, 4:23 pm, Pystar aitoehi...@gmail.com wrote: So Mdipierro, What do you suggest I use? On Apr 26, 10:06 pm, mdipierro

[web2py] Re: Translate small words

2010-04-26 Thread mdipierro
No problem. It is always better to check. On Apr 26, 5:16 pm, Francisco Costa m...@franciscocosta.com wrote: I'm sorry to wast your time Massimo. I tripled check and I found  it.. My browser was crazy. On Apr 24, 3:02 pm, mdipierro mdipie...@cs.depaul.edu wrote: I am very perplexed. There

[web2py] Re: generated multilevel menu

2010-04-26 Thread mdipierro
Something like def build_menu():: root=0 # assumes the root has parent_id=0 keys={root:UL()} items=db(db.category.id0).select(orderby=db.category.parent_id| db.category.name) for item in items: keys[item.id]=ul=UL()

[web2py] Re: SEO

2010-04-26 Thread mdipierro
say you have: db.define_table('paper',Field('image','upload')) db.define_table('tag',Field('paper',db.paper),Field('keyword')) then you will have an action like: def index(): paper=db.paper[request.args(0)] response.meta.keywords=','.join([tag.keyword for tag in

Re: [web2py] Re: newline character in text string fields on GAE

2010-04-26 Thread G. Clifford Williams
Had: Field('content', 'text', length=1500, requires=IS_NOT_EMPTY(), label='Gripe'), and then tried: Field('content', length=1500, requires=IS_NOT_EMPTY(), label='Gripe', type='text'), in both cases I get no 'new line' characters. (running 1.76.5) On Apr 23,