[web2py] Re: How can I add description to some field generated by SQLFORM?

2011-09-14 Thread annet
Hi, Field(,comment='Description of field1 here') Kind regards, Annet

[web2py] email_auth with GMail and fluxflex

2011-09-14 Thread Martin Weissenboeck
Hi, (1) I want to substitute auth by email_auth. I have added the following lines to db.py (localhost): # My Code: from gluon.contrib.login_methods.email_auth import email_auth # from the book: auth.settings.login_methods.append(email_auth("smtp.gmail.com:587", "@gmail.com")) auth.settings.login_

Re: [web2py] Re: History tables how?

2011-09-14 Thread Philip Kilner
Hi Massimo, On 14/09/2011 04:26, Massimo Di Pierro wrote: I hate crud. I want it to die but slowly. I've been making heavy use of it lately, and have found it very useful. Can you explain why you hate it, and what "die" means? I'm assuming that it will stay in place for backward compatibili

[web2py] Re: Instant Press 2.0

2011-09-14 Thread Gour-Gadadhara Dasa
On Tue, 13 Sep 2011 15:17:44 -0700 (PDT) Anthony wrote: > I think Instant Press 1.0 included CKEditor -- have you thought about > offering that as an option in Instant Press 2.0 as well? Although it would be nice to have CKEditor included, I wonder about different markup support? On video I se

[web2py] Re: deploying web2py on IIS

2011-09-14 Thread sherdim
Hello, Omi! > Do you have any idea where I should check ? > > I use IIS 7.5 with IIS 6 Management Cimpatibility. > > 1. Check you app is working through usual web2py startup. 2. if you did junction folder - set full access for IIS_WPG for the target folder "...\applications" also check acce

Re: [web2py] Re: Instant Press 2.0

2011-09-14 Thread Martín Mulone
CKeditor as a default editor not for now. But let me think if we can add as optional. CKeditor is heavy, slow, too much. The editor included is fast lightweight, and support multiples markup languages. I included textile support because can handle chained list that markmin can't. 2011/9/14 Gour-Ga

[web2py] Re: SQLFORM.grid representation

2011-09-14 Thread Simon Ashley
While it could be a bug, and seems to be similar to another reported issue: http://groups.google.com/group/web2py/browse_thread/thread/aa5fa98a74e9364f# there has been no formal acknowledgement of it in .grid or .smartgrid, nor have there been any defect tickets raised. You can also see it in a

[web2py] Re: Instant Press 2.0

2011-09-14 Thread Gour-Gadadhara Dasa
On Wed, 14 Sep 2011 07:33:35 -0300 Martín Mulone wrote: > CKeditor as a default editor not for now. But let me think if we can > add as optional. CKeditor is heavy, slow, too much. > The editor included is fast lightweight, and support multiples markup > languages. I included textile support b

Re: [web2py] Re: Instant Press 2.0

2011-09-14 Thread Martín Mulone
> > Isn't the one of them obsolete/redundant? Yes I know, perhaps... but, what I want is to have in content, an space to edit the text, without extra fields noising the enviroment. 2011/9/14 Gour-Gadadhara Dasa > On Wed, 14 Sep 2011 07:33:35 -0300 > Martín Mulone > wrote: > > > CKeditor as a

[web2py] Re: SQLFORM.grid representation

2011-09-14 Thread Simon Ashley
While it looks like a bug, it may not be implemented in the new .grid or .smartgrid. There is a posting that may imply this http://groups.google.com/group/web2py/browse_thread/thread/aa5fa98a74e9364f and certainly in image examples posted by Bruno Rocha http://www.diigo.com/item/image/121xl/3iob it

Re: [web2py] Re: Instant Press 2.0

2011-09-14 Thread Anthony
On Wednesday, September 14, 2011 6:33:35 AM UTC-4, Martin.Mulone wrote: > > CKeditor as a default editor not for now. But let me think if we can add as > optional. CKeditor is heavy, slow, too much. The editor included is fast > lightweight, and support multiples markup languages. > Yes, I defin

[web2py] Re: If you have not followed recent changes .....

2011-09-14 Thread Ross Peoples
I have tried this using a new app, no jQuery UI or anything yet, just stock welcome app. I have a couple of issues. First in the list, it only shows the index numbers instead of the auth.user representation. Boolean values are also given in numbers instead of checkboxes, or simply 'Yes' / 'No':

[web2py] Re: comparing datetime objects in db query fails

2011-09-14 Thread Massimo Di Pierro
Are you telling me that the line driver_args['detect_types'] = self.driver.PARSE_DECLTYPES which I added yesterday can be safely removed? I thought this was a performance issue as well as db(...).select() returns parsed types and it is best if the driver does it as opposed if web2py does it. On

[web2py] Re: History tables how?

2011-09-14 Thread Massimo Di Pierro
do not worry. crud it not going to disappear and it will remain backward compatible. It is indeed useful. I think the new SQLFORM.grid is easier and more powerful. On Sep 14, 3:22 am, Philip Kilner wrote: > Hi Massimo, > > On 14/09/2011 04:26, Massimo Di Pierro wrote: > > > I hate crud. I want it

[web2py] Re: lambda inside a loop ?

2011-09-14 Thread cogarg
Solution: buildrepr=lambda table: lambda id: SPAN(A(id,_href=URL(r=request,c='default',f='view',vars={'a':table,'i':id}))) for table in a_list: db.define_table('a_'+table,*[field for field in db.ipo,db['ipo_'+table]]) db['a_'+table].id.represent=buildrepr(table) On 12 Αύγ, 20:35, cogarg

[web2py] limitations

2011-09-14 Thread Web2Py Freak
Dear All , am using Webfaction for hosting and am using postgreSQL when i try to add things to the database through the CMS it gives me a limit the the litters cant be more than 512 , what to do ??

[web2py] Re: limitations

2011-09-14 Thread Anthony
On Wednesday, September 14, 2011 8:38:23 AM UTC-4, Web2Py Freak wrote: > > Dear All , > am using Webfaction for hosting and am using postgreSQL when i try to > add things to the database through the CMS it gives me a limit the > the litters cant be more than 512 , what to do ?? What do you

Re: [web2py] Re: SQLFORM.grid representation

2011-09-14 Thread Johann Spies
On 14 September 2011 10:47, Simon Ashley wrote: > While it looks like a bug, it may not be implemented in the new .grid > or .smartgrid. > There is a posting that may imply this > http://groups.google.com/group/web2py/browse_thread/thread/aa5fa98a74e9364f > and certainly in image examples posted

[web2py] Re: limitations

2011-09-14 Thread Web2Py Freak
Thank you Anthony ,, and no not the appadmin , i created a Cms , and i will try the "length"

Re: [web2py] Instant Press 2.0

2011-09-14 Thread Johann Spies
On 14 September 2011 00:04, Martín Mulone wrote: > > http://www.youtube.com/watch?v=vGkR246URRk > > Thanks for making this available. I have tried it out, but I could not log in as admin because some characters of initial the password appeared as blocks on my browser (Firefox 5.0). I will try o

[web2py] Re: Suggestion: Input field alignment for decimal and integer

2011-09-14 Thread Omi Chiba
I'm not float/double guy but yes, it make sense. With that, we can use this. input.decimal, input.integer, input.double { text-align: right; } I also understand the Anthony's point. My table actually has five decimal field for different pricing for the product, which look really weird bu

[web2py] Re: html layout for retrieve_username and reset_password?

2011-09-14 Thread Anthony
I think auth.messages.reset_password just has to be a string that has %(key)s somewhere in it (for the reset key to be inserted). So, couldn't you do something like auth.messages.reset_password=response.render('admincms/register_email.html',some_context) to generate the message? Anthony On W

Re: [web2py] Re: History tables how?

2011-09-14 Thread Philip Kilner
Hi Massimo, On 14/09/2011 13:15, Massimo Di Pierro wrote: do not worry. crud it not going to disappear and it will remain backward compatible. It is indeed useful. I think the new SQLFORM.grid is easier and more powerful. Great, thanks for confirming that. I'm a database developer first and

Re: [web2py] crud.settings.update_onaccept = StorageList()

2011-09-14 Thread Richard Vézina
See one answer down there... On Wed, Sep 14, 2011 at 2:38 AM, annet wrote: > In db.py I defined the following table: > > db.define_table('function', > > Field('bedrijf_id',db.bedrijf,default='',notnull=True,unique=True), >Field('home',type='boolean',default=True,writable=False), >Field('l

[web2py] Re: comparing datetime objects in db query fails

2011-09-14 Thread nick name
Yes. I'm saying I can't find my test case that was failing without it (although I'm still trying to recreate one). > I thought this was a performance issue as well as db(...).select() returns parsed types and it is best if the driver does it as opposed if web2py does it. It probably is bette

Re: [web2py] crud.settings.update_onaccept = StorageList()

2011-09-14 Thread Anthony
On Wednesday, September 14, 2011 10:04:31 AM UTC-4, Richard wrote: > > > row.counter should be set based on the number of functions being True, > > is there a way to loop through a table's fields? > > > for field in db[table].fields: >do something Note, that will loop through the field names.

[web2py] Re: History tables how?

2011-09-14 Thread nick name
Temporary solution: http://code.google.com/p/web2py/issues/detail?id=354 ; todor's version is better than mine (also see my comment #4 in that thread) Haven't yet tested it with 1.99 dal, but it should work as it is not very dependent on implementation details.

[web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
This is by no means an academic benchmark, but I was doing some testing with RPC methods and decided to come up with a benchmark to get some average times for the time it takes to make several types of RPC calls, and if one protocol has a performance advantage over another. I tested JSON-RPC and

Re: [web2py] Re: SQLFORM.grid representation

2011-09-14 Thread Martín Mulone
Perhaps you want to use columns instead of fields. replace your controller with this: def index(): columns = ['dog.name', 'dog.owner'] table = SQLFORM.grid(db.dog, columns=columns) return dict(table=table) columns affect the grid column displaying only. Pass to column the field you

[web2py] Re: Instant Press 2.0

2011-09-14 Thread Gour-Gadadhara Dasa
On Wed, 14 Sep 2011 14:54:35 +0200 Johann Spies wrote: > Thanks for making this available. I have tried it out, but I could > not log in as admin because some characters of initial the password > appeared as blocks on my browser (Firefox 5.0). I will try on another > computer with a different l

Re: [web2py] Re: If you have not followed recent changes .....

2011-09-14 Thread Martín Mulone
> > Boolean values are also given in numbers instead of checkboxes, or simply > 'Yes' / 'No': please open a ticket. 2011/9/14 Ross Peoples > I have tried this using a new app, no jQuery UI or anything yet, just stock > welcome app. I have a couple of issues. First in the list, it only shows th

[web2py] Re: RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Anthony
Does the app include any model files? If so, can you attach them? On Wednesday, September 14, 2011 10:49:48 AM UTC-4, Ross Peoples wrote: > > This is by no means an academic benchmark, but I was doing some testing > with RPC methods and decided to come up with a benchmark to get some average > t

[web2py] Re: RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
Another detail I should mention is that the JSON-RPC client can't seem to serialize datetime values, which is why I wrap them in str() in the test.py file. The server can serialize them, and the client can deserialize them (as strings), but the client cannot send a datetime to the server.

[web2py] Re: RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
Anthony, the only model is the one generated by the welcome app when a new app is created. I have attached it here just for clarification. It has only one model defined (besides the default Auth tables), and that is a simple "task" model.# -*- coding: utf-8 -*- # this file is released under publ

[web2py] Re: uWSGI 0.9.9

2011-09-14 Thread elffikk
seems fixed in 0.9.9.2 thank you and some questions: is it possible to run uwsgi with jython ? when do you think it will be possible to run uwsgi with pypy ? thank you again for your awesome project

Re: [web2py] Re: If you have not followed recent changes .....

2011-09-14 Thread Ross Peoples
Issue 421

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Jonathan Lundell
On Sep 14, 2011, at 7:49 AM, Ross Peoples wrote: > I ran this test several times because of the HUGE difference between the > protocols when used over SSL. I think this may be more of a problem with the > JSON client or server rather than the protocol itself. You'll see what I mean: > I believ

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Jonathan Lundell
On Sep 14, 2011, at 7:49 AM, Ross Peoples wrote: > As you can see, there wasn't much of a change. In fact, turning off sessions > added about 400 ms to the testing time. Now let's try with SSL: > Have you done enough runs to know what kind of noise level you're getting? I'd be sort of surprise

Re: [web2py] Re: uWSGI 0.9.9

2011-09-14 Thread Roberto De Ioris
Il giorno 14/set/2011, alle ore 17:08, elffikk ha scritto: > seems fixed in 0.9.9.2 > thank you > > and some questions: > is it possible to run uwsgi with jython ? i really do not know, no plan currently to push the jvm/jni plugin > when do you think it will be possible to run uwsgi with pypy

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
Jonathan, I have downloaded the jsonrpclib and rerun the SSL without Sessions test again. MUCH better: ADD TWO NUMBERS == JSON-RPC: 102.86 ms XML-RPC: 62.83 ms Result: XML won by: 40.04 ms CONCATENATE TWO STRINGS == JSON-RPC: 47.3

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
Jonathan, I remember now that sessions were optimized so that you didn't need to use session.forget(response) to increase performance. I ran these tests several times, and each test run makes 100 RPC calls per protocol, so there is a large test sample size. When playing with sessions, I would c

[web2py] SQLFORM grid and smartgrid

2011-09-14 Thread Jim Steil
I understand that these two grid are brand new, but has anyone created any documentation on all of the options and how to use them yet? Here are a couple issues I'm wondering about: 1. In reading this post - https://groups.google.com/forum/#!msg/web2py/1eSMh8TlHGs/rB9Hx2UIP4cJ - and looking

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Jonathan Lundell
On Sep 14, 2011, at 8:41 AM, Ross Peoples wrote: > I have downloaded the jsonrpclib and rerun the SSL without Sessions test > again. MUCH better: Good. Another suggestion: insert some dummy request, a nop of some sort, as the first operation (before ADD). I'm guessing that in both cases (JSON

Re: [web2py] Re: SQLFORM.grid representation

2011-09-14 Thread roberto...@gmail.com
Hi martín, And with powergrid? -- Enviado desde mi teléfono Android con K-9 Mail. Disculpa mi brevedad "Martín Mulone" escribió: Perhaps you want to use columns instead of fields. replace your controller with this: def index(): columns = ['dog.name', 'dog.owner'] table = SQLFORM.grid(db.do

Re: [web2py] SQLFORM grid and smartgrid

2011-09-14 Thread Jim Steil
Looks like I found the answer to #1. Updated to latest trunk and recreated app from scratch. Must be something new in the scaffolding view/css that changed the default behavior. -Jim On 9/14/2011 11:01 AM, Jim Steil wrote: I understand that these two grid are brand new, but has anyone cr

[web2py] Re: RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Anthony
It might be interesting to run the benchmark without including db.py, as there's a lot of stuff in there that has nothing to do with the RPC calls that is probably taking up a lot of time. Anthony On Wednesday, September 14, 2011 11:08:24 AM UTC-4, Ross Peoples wrote: > > Anthony, the only mode

[web2py] Enable/Disable App in admin

2011-09-14 Thread António Ramos
Hello i dont know if this is a stupid question but imagine i have 10 apps running in my server If i detect an error in one app and want do avoid users from loggin in what do i do. What is the best practice? A button"Enable/Disable" would be great in admin Thank you António

Re: [web2py] SQLFORM grid and smartgrid

2011-09-14 Thread Martín Mulone
> > 2. Can I override the default links for Add and Edit? links = [lambda row: A('Edit',_href=URL("default","edit",args=[row.id])), lambda row: A('Delete',_href=URL("default","delete",args=[row.id]))] table = SQLFORM.grid(query, links=links, deletable=F

[web2py] Re: deploying web2py on IIS

2011-09-14 Thread Omi Chiba
sherdim, I checked all including your suggesion but it just didn't work. I keep getting HTTP Error 500. Windows event says "Failed to import callback module 'ochibaapp'" Have you successfully working on IIS 7.5 ? If not, I need to say there are maybe some compatible issue with isapi-wsgi modul

[web2py] Re: Does represent works with a simple sqlrow?

2011-09-14 Thread Elcimar
Thanks for the tip Anthony! Btw, I'm not using grid or powergid. On 13 set, 15:45, Anthony wrote: > On Tuesday, September 13, 2011 2:28:50 PM UTC-4, Roberto Perdomo wrote: > > > This small detail I think is affecting grid and powergrid not think it > > should be solved that way > > I agree. He d

Re: [web2py] Instant Press 2.0

2011-09-14 Thread Bruno Rocha
I notice that the old editor had image upload feature, this will not be included in this version? May be could have a simpler way to detect the presence of a plugin for editor, so users can decide which HTMl editor to use I am using http://dev.s-cubism.com/plugin_elrte_widget and I like it, so ce

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
Jonathan, Good point about the nop. The nop is on BOTH protocols and does not count against the total time or the averages. Here are the results from that: ADD TWO NUMBERS == JSON-RPC: 75.57 ms XML-RPC: 45.65 ms Result: XML won by: 29.92 ms (165.5% faster) CONCA

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Jonathan Lundell
On Sep 14, 2011, at 10:25 AM, Ross Peoples wrote: > Jonathan, > > Good point about the nop. The nop is on BOTH protocols and does not count > against the total time or the averages. Here are the results from that: I'm still puzzled by the anomalous JSON ADD time. How about dropping a second AD

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
Ok, I think I've narrowed down the problem: I put the old db.py file back (the one from the welcome app), then I commented everything. The percentage difference with everything commented out is XML 293% faster. I started uncommenting lines, one by one and running the test with each one. I enabl

Re: [web2py] Instant Press 2.0

2011-09-14 Thread Martín Mulone
> > I notice that the old editor had image upload feature, this will not be > included in this version? take a look to: http://www.youtube.com/watch?v=vGkR246URRk&feature=player_detailpage#t=200s Yes only in content (post/ page) 2011/9/14 Bruno Rocha > I notice that the old editor had image

Re: [web2py] Enable/Disable App in admin

2011-09-14 Thread Richard Vézina
If you use the permission system you just need to do auth_user­.registration_key = blocked or disabled... Use one of both for permenently disabled a user without remove it record from the table. So blocked for momently block access to your app and disabled for permanently block a user to logon...

[web2py] Re: Enable/Disable App in admin

2011-09-14 Thread Anthony
Are you saying you want to block specific users, or completely take the entire application offline? If the latter, you could redirect all traffic to a static page with a message, either by configuring your web server, making a change in routes.py, or adding a redirect() call in a model file of t

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Anthony
On Wednesday, September 14, 2011 1:25:37 PM UTC-4, Ross Peoples wrote: > > I also took Anthony's advice and removed all the models, except for three > lines from db.py that are required: > > from gluon.tools import Service > service = Service() > response.generic_patterns = ['*'] > > This has chan

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Jonathan Lundell
On Sep 14, 2011, at 10:47 AM, Ross Peoples wrote: > Ok, I think I've narrowed down the problem: > > I put the old db.py file back (the one from the welcome app), then I > commented everything. The percentage difference with everything commented out > is XML 293% faster. I started uncommenting l

Re: [web2py] Re: SQLFORM.grid representation

2011-09-14 Thread Bruno Rocha
On Wed, Sep 14, 2011 at 1:11 PM, roberto...@gmail.com wrote: > ** Hi martín, And with powergrid? PowerGrid is a bit different, because its data is based in JSON callback. My initial view was that users may code their own JSON callback to work with grid. Bit it is in my TODO to enable represent

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
Normally, I wouldn't use that kind of percentage, except I wanted to highlight the large gap between the two protocols with Auth is used. JSON-RPC calls stay around 56 ms regardless of what I enable or disable in db.py. But for some reason, XML-RPC falls from 45 ms to 18 ms when Auth is disable

[web2py] Re: limitations

2011-09-14 Thread Massimo Di Pierro
There may be an issue that was fixed in trunk. On Sep 14, 7:52 am, Web2Py Freak wrote: > Thank you Anthony ,, and no not the appadmin , i created a Cms  , and > i will try the "length"

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Jonathan Lundell
On Sep 14, 2011, at 11:07 AM, Anthony wrote: > On Wednesday, September 14, 2011 1:25:37 PM UTC-4, Ross Peoples wrote: > I also took Anthony's advice and removed all the models, except for three > lines from db.py that are required: > > from gluon.tools import Service > service = Service() > resp

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Jonathan Lundell
On Sep 14, 2011, at 11:16 AM, Ross Peoples wrote: > Normally, I wouldn't use that kind of percentage, except I wanted to > highlight the large gap between the two protocols with Auth is used. JSON-RPC > calls stay around 56 ms regardless of what I enable or disable in db.py. But > for some reas

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Anthony
On Wednesday, September 14, 2011 2:20:26 PM UTC-4, Jonathan Lundell wrote: > > > How can the JSON times have increased (slightly) with the removal of all > the db.py code? This seems odd. > > > The JSON-vs-XML speed issue probably has to do with using the pure-Python > simplejson library from con

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Jonathan Lundell
On Sep 14, 2011, at 11:29 AM, Anthony wrote: > On Wednesday, September 14, 2011 2:20:26 PM UTC-4, Jonathan Lundell wrote: >> >> How can the JSON times have increased (slightly) with the removal of all the >> db.py code? This seems odd. >> > > The JSON-vs-XML speed issue probably has to do with

[web2py] Using trunk

2011-09-14 Thread Robert Aldridge
I've been dabbling with web2py for a bit. Kudos to the developers! Things are coming together nicely. I've been using the stable release (1.98.2), but would like to try some of the newer features (SQLFORM.grid, SQLFORM.smartgrid, etc.). I'm using Ubuntu 11.04 with Python 2.7.1+. I'm somewhat f

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Jonathan Lundell
I'm away from my sources for a while. I think you'll find the headers in request.headers. How about an rpc function that just returns them. On Sep 14, 2011, at 12:13 PM, Ross Peoples wrote: > I'll see if I can intercept the headers somehow. If you are interested in > seeing if this happens in

[web2py] Re: python * function in Html Helpers

2011-09-14 Thread Noel Villamor
Oh. This is what I see: """ Hello, i dont understant quite well how to interpret the *** in this code: table = [['a', 'b'], ['c', 'd']] 2 >>> print TABLE(***[TR(***rows) for rows in table]) """ If my eyes don't deceive me, I do see *** in three locations. :) Noel On Sep 14, 10:25 am, Ant

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
I don't think request stores headers. I tried but couldn't find it in the sources or through introspection. The response object has it, and I included that here. Had to do some work arounds as just returning response.headers generated a ticket, but these are the headers for when Auth is activate

Re: [web2py] Re: python * function in Html Helpers

2011-09-14 Thread António Ramos
What the hell, that was not what i wrote Only one * You have a problem in your email. 2011/9/14 Noel Villamor > > Oh. > > This is what I see: > > """ > Hello, i dont understant quite well how to interpret the *** in this > code: > > table = [['a', 'b'], ['c', 'd']] > 2 >>> print TABLE(***[TR(*

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Jonathan Lundell
On Sep 14, 2011, at 1:23 PM, Ross Peoples wrote: > I don't think request stores headers. I tried but couldn't find it in the > sources or through introspection. The response object has it, and I included > that here. Had to do some work arounds as just returning response.headers > generated a t

Re: [web2py] Re: Enable/Disable App in admin

2011-09-14 Thread António Ramos
I mean disable an app for all users. It would be nicer to have a button (On/Off) in the admin. Thank you 2011/9/14 Anthony > Are you saying you want to block specific users, or completely take the > entire application offline? If the latter, you could redirect all traffic to > a static page with

Re: [web2py] Re: python * function in Html Helpers

2011-09-14 Thread Anthony
Actually, it shows up as *** in the old Google Groups interface: https://groups.google.com/group/web2py/browse_frm/thread/f4475684a88fef17/45622d797458e974?hl=en#45622d797458e974. The new interface correctly displays only one *. I use the new interface, so saw the intended single *. Anthony

[web2py] Re: Using trunk

2011-09-14 Thread Anthony
The source is hosted here: http://code.google.com/p/web2py/source/checkout Using Mercurial, just do: hg clone https://code.google.com/p/web2py/ Anthony On Wednesday, September 14, 2011 3:26:15 PM UTC-4, BamaRob wrote: > > I've been dabbling with web2py for a bit. Kudos to the developers! Thin

[web2py] Re: python * function in Html Helpers

2011-09-14 Thread Noel Villamor
Interesting! The old: https://groups.google.com/group/web2py/browse_frm/thread/f4475684a88fef17/45622d797458e974?hl=en#45622d797458e974 The new: https://groups.google.com/forum/#!topic/web2py/9EdWhKiP7xc Thanks for clearing up the confusion Anthony. Noel On Sep 15, 9:07 am, Anthony wrote:

Re: [web2py] Re: Crud.update Multiple

2011-09-14 Thread Richard Vézina
Hello Massimo, I will try to make myself clear... My objective is to manage the insertion of an arbitrary number of records in a second table with a normalised "one to many" relation between 2 tables. I had this Idea : I would make a form and use the virtual field to get the number of rows to i

Re: [web2py] Re: Enable/Disable App in admin

2011-09-14 Thread Richard Vézina
The Anthony suggestion seems what you want. Don't know how hard or insecure it could be to implement a on/off button... Having a kind of empty app or redirecting app for "off" application could be deliver with web2py like the welcome app and the routes.py having a redirect procedure to trigger if

[web2py] Re: SQLFORM.grid representation

2011-09-14 Thread Simon Ashley
Just tried that, but it still returns the Id .. 1. it just returns a ticket if On Sep 15, 12:57 am, Martín Mulone wrote: > Perhaps you want to use columns instead of fields. > > replace your controller with this: > > def index(): >     columns = ['dog.name', 'dog.owner'] >     table = SQLFORM.gr

Re: [web2py]Web2py MVC and Qooxdoo

2011-09-14 Thread Phyo Arkar
i manage to build a Qooxdoo , only ui and i am quite impressed by its power. But when i put inside web2py , it dont load at all what did i do wrong? in controller: /sExtract/default/ft def fasttract(): return dict(test="ok") in view: http://www.w3.org/1999/xhtml"; xml:lang="en">

Re: [web2py]Web2py MVC and Qooxdoo

2011-09-14 Thread Phyo Arkar
i.body is null http://localhost:8080/sExtract/static/ft/script/ft_ui.js Line 3816 exact error. Can you show me how u call it in ur example? On 9/15/11, Phyo Arkar wrote: > i manage to build a Qooxdoo , only ui and i am quite impressed by its > power. > > But when i put inside web2py , it dont

[web2py] PhoneGap, JqueryMobile and login/session management

2011-09-14 Thread pbreit
I started taking a look at PhoneGap for making a simple iPhone app and can't seem to figure out how I would implement login, authentication and session management. Has anyone here looked at PhoneGap or any other self-contained JavaScript-based app? I suppose I could Ajax in a username/password

[web2py] redis_cache.py and sessions?

2011-09-14 Thread TheSweetlink
I would love to be able to stick sessions in Redis. Is that a possibility with redis_cache.py? I tried it but was unable to get it to work. MEMDB complained about ('RedisClient' object has no attribute 'incr') If I use redis-py from pip as a plain cache I am able to incr values so I have no ide

[web2py] Re: Forms working as expected most of the time but occasionally they simply clears

2011-09-14 Thread Lennon
Thanks you! Thanks to this info I was able to recreate the exact form clearing problem by loading another instance of the form in another tab/window. I have taken out the session from form.accepts in those forms and now everything is fine. Can anybody forsee any problems with my removing that?

[web2py] Re: Forms working as expected most of the time but occasionally they simply clears

2011-09-14 Thread Cliff
Double submits can happen. On Sep 14, 9:16 pm, Lennon wrote: > Thanks you!  Thanks to this info I was able to recreate the exact form > clearing problem by loading another instance of the form in another > tab/window. > > I have taken out the session from form.accepts in those forms and now > eve

[web2py] Re: Forms working as expected most of the time but occasionally they simply clears

2011-09-14 Thread Anthony
Also, cross-site request forgery attacks: https://www.owasp.org/index.php/Top_10_2010-A5 Anthony On Wednesday, September 14, 2011 10:36:41 PM UTC-4, Cliff wrote: > > Double submits can happen. > > On Sep 14, 9:16 pm, Lennon wrote: > > Thanks you! Thanks to this info I was able to recreate th

[web2py] Re: SQLFORM grid and smartgrid

2011-09-14 Thread Massimo Di Pierro
I do not see the screenshot. :-( This should work, although may not work the way you want. On Sep 14, 4:48 pm, Jim Steil wrote: > In response to #3, I see what is going on now.  I'm working on a > membership database where I have the following model: > > ###  db.py > member = db.define_table(

[web2py] Re: Enable/Disable App in admin

2011-09-14 Thread Massimo Di Pierro
It would actually be trivial to add a checkbox to the sites.html page that is always checked (active) and when inactive stores the app name in disabled_apps.txt (or a better named file) and then the router ignores apps listed in this file. On Sep 14, 5:03 pm, Richard Vézina wrote: > The Anthony s

[web2py] Re: redis_cache.py and sessions?

2011-09-14 Thread Massimo Di Pierro
Not yet. Sessons for now go in filesystem or db only, they cannot go on cache. Actually, I would digitally sign sessions and store them client-side than store them in cache. massimo On Sep 14, 7:49 pm, TheSweetlink wrote: > I would love to be able to stick sessions in Redis. > > Is that a possi

[web2py] Re: redis_cache.py and sessions?

2011-09-14 Thread TheSweetlink
Thank you Massimo. Would you be so kind as to point me in the direction of where I could learn to do that with web2py? Are there any security implications? I would imagine the digitally signing takes care of that. Is that done with that secure cookies post from a while back? -David On Sep 14,

[web2py] Re: Enable/Disable App in admin

2011-09-14 Thread Anthony
On Wednesday, September 14, 2011 11:10:13 PM UTC-4, Massimo Di Pierro wrote: > > It would actually be trivial to add a checkbox to the sites.html page > that is always checked (active) and when inactive stores the app name > in disabled_apps.txt (or a better named file) and then the router > ign

Re: [web2py] Re: SQLFORM grid and smartgrid

2011-09-14 Thread Jim Steil
I'm using the new format of the google group and see them as attachments at the bottom of the post. I can create new ones if that helps? -Jim On 9/14/2011 10:07 PM, Massimo Di Pierro wrote: I do not see the screenshot. :-( This should work, although may not work the way you want. On Sep

[web2py] Re: Returning a dict from a controller

2011-09-14 Thread Vineet
What I do in such cases is-- In the controller C.py, def myController1(): return dict() for returning a dict, I write a script def getDict(): do the processing... D={key:value pairs go here} return response.json(D) In myController.html View file, ... access D by using {{=URL('app','C

Re: [web2py] Re: SQLFORM grid and smartgrid

2011-09-14 Thread Jim Steil
Ok, found the problem. I was missing an 's' in the line: memberTag.memberId.requires = IS_IN_DB(db, db.member.id, '%(firstName) %(lastName)s', zero=('select member')) Should have been: memberTag.memberId.requires = IS_IN_

Re: [web2py] Re: SQLFORM grid and smartgrid

2011-09-14 Thread Jim Steil
Again, found to be a typo on my end. I should give it up for the night -Jim On 9/15/2011 12:12 AM, Jim Steil wrote: Ok, found the problem. I was missing an 's' in the line: memberTag.memberId.requires = IS_IN_DB(db, db.member.id, '%(firstName) %(

[web2py] Re: Suggestion: Input field alignment for decimal and integer

2011-09-14 Thread kenji4569
How about this one? http://dev.s-cubism.com/plugin_tight_input_widget This is a size-adjusted input widget with such right aligned text. I'v used this widget in one of my products (I rewrote it for the plugin just now). The size of the widget is automatically adjusted to maximum length of the fi