[web2py] Australian Users

2014-12-16 Thread Anthony Smith
Hi are there any users in Australia willing to help tutor in web2py? cheers -- 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

Re: [web2py] Re: Off Topic WAKANDA

2014-12-16 Thread Manuele Pesenti
Il 16/12/14 17:51, Leonel Câmara ha scritto: > Frankly, I abhor most "visual" tools for programmers +1 :) M. -- 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 Issue

[web2py] 2.9.9 last version ok on GAE?

2014-12-16 Thread Otto Domínguez
Just testing some code. The admin interface works ok on 2.9.9 but does not on 2.9.10 nor 2.9.11. To my untrained eye, it seems it is missing some CSS. Sorry the screenshot is in spanish, but it shows the general idea. Please advice. -- Resources: - http://web2py.com - http://web2py.com/book (D

Re: [web2py] Installation of an editor plugin in web2py app

2014-12-16 Thread Ramashish Gaurav
I used the first implementation of XML ( where sanitisation is true ), but few formatting effects are not working right. I solved the problem of underlining the text by including 'u' tag in list of permitted tags, but couldn't solve the problem of font size, font family, font colour, backgroun

[web2py] Re: Electronic voting anybody?

2014-12-16 Thread Alex Glaros
any idea on how to resolve this? Cannot import module 'rsa' thanks Alex Glaros -- 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 messa

[web2py] Re: Scheduler: tasks are always assigned to the same running worker.

2014-12-16 Thread Pengfei Yu
Hi Niphlod, Thanks for your reply! The problem is the 5681 is taking the task 1 and it is RUNNING (See the worker stats of worker 1). But at the same time, the task is still assigned to 5681, but not two other ACTIVE workers, 5685 and 5690. I previously thought the reason might be in the status

[web2py] How do you handle audits?

2014-12-16 Thread Massimo Di Pierro
Record certainties is all you need. You can add a custom in field to the Auth.signature -- 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 thi

[web2py] Use of IDE on Heroku

2014-12-16 Thread Massimo Di Pierro
Yes. -- 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 because you are subscribed to the Google Groups "web2py-users" group. To u

[web2py] Re: A helper and delete argument

2014-12-16 Thread Pavel
Thanks:) On Sunday, December 14, 2014 1:40:15 PM UTC+1, Niphlod wrote: > > A(, noconfirm=True) > > On Friday, December 12, 2014 2:09:59 PM UTC+1, Pavel wrote: >> >> I have another question: >> Example from works fine. >> But, how to prevent showing popup message with warning about deleting >>

[web2py] Re: json empty with jquery

2014-12-16 Thread Leonel Câmara
It should, but it should also be in request.vars which is the standard place to deal with it, you should have request.vars.key and request.vars.key2. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.

[web2py] Re: json empty with jquery

2014-12-16 Thread Jacinto Parga
YES!!! Finally. Thanks so much. The only thing now is how to handle the string in the controller. I guess it should be stored in reques.post_vars El martes, 16 de diciembre de 2014 19:36:04 UTC+1, Leonel Câmara escribió: > > You're already using jquery. I think the problem is that you're specif

[web2py] Re: json empty with jquery

2014-12-16 Thread Leonel Câmara
You're already using jquery. I think the problem is that you're specifying the contenttype. Remove that line and let it use formencode. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/is

[web2py] Re: json empty with jquery

2014-12-16 Thread Jacinto Parga
Yes, it should. I don't know why not. Maybe I'll try with jquery... El martes, 16 de diciembre de 2014 18:59:18 UTC+1, Leonel Câmara escribió: > > Well > > {{=BEAUTIFY(response._vars)}} > > Won't see anything because the vars are only there in the ajax request. > That's why it works in your alert

[web2py] Re: Off Topic WAKANDA

2014-12-16 Thread Willoughby
+1 "they are made to sell to managers who don't know better and think anyone can program now that they only need to drag some widgets." On Tuesday, December 16, 2014 11:51:30 AM UTC-5, Leonel Câmara wrote: > > Not exactly, I just don't see it as much of a gain to just defining the > models the w

[web2py] Re: json empty with jquery

2014-12-16 Thread Leonel Câmara
Well {{=BEAUTIFY(response._vars)}} Won't see anything because the vars are only there in the ajax request. That's why it works in your alert. It should work with POST too. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

[web2py] Re: json empty with jquery

2014-12-16 Thread Jacinto Parga
I did with {{=BEAUTIFY(response._vars)}} and the result is: datos: So request.vars is empty. If I change the post method for a get method, I can see the correct result at the alert window, but not in the controller, I mean it works in the client side: Wiht get method:

[web2py] Re: json empty with jquery

2014-12-16 Thread Leonel Câmara
Humm request.vars shouldn't be empty because you're sending them in data. Add a print request.vars to the controller and see what's there. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py

[web2py] Re: json empty with jquery

2014-12-16 Thread Jacinto Parga
Ok, I.m getting closer. So I change my url call, like this url:'{{=URL('default','test2.json',args='data.datos')}}', but I still have an empty reques.vars. How should I call the controller to pass the data field as a json from the view scritp to the controller? What I am looking for is to send

[web2py] Re: json empty with jquery

2014-12-16 Thread Leonel Câmara
Well it's supposed to be empty. You're calling the controller like this: http://127.0.0.1:8000/MFREG/default/test2.json This URL has neither args nor vars. Then you do this: datos = str(request.vars) datos2= request.args(0) request.vars is an empty Storage so when you convert it to str

[web2py] Re: Off Topic WAKANDA

2014-12-16 Thread Leonel Câmara
Not exactly, I just don't see it as much of a gain to just defining the models the way web2py does. I'd rather have the reverse in web2py where a nice diagram would be generated from the models, that can be useful if you need to document your table structure. Frankly, I abhor most "visual"

Re: [web2py] Re: Off Topic WAKANDA

2014-12-16 Thread António Ramos
Do you think the same about the visual model designer? 2014-12-16 15:26 GMT+00:00 Leonel Câmara : > > Which is almost every time ever, except for extremely simple stuff where I > can just use the HTML generated by SQLFORM and grid. > > Any WYSIWYG interface that actually lets you do anything the p

[web2py] Re: json empty with jquery

2014-12-16 Thread Jacinto Parga
I mean, I try to send data: {'key':'value','key2':'value2'} so I expect to get {'key':'value','key2':'value2'} in the controller. I've tried your suggestion and that's the result:

[web2py] Re: migrate and fake_migrate

2014-12-16 Thread Jose
> entirely different issue here, thrown at database level rather than > previous ones that were raised from web2py code > this is a well-known gotcha > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#SQLite > Two things to note: 1) It's not the same case that

[web2py] Re: migrate and fake_migrate

2014-12-16 Thread Niphlod
> Run the model for the *second* time. It works well. > > Run the model for the *third* time. Fails: > > *OperationalError: duplicate column name: f5* > > entirely different issue here, thrown at database level rather than previous ones that were raised from web2py code this is a well-known

[web2py] Re: Scheduler: tasks are always assigned to the same running worker.

2014-12-16 Thread Niphlod
Uhm, really strange. Keep things simple to reproduce: queue tasks that are something like import time def testtask(): time.sleep(60) return 1 and see if the behaviour is reproducible. Here I don't see anything wrong: 5861 is ACTIVE (meaning there's nothing actively running on it, or i

[web2py] Re: Maximum size session variable

2014-12-16 Thread Niphlod
sessions are by default stored in pickles saved into the sessions/ folder. Aside from being something that pickle itself can't handle in your environment, no limits are enforced on web2py's side. On Monday, December 15, 2014 4:20:13 PM UTC+1, Richard D wrote: > > Hi, > > We have strange behaviou

[web2py] Re: LOAD with ajax_trap

2014-12-16 Thread Anthony
Can you show your code? There are some peculiarities with non-ajax LOAD components (they do not re-run models, but they create their own fresh response object, which is unaffected by models). It may end up being easier to just use ajax. Anthony On Tuesday, December 16, 2014 10:19:41 AM UTC-5,

[web2py] Re: Off Topic WAKANDA

2014-12-16 Thread Leonel Câmara
Which is almost every time ever, except for extremely simple stuff where I can just use the HTML generated by SQLFORM and grid. Any WYSIWYG interface that actually lets you do anything the programming language does would be at least as complex as the programming language, it never is because th

[web2py] Re: Connect to Sybase ASE 15.7

2014-12-16 Thread Leonel Câmara
In the DAL's SybaseAdapter if you change this line: driver_args.update(user = credential_decoder(user), password = credential_decoder(password)) to: driver_args.update(user = credential_decoder(user), passwd =

[web2py] LOAD with ajax_trap

2014-12-16 Thread Robin Manoli
Hey! I'm testing to use LOAD with ajax_trap = True, thinking that initially it will load the component without ajax, and when I post a form inside it the new content will return with ajax. The problem I'm having is with the request.vars. The controller that LOAD is calling has the correct requ

Re: [web2py] Installation of an editor plugin in web2py app

2014-12-16 Thread Maboroshi
Web2py has really decent security issue prevention built in, see here: http://web2py.com/books/default/chapter/34/01/introduction#Security *cheers :D On Mon, Dec 15, 2014 at 11:49 PM, Ramashish Gaurav wrote: > > Thanks all the way Andrew. This was the perfect solution to my problem, > for wh

Re: [web2py] Re: Off Topic WAKANDA

2014-12-16 Thread António Ramos
It generates code(html,css) but you have acces to it if you want to change it. 2014-12-16 15:02 GMT+00:00 António Ramos : > > The purpose is productivity !! > > 2014-12-16 14:55 GMT+00:00 Leonel Câmara : >> >> Hell no. Why would I want a stupid wysiwyg interface generating code for >> me. I am co

Re: [web2py] Re: Off Topic WAKANDA

2014-12-16 Thread António Ramos
The purpose is productivity !! 2014-12-16 14:55 GMT+00:00 Leonel Câmara : > > Hell no. Why would I want a stupid wysiwyg interface generating code for > me. I am completely against this kind of stuff. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://g

[web2py] Re: Off Topic WAKANDA

2014-12-16 Thread Leonel Câmara
Hell no. Why would I want a stupid wysiwyg interface generating code for me. I am completely against this kind of stuff. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Repo

[web2py] Re: json empty with jquery

2014-12-16 Thread Leonel Câmara
What do you mean it's empt? It's an object. Try and change your alert to alert("Data: "+ data.datos); -- 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) --- Yo

[web2py] json empty with jquery

2014-12-16 Thread Jacinto Parga
Hi, it's very simple but I cannot find the mistake. I am tryint to pass a json from browser to controller with ajas. The result is that the data object in the script is empty: The view: {{extend 'layout.html'}} Template default/test2.html {{=BEAUTIFY(response._vars)}} $(document).rea

[web2py] Off Topic WAKANDA

2014-12-16 Thread António Ramos
Hello just want to share something i really enjoyed playing around this week. Can web2py get some "borrowed" ideas from WAKANDA ? https://www.youtube.com/watch?v=5NckxvjOnr0#t=70 Regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/w

Re: [web2py] Re: removing items from cache not working

2014-12-16 Thread Paolo Valleri
I will fix it later today On Dec 16, 2014 1:43 PM, "Alex" wrote: > exactly, that's the issue. Now it makes sense why it worked on very rare > occasions. A test for this use case would be a good idea. here is the code > in 2.4.6 which runs fine: > r = re.compile(regex) > for (key,

[web2py] Re: SocketTimeout: Socket timed out before request

2014-12-16 Thread Antonio Salazar
I know this is an old thread, but it's still the top Google result for this error message. It's also thrown with nested double braces, even inside a long comment, like: {{''' {{if true:}} {{pass}} '''}} Deleting the nested braces fixed the error. I was trying to comment code to convert a view

[web2py] Password Encryption (API)

2014-12-16 Thread Samuel Sowah
Hello, I'm trying to build an api for a web2py application and I'm stuck with authentication. Not that I haven't done it, but I don't know how to go about it. Consider login for instance, if I want to return a status true indicating a successful login attempt, eg. #api controller #url/api/login

[web2py] Connect to Sybase ASE 15.7

2014-12-16 Thread Anton Saltaev
Hi Try to connect Sybase ASE 15.7 Edit db.py db = DAL('sybase://user:password@server/db_name') When the application starts getting error: Failure to connect, tried 5 times: Traceback (most recent call last): File "gluon/dal.py", line 8038, in __init__ File "gluon/dal.py", line 700, in __call__

[web2py] Re: removing items from cache not working

2014-12-16 Thread Alex
exactly, that's the issue. Now it makes sense why it worked on very rare occasions. A test for this use case would be a good idea. here is the code in 2.4.6 which runs fine: r = re.compile(regex) for (key, value) in storage.items(): if r.match(str(key)):

[web2py] Re: removing items from cache not working

2014-12-16 Thread Paolo Valleri
Hi Alex, I think this is the commit you are looking for https://github.com/web2py/web2py/commit/0dbdf8c676547071d608f800f72d7c3d0aa6ebda Only the first element matching the regex is deleted. I'd revert that commit, and it'd be nice to add a test to better check that issue Paolo On Tuesday, Dec

[web2py] Re: removing items from cache not working

2014-12-16 Thread Alex
seems like this is related to a change in web2py. Until recently I used web2py 2.4.6 and I never had a problem - I just tested it again. In 2.4.6 the original regex works. After I upgraded to 2.9.11 the regex doesn't work anymore. Am Dienstag, 16. Dezember 2014 12:04:18 UTC+1 schrieb Alex: > >

[web2py] Re: removing items from cache not working

2014-12-16 Thread Alex
That would make sense. But it's still the same result. I've changed my cache keys to avoid dots and only use underscore instead: adminsetting_limits and now I can delete the cached values without any problems: cache.ram.clear(regex=r'adminsetting.*') I still don't fully understand why the o

[web2py] Re: Hyphen in application name

2014-12-16 Thread tim . nyborg
After some further digging, I'm not sure map_hyphens can possibly work on application names as things sit. In map_app() in rewrite.py, the incoming app name is never translated. I added the following code near the top of the function, and everything started to work. if routers.BASE.ma

[web2py] Re: Hyphen in application name

2014-12-16 Thread tim . nyborg
I've put Routes.py in the root web2py directory. You may be right about a bug, though. I've loaded up a fresh local copy of web2py, created an app called a_b, and set up the routing: routers = dict( # base router BASE=dict( default_application='welcome', map_hyphen=Tru

[web2py] next release tags

2014-12-16 Thread Manuele Pesenti
Hi *, are you going to tag a "stable" release 2.10.* in the near future? Before the introduction of Bootstrap 3? Thank you Manuele -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/is