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'
Still the same error.
I have not tried it but it will run. Thank very much.
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
Hi.
I found in 1.98.2, text field type default length is 512 not 65536?
It's correct?
Toan.
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.
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
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:
Hi all,
I use apache iis server.
How to block ip address to access the website?
Thanks in advance.
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.
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.
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?
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.
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=''),
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':
''}
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
Hi,
In new version: crud.update work only with deletable=False?
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.
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
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
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.
Hi Massimo Di Pierro,
How do get requires, defaut, represent,... from field:
db.mytable.myfield for create string:
Field('myfield', requires=..., default=..., represent=...) ?
Thanks.
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:
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
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
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', '%
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
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,
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
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
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
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]))
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
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
)
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
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
36 matches
Mail list logo