[web2py] Re: Error: Start as Windows Service

2011-10-20 Thread toan75
Yes, i renamed options_std.py to options.py. import socket import os ip = '192.168.0.1' port = 80 interfaces=[('0.0.0.0',80),('0.0.0.0',443,'ssl_private_key.pem','ssl_certificate.pem')] password = 'recycle' # ## recycle means use the previous password pid_filename = 'httpserver.pid'

[web2py] Re: Error: Start as Windows Service

2011-10-20 Thread toan75
Still the same error.

[web2py] Re: Error: Start as Windows Service

2011-10-20 Thread toan75
I have not tried it but it will run. Thank very much.

[web2py] Error: Start as Windows Service

2011-10-19 Thread toan75
HI ALL, I can't run web2py as windows server 2003 service. Pls help me. Thanks very much. This error: C:\web2pyc:\Python27\python.exe web2py.py -W install No handlers could be found for logger web2py web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2011 Version 1.99.2

[web2py] Bug: Text field length default limit to 512 characters ?

2011-09-06 Thread toan75
Hi. I found in 1.98.2, text field type default length is 512 not 65536? It's correct? Toan.

[web2py] Integration MS Office ?

2011-07-26 Thread toan75
HI, How to integrate MS Word or Excel on the web2py site (to read, edit and save ms file type)? Have any examples? Thanks your help.

[web2py] Tr.lời: Re: JSON 1.97.1

2011-07-25 Thread toan75
Error when call the databales function directly and/or call call/json/datatables (I try again universal_caller function from old version (1.96.4), it works fine.) Traceback (most recent call last): File D:\web2py197\gluon\restricted.py, line 192, in restricted exec ccode in

[web2py] JSON 1.97.1

2011-07-24 Thread toan75
I updated from v1.96.4 to v1.97.1 but Json is not working now. There is a change in v1.97.1 or I did something wrong? In controller: def call(): #session.forget() return service() @service.json def datatables(): return data In view: .. sAjaxSource:

[web2py] Deny IP adress?

2011-07-16 Thread toan75
Hi all, I use apache iis server. How to block ip address to access the website? Thanks in advance.

[web2py] response.download reload model

2011-06-21 Thread toan75
Hi all, The model will be reloaded one time the each request? In my application, it's reload one time more when using the download image? It's correct? How i can do for the model reload only one time? Thanks.

[web2py] response.download reload model

2011-06-21 Thread toan75
Hi all, The model will be reloaded one time on each request? In my application, it's reload one time more when using the download image? It's correct? How i can do for the model reload only one time? Thanks.

[web2py] Tr.lời: Re: response.download reload model

2011-06-21 Thread toan75
Thank Anthony. It was clear to me. I find it takes longer to create the many data table (db.define_table). It will work if I put the define_table to modules? You have an example?

[web2py] Tr.lời: Re: Tr.lời: Re: Tr.lời: Re: web2py 1.95.1 and open issues

2011-04-28 Thread toan75
I get only the error when not check the delete box. And not error when remove : if form.accepts(request.vars, session): pass I change in line 1093 of gluon/sqlhtml.py, but not work.

[web2py] Tr.lời: Re: Tr.lời: Re: Tr.lời: Re: Tr.lời: Re: web2py 1.95.1 and open issues

2011-04-28 Thread toan75
My DB: db.define_table('container', Field('folder','reference folder',requires=IS_NULL_OR(IS_IN_DB(db,'folder.id','%(name)s'))), Field('object','reference object',requires=IS_NULL_OR(IS_IN_DB(db,'object.id','%(name)s'))), Field('name',default=''),

[web2py] Tr.lời: Re: Tr.lời: Re: Tr.lời: Re: Tr.lời: Re: web2py 1.95.1 and open issues

2011-04-28 Thread toan75
That print: Storage {'name': 'box project home', 'object': '', '_formname': 'container/800' , 'content': '', 'div': 'midle', 'id': '800', 'position': '100', '_formkey': 'bd 2630f58397518b338e318405ef4892', 'type': 'link', 'folder': '19', '_next': ''}

[web2py] Tr.lời: Re: Site wide single sign on?

2011-04-27 Thread toan75
I can use one Auth (login,permission,...) for many app (same users)? Vào 02:38:21 UTC+7 Thứ tư, ngày 27 tháng hai năm 2008, mdipierro đã viết: Not sure what you are trying to do. other_session=gluon.fileutils.get_session('other_app') allow this app to steal the session vars of another app

[web2py] Tr.lời: Re: web2py 1.95.1 and open issues

2011-04-27 Thread toan75
Hi, In new version: crud.update work only with deletable=False?

[web2py] Tr.lời: Re: Tr.lời: Re: Site wide single sign on?

2011-04-27 Thread toan75
Thank for reply. - I need create only one DB for all app or one Auth db + others app db? - Please explain to me how to automatically login when switching to another application? Many thanks.

[web2py] Tr.lời: Re: Tr.lời: Re: web2py 1.95.1 and open issues

2011-04-27 Thread toan75
I have this error when set deletable=True: File E:\web2py\gluon\globals.py, line 133, in lambda self._caller = lambda f: f() File E:\web2py\gluon\tools.py, line 2335, in f return action(*a, **b) File E:/web2py/applications/init/controllers/plugin_admin.py

[web2py] Tr.lời: Re: Tr.lời: Re: web2py 1.95.1 and open issues

2011-04-27 Thread toan75
My controller: def crud1(): form = crud.update(db.container,request.args(0),deletable=True) if form.accepts(request.vars, session): pass return dict(form=form) I have web2py 1.95.1, Python 2.7 OS Win7 Home

[web2py] Re: Dynamic generation model

2011-03-16 Thread toan75
Please help me in this case, thank very much. On Tuesday, March 15, 2011 6:11:25 PM UTC+7, toan75 wrote: Hi Massimo Di Pierro, How do get requires, defaut, represent,... from field: db.mytable.myfield for create string: Field('myfield', requires=..., default=..., represent=...) ? Thanks.

[web2py] Re: Dynamic generation model

2011-03-15 Thread toan75
Hi Massimo Di Pierro, How do get requires, defaut, represent,... from field: db.mytable.myfield for create string: Field('myfield', requires=..., default=..., represent=...) ? Thanks.

[web2py] Dropdown selection of table reference, select blank option -- 0 not None?

2011-03-06 Thread toan75
Hi all, Please help me with the problem of dropdown selection. It work fin by default: select blank option in the drop down, it update value of field reference = None But i need change drop down list: form[0][0][1] = TD(my_select) Now, it update value = 0 (not None) and I can't update:

Re: [web2py] Dropdown selection of table reference, select blank option -- 0 not None?

2011-03-06 Thread toan75
in the book : http://web2py.com/book/default/chapter/06?search=default#Record-Representation Beside field constructor tag There is also keepvalue that alow you to prepopulate form with value of your choice. Hope it help. Richard On Sun, Mar 6, 2011 at 4:59 AM, toan75 toa...@gmail.com wrote

[web2py] Plugin: many files on static/plugin folder

2010-11-25 Thread toan75
Hi, In Version 1.89.5, I had this error when put many files in to static/ plugin_xxx folder: File E:\web2py-XDCB\applications\admin\views\default\plugin.html in module at line 212 IndexError: list index out of range while path!=file_path: if

[web2py] Re: list:reference issue

2010-11-08 Thread toan75
It's correct in my model? db.define_table('office', Field('name','string',length = 128,requires=ne), Field('description','text'), Field('pos','integer',default=100)) db.define_table('person', Field('office', db.office, requires = IS_IN_DB(db, 'office.id', '%

[web2py] Re: list:reference issue

2010-11-08 Thread toan75
0: expected string, int found On Nov 8, 7:32 pm, villas villa...@gmail.com wrote: Hi toan75, You have a few problems here.  My advice would be to get it working and then make changes from there, after reading the book. Maybe use this to begin: db.define_table('office',         Field('name

[web2py] Re: Best practice: swapping between different layout.html files within a single application

2010-11-06 Thread toan75
How can do for bytecode compile work in this case? On Oct 22, 3:03 am, mdipierro mdipie...@cs.depaul.edu wrote: Not sure this works. Does it? {{extendvariable}} works as long as you do not bytecodecompile. On Oct 21, 12:29 pm, cjrh caleb.hatti...@gmail.com wrote: On Oct 21, 5:17 pm,

[web2py] Get query from string

2010-10-19 Thread toan75
I have string, ex: ((person.id0)(person.car=car.id)), i like get my query = (db.person.id0) (db.person.car==db.car.id), same like get_query function in appadmin controller? def get_query(request): try: return eval_in_global_env(request.vars.query) except

[web2py] Plugin Attachments mmodal

2010-04-15 Thread toan75
Hi all, I love this plugin: http://web2py.com/plugins/default/attachments How i can change for this plugin display in the button on my page (instead of the button at the bottom-right corner of the browser)? Otherwise, i can pass a callback same attachment function in PluginMModal? (modal windows

[web2py] Re: googling web2py

2010-03-28 Thread toan75
I was getting 657.000 in Vietnam On 28 Tháng Ba, 10:04, mr.freeze nat...@freezable.com wrote: I was getting 108k in Texas but it jumped to 607k after clearing the browser cache. On Mar 27, 9:55 pm, mdipierro mdipie...@cs.depaul.edu wrote: this is odd. When I do

[web2py] redirect and ajax

2010-03-16 Thread toan75
I have: in view: select id=treeCb name=treeCb onchange=ajax('/init/data/ treeCbChange', ['treeCb']);option value=11/optionoption value=22/option/select in control: def treeCbChange(): try: redirect(URL(r=request, f='index/'+request.vars.values()[0]))

[web2py] executesql unicode

2010-03-07 Thread toan75
Can use executesql in this case: My code: rows = db.executesql('SELECT * FROM abc;',as_dict=True) for row in rows: print row['name'] ([name] is unicode field) Error traceback Traceback (most recent call last): File gluon/restricted.py, line 173, in restricted

[web2py] Re: Large datasets

2010-01-14 Thread toan75
On RDBS, i have code: rows = db(db.cat.id0).select(orderby=db.cat.name,limitby=(1,10)) but on GAE: rows = db(db.cat.id0).select() rows = rows.sort(lambda row:row.name) rows = rows[1:10] It spend long time in a large datasets. Is there some other way i can use to

[web2py] Re: DataTables server-side processing on GAE?

2010-01-09 Thread toan75
) On Sat, Jan 9, 2010 at 5:33 AM, toan75 toa...@gmail.com wrote: Hi all, I deploy a DataTables server-side processing on GAE (http:// toan75.appspot.com/init/default/view_table) , it's not work but it work fine on local (http://localhost:8080/init/default/view_table) or example non server-side

[web2py] DataTables server-side processing on GAE?

2010-01-08 Thread toan75
Hi all, I deploy a DataTables server-side processing on GAE (http:// toan75.appspot.com/init/default/view_table) , it's not work but it work fine on local (http://localhost:8080/init/default/view_table) or example non server-side (http://toan75.appspot.com/init/default/ table). It expects a JSON