[web2py] Re: Weird Error Message From Web2py - OSError: [Errno 24] Too many open files ???????

2015-03-03 Thread Joe Barnhart
By strange coincidence, I got the same error tonight, using web2py v.2.9.12-stable on the latest version of pypy (python written in python). In my case, I'm pretty sure it is a file handle leak caused by my code which handles scheduled insertion of files into the database. If pypy were dramat

[web2py] Heroku deploy

2015-03-03 Thread 'Fernando Villarroel' via web2py-users
" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Dear All. I have my app in my home folder ~/web2py/application/foo I do not understand how i can deploy on Heroku Anyone can explain how i can do I am trying to follow the book guide but i do not understand. I am using git bitbucket on

[web2py] Re: Current status of adapting OrientDB for web2py

2015-03-03 Thread Pumplerod
I'm curious if anyone has done any more to integrate OrientDB with the DAL. Or if not, if there is a guide of some sort for creating an adapter. I'm beginning to design a site around OrientDB and rather than keeping track of two systems one for Auth and one for the rest of my data it seems lik

[web2py] Re: nssm and web2py as a windows service

2015-03-03 Thread Tim Richardson
On Wednesday, March 4, 2015 at 6:43:03 AM UTC+11, Niphlod wrote: > > nssm isn't rocket science, from the web2py perspective. > The point usually is being able to run web2py passing arguments as you > need them ? > If you can do it by cmdline, nssm isn't an issue: just use the same > commandlin

Re: [web2py] Re: Get a Web2py cloud instance in less than 30 seconds

2015-03-03 Thread Michele Comitini
The snapshot is here: https://www.terminal.com/tiny/TCE3FlJ4vE 2015-03-04 0:08 GMT+01:00 mcm : > +1 > > thank you terminal.com! > > Il giorno lunedì 2 marzo 2015 22:14:51 UTC+1, Massimo Di Pierro ha scritto: > >> from Enrique @ terminal.com: >> >> We were playing a little bit with web2py and we t

[web2py] Re: Get a Web2py cloud instance in less than 30 seconds

2015-03-03 Thread mcm
+1 thank you terminal.com! Il giorno lunedì 2 marzo 2015 22:14:51 UTC+1, Massimo Di Pierro ha scritto: > > from Enrique @ terminal.com: > > We were playing a little bit with web2py and we think it's a really good >> product, so we decided create a new snapshot with web2py and add it to our >> a

Re: [web2py] Re: Problems after upgrading to 2.9.12

2015-03-03 Thread Naveed Ahmed
This helps a lot, thank you. From: Leonel Câmara Sent: Tuesday, March 03, 2015 2:53 PM To: web2py@googlegroups.com Subject: [web2py] Re: Problems after upgrading to 2.9.12 You can do this {{from gluon.serializers import json}} {{=XML(json(myrows), sanitize=False)}} -- Resources: - http://w

[web2py] Re: Problems after upgrading to 2.9.12

2015-03-03 Thread Leonel Câmara
You can do this {{from gluon.serializers import json}} {{=XML(json(myrows), sanitize=False)}} -- 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 receive

[web2py] Re: Can somebody please spot my mistake--------Trying to use CKeditor with web2py

2015-03-03 Thread Leonel Câmara
Hey, Can you try this slice instead http://www.web2pyslices.com/slice/show/1952/ck-editor4-plugin Get the plugin from here: https://github.com/timrichardson/web2py_ckeditor4 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

Re: [web2py] Re: Problems after upgrading to 2.9.12

2015-03-03 Thread Naveed Ahmed
Thanks. I did go along this path, but I was trying to use a database rows object, I need to iterate through it in the view, but javascript needs to iterate through it as well. The response json method works well for this, but as you mention it’s not a response. Is there a similar web2py method t

Re: [web2py] Re: Problems after upgrading to 2.9.12

2015-03-03 Thread Niphlod
it should be done in the controller, the view is where you present the data, not where you transform it. anyway, if you want to hurt yourself, you can do {{import json as myjson}} {{=myjson.dumps(['a', 'b', 'c', {1: 'x'}])}} -- Resources: - http://web2py.com - http://web2py.com/book (Documen

Re: [web2py] Re: Problems after upgrading to 2.9.12

2015-03-03 Thread Naveed Ahmed
Ok, how do I convert a python object to a json object in the view? From: Niphlod Sent: Tuesday, March 03, 2015 2:10 PM To: web2py@googlegroups.com Subject: Re: [web2py] Re: Problems after upgrading to 2.9.12 then, it's exactly as I said: the improper use of response.json. On Tuesday, March 3,

Re: [web2py] Re: Problems after upgrading to 2.9.12

2015-03-03 Thread Niphlod
then, it's exactly as I said: the improper use of response.json. On Tuesday, March 3, 2015 at 8:59:59 PM UTC+1, naveed wrote: > > Sorry, I should have been more clear. It’s caused by adding the line > > {{=(response.json(['foo', {'bar': ('baz', None, 1.0, 2)}])) }} > > in to the existing in

Re: [web2py] Re: Problems after upgrading to 2.9.12

2015-03-03 Thread Naveed Ahmed
Sorry, I should have been more clear. It’s caused by adding the line {{=(response.json(['foo', {'bar': ('baz', None, 1.0, 2)}])) }} in to the existing index.html From: Niphlod Sent: Tuesday, March 03, 2015 4:21 AM To: web2py@googlegroups.com Subject: Re: [web2py] Re: Problems after upgrading

[web2py] Can somebody please spot my mistake--------Trying to use CKeditor with web2py

2015-03-03 Thread niki
hi, So i am following this example (https://github.com/rochacbruno/web2py_ckeditor) step by step. This is what i have added to a new web2py app i created. I have installed the plugin. In view my output does not show any CKeditor. It is just a normal form. Does anyone know what could be the pro

[web2py] Re: auth.wiki() - accessing the tables created (wiki_media, wiki_page, wiki_tag)

2015-03-03 Thread Niphlod
read here about it On Tuesday, March 3, 2015 at 6:06:21 PM UTC+1, Andres Orjuela wrote: > > Hi! > > I just found web2py 2 weeks ago and am now working through the book, the > video tutorials an

[web2py] Re: nssm and web2py as a windows service

2015-03-03 Thread Niphlod
nssm isn't rocket science, from the web2py perspective. The point usually is being able to run web2py passing arguments as you need them ? If you can do it by cmdline, nssm isn't an issue: just use the same commandline web2py.py -a "" --interfaces "0.0.0.0:80;0.0.0.0:443:path_to_key:path_to_ce

[web2py] Re: In search of CAS 2 provider and consumer example

2015-03-03 Thread Dave S
On Tuesday, March 3, 2015 at 9:06:21 AM UTC-8, Yusuf Kaka wrote: > > I'm trying to establish what's meant to happen with the user details. My > CAS setup seems to be working, except that the user table is populated with > None for all fields accept: Registration identifier, which contains the >

[web2py] nssm and web2py as a windows service

2015-03-03 Thread Rod Watkins
Hi everyone, Could someone share with me their nssm configuration to run web2py on port 80 and port 443 with ssl on windows? I've tried to follow the book as well as researching here for fixes, but have had no luck. Either the service fails to load or if it does, I cannot connect. Thanks for

Re: [web2py] web2py static files and bootstrap 3

2015-03-03 Thread Richard Vézina
Hello Guilherme, Are you aware of wecolme optimized for bs3 : https://groups.google.com/d/msg/web2py/9ipT2xkXMhc/yi7sF2Uzm7MJ ? You may consider just starting from this app instead of try to do everything by yourself... Or you can get alot of inspiration from it with diff tools. Richard On Mon

Re: [web2py] Re: py.test database issues

2015-03-03 Thread Mark Graves
Hey Richard, Thanks! I did actually have that commit. I know its hard to say.. Thanks Massimo, I will try psycopg2 and let you all know if it continues. -Mark On Tue, Mar 3, 2015 at 11:02 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Can you try psycopg2 instead of pg8000. > >

Re: [web2py] Re: [solved] Weird 'Row' object has no attribute 'id' and Ñ error

2015-03-03 Thread Michele Comitini
You can use rname or entity quoting to support all of the names your chosen db engines support. Those are documented in the book. 2015-03-02 19:46 GMT+01:00 Tom Stratton : > Follow up to this (and a big Thank You for saving me a lot of digging!) > > I had field names with "$" in them which cause

[web2py] auth.wiki() - accessing the tables created (wiki_media, wiki_page, wiki_tag)

2015-03-03 Thread Andres Orjuela
Hi! I just found web2py 2 weeks ago and am now working through the book, the video tutorials and even the "Killer Web Development" tutorial. Thanks for all the documentation and resources. I am very impressed with what you have all done and look forward to learning and starting to use this fram

[web2py] web2py static files and bootstrap 3

2015-03-03 Thread Guilherme Rosa
I am trying to create a new app in web2py which will use bootstrap 3. I tried simply changing the bootstrap.min css and js but that caused a mess. I have read that nothing in web2py really relies in a UI framework, except maybe SQLFORM, which has styles for bootstrap3, so I assume that all I re

[web2py] Re: [solved] Weird 'Row' object has no attribute 'id' and Ñ error

2015-03-03 Thread Tom Stratton
Follow up to this (and a big Thank You for saving me a lot of digging!) I had field names with "$" in them which caused the same error. I believe that the rules for field names may be the same as the rules for variable names. I'm guessing that trying to reference a.b.c instead of a.b[c] is caus

[web2py] Re: In search of CAS 2 provider and consumer example

2015-03-03 Thread Yusuf Kaka
I'm trying to establish what's meant to happen with the user details. My CAS setup seems to be working, except that the user table is populated with None for all fields accept: Registration identifier, which contains the CAS provider URL + Username. What needs to be done to get the other fields

[web2py] Re: Customize incoming POST data

2015-03-03 Thread Jon M.
Astonishing support and goodwill, thanks a lot again Mr. Di Pierro! I will implement it that way in order to keep improving the infrastructure and performance of the back-end. Have a wonderful night and week! :D -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] Re: py.test database issues

2015-03-03 Thread Massimo Di Pierro
Can you try psycopg2 instead of pg8000. On Tuesday, 3 March 2015 09:21:46 UTC-6, Mark Graves wrote: > > I've been encountering some strange issues that I have never seen before. > > I'm running some a complete regression suite on an application. It's > pretty long running, in the current iteratio

Re: [web2py] Re: Please help us test the 2.9.12 binaries

2015-03-03 Thread Massimo Di Pierro
we will fix in the next version. I think we should not break that code. On Monday, 2 March 2015 15:21:25 UTC-6, Pablo Angulo wrote: > > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello, Dave! > > El 02/03/15 a las 21:26, Dave S escribió: > > Well, from the original message in this thr

[web2py] Re: Integration with Jasig CAS

2015-03-03 Thread Massimo Di Pierro
>From web2py/gluon/contrib/login_methods/cas_auth.py if you want to connect to a CAS version 2 JASIG Server use this: auth.settings.login_form=CasAuth( urlbase = "https://[

Re: [web2py] py.test database issues

2015-03-03 Thread Richard Vézina
without the exact test code difficult to say, but in what you shows, I would have put a db.commit() after the db(db.table.id>0).delete()... And this may easily explained the lock of db. Richard On Tue, Mar 3, 2015 at 10:21 AM, Mark Graves wrote: > I've been encountering some strange issues tha

Re: [web2py] Re: Weird Error Message From Web2py - OSError: [Errno 24] Too many open files ???????

2015-03-03 Thread Massimo Di Pierro
BTW. We do not support cron anymore since we have the scheduler. Cron causes other problems with locking of resources and memory build-up. It is not necessarily a bug, it is designed to guarantee start of execution not cap resource utilization. On Monday, 2 March 2015 11:49:20 UTC-6, AngeloC wr

[web2py] Re: ImportError: No module named duplicity.tarfile

2015-03-03 Thread Ramkrishan Bhatt
Thanks man all problem got solved. One last question is bugging me in SQLFORM.factory can we create dynamic form for one to many relation. Like person can have multiple address. So how can we achieve with composit form with SQLFORM.factory with multiple tables. Please send me example too. -- R

[web2py] py.test database issues

2015-03-03 Thread Mark Graves
I've been encountering some strange issues that I have never seen before. I'm running some a complete regression suite on an application. It's pretty long running, in the current iteration. (over 400 seconds). This includes a number of browser automation tasks using python and selenium. For an

[web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-03 Thread Leonel Câmara
Yes, it is created on demand if it isn't there, go ahead and svn delete it. -- 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

Re: [web2py] web2py menu and CTRL+Click redirect both actual and new tab

2015-03-03 Thread Richard Vézina
I think I solved it : https://github.com/web2py/web2py/issues/829 Richard On Tue, Mar 3, 2015 at 9:56 AM, Richard Vézina wrote: > Investigation, this issue is there since ever I guess... It comes from > web2py_bootstrap.js and particularly these lines : > > function hoverMenu(){ > jQuery('u

Re: [web2py] web2py menu and CTRL+Click redirect both actual and new tab

2015-03-03 Thread Richard Vézina
Investigation, this issue is there since ever I guess... It comes from web2py_bootstrap.js and particularly these lines : function hoverMenu(){ jQuery('ul.nav a.dropdown-toggle').parent().hover(function(){ adjust_height_of_collapsed_nav(); var mi = jQuery(this).addClass('open')

Re: [web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-03 Thread Eric Christiaanse
Hi, The folder itself is under svn control, the data in it isn't. It the cache folder created 'on demand'? When that's the case we can remove all svn control on it. 2015-03-03 15:01 GMT+01:00 Leonel Câmara : > Why is the cache folder under svn control? Files are keys values in the > current ca

[web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-03 Thread Leonel Câmara
Why is the cache folder under svn control? Files are keys values in the current cache disk implementation so you really can't have anything else putting files there. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - htt

Re: [web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-03 Thread Eric Christiaanse
Hi Leonel, Done that and cleaned the cache folder. When I call /appadmin/ccache the code breaks here: try: disk['ratio'] = disk['hits'] * 100 / value['hit_total'] The first time everything goes great with the from cache.disk.storage[key]: {'hit_total': 0, 'misses': 0} The second time it hit

[web2py] Re: cache.disk.clear() crashes in appadmin

2015-03-03 Thread Leonel Câmara
Hey Eric, web2py 2.9.12 does contain the fix, however your application's appadmin probably doesn't as the error is in appadmin which is a controller in your own application. You need to copy the one with the fix from the 2.9.12 welcome application and overwrite it. -- Resources: - http://web2

Re: [web2py] Re: Problems after upgrading to 2.9.12

2015-03-03 Thread Niphlod
uhm. isn't there https://github.com/web2py/web2py/blob/master/applications/welcome/views/default/index.html On Tuesday, March 3, 2015 at 12:09:47 AM UTC+1, naveed wrote: > > Looks like it’s caused by this line of code in index.html in the > welcome app: > > {{=(response.json(['foo', {'bar':

[web2py] Re: show_if is not working with SQLFORM.factory multitable

2015-03-03 Thread Ramkrishan Bhatt
Thanks Man, Working fine with me. On Monday, 2 March 2015 03:25:22 UTC+5:30, Leonel Câmara wrote: > > Turns out you're right, here's a possible workaround: > > def register(): > db.purchase.coupon_code.show_if = (db.purchase.have_coupon == > 'Individual') > > form=SQLFORM.factory(db.cli

Re: [web2py] Re: Please help us test the 2.9.12 binaries

2015-03-03 Thread Manuel Cameselle
Just another related problem (at plugin_solidtable ). from gluon.sqlhtml import table_field, represent, Row Don't know the equivalent for 'table_field'. Has changed its name os has disappear?. Regards. -- Resources: - http://web2py.com - http://web2

Re: [web2py] Re: Please help us test the 2.9.12 binaries

2015-03-03 Thread Pablo Angulo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 El 03/03/15 a las 00:43, Dave S escribió: > Well, that's what this thread is about. Finding out what broke, whether it > is a new bug or a place where backwards compatibility /needs/ to be broken (for example , having in the old versions incorrectly