Re: [web2py] Running multiple DAL transactions atomically

2014-11-23 Thread Michele Comitini
Can you describe what you mean by multiple? Multiple in a single flow? Or multiple in different concurrent flows? The latter is what you get by default in web2py. So if you worry about having concurrent processes working on that same queue you should stop worrying. The flow you describe is very

Re: [web2py] Re: web2py RESTful timeout

2014-11-23 Thread Michele Comitini
What db engine are you using? Are you sure you have no web2py shells open lying around with a long lasting transaction open? 2014-11-22 5:46 GMT+01:00 Bart : > My python script is getting a stock price from google finance and then > posting (using RESTful api) to my web2py application every 15 mi

[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-11-23 Thread Tom Øyvind Hogstad
What is the status of bootstrap3 now. It was reverted in trunc and I just started a project at that time. Started in bootstrap3, but I had not done much so I reverted to bootstrap2. Now I would like to go back/forward to bootstrap3 again before my project gets any larger. Tom Ø. kl. 09:13:38

[web2py] upper with Cyrillic

2014-11-23 Thread Александр Остыловский
how to get to work upper with Cyrillic ? db.wanted.fam.upper()==fam.upper() -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message beca

[web2py] web2py error on cygwin

2014-11-23 Thread Jorge Molongua
Hi. I'm using cygwin on Windows 8. I'm new to this. It reports a warning when I try to load web2py: "WARNING:web2py:GUI not available because Tk library is not installed". How can I work round this? I not literate in Linux. Attached is s screen shot. -- Resources: - http://web2py.com - http:/

Re: [web2py] web2py error on cygwin

2014-11-23 Thread Marin Pranjić
You don't need a gui, just type the password in the console (as in screenshot) Marin On Sun, Nov 23, 2014 at 6:40 AM, Jorge Molongua wrote: > Hi. I'm using cygwin on Windows 8. I'm new to this. It reports a warning > when I try to load web2py: "WARNING:web2py:GUI not available because Tk > libr

[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-11-23 Thread Anthony
You can use web2py with Bootstrap 3 (or any front end framework). It even has built-in formstyles and grid classes for Bootstrap 3 (though even without those, you can add your own custom formstyles and grid classes). Is there a particular problem you are having? Anthony On Sunday, November 23,

[web2py] web2py star rating

2014-11-23 Thread Massimo Di Pierro
I have been very unsatisfied with existing star rating plugins. First, they are too complex. Second, they required dedicated fonts/images while all the necessary symbols are already in unicode. So I made this: https://gist.github.com/mdipierro/f221957e002baa014c9a Just add this code at the

[web2py] Re: upper with Cyrillic

2014-11-23 Thread Massimo Di Pierro
Good question. No idea. left left hand side asked the database to perform capitalization in unicode. The right hand side does it in python. There is no guarante they will use the same rules for cyrillic. You can try: db.wanted.fam.upper()==fam.decode('utf8').upper().encode('utf8') but I cannot

[web2py] Re: web2py star rating

2014-11-23 Thread Massimo Di Pierro
Errata. You have to download it as "star.rating.js" into static/js and then include it as On Sunday, 23 November 2014 12:02:44 UTC-6, Massimo Di Pierro wrote: > > I have been very unsatisfied with existing star rating plugins. First, > they are too complex. Second, they required dedicated fon

[web2py] Re: web2py star rating

2014-11-23 Thread Niphlod
simple and effective, if you don't care about graphic niceties. Also, another example of "pre-minified" code ;-P But I don't think this should go in web2py's core. On Sunday, November 23, 2014 7:23:07 PM UTC+1, Massimo Di Pierro wrote: > > Errata. You have to download it as "star.rating.js" into

Re: [web2py] Running multiple DAL transactions atomically

2014-11-23 Thread Niphlod
beware of the dogs. What we faced with the scheduler and several implementations of transaction management in different backends showed multiple inconsistencies (especially when faced with concurrency). don't reinvent the wheel. -- Resources: - http://web2py.com - http://web2py.com/book (Docum

[web2py] Re: Scheduler misleading DEBUG logging when task reaches timeout

2014-11-23 Thread Niphlod
timeout gets passed as it is to the underlying base function. Python with timeout = 0 seems to exhibit a pretty strange behaviour, but I guess that is allowed just because in python "we're all consenting adults". Launching something that needs to return in 0 time is clearly something spectacula

[web2py] Re: Why all traffic forwarded to https and how to stop this ?

2014-11-23 Thread sabbir
Hi, Deployed using deployment script found here http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh *Found the problem. *The script created configuration is doing it: - * RewriteEngine

[web2py] Re: Why all traffic forwarded to https and how to stop this ?

2014-11-23 Thread sabbir
Here is the solution: Simply copy paste this: - WSGIProcessGroup web2py WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py WSGIPassAuthorization On AllowOverride None Require all d

[web2py] Re: Possible to use CAS/Single Signon with custom auth_db?

2014-11-23 Thread LoveWeb2py
Hi Massimo, So I should make appliance 1's auth_user match appliance 2? Appliance 2 is using a custom db model (it's the forum appliance) whereas appliance 1 is the default db.auth model. Is there additional code I could show that would help? On Saturday, November 22, 2014 1:21:51 PM UTC-5, Ma

[web2py] Re: Scheduler misleading DEBUG logging when task reaches timeout

2014-11-23 Thread Francisco Ribeiro
Niphlod, let me tell you that the "0" is very often interpreted as "disabled" in computing. For example in "select()" the famous UNIX system call, uses that convention for the timeout argument and the "same" happens when you use the snapshop length = 0 argument in "tcpdump -s 0" which is allo

[web2py] Re: Why all traffic forwarded to https and how to stop this ?

2014-11-23 Thread Anthony
Looks like the change to force HTTPS was only made a few months ago -- previously it worked as you suggest. I agree that the change should be reverted -- if you only have a self-signed SSL certificate, the current behavior will cause browser warnings. It should be up to the user to force HTTPS

[web2py] Re: Migrating only a single auth table ?

2014-11-23 Thread Chris Baron
Ah, I think I understand. Thank you. On Wednesday, November 19, 2014 10:29:17 AM UTC-6, Leonel Câmara wrote: > > No it won't fail, it won't try to recreate auth_user unless you deleted > your .table files, in which case you need to do a fake migration first. > -- Resources: - http://web2py.com

[web2py] after_update

2014-11-23 Thread Alex Glaros
anyone see what the error is with this after_update function? # Update displayName in db.SuperObject whenever Suggestion.suggestionTitle is updated in db.Suggestion def update_SuggestionDisplayName(set, ufields): table = 'Suggestion' if ('suggestionTitle' in ufields) else None if table: