[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 to

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

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

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

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

2010-07-28 Thread Jean-Guy
Thank you... It's rock. I just add a check if fieldlable is different of None to not getting blank field name... ;-) for fieldname in db.atable.fields: if labels[fieldname]!=None: db.atable[fieldname].label = labels[fieldname] #.get('fieldname',fieldname) else:

[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 =

[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,

[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] 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
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 that emulate a wiki?? Jonhy On 2010-07-19 15:00, mdipierro wrote: I do not see

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

2010-07-19 Thread Jean-Guy
Ok, I got it to work with plugin_wiki... Had a little hard time to figure out how to install the plugin... I look forward to testing jqgrid ;-) Jonhy On 2010-07-19 15:53, mdipierro wrote: I have not tried your yet. I have been using the muliselect in plugin_wiki with 1.81.4 without

Re: [web2py] Import csv

2010-07-14 Thread Jean-Guy
Export your actual table you will get the exact format you need csv to have for the import! Cheers Jonhy On 2010-07-14 14:31, Deepan wrote: d is auto increment.

Re: [web2py] Re: prohibit users to edit their profiles

2010-07-13 Thread Jean-Guy
Hello, Is the mod you made is in the nightly build now? Jonhy On 2010-07-12 18:22, mdipierro wrote: if in the view you use {{=auth.navbar('welcome',URL(r=request,c='default',c='user'))}} then I just added some code to trunk so that if

Re: [web2py] Re: prohibit users to edit their profiles

2010-07-13 Thread Jean-Guy
Ok I think I miss understand for now I use this line : {{=auth.navbar('welcome',URL(r=request,c='default',c='user'))}} In the view... And in the trunk only this line will be necessary auth.settings.actions_disabled.append('profile') ?? Jonhy PS.: The nigthly build no seems to

Re: [web2py] Re: prohibit users to edit their profiles

2010-07-13 Thread Jean-Guy
The : {{=auth.navbar('welcome',URL(r=request,c='default',c='user'))}} Not working : Traceback(most recent call last): File/nigthly_build/web2py/gluon/restricted.py,line176,inrestricted ccode=compile2(code,layer) File/nigthly_build/web2py/gluon/restricted.py,line163,incompile2

[web2py] crud.update strange behavior

2010-07-13 Thread Jean-Guy
Hello, I would like to make sure if it is my function that is not correct or the crud.update behavior... Here are my create function and update fuction : @auth.requires_login() def create(): if auth.has_membership(auth.id_group('tech')): form = crud.create(db.atable)

Re: [web2py] Re: prohibit users to edit their profiles

2010-07-13 Thread Jean-Guy
It had a the auth bar in the body of the views I put it into... The profile button is still in the navigatio bar and the bar is duplicate. It not replacing the original bar, not sure that was the goal... Jonhy On 2010-07-13 10:25, Jonathan Lundell wrote: On Jul 13, 2010, at 6:52 AM, Jean-Guy

[web2py] Fwd: crud.update strange behavior

2010-07-13 Thread Jean-Guy
: Jean-Guy jean...@gmail.com To: web2py@googlegroups.com Hello, I would like to make sure if it is my function that is not correct or the crud.update behavior... Here are my create function and update fuction : @auth.requires_login() def create(): if auth.has_membership(auth.id_group

Re: [web2py] Re: crud.update strange behavior

2010-07-13 Thread Jean-Guy
Ok I short my function for more clarity there is a else clause for the first if in the original function... And I found a solution see my foward. Jonhy On 2010-07-13 11:28, mdipierro wrote: if is false and the second it true?

Re: [web2py] openwysiwyg?

2010-07-13 Thread Jean-Guy
On 2010-07-13 12:50, mdipierro wrote: d making admin lighter. Anybody opposed? Do you mean the text editor built in web2py?? I use it! Jonhy

Re: [web2py] Re: openwysiwyg?

2010-07-13 Thread Jean-Guy
Never used it! Jonhy On 2010-07-13 13:02, mdipierro wrote: on a view [htmledit]. Do you use it?

[web2py] prohibit users to edit their profiles

2010-07-12 Thread Jean-Guy
Hello, It says here : http://web2py.com/book/default/section/8/1?search=profile That this line : http://.../[app]/default/user/profile Control if the user can or not edit their profile by exposing or not the function. I remove it but the users can still edit their profiles. Do I miss

[web2py] auth tables migrates false

2010-07-12 Thread Jean-Guy
Hello, I often have to switch between dev and prod db and web2py tells that tables already exist each time I change this line : db = DAL('dbengine://dbengineparameters') in db.py... Normally I can remove the auth tables and let web2py recreate them... I know that I can personalize the auth

Re: [web2py] Re: prohibit users to edit their profiles

2010-07-12 Thread Jean-Guy
I get this error : AttributeError:'NoneType'object has no attribute'append' I put this : auth.settings.function_disabled.append('profile') In the db.py and in the user function... Jonhy On 2010-07-12 11:04, mdipierro wrote: That line only links the edit profile page. To block it you

Re: [web2py] Re: prohibit users to edit their profiles

2010-07-12 Thread Jean-Guy
Little up! Jonhy On 2010-07-12 11:29, Jean-Guy wrote: I get this error : AttributeError:'NoneType'object has no attribute'append' I put this : auth.settings.function_disabled.append('profile') In the db.py and in the user function... Jonhy On 2010-07-12 11:04, mdipierro wrote: That line

Re: [web2py] Re: prohibit users to edit their profiles

2010-07-12 Thread Jean-Guy
It raises a 404 error when modify profil is cliked... I add those line to catch it up in the user controller: if request.args[0] == 'profile': return dict(form='you are not allowed (permission)') Maybe it could be simpler to just remove the entry in the layout?? Or both... Jonhy

[web2py] label field comment

2010-07-09 Thread Jean-Guy
Hello, I would like to change the way the grid of SQLForm or crud is presented : |Field1 Label|Field1|Comment1| |Field2 Label|Field2|Comment2| I would prefer it be like this : |Field1 Label| | |Field1|Comment1| |Field2 Label| | |Field2|Comment2| How may I change it if it is possible? Thank

Re: [web2py] Re: label field comment

2010-07-09 Thread Jean-Guy
formstyle= It's not working with crud?? The solution is ok with SQLFORM. Jonhy On 2010-07-09 10:24, mdipierro wrote: If you do SQLFORM(formstyle='table2cols') you get: |Field1 Label| |Comment1| |Field1|Comment2| |Field2 Label| | |Field2| else you can use

Re: [web2py] Re: label field comment

2010-07-09 Thread Jean-Guy
Great! Jonhy On 2010-07-09 14:39, mdipierro wrote: crud.settings.formstyle='table2cols' (requires trunk but will be in stable next week). On 9 Lug, 10:00, Jean-Guyjean...@gmail.com wrote: formstyle= It's not working with crud?? The solution is ok with SQLFORM. Jonhy On 2010-07-09

[web2py] Fwd: web2py prod deployment

2010-07-07 Thread Jean-Guy
It's happen sometime that my emails are blocked somewhere... I is the case for this one... My question down there. Jonhy Original Message Subject:web2py prod deployment Date: Tue, 06 Jul 2010 20:35:20 -0400 From: Jean-Guy jean...@gmail.com To: web2py

Re: [web2py] Re: web2py prod deployment

2010-07-07 Thread Jean Guy
on the subfolders will do the job... Jonhy 2010/7/7 mdipierro mdipie...@cs.depaul.edu In the admin interface there is a button {upgrade now} and it will do this for you. Did you try it? On 6 Lug, 19:35, Jean-Guy jean...@gmail.com wrote: Hello, I already had deployed web2py 1.78.3 in prod

[web2py] permission on particular column

2010-07-07 Thread Jean-Guy
Hello, 0 at auth_permission.record_id meens all the table... How may I specify permission only on particular column ?? Thanks Jonhy

Re: [web2py] Re: JQGrid Plugin with multiple Databases

2010-07-06 Thread Jean-Guy
I am quite interrested to the incorporation of this plugin in the near future... I will read the thread carefully. Thanks to pay attention about this issue. Jonhy On 2010-07-06 12:59, AsmanCom wrote: Could you advise me a Workaround for that? THX Dieter Asman On 6 Jul., 18:16,

[web2py] web2py prod deployment

2010-07-06 Thread Jean-Guy
Hello, I already had deployed web2py 1.78.3 in prod with the ubuntu script... I would like to know what is the best way to deploy the web2py 1.79.2 over the already deployed web2py installation (1.78.3) : 1) update of web2py 1.78.3 from the admin interface 2) replace the web2py 1.78.3 folder

Re: [web2py] Re: folder default

2010-07-05 Thread Jean-Guy
Thank you... I Like your answers precises and consises... Jonhy On 2010-07-02 03:30, mdipierro wrote: RL(r=request, c='controller_name', f='index')

[web2py] command line interracting with web2py app

2010-07-05 Thread Jean-Guy
Hello, How may I use web2py with ipython shell? I use this command to start ipython with my app : python web2py.py -a 'recycle' --shell=APP_NAME -i 127.0.0.1 -p 8000 But db and controller functions are not availables. Jonhy

[web2py] folder default

2010-07-01 Thread Jean-Guy
Hello, I am having difficulties to understand something about web2py... Can we make other folders (different of the default folder) for storing our models, controllers and views or should we most put everything in default folder? I mean if I create other folders and I put my stuff in in

[web2py] How may I do that

2010-06-30 Thread Jean-Guy
Hello, How may I pass the id of my entered record to an other function?? def atable_create(): if auth.has_membership(auth.id_group('group1')): form=crud.create(db.atable,next=URL(r=request,f='atable_read'),message=T('form accepted')) elif form.errors: response.flash =

Re: [web2py] Re: How may I do that

2010-06-30 Thread Jean-Guy
I had to figure (remember my read) out how to call the id in my other function, but I got it to work. Here is my working functions : def atable_create(): if auth.has_membership(auth.id_group('group1')): form=crud.create(db.atable,next='atable_read/[id]',message=T('form accepted'))

[web2py] models for auth system

2010-06-29 Thread Jean-Guy
Hello, Where can I find the models of auth tables? Are they stored somewhere in the web2py tree? Jonhy

[web2py] format of fk field

2010-06-29 Thread Jean-Guy
Hello, I know there is a way to show an other field value of the same row for a fk field. Is that correct? How to do it? This work in case of m2m table : If you check in appadmin in membership table the group_id are replaced by the role of the auth_group table... I there a way to do the

Re: [web2py] Re: models for auth system

2010-06-29 Thread Jean-Guy
On 2010-06-29 14:30, Chris S wrote: that's what you're looking for. Yes! Thank Chris.

[web2py] built in web2py datepicker bug with Google Chrome

2010-06-29 Thread Jean-Guy
Hello, Is there other user that are having datepicker coming blank when changing the year or mouth couples of time with Google Chrome? I test it with firefox no problem. I use web2py 1.7.8 Jonhy

[web2py] multiselect plugin from web2py slice

2010-06-29 Thread Jean-Guy
Hello, I install multiselect plugin it works just fine... http://web2pyslices.com/main/slices/take_slice/70 But I receive this error when I try to got on a record from the appadmin : Error traceback Traceback (most recent call last): File /web2py/gluon/restricted.py, line 178, in

[web2py] Re: multiselect plugin from web2py slice

2010-06-29 Thread Jean-Guy
Work around that work actually is to define the widget in the controller : move this from model to controller : db.atable.field1.widget=multiselect_widget Jonhy On 2010-06-29 18:29, Jean-Guy wrote: Hello, I install multiselect plugin it works just fine... http://web2pyslices.com/main/slices

[web2py] crud.create - crud.read and crud.update if necessary

2010-06-28 Thread Jean-Guy
Hello, I am trying to figure it out how I may add a button on crud.read form that redirect if pressed on crud.update form. I would like my users to be able to modify their seizures mistakes if they made some... To not make update to the database if the data are correct I redirect them to

[web2py] subset user list base on group of user

2010-06-28 Thread Jean-Guy
Hello, I would like to make a subset list of user base on auth_group the user are associate and use the subset list in a dropbox using multiselect plugin... I already make work properly multiselect plugin with my app... I search a way to verify the in which group are users and then show

[web2py] crud.create hide field

2010-06-22 Thread Jean-Guy
Hello, I would like to use crud.create in my controler instead of SQLForm, but I need to select the fields to be show... form = SQLFORM(db.atable,\ fields=['field1',\ 'field2',\

Re: [web2py] Re: crud.create hide field

2010-06-22 Thread Jean-Guy
Too easy : Like web2py! I should had think about it... Thank you. Regards. Jonhy On 2010-06-22 12:11, mdipierro wrote: db.atable.field8.writable=db.atable.field8.readable=False form=crud.create(db.atable) On Jun 22, 7:23 am, Jean-Guyjean...@gmail.com wrote: Hello, I would like

Re: [web2py] Re: my app instead of welcome app???

2010-06-21 Thread Jean-Guy
On 2010-06-19 12:11, Christopher Steel wrote: Hey Jean, I use a link from init to my app as well. Works great for me. You just need to set up your app name. I have not tried the routes way as of yet. Hi Chris, Where do I set up the app name? I though that the app name was the name of

Re: [web2py] Re: my app instead of welcome app???

2010-06-18 Thread Jean-Guy
My comment between the text down there... On 2010-06-15 18:51, Yarko Tymciurak wrote: On Jun 15, 1:05 pm, Jean-Guyjean...@gmail.com wrote: On 2010-06-15 13:16, Thadeus Burgess wrote: I ment... whats the use attempting to convince Massimo that this is a good idea although many

Re: [web2py] Re: my app instead of welcome app???

2010-06-18 Thread Jean-Guy
Sure but the conf of routes.py seems a bit tricky to me for now and the time I understand it completly I prefer the init symlink that you propose. Thanks Jonhy On 2010-06-18 11:18, mdipierro wrote: This is not a problem if you use routes.py On Jun 18, 9:48 am, Jean-Guyjean...@gmail.com

Re: [web2py] Re: cosmetic dropbox request

2010-06-17 Thread Jean-Guy
On 2010-06-16 22:22, mr.freeze wrote: ,lambda row: '%s-%s-%s' % (row.num_part1.rstrip(),row.num_part2.rstrip(), row.num_part3.rstrip()) Works just fine. Thanks! Jonhy

[web2py] requires, requiered or notnull=True

2010-06-17 Thread Jean-Guy
Hello dear web2py friends, What the difference between those validators : requires=IS_NOT_EMPTY() required=IS_NOT_EMPTY() not sure about this one if it is not only a typo error I made and notnull=True Jonhy

[web2py] cosmetic dropbox request

2010-06-16 Thread Jean-Guy
Hello, I use %()s in a IS_IN_DB validator like this : db.reg_registry.registry_id.requires = IS_IN_DB(db,'reg_registry.registry_id','%(num_part1)s-%(num_part2)s-%(num_part3)s') return num_part1 -num_part2 -num_part3 My problem is that %()s seems to add whitespace at the end of the string

Re: [web2py] Re: my app instead of welcome app???

2010-06-15 Thread Jean-Guy
On 2010-06-15 02:45, mdipierro wrote: se you do not have too, you can use ruotes already for this purpose. I read somewhere that we should modify the route in apache conf... I know I am not very precise I will try to found back the post of doc files... What the best practice? Jonhy

Re: [web2py] Re: my app instead of welcome app???

2010-06-15 Thread Jean-Guy
On 2010-06-15 02:45, mdipierro wrote: se you do not have too, you can use ruotes already for this purpose. Here : http://www.web2py.com/AlterEgo/default/show/42

[web2py] where are the auth table model?

2010-06-15 Thread Jean-Guy
Hello, I would like to get the auth tables models to implement them in my app cause web2py complain that they already are define when I move change from dev to prod database within the same app... I had found those models, can't remember where they were... ;-) Jonhy

Re: [web2py] Re: where are the auth table model?

2010-06-15 Thread Jean-Guy
On 2010-06-15 11:36, Pai wrote: there's an option to customized it. see below http://web2py.com/book/default/section/8/1?search=Customizing+Auth hope this helps :) Pai On Jun 15, 10:17 am, Jean-Guyjean...@gmail.com wrote: Hello, I would like to get the auth tables models to implement

Re: [web2py] Re: my app instead of welcome app???

2010-06-15 Thread Jean-Guy
On 2010-06-15 13:16, Thadeus Burgess wrote: I ment... whats the use attempting to convince Massimo that this is a good idea although many community members want it. He has been against this suggestion for the last year that I have been using web2py and this has been brought up many times, and he

Re: [web2py] Does DAL supports creating DBs?

2010-06-15 Thread Jean-Guy
On 2010-06-15 15:03, Phyo Arkar wrote: ot sure how DAL of Web2py can create DBs. I think we have to use python-mysql to do the work? When you define a model web2py create the database for you!! You have to tell wich RDBMS you use... db=DAL

[web2py] How to change the /default

2010-06-15 Thread Jean-Guy
Hello, I would remove completly default folder in my app... I changed many files to not use default folder anymore, but logout function and initialization of the app still require to reach default/index.html I change my routes.py that way as Massimo wrote : routes_in = (('/',

Re: [web2py] Re: Does DAL supports creating DBs?

2010-06-15 Thread Jean-Guy
On 2010-06-15 17:01, Phyo Arkar wrote: i meant Databases, i know it creates Tables. db=DAL('mysql://username:passw...@localhost/test' ) #means you have a database named test In my case , Database is non-existance , well a user input name of database to create , lets say testdb and it

[web2py] my app instead of welcome app???

2010-06-14 Thread Jean-Guy
Hello, Can't figure it out how to let my app load at 127.0.0.1 on prod server apache under ubuntu... I remove the welcome app and web2py still search to load it. Thanks Jonhy

Re: [web2py] Re: multiple select jquery plugin

2010-06-14 Thread Jean-Guy
On 2010-06-10 15:05, mr.freeze wrote: Another option: http://www.web2pyslices.com/main/slices/take_slice/70 On Jun 10, 2:02 pm, mdipierromdipie...@cs.depaul.edu wrote: http://web2py.com/plugins/default/multiselect On Jun 10, 1:57 pm, Jean Guyjean...@gmail.com wrote: I don't

[web2py] My table won't appear in auth_permission : table name

2010-06-14 Thread Jean-Guy
Hello web2py crowd, How can I make appear my tables in auth_permission table name dropbox? Does that I should be able to define permission on them? Thank you. Jonhy

Re: [web2py] error auth_user already exists

2010-06-14 Thread Jean-Guy
On 2010-06-14 11:34, annet wrote: ed something in the db.py file, the file contains the following custom auth_user table: If you are developping and testing using sqlite and your database not content important data... I think you can just erase everything in database folder... Jonhy

Re: [web2py] Re: error auth_user already exists

2010-06-14 Thread Jean-Guy
On 2010-06-14 13:18, annet wrote: is a solution which allows me to keep the tables in the PostgreSQL database. ,migrate=False : at the end of your model... Ex.: db.define_table('atable', SQLField('var1'), SQLField('var2'),migrate=False) modify your table in postgres and define

[web2py] Re: My table won't appear in auth_permission : table name

2010-06-14 Thread Jean-Guy
On 2010-06-14 10:59, Jean-Guy wrote: Hello web2py crowd, How can I make appear my tables in auth_permission table name dropbox? Does that I should be able to define permission on them? Thank you. Jonhy Answering to myself... Here is the solution : http://www.mail-archive.com/web2py

Re: [web2py] Re: get authenticate user id from session

2010-06-10 Thread Jean Guy
Thanks it solved the breaking app problem when not connect also. 2010/6/8 mdipierro mdipie...@cs.depaul.edu auth.user_id is the user id retrived from the session. On Jun 8, 1:39 pm, Jean Guy jean...@gmail.com wrote: Hello web2py geek, How can I get the user id from session

Re: [web2py] Controller wide auth

2010-06-10 Thread Jean Guy
You are a nice guy! Thank you. Jonhy 2010/6/10 Doug Warren doug.war...@gmail.com I've had an issue lately where pretty much every function in a controller needed an auth decorator. Given how many functions were in the controller this turned out to be an error prone forgetful process. So

Re: [web2py] Controller wide auth

2010-06-10 Thread Jean Guy
The redirect those not work out of the box... Jonhy 2010/6/10 Jean Guy jean...@gmail.com You are a nice guy! Thank you. Jonhy 2010/6/10 Doug Warren doug.war...@gmail.com I've had an issue lately where pretty much every function in a controller needed an auth decorator. Given how

Re: [web2py] Controller wide auth

2010-06-10 Thread Jean Guy
%252525252525252525252525252525252525252FTABEL instead of : http://127.0.0.1:8000/dev/default/user/login?_next=/dev/default/TABLE Could it be import urllib that failed? Jonhy 2010/6/10 Jean Guy jean...@gmail.com The redirect those not work out of the box... Jonhy 2010/6/10 Jean Guy jean

Re: [web2py] Controller wide auth

2010-06-10 Thread Jean Guy
Try to import in ipython it pass... urllib seems to be part of other package in ubuntu : http://stackoverflow.com/questions/2532321/python-importerror-no-module-named-urllib or python-m2crypto Don't know which one is best... Could it depends of python version? Jonhy 2010/6/10 Jean Guy jean

Re: [web2py] Controller wide auth

2010-06-10 Thread Jean Guy
and web2py from source (not from exe.) I haven't tried it yet in my production environment. Try it with the decorator @auth.requires_login( ) def index(): return dict(message=Logged in) On Thu, Jun 10, 2010 at 9:11 AM, Jean Guy jean...@gmail.com wrote: Try to import in ipython it pass

Re: [web2py] Controller wide auth

2010-06-10 Thread Jean Guy
Don't work. 2010/6/10 Jean Guy jean...@gmail.com With decorator it works. I try with urllib2. Jonhy 2010/6/10 Doug Warren doug.war...@gmail.com I'm not sure actually the code was mostly cut and pasted directly from tools.py perhaps it needs an import urllib2 as well? The code

Re: [web2py] Re: best list of jquery plugins I found so far

2010-06-10 Thread Jean Guy
Just remove the /plugins 2010/6/10 Yarko Tymciurak resultsinsoftw...@gmail.com that comes up as a bad link for me... www.jquery.com/plugins redirects to http://plugins.jquery.com -- is this the one you meant? On Jun 10, 11:04 am, mdipierro mdipie...@cs.depaul.edu wrote:

[web2py] multiple select jquery plugin

2010-06-10 Thread Jean Guy
I don't remember how I come with this link : http://abeautifulsite.net/2008/04/jquery-multiselect/ But it could serve my needs for sometime... I'm not experienced at all with jquery. I would like to use it with web2py mainly cause it seems to let the possibility to group differents query results

Re: [web2py] Re: multiple select jquery plugin

2010-06-10 Thread Jean Guy
/main/slices/take_slice/70 On Jun 10, 2:02 pm, mdipierro mdipie...@cs.depaul.edu wrote: http://web2py.com/plugins/default/multiselect On Jun 10, 1:57 pm, Jean Guy jean...@gmail.com wrote: I don't remember how I come with this link : http://abeautifulsite.net/2008/04/jquery-multiselect

Re: [web2py] Re: electronic signature

2010-06-10 Thread Jean Guy
based shell type help(auth.archive) On Jun 9, 11:53 pm, Christopher Steel chris.st...@gmail.com wrote: Hi Jean Guy, Are you talking about record auditing??? You could do that with something like this: # This sets a variable for user_id which is used frequently # it must

[web2py] Y'a-t-il des Québécois sur cette liste?

2010-06-10 Thread Jean Guy
[?] Je demandais s'il y avait des québécois qui développe avec Web2py et qui son inscrit sur cette liste? Jean Guy 330.gif

Re: [web2py] Script to generate schema (models) from mysql

2010-06-10 Thread Jean Guy
I'm sorry I didn't have time to look at the script... I try to look at it in the near future. Jonhy 2010/5/22 Alexandre Andrade alexandrema...@gmail.com I can adapt it on demand to any database for just $100. Obviously it will be returned to community too. I usualy use only mysql,

[web2py] adding table to RBAC

2010-06-09 Thread Jean Guy
Hello, I implement the RBAC in my app and I try to figure it out how I can add more table in the dropbox of auth_permission table... There is only the auth_ table in the dropbox... I'm not experienced with RBAC and web2py then the information in web2py book are a bit short to me. Thanks. Jonhy

[web2py] how to do a data picker?

2010-06-09 Thread Jean Guy
Hello, I have different types of data that must be selected, but a dropbox is not adequate. A popup that could list in columns my different data type would be an interesting alternative. Is there exist a plugin that would do that? I search for the code of calendar date picker included in web2py

Re: [web2py] how to do a data picker?

2010-06-09 Thread Jean Guy
. Or if your using a 'date' in your model you should have a date picker by default. Best Regards, Jason Brower On Wed, 2010-06-09 at 11:10 -0400, Jean Guy wrote: Hello, I have different types of data that must be selected, but a dropbox is not adequate. A popup that could list in columns my

[web2py] get authenticate user id from session

2010-06-08 Thread Jean Guy
Hello web2py geek, How can I get the user id from session ? Thanks. Jonhy

[web2py] getting value of field selected

2010-06-08 Thread Jean Guy
Hello, This : {{=db(db.auth_user.id==auth.user_id).select(db.auth_user.initials)}} Return : auth_user.initials INITIALS I would have : INITIALS How can I do it? Jonhy

Re: [web2py] Re: getting value of field selected

2010-06-08 Thread Jean Guy
Thank you! I was trying with index but fall on tuple at last... Like this : {{=db(db.auth_user.id ==auth.user_id).select(db.auth_user.initials).reponse[0][0]}} But tuple can't be sliced... :) Jonhy 2010/6/8 mdipierro mdipie...@cs.depaul.edu On Jun 8, 4:02 pm, Jean Guy jean...@gmail.com

[web2py] electronic signature

2010-06-08 Thread Jean Guy
Could it be a good practice to implement electronic signature of the database records like this : db.define_table('atable', SQLField('var1'), SQLField('var2',default=db(db.auth_user.id ==auth.user_id).select(db.auth_user.initials).first().initials)) It needs that the user be

Re: [web2py] Re: electronic signature

2010-06-08 Thread Jean Guy
help. Jonhy 2010/6/8 mr.freeze nat...@freezable.com I think it would be more useful to record the auth user id instead since you wouldn't be able to find the corresponding user record from the initials. On Jun 8, 5:29 pm, Jean Guy jean...@gmail.com wrote: Could it be a good practice

[web2py] current version source??

2010-06-03 Thread Jean Guy
Hi, I would like to know if the source of the current version are fixed or if they change over time? I compared the dal.py and sql.py and they were differents for the same version of current version? Thanks. Jonhy

[web2py] Dropbox with (IS_IN_DB) without requires constrains

2010-06-03 Thread Jean Guy
Hi, I would like to know if there is a way as simple of requires = IS_IN_DB to show a dropbox of what is already in my table, but without the need of requiring that field be entered in my other table. I have many fields that need dropbox but they are not all used at the same time (nulls fields :

Re: [web2py] Re: Dropbox with (IS_IN_DB) without requires constrains

2010-06-03 Thread Jean Guy
Wonderful! It works just fine. Thanks. Richard 2010/6/3 Yarko Tymciurak resultsinsoftw...@gmail.com On Jun 3, 10:26 am, Jean Guy jean...@gmail.com wrote: Hi, I would like to know if there is a way as simple of requires = IS_IN_DB to show a dropbox of what is already in my table

[web2py] unable to install app from a dev in a prod web2py installation

2010-06-03 Thread Jean Guy
Hello, I am unable unpack it in my prod web2py environnement... Is it a Linux permission issue? I pack it from my dev web2py I try to give my app.w2p www-data owner by sudo chown www-data.www-data myapp.w2p Before try to install it in my prod web2py installation. My prod web2py is full

  1   2   >