[web2py] multiselect plugin not working with 1.80.1 and up

2010-07-19 Thread Jean-Guy
Hello, I got "value not in database" helpers message when I select more then one entry of the dropbox... The problem is coming from the web2py recent update 1.80.1, 1.81.4. The same app with 1.79.2 no problem (I package app from 1.80.1 and install it in 1.79.2). Here my function code : db.a

[web2py] css of welcome app not adapted for Chrome??

2010-07-19 Thread Jean-Guy
Hello, I just install 1.81.4 and open the welcome app with Google Chrome and the layout is pretty weird... With Firefox no problem. Jonhy

Re: [web2py] Re: css of welcome app not adapted for Chrome??

2010-07-19 Thread Jean-Guy
:'( shameful Jonhy On 2010-07-19 14:34, mr.freeze wrote: ll the updated style sheets.

Re: [web2py] Re: multiselect plugin not working with 1.80.1 and up

2010-07-19 Thread Jean-Guy
dipierro wrote: I do not see any obvious problem anyhow... if you installed plugin_wiki from cube2py you get all multiselect get automatically the plugin and this works out of the box. On Jul 19, 1:27 pm, Jean-Guy wrote: I attach a app built with 1.81.4 that make the problem... defau

Re: [web2py] Re: multiselect plugin not working with 1.80.1 and up

2010-07-19 Thread Jean-Guy
problems. Massimo On Jul 19, 2:15 pm, Jean-Guy wrote: You don't get the "value not in database" when you select more the one element?? Here I can't submit here. I didn't follow to much the last weeks what is cube2py exactly. My understanding is that it is a demo app tha

[web2py] jqgrid plugin_wiki

2010-07-20 Thread Jean-Guy
Hello, Can't understand what is the syntax to use the jqgrid plugin available inside of plugin_wiki in "standard" web2py app (in controller). Everything works in the cube, I would use the jqgrid of plugin_wiki in my app since it seam that it will be actualize regularly in the future. Thanks

[web2py] jqgrid plugin_wiki

2010-07-20 Thread Jean-Guy
Hello, Can't understand what is the syntax to use the jqgrid plugin available inside of plugin_wiki in "standard" web2py app (in controller). Everything works in the cube, I would use the jqgrid of plugin_wiki in my app since it seam that it will be actualize regularly in the future. Thanks.

[web2py] model label and comment stored at database level (minimizing the number of queries)

2010-07-27 Thread Jean-Guy
Hello, I would like to use data dictionnary stored in database to define field label and comment. The comment is used to provide help to users... I am wondering what could have the smaller impact on database performance : 1) create a python dictionnary like this : dictname = {fieldlablename:

[web2py] book typo

2010-07-27 Thread Jean-Guy
This page : http://web2py.com/book/default/section/6/8?search=export+ Search in the page for : qoute Should be quote?!

Re: [web2py] Re: call a function in another controller

2010-07-27 Thread Jean-Guy
I can't help you at this stage, but in the book there is a section for ajax and javascript recipe that could help. Jonhy On 2010-07-27 17:00, ilovesss2004 wrote: How to write it in javascript? e.g. onclick=URL(request.application,'controllerName','FunctionName.load'), ajax=True)? On Jul 27, 1

Re: [web2py] Re: model label and comment stored at database level (minimizing the number of queries)

2010-07-28 Thread Jean-Guy
This will reduce the extra database access to a single query per hour (3600). so no overhead. On Jul 27, 2:18 pm, Jean-Guy wrote: Hello, I would like to use data dictionnary stored in database to define field label and comment. The comment is used to provide help to users... I am wonderin

Re: [web2py] encrypt source code

2010-07-29 Thread Jean-Guy
Compile it : http://web2py.com/book/default/section/3/10?search=compilation Search in page for : compilation Jonhy PS.: Compiled code can be decompiled On 2010-07-29 09:56, ilovesss2004 wrote: web2py. Can someone tell me how to prevent others from viewing source

Re: [web2py] Re: encrypt source code

2010-07-29 Thread Jean-Guy
Of course yes! It is the HTML nature and the Web paradigm is based on this state of affairs... Maybe the python code embeded could be compiled too, but really not sure about that... Massimo could be a better help on that. Jonhy On 2010-07-29 10:12, ilovesss2004 wrote: source code of html

[web2py] id field representation (.represent) pb on unnormalized table crud.read

2010-07-29 Thread Jean-Guy
Hello, I define the way to show the id field in crud.read like this : db.atable.othertablefield_id.represent=\ lambda value: "%(num)s" %db.v_othertable_num[value] Placed in model. v_othertable_num is a database view of the related table because the number are formed of many fields so I c

Re: [web2py] Re: id field representation (.represent) pb on unnormalized table crud.read

2010-07-29 Thread Jean-Guy
\ lambda value: "%(num)s" % (db.v_othertable_num[value] or {'num','unkown'} (this will fix if the problem is that record is None) and/or db.atable.othertablefield_id.represent=\ lambda value: str(db.v_othertable_num[value].num) (this will fix it if it is a ty

Re: [web2py] Dropdown List with Select

2010-08-25 Thread Jean-Guy
I am not exactly sure of what you are looking for... Better if you send specific code of your model, controler and views... You can Change the ID representation that way : db.auth_membership.user_id.requires=IS_IN_DB(db,'auth_user.id','%(first_name)s %(last_name)s (%(id)s)') That generate a

Re: [web2py] page layout patterns

2010-08-25 Thread Jean-Guy
Nice post! J On 2010-08-25 16:34, mdipierro wrote: http://designingwebinterfaces.com/designing-web-interfaces-12-screen-patterns

[web2py] How may I revoked a user logged in "server side"

2010-08-26 Thread Jean-Guy
Hello, I would like to know how may I revoked a user logged in "server side"? Can I just edit app/sessions/file... And comment appropriate line? Which lines are the appropriate lines? ;-) Jonhy

Re: [web2py] Re: How may I revoked a user logged in "server side"

2010-08-26 Thread Jean-Guy
So to summarize I need to add a boolean column in the auth_user table and flagging it to true will kick out the user? Is the name "force_logout" a built in name that automated the thing or do I have to code a proper function and call it in my controllers? I just want instantaneous method t

Re: [web2py] Re: How may I revoked a user logged in "server side"

2010-08-26 Thread Jean-Guy
Ok! It clear now. Yes could be a nice to have... But Web2py is already a wonderfully nice framework ;-) Ciao! Jonhy On 2010-08-26 16:17, mdipierro wrote: e the session file. We do not have an utility for it. We should make one.

Re: [web2py] Another beginner question

2010-08-26 Thread Jean-Guy
On 2010-08-26 15:51, Gary wrote: I'm trying to put some access control around some of my functions. When I use the admin interface to define a new auth_permission, the form allows a tablename from a drop-down list containint *ONLY* the 4 predefined auth_* tables. It does not list any of my o

<    1   2