[web2py] Re: Suggested functionality extention for SQLTABLE

2011-06-23 Thread JorgeH
Me too. I want it.

Re: [web2py] Re: Suggested functionality extention for SQLTABLE

2011-06-23 Thread Bruno Rocha
I am also interested, would help me on the new version of PowerTable plugin. -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Thu, Jun 23, 2011 at 6:48 PM, Martin.Mulone wrote: > This patch was applied?. I'm interested in this function.

[web2py] 2 Client/Player Game

2011-06-23 Thread Charles Law
I wrote a game using Pyjamas that I have on a web2py server. I'm currently trying to set it up so 2 players can play against each other from different computers/clients. Each player has an account they use to access the game, so there is user info the server can use if that's needed. Is it possi

[web2py] Re: generic.html not beautifying dict

2011-06-23 Thread Anthony
I assume it was designed not to call BEAUTIFY with a single item so you could use generic.html to display a "real" page (i.e., not just for development). BEAUTIFY isn't ideal for that because it displays the key for each item in _vars to the left of the rendered objects. Maybe it could test to

[web2py] Re: generic.html not beautifying dict

2011-06-23 Thread Massimo Di Pierro
I do not oppose to the change. Anybody else pros or cons? Massimo On Jun 23, 7:10 pm, pbreit wrote: > Why doesn't generic.html beautify when len(vars)==1? When I send in one > record, I'd like it to display beautified. > > {{if len(response._vars)==1:}} > {{=response._vars.values()[0]}} > {{elif

[web2py] generic.html not beautifying dict

2011-06-23 Thread pbreit
Why doesn't generic.html beautify when len(vars)==1? When I send in one record, I'd like it to display beautified. {{if len(response._vars)==1:}} {{=response._vars.values()[0]}} {{elif len(response._vars)>1:}} {{=BEAUTIFY(response._vars)}} {{pass}}

Re: [web2py] changes in 1.96.1 & 1.96.4

2011-06-23 Thread Martín Mulone
> > 1.96.1 - "from gluon import *" imports in every python module a > web2py environment... > Is this expected to have any significant performance degredation? I dont think so, > 1.96.1 - No more need for local_import > local_import has the reload=True feature. How does this work now? from

Re: [web2py] Off topic : Extintion Level Event on September ?

2011-06-23 Thread Martín Mulone
interesting, but Idon't see that hit the earth in the animation. 2011/6/23 António Ramos > what do you think of this? > > http://ssd.jpl.nasa.gov/sbdb.cgi?sstr=elenin;orb=1;cov=0;log=0;cad=0#orb > > -- http://martin.tecnodoc.com.ar

[web2py] Re: Concurrent connections and scalability on the cloud...

2011-06-23 Thread pbreit
I just saw a prezo on Now today: http://nowjs.com/

[web2py] Re: Running web2py on Jython

2011-06-23 Thread Massimo Di Pierro
At startup do you get: zxJDBC support is experimental or no zxJDBC driver or None. Did you install the zxJDBC sqlite driver? It does not come with Jython. On Jun 23, 3:41 pm, Richard wrote: > Hi Massimo, > > this is my setup: > > - latest stable web2py version R-1.96.4 (hg commit #2032), clean

[web2py] Re: get attr value from TAG.element

2011-06-23 Thread Anthony
Actually, even easier, you can just do mytag['_attr'] and mytag[0]. On Thursday, June 23, 2011 6:21:37 PM UTC-4, Anthony wrote: > >>> mytag=TAG.element('xyz', _attr='value') > >>> print mytag.attributes['_attr'] > value > >>> print mytag.components[0] > xyz > > Anthony > > On Thursday, June 23,

[web2py] changes in 1.96.1 & 1.96.4

2011-06-23 Thread Jonas Rundberg
Hi Thanks all for the nice features in 1.96. Where can I find more information about these changes? 1.96.1 - "from gluon import *" imports in every python module a web2py environment... Is this expected to have any significant performance degredation? 1.96.1 - No more need for local_import loc

[web2py] Re: spawning response.flash in plugin_wiki page

2011-06-23 Thread blackthorne
the possibility of loading a custom response.flash in a plugin_wiki page so that plugin_wiki users can also define this flash message for a page if they want to. On Jun 23, 5:43 pm, Massimo Di Pierro wrote: > can you explain more? > > On Jun 23, 10:03 am, blackthorne wrote: > > > > > is this pos

[web2py] Off topic : Extintion Level Event on September ?

2011-06-23 Thread António Ramos
what do you think of this? http://ssd.jpl.nasa.gov/sbdb.cgi?sstr=elenin;orb=1;cov=0;log=0;cad=0#orb

[web2py] Re: get attr value from TAG.element

2011-06-23 Thread Anthony
Note, the same thing works for any HTML helper, not just the TAG helper. On Thursday, June 23, 2011 6:21:37 PM UTC-4, Anthony wrote: > >>> mytag=TAG.element('xyz', _attr='value') > >>> print mytag.attributes['_attr'] > value > >>> print mytag.components[0] > xyz > > Anthony > > On Thursday, Jun

[web2py] Re: get attr value from TAG.element

2011-06-23 Thread Anthony
>>> mytag=TAG.element('xyz', _attr='value') >>> print mytag.attributes['_attr'] value >>> print mytag.components[0] xyz Anthony On Thursday, June 23, 2011 5:50:06 PM UTC-4, w2padawan wrote: > Hi web2pyers: > > the TAG helper is very useful, but, it's any way to get the 'value' of the > attribu

Re: [web2py] Re: response.files - not properly formatted html.

2011-06-23 Thread Anthony
Hmm, on Google Code, looks like the '/>' has been there at least since Dec 2009 (v. 1.77) -- it doesn't go back any further. On Thursday, June 23, 2011 5:25:22 PM UTC-4, David J wrote: > Strange > > I am running trunk, but I think the version I checked was 1.93 perhaps. > Let me see when that w

[web2py] get attr value from TAG.element

2011-06-23 Thread danto
Hi web2pyers: the TAG helper is very useful, but, it's any way to get the 'value' of the attribute from an element? Something like: in that scenario, it is possible to get 'value' using just the TAG helper? I would appreciate your suggestions. Thank you in advance

[web2py] Re: Suggested functionality extention for SQLTABLE

2011-06-23 Thread Martin.Mulone
This patch was applied?. I'm interested in this function.

Re: [web2py] Re: response.files - not properly formatted html.

2011-06-23 Thread David J.
Strange I am running trunk, but I think the version I checked was 1.93 perhaps. Let me see when that was added. Thanks for the update I didnt notice that. On 6/23/11 5:14 PM, Anthony wrote: Are you using the current version of web2py? The code that generates the link tag for css files appear

[web2py] Re: response.files - not properly formatted html.

2011-06-23 Thread Anthony
Are you using the current version of web2py? The code that generates the link tag for css files appears to close the tag with a '/>', as you suggest. Anthony On Thursday, June 23, 2011 4:49:47 PM UTC-4, David J wrote: > I think that when you add css files via response.files > > the output sho

[web2py] response.files - not properly formatted html.

2011-06-23 Thread David J.
I think that when you add css files via response.files the output should include a '/>' rather that '>' xhtml requires all tags to be closed; while other doctypes are less strict I think its good practice to close all tags. Anyone disagree?

[web2py] Re: Running web2py on Jython

2011-06-23 Thread Richard
Hi Massimo, this is my setup: - latest stable web2py version R-1.96.4 (hg commit #2032), clean checkout from repo - Jython 2.5.2 - set CLASSPATH=\path\to\jar\sqlitejdbc-v056.jar;%CLASSPATH% - jython web2py.py -a pwd --nogui -p80 -f \path\to\web2py-src-dir This is the console output: No handlers

[web2py] Re: Befuddled by SQLTABLE linkto

2011-06-23 Thread Anthony
On Thursday, June 23, 2011 4:15:59 PM UTC-4, Cliff wrote: > > That is sweet! > > Please point me to the documentation. Is it the docstring in the > code? SQLTABLE inherits from TABLE, which is a web2py html helper object, so the usual server-side DOM stuff applies -- see http://web2py.com/

Re: [web2py] Apache Subdomain Configuration

2011-06-23 Thread José Luis Redrejo Rodríguez
The file is not in web2py sources but in the Debian package . There is not problem in doing what you want El 23/06/2011 21:23, "Ross Peoples" escribió:

[web2py] Re: Shell: Foreground Color

2011-06-23 Thread Anthony
On Thursday, June 23, 2011 3:47:14 PM UTC-4, mweissen wrote: > > Is it possible to change the foreground color in the web2py Shell? It is > something like orange. Orange on a white background is very hard to read . In the /* Shell */ section near the bottom of /applications/admin/static/css/

[web2py] Re: Befuddled by SQLTABLE linkto

2011-06-23 Thread Cliff
That is sweet! Please point me to the documentation. Is it the docstring in the code? On Jun 23, 10:58 am, DenesL wrote: > Hi Cliff, > > the id field is handled as a special case inside SQLTABLE and the > linkto can only affect the _href portion of the anchor (A helper), not > the visible part.

[web2py] Concurrent connections and scalability on the cloud...

2011-06-23 Thread Jason Brower
I am thinking of developing this for scalability on the cloud. What features do we currently have for this issue? What would be the best approach to handling concurrent requests? In other words, I want to scale on the cloud base on instances of web2py running off of the same data. I think this i

[web2py] Custom Widget Help.

2011-06-23 Thread David J.
I need help trying to create a custom widget; I want to create a phone-number widget I want it to only accept text in (800) 555-1212 I am not sure how to do this. Any ideas would be greatly appreciated.

[web2py] Shell: Foreground Color

2011-06-23 Thread Martin Weissenboeck
Is it possible to change the foreground color in the web2py Shell? It is something like orange. Orange on a white background is very hard to read . Martin

[web2py] Re: Running web2py on Jython

2011-06-23 Thread Richard
Hi Pierre, thanks for replying. I remember that I already stumbled upon the blog page you mention before I posted my question on this list. I admit that I didn't read it in depth back then. But I took as a good sign that you wrote in your final line: "Everything works fine and web2py runs with Jyt

Re: [web2py] Apache Subdomain Configuration

2011-06-23 Thread Ross Peoples
I copied the web2py folder over from the trunk, since that's the version I developed the app from. I cannot find the file you describe in the trunk version of web2py. A lot of the config files I see around the web involve putting web2py at the root of the server. What I wanted to do (and I don't

Re: [web2py] Apache Subdomain Configuration

2011-06-23 Thread José Luis Redrejo Rodríguez
Download and uncomprss (or just install ) the python-web2py package available in Debian and Ubuntu repositories, and take a look to the README.Debian file available at /usr/share/doc/python-web2py. There is a howto explaining exactly how to do it in Debian distribution and its derivatives. Regards

[web2py] Apache Subdomain Configuration

2011-06-23 Thread Ross Peoples
This is the first time I have really tried to deploy web2py to a production server, so I'm going to need some help. What I want to do is run my web2py app through Apache using a subdomain. Right now, I've got the server configured as a LAMP server using the default Ubuntu configuration because

[web2py] startSSL: it was nice while it lasted

2011-06-23 Thread Stefaan Himpe
http://news.netcraft.com/archives/2011/06/22/startssl-suspends-services-after-security-breach.html

[web2py] Re: spawning response.flash in plugin_wiki page

2011-06-23 Thread Massimo Di Pierro
can you explain more? On Jun 23, 10:03 am, blackthorne wrote: > is this possible? > how would you implement a change to make it work? > > thanks

Re: [web2py] Re: How do I apply placeholder text to web2py forms?

2011-06-23 Thread Carl Roach
gotcha. something more open-ended. On 23 June 2011 17:29, Anthony wrote: > On Thursday, June 23, 2011 12:19:06 PM UTC-4, Carl wrote: >> >> I agree Anthony, a solution could be baked into web2py as 'label' >> already has been. html5 is here and adoption is pretty good thanks in >> large part to we

Re: [web2py] response.write to transport index of the proper tabs from controller to the jQuery UI tabs plugin

2011-06-23 Thread Richard Vézina
Ok I see, I am getting '0' for example... I need to get rid of ''... Thanks... Richard On Thu, Jun 23, 2011 at 12:21 PM, Anthony wrote: > On Thursday, June 23, 2011 11:19:16 AM UTC-4, Richard wrote: >> >> Hello Anthony, >> >> I can't use a var like you suggest since it popup in the component f

[web2py] Re: ekjaa

2011-06-23 Thread Anthony
On Thursday, June 23, 2011 12:38:29 PM UTC-4, mikech wrote: > > Is this a web2py site? Yes, you can tell if you look at the meta tags in the html head. The http response also includes x-powered-by=web2py.

[web2py] Re: ekjaa

2011-06-23 Thread Massimo Di Pierro
They say here it is made with web2py: http://harshasmukherjee.wordpress.com/2011/06/23/fight-for-the-sight-of-our-website/ I checked it includes web2py_ajax code. It is really well done. On Jun 23, 11:38 am, mikech wrote: > Is this a web2py site?  Very nice.   One comment: How Ekjaa works sliding

[web2py] Re: ekjaa

2011-06-23 Thread mikech
Is this a web2py site? Very nice. One comment: How Ekjaa works sliding tool moves a bit fast for me to read, and doesn't pause when my mouse is over it. Mike

Re: [web2py] Re: How do I apply placeholder text to web2py forms?

2011-06-23 Thread Anthony
On Thursday, June 23, 2011 12:19:06 PM UTC-4, Carl wrote: > > I agree Anthony, a solution could be baked into web2py as 'label' > already has been. html5 is here and adoption is pretty good thanks in > large part to webkit. > Rather than a specific argument just for 'placeholder', it should be po

Re: [web2py] Re: How do I apply placeholder text to web2py forms?

2011-06-23 Thread Anthony
On Thursday, June 23, 2011 12:19:06 PM UTC-4, Carl wrote: > > I agree Anthony, a solution could be baked into web2py as 'label' > already has been. html5 is here and adoption is pretty good thanks in > large part to webkit. > Rather than a specific argument just for 'placeholder', it should be po

Re: [web2py] response.write to transport index of the proper tabs from controller to the jQuery UI tabs plugin

2011-06-23 Thread Anthony
On Thursday, June 23, 2011 11:19:16 AM UTC-4, Richard wrote: > > Hello Anthony, > > I can't use a var like you suggest since it popup in the component for > noting... > I'm not quite sure what you mean. Presumably you could add some logic to the controller or view. > > I am using session.M

Re: [web2py] Re: How do I apply placeholder text to web2py forms?

2011-06-23 Thread Carl Roach
thanks. feels right to have this data in the view but I can see the advantage of 'declare once' in the model. I agree Anthony, a solution could be baked into web2py as 'label' already has been. html5 is here and adoption is pretty good thanks in large part to webkit. On 23 June 2011 17:04, Anthon

[web2py] Re: How do I apply placeholder text to web2py forms?

2011-06-23 Thread Anthony
A couple other methods: 1. In the controller or view: form.custom.widget.first_name.update(_placeholder="first name") or 2. Customize the db.yourtable.first_name widget: db.define_table('yourtable', Field('first_name', widget=lambda field,value: SQLFORM.widgets.string.widget(field, va

[web2py] Re: ekjaa

2011-06-23 Thread Luther Goh Lu Feng
http://www.ekjaa.org/Ekjaa/about/team_Members On Jun 23, 9:03 pm, Massimo Di Pierro wrote: > How is behind it? > > http://www.ekjaa.org/ > > Really good job! > > massimo

Re: [web2py] response.write to transport index of the proper tabs from controller to the jQuery UI tabs plugin

2011-06-23 Thread Richard Vézina
Hello Anthony, I can't use a var like you suggest since it popup in the component for noting... I am using session.MYVAR that seems to work... But I don't find the way to get session vars in jQuery I try like this : $(function() { var $tabs = $( "#tabs" ).tabs(); var test1 = "{{=session

Re: [web2py] response.write to transport index of the proper tabs from controller to the jQuery UI tabs plugin

2011-06-23 Thread Anthony
I don't think you want to call response.write in your controller -- it appends text to the response body, so you would be adding the text before the rest of the response body is rendered by the view. You also shouldn't need to call response.write from within the view, because you can just do {{

[web2py] spawning response.flash in plugin_wiki page

2011-06-23 Thread blackthorne
is this possible? how would you implement a change to make it work? thanks

[web2py] Re: Befuddled by SQLTABLE linkto

2011-06-23 Thread DenesL
Hi Cliff, the id field is handled as a special case inside SQLTABLE and the linkto can only affect the _href portion of the anchor (A helper), not the visible part. But you can still do it: rows=db(...).select(...) t=SQLTABLE(rows) for n,row in enumerate(rows): t[1][n][0][0] = A('Edit',_href=U

[web2py] Re: How do I apply placeholder text to web2py forms?

2011-06-23 Thread Massimo Di Pierro
form.element(_id='...')['_placeholder']='...' On Jun 23, 9:24 am, Carl wrote: > I'm using custom forms in my views using this format: > {{=form.custom.widget.first_name}} > > I'd like to use HTML's placeholder attribute to input tags: e.g., > > > Today: what are the ways to enable this? Obviousl

[web2py] response.write to transport index of the proper tabs from controller to the jQuery UI tabs plugin

2011-06-23 Thread Richard Vézina
Hello, In order to get the proper tabs to render the validators message in case they have been triggered I would like to know if I use response.write(TABS INDEX) could be a option?? Here my set up : *VIEW* @import "{{=URL('static','plugin_added/jquery-ui-1.8.9.custom/development-bundle/themes/b

[web2py] How do I apply placeholder text to web2py forms?

2011-06-23 Thread Carl
I'm using custom forms in my views using this format: {{=form.custom.widget.first_name}} I'd like to use HTML's placeholder attribute to input tags: e.g., Today: what are the ways to enable this? Obviously happy to drop the {{=form.custom.widget.first_name}} format and use something else. Tomor

[web2py] Re: Legacy database adaptation in web2py, best way?

2011-06-23 Thread Anthony
On Thursday, June 23, 2011 7:15:34 AM UTC-4, DanielB wrote: > > Another problem I had with CRUD forms in my case is that I really want > to make the if .accepts() call myself so that I can then call the > business layer with the database related stuff, but it seems the CRUD > forms do this call

Re: [web2py] Running web2py on Jython

2011-06-23 Thread Pierre Thibault
2011/6/23 Richard > Hi, > > has anyone running a reasonably current version of web2py running on > Jython 2.5.x? I need help with this. > > Hello Richard, Yes, I did a try but I didn't wanted to go very far with that. I was just curious about giving it a try. I had a problem with the database s

[web2py] Re: I created a little app to be able to share some files over the net without authentication

2011-06-23 Thread szimszon
Update of the app: Changelog 110623 - generating MD5Sum with hashlib for uploaded files - little design change

[web2py] Re: Running web2py on Jython

2011-06-23 Thread Massimo Di Pierro
I have not tried in some time.What errors do you get? On Jun 23, 3:50 am, Richard wrote: > Hi, > > has anyone running a reasonably current version of web2py running on > Jython 2.5.x? I need help with this. > > From reading the available information on the web I gained the > impression that Jytho

[web2py] Re: web2py and async monkey patching

2011-06-23 Thread Massimo Di Pierro
The test is easy: def index(): import time from gluon import current print current.request.uuid sleep(10) print current.request.uuid return 'done!' call this action twice from console within less then 10 seconds from each other what is the output? if it looks A B A B than

[web2py] Re: The multi-tenant feature and validators ...

2011-06-23 Thread Massimo Di Pierro
Please open a ticket and I will fix it. On Jun 23, 5:19 am, rif wrote: > I used this feature like this: > > db._common_fields.append(Field('request_tenant',default=auth.user_id,writab > le=False,readable=False)) > > so every user would have it's own data. > > It seeams that IS_IN_DB is not aware

[web2py] ekjaa

2011-06-23 Thread Massimo Di Pierro
How is behind it? http://www.ekjaa.org/ Really good job! massimo

[web2py] Running web2py on Jython

2011-06-23 Thread Richard
Hi, has anyone running a reasonably current version of web2py running on Jython 2.5.x? I need help with this. >From reading the available information on the web I gained the impression that Jython 2.5 is a fully supported platform. Wikipedia says "web2py since v1.64.0 runs unmodified on Java with

[web2py] Legacy database adaptation in web2py, best way?

2011-06-23 Thread DanielB
So we have a legacy database that has a suboptimal structure, but we cannot change it right now. What we want is to create a business layer in-between web2py and this database so that web2py thinks it is using a much better database structure in order for the development in web2py to be what we wan

[web2py] Re: web2py and async monkey patching

2011-06-23 Thread graeme
Thanks for the reply. So what anyserver.py does with gevent is not recommended? It calls monkey.patch_all() which patches threading to use green threads. Is this something that ought to work but is just untested? web2py is pure python so the monkey patching should make thread locals into greenlet

[web2py] Re: The multi-tenant feature and validators ...

2011-06-23 Thread rif
I used this feature like this: db._common_fields.append(Field('request_tenant',default=auth.user_id,writable=False,readable=False)) so every user would have it's own data. It seeams that IS_IN_DB is not aware of the request_tenant and also if you mark a filed as unique it will be unique across

Re: [web2py] Re: Working with CAS

2011-06-23 Thread sagar nigade
Its done there was some setting issues. On Thu, Jun 23, 2011 at 1:16 PM, sagar nigade wrote: > Massimo, Thanks for your reply now I am working with new version 1.96.4 > but now as given in cas_auth.py > > I have update my db.py with > > from gluon.contrib.login_methods.cas_auth import CasAuth >

Re: [web2py] Re: Working with CAS

2011-06-23 Thread sagar nigade
Massimo, Thanks for your reply now I am working with new version 1.96.4 but now as given in cas_auth.py I have update my db.py with from gluon.contrib.login_methods.cas_auth import CasAuth auth.define_tables(username=True) auth.settings.login_form=CasAuth( urlbase = "http://127.0.0.1:8000/casapp