[web2py] Re: Strange radio button behavior

2010-07-28 Thread mdipierro
will look into this asap. On Jul 29, 1:54 am, Alastair Medford wrote: > After wandering around in the source, I think I've found the culprit > code. > In html.py -> Input class -> _post_processing function, there's the > following condition: > > elif t == 'radio': >     if str(self['value']) == s

[web2py] Re: Strange radio button behavior

2010-07-28 Thread Alastair Medford
After wandering around in the source, I think I've found the culprit code. In html.py -> Input class -> _post_processing function, there's the following condition: elif t == 'radio': if str(self['value']) == str(self['_value']): self['_checked'] = 'checked' else: self['_ch

[web2py] Re: book 3rd edition call of help

2010-07-28 Thread Anthony
I'm also wondering if there's any plan to try to keep the online version of the book more up-to-date as new features are added rather than revising only once a year. Seems like that would be a big help if it's feasible. Anthony On Jul 27, 6:49 am, mdipierro wrote: > This is very very preliminary

[web2py] Re: book 3rd edition call of help

2010-07-28 Thread Anthony
Regarding content, it looks like the focus of the book revision has been documenting all the newer features, and that should certainly be the priority. Perhaps this is beyond the intended scope of the current revision, but at some point I think it would also be helpful to expand the discussion of s

[web2py] Re: Strange radio button behavior

2010-07-28 Thread Alastair Medford
On Jul 28, 6:26 am, René wrote: > I've experienced the same behaviour, and I noticed something that > probably is the solution. I have a website that provides several > quizes and questionaires, and all radio buttons created using the > INPUT() method have the "checked" attribute set by default.

Re: [web2py] Re: is it possible to get Error message right away ?

2010-07-28 Thread Jason Brower
It would be a blast to have a debug mode. That way if you are the local user it will automatically take you to the error. But that could get nast if you use alot of ajax calls. Best regards... J - Original message - > look at post #5 in this thread > http://groups.google.com/group/web2py

[web2py] Re: rocket performance issues

2010-07-28 Thread Iceberg
The one "leak" process per hour coincident is "coincidently" matching the one run per hour of admin/cron/expire_sessions.py That really raises my concern, cause I just gonna use cron as a trick to touch my app's cache frequently. :-/ By the way, which os is Mike Ellis using? I did not observe sam

[web2py] Re: Plugin_wiki - the URL() helper has changed in version 1.81.5?

2010-07-28 Thread Bruno Rocha
Nevermind, I Solved using this way: _href=URL(request.application,'plugin_wiki','page',args=[row,]) .load is not appended to the link. Tks 2010/7/29 Bruno Rocha > > ##plugin_wiki > There was some change in the URL() helper, from 1.81.4 to 1.81.5? > > To the search widget in < > http://web2py

[web2py] Plugin_wiki - the URL() helper has changed in version 1.81.5?

2010-07-28 Thread Bruno Rocha
##plugin_wiki There was some change in the URL() helper, from 1.81.4 to 1.81.5? To the search widget in < http://web2pybrasil.appspot.com/cursoweb2py/default/index> before, in 1.81.4 I did this: return UL(*[LI(*[A(db(db.plugin_wiki_page.slug==row)\ .select(db.plugin_wiki_page.title)[0].title,\

[web2py] Re: OpenID supported with login method

2010-07-28 Thread keitheis
Okay, if you have any question or suggestion please tell me. :) On Jul 29, 4:46 am, mdipierro wrote: > No. like inclusion in web2py_src.zip as it is. > > On Jul 28, 11:42 am, keitheis wrote: > > > > > like inclusion_login_form.py ? > > > On Jul 28, 12:50 am, mdipierro wrote: > > > > +1. I am th

Re: [web2py] Re: cube2py system (meta) page example request

2010-07-28 Thread Bruno Rocha
> > By The Way > There are many differences between plugin_wiki and c2p? which are most > important? > > 2010/7/28 Bruno Rocha > > > > TKS. > > > > Explained a lot to me, > > I'd be posting a thread pointing an error to render the sidebar in > plugin_wiki. > > now I'll get with a widget. > > (Addi

Re: [web2py] Re: cube2py system (meta) page example request

2010-07-28 Thread Bruno Rocha
TKS. Explained a lot to me, I'd be posting a thread pointing an error to render the sidebar in plugin_wiki. now I'll get with a widget. (Addicting in widgets) 2010/7/28 mdipierro > mind that plugin_wiki in itself does not uses meta-header nor meta- > footer not meta-sidebar. > > cube2py uses the

Re: [web2py] Re: question/suggestion about URL, controller

2010-07-28 Thread Thadeus Burgess
SORRY! =D -- Thadeus On Wed, Jul 28, 2010 at 6:22 PM, mdipierro wrote: > WOW. Uploading to trunk. Now I need to revise the book again. :-( > > On Jul 28, 5:51 pm, Thadeus Burgess wrote: >> >>> URL(r=request, c='hello', f='world', args=['hi'], >> >>> vars={'q':'greetings'}, anchor='the_worl

[web2py] Re: python 2.4 support

2010-07-28 Thread Cory Coager
Sorry for my delay in testing. The gluon/tools.py seems to be compatible now and the rocket patch seems to work also. However, the hashlib issue still exists as I'm still getting this error: AttributeError: 'builtin_function_or_method' object has no attribute 'new'

Re: [web2py] Re: Debugging ajax call

2010-07-28 Thread Thadeus Burgess
I think Opera does as well. You can download a plugin for IE that can serve in a limited functionality too, at least enough to figure out why IE likes to mess everything up =) -- Thadeus On Wed, Jul 28, 2010 at 6:19 PM, MikeEllis wrote: > Same approach also works with the built-in Chrome Dev

[web2py] Re: question/suggestion about URL, controller

2010-07-28 Thread mdipierro
WOW. Uploading to trunk. Now I need to revise the book again. :-( On Jul 28, 5:51 pm, Thadeus Burgess wrote: > >>> URL(r=request, c='hello', f='world', args=['hi'], vars={'q':'greetings'}, > >>> anchor='the_world') > > '/welcome/hello/world/hi#the_world?q=greetings'>>> URL(c='hello', f='world',

[web2py] Re: Debugging ajax call

2010-07-28 Thread MikeEllis
Same approach also works with the built-in Chrome DevTools if you're using that browser. On Jul 28, 6:11 pm, Thadeus Burgess wrote: > use firebug, set a breakpoint in the javascript and look at the > current stack at that point using firebug. > > -- > Thadeus > > > > On Wed, Jul 28, 2010 at 4:41

Re: [web2py] Re: question/suggestion about URL, controller

2010-07-28 Thread Thadeus Burgess
>>> URL(r=request, c='hello', f='world', args=['hi'], vars={'q':'greetings'}, >>> anchor='the_world') '/welcome/hello/world/hi#the_world?q=greetings' >>> URL(c='hello', f='world', args=['hi'], vars={'q':'greetings'}, >>> anchor='the_world') '/welcome/hello/world/hi#the_world?q=greetings' Attache

[web2py] Re: is it possible to get Error message right away ?

2010-07-28 Thread howesc
look at post #5 in this thread http://groups.google.com/group/web2py/browse_thread/thread/5fd5303e6a2fa5c5/d7d7073ee2241bdb (also by me). i used to to create a custom view on google app engine for reading tickets. (i don't use it anymore because i just use the google logs), but you might be able

[web2py] Re: GAE and Auth over SSL

2010-07-28 Thread howesc
unfortunately this is still a google problem. i'd love for them to solve it (and my clients would be willing to pay for the service) cfh On Jul 28, 8:27 am, Vidul Petrov wrote: > Does this mean that GAE SSL support is practically useless for now? > Because one should either stick to subdoma

[web2py] Re: question/suggestion about URL, controller

2010-07-28 Thread mdipierro
ok On Jul 28, 4:52 pm, Thadeus Burgess wrote: > For a little more advanced version of what Massimo just posted: > > This allows you to use both. > > URL(r=request, c=, f=.) > and > URL(c=, f=.) > > http://packages.python.org/web2py_utils/init.html#gurlhttp://hg.thadeusb.com/Web/web2py_uti

[web2py] Re: Does web2py supports PostgreSQL array type?

2010-07-28 Thread mdipierro
No. We are thinking about it. On Jul 28, 3:26 pm, SaveTheRbtz wrote: > PostgreSQL has a very useful feature: ARRAY > (http://www.postgresql.org/docs/8.4/static/arrays.html) data type. > > Does web2py supports this type?

[web2py] Re: cube2py system (meta) page example request

2010-07-28 Thread mdipierro
mind that plugin_wiki in itself does not uses meta-header nor meta- footer not meta-sidebar. cube2py uses them because it has a special payout that does things like {{=plugin_wiki.embed_page('meta-header') or XML('%s%s' % (response.title, response.subtitle))}} So when

[web2py] Does web2py supports PostgreSQL array type?

2010-07-28 Thread SaveTheRbtz
PostgreSQL has a very useful feature: ARRAY ( http://www.postgresql.org/docs/8.4/static/arrays.html ) data type. Does web2py supports this type?

[web2py] Re: Last Week for WAE ( Web2py Application Exhibition )

2010-07-28 Thread Martin.Mulone
I make an application, that i developed in last two weeks. Where i submit or mail to anyone? On Jul 22, 12:28 pm, NetAdmin wrote: > Web2py ApplicationExhibition > > Do you have a Web2py app that you'd like to show the world? > If so, you may be interested in the Web2py ApplicationExhibition. > >

[web2py] Re: rocket performance issues

2010-07-28 Thread mdipierro
There clearly is a problem with the cron processes. Massimo On Jul 28, 4:10 pm, MikeEllis wrote: > Update: (Summarizes a couple of emails exchanged with Massimo) > > Yesterday I found that my instance of web2py appeared be "leaking" > processes at about 1 per hour.  Massimo suggested running wit

Re: [web2py] Debugging ajax call

2010-07-28 Thread Thadeus Burgess
use firebug, set a breakpoint in the javascript and look at the current stack at that point using firebug. -- Thadeus On Wed, Jul 28, 2010 at 4:41 PM, Kenneth wrote: > Hello, > > I'm trying to make a ajax call but keep getting > document.getElementById(t) is null from row 32 in web2py_ajax.h

Re: [web2py] Re: question/suggestion about URL, controller

2010-07-28 Thread Thadeus Burgess
For a little more advanced version of what Massimo just posted: This allows you to use both. URL(r=request, c=, f=.) and URL(c=, f=.) http://packages.python.org/web2py_utils/init.html#gurl http://hg.thadeusb.com/Web/web2py_utils/file/697470f78d16/web2py_utils/utils.py#l11 The reason we

[web2py] Debugging ajax call

2010-07-28 Thread Kenneth
Hello, I'm trying to make a ajax call but keep getting document.getElementById(t) is null from row 32 in web2py_ajax.html. How can I debug what t is in the getElementById(t)? Kenneth

[web2py] cube2py system (meta) page example request

2010-07-28 Thread Scott
Massimo provided excellent examples of meta-menu and meta-code on Vimeo. However, could someone post examples of meta-header, meta- sidebar, and meta-footer? Thanks!

[web2py] Re: rocket performance issues

2010-07-28 Thread MikeEllis
Update: (Summarizes a couple of emails exchanged with Massimo) Yesterday I found that my instance of web2py appeared be "leaking" processes at about 1 per hour. Massimo suggested running with -N to disable cron. I started two instances this way -- one under winpdb and another directly. They've

[web2py] Re: question/suggestion about URL, controller

2010-07-28 Thread mdipierro
1) It is a bit more complex because of static, appadmin, and admin. You can map /function/var1/var2 into /app/controller/function/var1/var2 using a file routes.py --- begin file routes_in=[ ('/admin/$anything','/admin/$anything'), ('/static/$anything','/app/static/$anything'), ('/app

[web2py] Re: DAL does not raise SyntaxError on malformed connection string

2010-07-28 Thread mdipierro
In trunk now On Jul 28, 1:58 pm, mwolfe02 wrote: > There's a generic except: in dal.py/sql.py that prevents SyntaxErrors > from being reported. > > For example, > > db = DAL('mssql://user:p...@127.0.0.1/') > > results in: > > RuntimeError: Failure to connect to DB. Tried 5 times > > instead of:

[web2py] Re: OpenID supported with login method

2010-07-28 Thread mdipierro
No. like inclusion in web2py_src.zip as it is. On Jul 28, 11:42 am, keitheis wrote: > like inclusion_login_form.py ? > > On Jul 28, 12:50 am, mdipierro wrote: > > > +1. I am thinking about inclusion > > > On Jul 27, 11:37 am, keitheis wrote: > > > > No problem. > > > > It extends the built-in l

[web2py] is it possible to get Error message right away ?

2010-07-28 Thread Stef Mientki
hello, when an error occurs, a nice formatted page with something like "Invalid request" appears. Then you have to got to the error messages, try to open that ( for which an adminstrators password is required). Isn't it possible to get the content of the error message right away insted of "In

[web2py] question/suggestion about URL, controller

2010-07-28 Thread VP
I'm a newbie, so my questions probably have easy answers, but anyway. Among a few things, there are two I don't understand and think can be simplified. 1. this url: app/controller/function/var1/var2 For me at least, most of the time I probably have only one controller. If there is one control

[web2py] DAL does not raise SyntaxError on malformed connection string

2010-07-28 Thread mwolfe02
There's a generic except: in dal.py/sql.py that prevents SyntaxErrors from being reported. For example, db = DAL('mssql://user:p...@127.0.0.1/') results in: RuntimeError: Failure to connect to DB. Tried 5 times instead of: SyntaxError: Invalid URI string in SQLDB: mssql://user:p...@127.0.0.1/

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: db.ata

[web2py] Re: book 3rd edition call of help

2010-07-28 Thread Anthony
Very helpful. One small problem, though -- links from index terms that are single letters (e.g., A, B, P), common words (e.g., CODE), or parts of common words (e.g., CAS) end up highlighting lots of words in the chapter that were not intended by the search (e.g., the link for the A helper highlight

[web2py] Re: OpenID supported with login method

2010-07-28 Thread keitheis
like inclusion_login_form.py ? On Jul 28, 12:50 am, mdipierro wrote: > +1. I am thinking about inclusion > > On Jul 27, 11:37 am, keitheis wrote: > > > > > No problem. > > > It extends the built-in login form with external login form. > > > Like the bottom of the > > slicehttp://www.web2pyslice

[web2py] Re: book 3rd edition call of help

2010-07-28 Thread mwolfe02
Very nice! I especially like the yellow highlighting of the search terms. Maybe this is nitpicking or you just haven't gotten that far yet, but I think the index should be in case-insensitive alphabetical order. Also, I don't know if you're taking feedback on specific content yet, but I think th

[web2py] Re: GAE and Auth over SSL

2010-07-28 Thread mdipierro
This is not a web2py issue. http://aralbalkan.com/1632 unless things have changed. Massimo On Jul 28, 10:27 am, Vidul Petrov wrote: > Does this mean that GAE SSL support is practically useless for now? > Because one should either stick to subdomain.appspot.com or use no > SSL. > > On Jul 28, 6

[web2py] Re: calling secured function from cron

2010-07-28 Thread mdipierro
No because the function has no way to know it is being access by CRON. Moreover if the function requires login it probably assumes the existence of a user. In case of cron who is the user? What if no user yet registered with the app? On Jul 28, 10:24 am, Iceberg wrote: > I am digging out an old

[web2py] Re: GAE and Auth over SSL

2010-07-28 Thread Vidul Petrov
Does this mean that GAE SSL support is practically useless for now? Because one should either stick to subdomain.appspot.com or use no SSL. On Jul 28, 6:23 pm, mdipierro wrote: > This is a security hazard > > On Jul 28, 10:15 am, Vidul Petrov wrote: > > > > > Is there a way the Auth methods to r

[web2py] Re: calling secured function from cron

2010-07-28 Thread Iceberg
I am digging out an old thread, quoted at the of this post, (up side down). I can confirmed Mika's problem does exist. In fact, not to mention cron feature, even a normal request from browser will be intercepted by any presence of @auth.requires(...) For example: @auth.requires(True) # or aut

[web2py] Re: GAE and Auth over SSL

2010-07-28 Thread mdipierro
This is a security hazard On Jul 28, 10:15 am, Vidul Petrov wrote: > Is there a way the Auth methods to run over GAE SLL (https://my- > domain.appspot.com) and return to the hosted domain the same session? > > If, for example, users are logged in onhttps://my-domain.appspot.com > they are still n

Re: [web2py] Re: File download in Form

2010-07-28 Thread Andrew Buchan
That works perfectly, thanks Massimo. On Wed, Jul 28, 2010 at 4:12 PM, mdipierro wrote: > If you use the db.table.field.store(...) function to handle the file > safely you can still do > > > {{=A('download',_href=URL(r=request,c='default',f='download',args='the.file.name.'))}} > > On Jul 28, 9:2

[web2py] GAE and Auth over SSL

2010-07-28 Thread Vidul Petrov
Is there a way the Auth methods to run over GAE SLL (https://my- domain.appspot.com) and return to the hosted domain the same session? If, for example, users are logged in on https://my-domain.appspot.com they are still not logged on http://www.my-domain.com. Does web2py support such cross-domain

[web2py] Re: File download in Form

2010-07-28 Thread mdipierro
If you use the db.table.field.store(...) function to handle the file safely you can still do {{=A('download',_href=URL(r=request,c='default',f='download',args='the.file.name.'))}} On Jul 28, 9:29 am, Andrew Buchan wrote: > Hello, > > Very simple, yet the documentation doesn't quite show how to d

[web2py] File download in Form

2010-07-28 Thread Andrew Buchan
Hello, Very simple, yet the documentation doesn't quite show how to do it: I want to show a download link to a file which is uploaded via SQLFORM, but the form from which it will be downloaded from is a standard FORM. Any pointers? Thanks

[web2py] Re: Doubt on plugin_wiki meta pages

2010-07-28 Thread mdipierro
Mind you can still create regular models. On Jul 28, 9:16 am, Bruno Rocha wrote: > Thank you, I'll put my whole code into meta-code > > 2010/7/28 mdipierro > > > > > No. only meta-code with IF and ONLY IF plugin_wiki_level=3 (the > > default) > > if you set level to 2 you can use widgets but not

Re: [web2py] Re: Doubt on plugin_wiki meta pages

2010-07-28 Thread Bruno Rocha
Thank you, I'll put my whole code into meta-code 2010/7/28 mdipierro > No. only meta-code with IF and ONLY IF plugin_wiki_level=3 (the > default) > if you set level to 2 you can use widgets but not code and if you > lower to 1 no widgets, no code, only markmin. > > On Jul 28, 9:02 am, Bruno Roch

[web2py] Re: book 3rd edition call of help

2010-07-28 Thread mdipierro
OK. Try the new General Index and Search features: http://web2py.com/book2/default/index On Jul 27, 5:49 am, mdipierro wrote: > This is very very preliminary: > >    http://web2py.com/book2 > > It is not editable (yet) and I am still adding material but it does > address a lot of issues. > Pleas

[web2py] Re: Doubt on plugin_wiki meta pages

2010-07-28 Thread mdipierro
No. only meta-code with IF and ONLY IF plugin_wiki_level=3 (the default) if you set level to 2 you can use widgets but not code and if you lower to 1 no widgets, no code, only markmin. On Jul 28, 9:02 am, Bruno Rocha wrote: > At plugin_wiki index there is: > > InfoPages started with undescore are

[web2py] Re: Discussion: How does cron call current app's controller?

2010-07-28 Thread mdipierro
Sorry I misunderstood the problem. There is no way cron can rely on the existence of a web server running. yet there should be an option to do what you suggest (but the URL would have to be provided). On Jul 28, 8:46 am, Iceberg wrote: > That is not the case. Let me better clarify my purpose in p

[web2py] Re: Radio, Checkbox, Display errors

2010-07-28 Thread mdipierro
yes. there is a problem. I will take a look asap. On Jul 28, 8:34 am, _po wrote: > Hi, > > I am using radios and (checkboxes) in a form, but errors (when submit) > are not displayed correctly. > The error is put in the middle of the radio field. Take a look here > :http://povauboin.free.fr/0aa08

[web2py] Doubt on plugin_wiki meta pages

2010-07-28 Thread Bruno Rocha
At plugin_wiki index there is: InfoPages started with undescore are considered system pages. In particular: >>> Can I create a page started with _ ? e.g _mycustomsystempage ? - meta-code must contain code and it will be executed for every page. - meta-menu must contain a descripti

Re: [web2py] Re: crud.search() fails on GAE with plugin_wiki

2010-07-28 Thread Bruno Rocha
Thanks Massimo, however, using set() I assure distict elements, using your LAMBDA solution, entries may duplicate. SEARCH to plugin_wiki is running here : http://web2pybrasil.appspot.com/cursoweb2py/ I need to search in different fields using a %LIKE% operator, my code now needs some improvement t

[web2py] Re: Discussion: How does cron call current app's controller?

2010-07-28 Thread Iceberg
That is not the case. Let me better clarify my purpose in pseudo code. How about changing line 277~282 of gluon/newcron.py from: elif action: commands.extend(('-P', '-N',models, '-S',app+'/'+command,

[web2py] Radio, Checkbox, Display errors

2010-07-28 Thread _po
Hi, I am using radios and (checkboxes) in a form, but errors (when submit) are not displayed correctly. The error is put in the middle of the radio field. Take a look here : http://povauboin.free.fr/0aa08aed-8a1e-47a5-ad98-5a8fbecad4aa/radio.png Firebug gives me : value not allowed Mineur At

[web2py] Re: How to store images sent using standard POST multipart/form-data encoding?

2010-07-28 Thread Zhe Li
Haha, works like a charm!! Thank you Massimo! On Jul 28, 2:48 pm, mdipierro wrote: > db(db.poll.id == 12).update(image > =db.poll.image.store(request.vars.upload_file.file,request.vars.upload_file > .filename)) > > On Jul 28, 6:05 am, Zhe Li wrote: > > > > > Hello everyone! > > > I am try to up

[web2py] Re: Strange radio button behavior

2010-07-28 Thread René
> desired. But after the form submits, page refreshes etc, the lastradiobuttons > in the list are selected. IE, rather than defaulting to > the first element selected as it did the first time, it defaults to > the last. As this form will be submitted many times in a row, and the > first option is

[web2py] Re: How to store images sent using standard POST multipart/form-data encoding?

2010-07-28 Thread mdipierro
db(db.poll.id == 12).update(image =db.poll.image.store(request.vars.upload_file.file,request.vars.upload_file.filename)) On Jul 28, 6:05 am, Zhe Li wrote: > Hello everyone! > > I am try to upload some pictures from safari on iPod, using this > methodhttp://www.cliqcliq.com/support/quickpic/#web-a

[web2py] Re: Discussion: How does cron call current app's controller?

2010-07-28 Thread mdipierro
You can do what you suggest. You cant find the post in request.env.server_port You see all variables here : http://web2py.com/examples/simple_examples/status yet I feel there may be a better way using a queue and a background process (without CRON). It depends on what this is really for. On Jul

[web2py] How to store images sent using standard POST multipart/form-data encoding?

2010-07-28 Thread Zhe Li
Hello everyone! I am try to upload some pictures from safari on iPod, using this method http://www.cliqcliq.com/support/quickpic/#web-app-integration and uploads are sent using standard POST multipart/form-data encoding. This is my code for receiving submissions:

[web2py] Re: Discussion: How does cron call current app's controller?

2010-07-28 Thread Iceberg
But cache.ram is theoretically faster than cache.disk. Besides, what is the pros and cons of using urllib.urlopen('http:// localhost:8000/myapp/...').read() to visit an action? My draft: Pros: - There is no need to app's environment for the cron job to run, hence avoids potential locking problems

Re: [web2py] Re: Mail function not working

2010-07-28 Thread Andrew Buchan
Thanks michele, I was just reading up on all that (windows logging is another thing I have no clue about :-) . I already have pywin32 extensions, which was necessary for some other part of web2py to run. I think my errors are being sent to the event viewer as information from web2py does show up t

[web2py] Re: web2py_win.zip can not use cache.disk()?

2010-07-28 Thread mdipierro
I see the problem. There must have been an error in building the win distribution. This takes me some time so I cannot fix it overnight. Meanwhile, can you run it from source? It should work. On Jul 28, 4:16 am, Iceberg wrote: > Hi, did anyone who successfully uses web2py_win.zip and your app nee

Re: [web2py] Re: Mail function not working

2010-07-28 Thread Michele Comitini
http://sourceforge.net/projects/pywin32/ 2010/7/28 Michele Comitini > I do not use win since ages ( :) ), but i remember that using pywin32 > extensions it was easy to debug sending error from the application > running as a service to the windows logging service. > > > > 2010/7/28 Andrew Buc

[web2py] Re: [w2py-dev] Discussion: How does cron call current app's controller?

2010-07-28 Thread Massimo Di Pierro
oops I see the post now. On Jul 28, 2010, at 5:06 AM, Massimo Di Pierro wrote: The solution is cache.disk > PS: Using cache.disk() is not (yet) a workaround for web2py_win.zip. I > report a bug about that in another post. I do not recall this. Can you tell us more and point to the post?

[web2py] Re: database cannot be modified anymore : migration between v1.44 & current.

2010-07-28 Thread mdipierro
It was never evaled but I can see roblems with length being a string. ;-) On Jul 28, 3:49 am, Lionel Barret wrote: > Hi Massimo, I spent the night on this and I think I got it. > > The problem, it is indeed the length but with a twist. > > In the table I showed you (see above), the length is spec

[web2py] Re: How to get web2py to use https for logins and registration

2010-07-28 Thread mdipierro
You must configure apache to do it but I have a security objection. If you go on the clear (http) for all the other pages you are passing the session cookie in the clear. If an attacker has the session cookie, he can access the change_password page via https. This is not a web2py specific issue.

[web2py] Re: [w2py-dev] Discussion: How does cron call current app's controller?

2010-07-28 Thread Massimo Di Pierro
The solution is cache.disk > PS: Using cache.disk() is not (yet) a workaround for web2py_win.zip. I > report a bug about that in another post. I do not recall this. Can you tell us more and point to the post? Massimo On Jul 28, 2010, at 4:48 AM, Iceberg wrote: Scenario: In one of my sma

Re: [web2py] Re: Mail function not working

2010-07-28 Thread Michele Comitini
I do not use win since ages ( :) ), but i remember that using pywin32 extensions it was easy to debug sending error from the application running as a service to the windows logging service. 2010/7/28 Andrew Buchan > Massimo, > > Where is this meant to print to? I'm running the whole thing as >

Re: [web2py] Re: Mail function not working

2010-07-28 Thread Andrew Buchan
Massimo, Where is this meant to print to? I'm running the whole thing as a windows service so there's no command line open. Also there's tool.py and tools.pyc, I can only edit tools.py, but I'm thinking it's the pyc file which is being read? Do I need to recompile or do something similar? If so, I

[web2py] Discussion: How does cron call current app's controller?

2010-07-28 Thread Iceberg
Scenario: In one of my small enterprise app, my action is time consuming, so I use cache. Furthermore, I setup a cron job to "touch" this action frequently, hoping that other real users will be benefited by always have cache hits. Example as below. @cache(request.env.path_info,time_expire=1800,cac

[web2py] Re: call a function in another controller

2010-07-28 Thread ilovesss2004
I have solved the problem. Thanks alot to you all!

[web2py] User table questions...

2010-07-28 Thread Andrew Buchan
Hello, 1. I want to create my own registration page as I want to create group memberships at the same time, but what function do I call to add a new user (I presume a straight insert into auth_user won't do the trick?) 2. How do I make it so the user doesn't have to login every time they visit the

[web2py] web2py_win.zip can not use cache.disk()?

2010-07-28 Thread Iceberg
Hi, did anyone who successfully uses web2py_win.zip and your app needs a cache.disk()? I just tried that but encountered following error. I guess the problem is due to missing dbhash.py in web2py's windows builder. Massimo please take a look. Version 1.81.5 (2010-07-22 23:56:21) Database drivers

[web2py] Re: database cannot be modified anymore : migration between v1.44 & current.

2010-07-28 Thread Lionel Barret
Hi Massimo, I spent the night on this and I think I got it. The problem, it is indeed the length but with a twist. In the table I showed you (see above), the length is specified as a string : length="128". But in the Field documentation, the length is an int. I suppose the length was eval'd bef

Re: [web2py] now this is c...@_ol

2010-07-28 Thread Michele Comitini
very nice: +1 2010/7/27 mdipierro > http://github.com/saucelabs/monocle#readme > > simple yet effective

[web2py] How to get web2py to use https for logins and registration

2010-07-28 Thread Johann Spies
How do I setup web2py to use https for all authentications and user registration but normal http for the rest of the url's? Regards Johann --     "Be not deceived; God is not mocked: for whatsoever a      man soweth, that shall he also reap."                                   Galatians 6:7

[web2py] Re: book 3rd edition call of help

2010-07-28 Thread Graham Dumpleton
On Jul 27, 8:49 pm, mdipierro wrote: > This is very very preliminary: > >    http://web2py.com/book2 > > It is not editable (yet) and I am still adding material but it does > address a lot of issues. > Please use this thread to add comments in particular: > > What sections are missing? > What ne

Re: [web2py] Re: Strange radio button behavior

2010-07-28 Thread Mathieu Clabaut
Thanks ! On Wed, Jul 28, 2010 at 06:46, mdipierro wrote: > in trunk > > On Jul 27, 4:37 am, _po wrote: > > Hi Massimo, > > I sent you this last week : > > I hope the patch is still up to date... > > > > With this patch, radio widget can use 'cols' attribute ; As previously > > done for > > chec