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 followed a specification), or something
that requires discussion.

...and this thread has played its role. Now it's time, I propose, to
update the changelog. Nothing is broken, the problem is tiny and won't
affect most people. But the way it is now, a person who upgrades might
find that her code breaks, then either spend some time fixing it (and
may not fix it in the canonical way), or spend some time looking for
this thread.

If you put a warning in the changelog, as has been done other times, the
canonical fix will be available in the very directory of the web2py
installation, in the first file you should read before upgrading.

That's all I have to say, I don't have any trouble with changing a few
lines of my code, I understand it's for the better and I just want to
avoid trouble to some people over there. But if you don't think it's the
right thing to do, be my guest!

Have a nice day! I mean it :-) !
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQIcBAEBAgAGBQJU9X5uAAoJEATsOw+FDrzIvKMP+gJczrvySxmrDE7HahomTGFi
Rba/ygsi04xRb2ktISO4oZKBMFj6ZzW7nCTQXdG/9YpdzZWjCNEZJQS4TDUapZQG
xtzTAVLOTgXfNj1tr4oCRQuuEXBem9kHycUDs2VePeRUpTkx92Txgylnb3ipqWEh
pt63tUIyQwlb5y1AOw6Rw2DNan10DRLCd6ypPcgCILOJRrPAv1kO+AX8xOTVTXse
OS66hVlKJQKFCnsNVaqhD1PpJcjdOAetE9hqhlycK63vVHvNdjzzWM0yU22mC+z4
LGQRh7KGsMuk+hWq5UcLdrGLhNcr1/DdMPrRTn/BZCprpyoVhdP0CE3QdD6xQl1b
ypqlHDH+fuNz5EyEUrJSuTu3lobcSfb4Svh+T22cRESss3+hpg+WnLhB7kGHPCB2
3506J3Xo3n6qkJ2ZvL3NzrYpGG/S4wLeRce2AdMx3es8cXU91KyulojzzkRq5Hbl
CEVANYYZZoIpql0i8zq94kG0b0lw8MeZdJYSAqGbq2LmjYg3sAhXwol9zHwNa9dj
9MJwRLC7XfQP8pt/pV+HmzY3LxcpHOHzmUBSQwppPXH+dbjgA4mOv3MDjG/fsKjq
PXtpFYAkRf/rjb6oaiX0KIN2XPyxOXvj7im4ZrZrdr23z7IYvAbFGUiIzWvGWq50
7cJhX97hskVWNTWnUDGc
=AveM
-END PGP 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 this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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.client,db.address,db.purchase)
 form.element(_id='no_table_coupon_code')['_data-show-trigger'] = 
 'no_table_have_coupon'
 if form.accepts(request.vars):
 id = db.client.insert(**db.client._filter_fields(form.vars))
 form.vars.client=id
 id = db.address.insert(**db.address._filter_fields(form.vars))
 response.flash='Thanks for filling the form'
 return dict(form=form)



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 anyone familiar with py.test,

I'm using a fixture to grab access to the database to make sure the logic 
is working properly.

Namely:

from gluon.shell import env

from gluon.storage import Storage

@pytest.fixture()

def db():

web2py_env = env(appname, import_models=True)

web2py_env = Storage(web2py_env)

db = web2py_env.db

return db
When I use a sqlite database, I'm encountering lock issues, on a query 
where there really shouldn't be lock issues.

It's a simple delete query, run before a test to ensure the appropriate 
table is empty.

psuedocode:

db(db.table.id0).delete()
driver.get(url)

When running this separately as a test, or within a group of tests, it 
works fine, no lock issues.

When running this in the full regression, I'm getting database lock issues.

Then I switched to postgres for testing (I know -- cheap and dirty, but I 
wanted to see if that was really the issue).

So, then I started getting even stranger errors from gluon.contrib.pg8000

namely:

NoData Object
Msg Query Idle Object

etc. etc.

In the course of testing, I've seen basically every one of the possible 
pg8000 errors in the source.

Anyone have any clues as to where I might be able to track down the source?

Is it a thread issue, where I should have done from gluon import current 
and then set the db in the function?

I'm wondering if this is something to do with pytest's internals or 
web2py's or my own code.

Any thoughts would be greatly appreciated.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 ml.richard.vez...@gmail.com
wrote:

 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');
 mi.children('.dropdown-menu').stop(true,
 true).delay(200).fadeIn(400);
 }, function(){
 var mi = jQuery(this);
 mi.children('.dropdown-menu').stop(true,
 true).delay(200).fadeOut(function(){mi.removeClass('open')});
 });
   }
   hoverMenu(); // first page load
   jQuery(window).resize(hoverMenu); // on resize event
   jQuery('ul.nav li.dropdown
 a').click(function(){window.location=jQuery(this).attr('href');});

 I use to comment these lines in my app because I
 use jquery.hoverIntent.minified.js to improve menu dropdown behavior... So
 I was not having the issue, but recently I update to 2.9.5 and forget to
 comment these lines so I am having the issue...

 It should come from the .click()...

 I will try something...

 Richard

 On Thu, Feb 26, 2015 at 9:59 AM, Richard Vézina 
 ml.richard.vez...@gmail.com wrote:



 On Wed, Feb 25, 2015 at 5:15 PM, Dave S snidely@gmail.com wrote:



 On Wednesday, February 25, 2015 at 11:25:06 AM UTC-8, Richard wrote:

 Hello,

 I am not sure where is it from, but I notice and change in the behavior
 of CTRL + Click over main web2py menu and submenu entry which in the pass
 were only open an new tab conducting the user on the requested page base on
 menu entry link. But now, when doing CTRL + Click over menu and submenu
 entry new tab still get create and pointing over the proper location, but
 the actual page also get redirecting...

 Any idea?

 I will open a issue on github if you think that actually a regression
 issue?



 Past behavior  was  open top-level menu item, highlight entry for
 submenu, CTRL+click opens new tab which takes you to page corresponding to
 top-level item?

 New behavior -- the tab opens as before, but the tab you started on also
 changes to that location?


 YES, both tab get redirect to the link address which make useless the
 CTRL+Click...

 It may be related to a missing .stopPropagation() jQuery related to some
 recent change, I start looking to commit history, but I really don't know
 where to check exactly. About .stopPropagation() :
 http://stackoverflow.com/questions/26167017/how-to-open-new-tab-with-ctrlclick-instead-of-redirect-current-tab-in-jquery

 I maybe also completly wrong about .stopPropagartion()...

 Richard



 /dps

  --
 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 unsubscribe from this group and stop receiving emails from it, send
 an email to web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.





-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 wrote:

 Hi Yannick, 

 Probably it's a regression with hardcron, if you search the list you 
 can find several thread about that problem. 

 I had it several times in the past and simply I gave up using hard 
 cron in web2py. I ususally use the plain and simple unix cron to 
 schedule activities! 

 Sincerely, Angelo 

 2015-03-02 18:39 GMT+01:00 Massimo Di Pierro massimo.dipie...@gmail.com: 

  This usually happens when you open but you do not close connections. It 
 can 
  happen if you put open connections in cache-ram. Do you open many files? 
  
  
  On Monday, 2 March 2015 00:24:57 UTC-6, Yusuf Kaka wrote: 
  
  I've got the same error, was there any resolution? 
  
  On Monday, February 22, 2010 at 2:28:17 AM UTC+2, Pascal wrote: 
  
  Thanks for the note... I'm usually running Web2py through Wing IDE 
  since it is easy for debugging... 
  Please let me know if you have any questions regarding this issue 
  
  Yannick P. 
  
  On Feb 21, 4:02 pm, Massimo Di Pierro mdipie...@cs.depaul.edu 
 wrote: 
   This is interesting I will take a look asap. 
   
   Meanwhile, if you are not using cron, run web2py with -N. 
   
   Massimo 
   
   On Feb 21, 2010, at 1:28 PM, Yannick wrote: 
   
Hello mate, 
I'm using the latest version of Web2py and Mac OS and since few 
web2py 
release I have been having this problem and I don't know what is 
 the 
cause of this... 
When it happens I can't access my application anymore I got a this 
message from the browser: Internal error 
Ticket issued: unrecoverable  
So basicallly I just have to reboot the server to get my appl 
 working 
again... 
   
Here is the exceptions I got from Web2py: 
   
### 
Exception in thread Thread-106: 
Traceback (most recent call last): 
 File 
 /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/threading.py, line 486, in __bootstrap_inner 
   self.run() 
 File /Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py, 
 line 
229, in run 
   shell=self.shell) 
 File 
 /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/subprocess.py, line 587, in __init__ 
   errread, errwrite) = self._get_handles(stdin, stdout, stderr) 
 File 
 /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/subprocess.py, line 953, in _get_handles 
   errread, errwrite = os.pipe() 
OSError: [Errno 24] Too many open files 
 
Exception in thread Thread-107: 
Traceback (most recent call last): 
 File 
 /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/threading.py, line 486, in __bootstrap_inner 
   self.run() 
 File /Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py, 
 line 
229, in run 
   shell=self.shell) 
 File 
 /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/subprocess.py, line 587, in __init__ 
   errread, errwrite) = self._get_handles(stdin, stdout, stderr) 
 File 
 /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/subprocess.py, line 933, in _get_handles 
   p2cread, p2cwrite = os.pipe() 
OSError: [Errno 24] Too many open files 
# 
Exception in thread Thread-1: 
Traceback (most recent call last): 
 File 
 /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/threading.py, line 486, in __bootstrap_inner 
   self.run() 
 File /Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py, 
 line 
55, in run 
   s.run() 
 File 
 /System/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/sched.py, line 114, in run 
 File /Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py, 
 line 
47, in launch 
   crondance(self.path, 'hard', startup = self.startup) 
 File /Users/OnemeWs/App Server/web2py/gluon/contrib/cron.py, 
 line 
261, in crondance 
   f = open(crontab, 'rt') 
IOError: [Errno 24] Too many open files: 
## 
   
Please any idea ? 
  
  -- 
  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 unsubscribe from this group and stop receiving emails from it, send 
 an 
  email to web2py+unsubscr...@googlegroups.com. 
  For more options, visit https://groups.google.com/d/optout. 




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.id0).delete()...

And this may easily explained the lock of db.

Richard

On Tue, Mar 3, 2015 at 10:21 AM, Mark Graves mgrave...@gmail.com 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 iteration. (over 400 seconds).

 This includes a number of browser automation tasks using python and
 selenium.

 For anyone familiar with py.test,

 I'm using a fixture to grab access to the database to make sure the logic
 is working properly.

 Namely:

 from gluon.shell import env

 from gluon.storage import Storage

 @pytest.fixture()

 def db():

 web2py_env = env(appname, import_models=True)

 web2py_env = Storage(web2py_env)

 db = web2py_env.db

 return db
 When I use a sqlite database, I'm encountering lock issues, on a query
 where there really shouldn't be lock issues.

 It's a simple delete query, run before a test to ensure the appropriate
 table is empty.

 psuedocode:

 db(db.table.id0).delete()
 driver.get(url)

 When running this separately as a test, or within a group of tests, it
 works fine, no lock issues.

 When running this in the full regression, I'm getting database lock issues.

 Then I switched to postgres for testing (I know -- cheap and dirty, but I
 wanted to see if that was really the issue).

 So, then I started getting even stranger errors from gluon.contrib.pg8000

 namely:

 NoData Object
 Msg Query Idle Object

 etc. etc.

 In the course of testing, I've seen basically every one of the possible
 pg8000 errors in the source.

 Anyone have any clues as to where I might be able to track down the source?

 Is it a thread issue, where I should have done from gluon import current
 and then set the db in the function?

 I'm wondering if this is something to do with pytest's internals or
 web2py's or my own code.

 Any thoughts would be greatly appreciated.


  --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: [solved] Weird type 'exceptions.AttributeError' '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 
causing the issue.

For safety sake - don't use anything in a field name that can't be part of 
an object/variable name!

Thanks again.

Tom

On Saturday, January 10, 2015 at 5:20:39 AM UTC-8, Carlos Kitu wrote:

 Hi, just for other developers sake to save some time.

 I was getting this error:

 type 'exceptions.AttributeError' 'Row' object has no attribute 'id'

 Versión
 web2py™ Version 2.9.11-stable+timestamp.2014.09.15.23.35.11


 Traceback (most recent call last):
   File ./web2py/gluon/restricted.py, line 224, in restricted
 exec ccode in environment
   File ./web2py/applications/AlcalaFyE/controllers/appadmin.py, line 
 671, in module
   File ./web2py/gluon/globals.py, line 392, in lambda
 self._caller = lambda f: f()
   File ./web2py/applications/AlcalaFyE/controllers/appadmin.py, line 
 341, in update
 f='download', args=request.args[:1]))
   File ./web2py/gluon/sqlhtml.py, line 1168, in __init__
 self.record_id = str(record[field.name])
   File ./web2py/gluon/dal.py, line 7529, in __getitem__
 raise ae
 AttributeError: 'Row' object has no attribute 'id'

 It was quite confusing because I could create records (with appadmin or 
 smartgrid), and see them in a grid, and the problem only appeared when I 
 tried to view the record in a form.

 I do NEVER use international characters in field names, but as I am 
 spanish,  unintentionally wrote a Ñ character (U+00D1: N with a 
 diacritical tilde) in a field name. As soon as I replaced the Ñ with a N, 
 everything worked fine.
  
 I'm quite a new user of web2py, and as I'm dealing with the ins and outs 
 of web2py, I repeatedly skipped such an obvious question and was looking 
 for a more subtle error.
 As I couldn't find any reference to this problem in the forum, I thought I 
 would make sense to report it.

 I think web2py is a great product. Good job!

 Best regards.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
populated?

On Saturday, January 10, 2015 at 11:37:16 PM UTC+2, Pbop wrote:

 For what it is worth we have integrated a web2py app to two different 
 external cas providers both in http and https with no problem including 
 ssls with ssl3.0 disabled in favor of tls. 

 Anyone working on a shib sso? 

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 framework. 

I don't have a CS background, but would love to eventually learn enough to 
get involved (I've just come from a PHP background where I've developed my 
own small framework, to not have to reinvent the wheel each time I work on 
a new website).

Now to the question. 

I am working through the book Chapter 3, Built-in web2py wiki 

I got to this sentence (Try to create more pages such as index, 
aboutus, and contactus. Try to edit them.) and created a contactus page 
with a form that user can use to send me a question. I then tried it out 
and went to the database and found the table I had created db.contactus as 
well as all the db.auth tables. But I couldn't find where all the pages the 
wiki system creates are being stored. I went to the wikidemo folder and 
looked in databases and found that the sql.log did create wiki_media, 
wiki_page and wiki_tag tables. But these don't show up in my appAdmin to 
search, add, or edit. Is there a way I can have the appAdmin find them and 
add them?

Thanks,
Andres

 

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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://[Your CAS server]/cas, 
 
actions = ['login','serviceValidate','logout'], 

casversion = 2, 

casusername = cas:user)  

If you look in that file in CasAuth.__init__:

def __init__(self, g=None,  # g for backward compatibility ### 
 
 urlbase=https://web2py.com/cas/cas;,
 actions=['login', 'validate', 'logout'],
 maps=dict(username=lambda v: v.get('username', v['user']),
   email=lambda v: v.get('email', None),
   user_id=lambda v: v['user']),
 casversion=1,
 casusername='cas:user'
 ):

The maps argument is what you want. It maps fields from the JASIG response 
into fields in your auth_user table. CAS does not specify their names. Doh!


On Monday, 2 March 2015 11:56:34 UTC-6, Yusuf Kaka wrote:

 I've managed to get web2py to sign-on with JASIG CAS, however, none of the 
 attributes are being populated on web2py. All user fields in the DB are set 
 to None.

 Any ideas?

 On Monday, August 11, 2014 at 1:59:33 PM UTC+2, Tanu Mittal wrote:

 Is It possible to integrate web2py with Jasig CAS ? Also which other 
 python frameworks like Django, Flask can be integrated with Jasig CAS?



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 thread:
 
  2.9.12 includes mostly bug fixes but there is some major DAL 
 refactoring so we are concerned about backward compatibility. We think it 
 works but please let us know asap if this breaks your code.

 Certainly, major DAL refactoring would be a better description than 
 Modular DAL, thanks Giovanni in the changelog. That's the document we are 
 supposed to read before upgrading, and not every thread in this group.
 
  Now, to address your problem, we need to know /what/ broke.  Can you 
 give us some code examples?

 The examples were already in this thread:

  -from gluon.dal import Table
  +try:#web2py =2.9.12
  +   from gluon.dal.objects import Table
  +except:#web2py =2.9.11
  +   from gluon.dal import Table

  -from gluon.dal import Expression
  +try:#web2py =2.9.12
  +   from gluon.dal.objects import Expression
  +except:#web2py =2.9.11
  +   from gluon.dal import Expression

  -from gluon.dal import Rows
  +try:#web2py =2.9.12
  +   from gluon.dal.objects import Rows
  +except:#web2py =2.9.11
  +   from gluon.dal import Rows

 Anyway, I apologize that I could not make the tests earlier, and I want to 
 thank every one involved in this release. The changes I had to do are no 
 big deal, but there is so much emphasis in this project on not breaking 
 backwards compatibility, that I wanted to suggest to tell about this issue 
 in the changelog.

 Regards
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1

 iQIcBAEBAgAGBQJU9NRNAAoJEATsOw+FDrzIKbsP/RZx3E41AWYDpAZcFmQedcwp
 MH8w4O6u2UHKtFSk58zDcQRSuoHkOmyTL4CY+uR5LqHDrgQ+LQIV3mWpCSr7k7JR
 PIb9ZIJKvhrs03I67Hl/lYHVELE7+Zmur6V+EN1Fqid9l6CQ7UjucDsJpLTndMaO
 EO3DSqX10ZqoiOEyiCDl2F1G1dEt+B81QOT3W5KX4CabjyEyfEjcQHlpoXbYjdyx
 JXE/GSBbaqFT8g9QIIU/p/PN58vzW6EfH/COHz8GcRqc893AIdVxyKTvrVXfPwgs
 RkxtVchQdoC/OOHjiQHcnHTb18esPJxMCgxryVFVlLLNVUElf3qMOD7IBkDFStTE
 +oJ6eN4i91x9336GCxmmZLxeKy0MY6ctu+065ssEiG6GdkhsGH+ckh+EuRXiHRqP
 D9MTmmWdt2mqAkCJaALdObL4rUX2nn+z7aY9enHzGt4BEMd0nPY+9IWBU/9FEzk0
 nw86DCsuLzEN9LqC5vAsQp8LzAoM74ZkpbVsTiz1ZdAkaEPQ34gslQN6vHYeuH2y
 7US5RR9XgWUuf0DAy/+f6OI2AGsH2njF9cCfS+DaJ89Z6ZGcOEhxqk4DmR6/pBgU
 5YwU1UMPYmZUBgOBvByI/spY8tMT2B3fU2BewgZLstHGuMjwO1plXWdgmHUtGfzS
 PofspetlV4f7SU/Vm7zw
 =xBEb
 -END PGP 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 this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 iteration. (over 400 seconds).

 This includes a number of browser automation tasks using python and 
 selenium.

 For anyone familiar with py.test,

 I'm using a fixture to grab access to the database to make sure the logic 
 is working properly.

 Namely:

 from gluon.shell import env

 from gluon.storage import Storage

 @pytest.fixture()

 def db():

 web2py_env = env(appname, import_models=True)

 web2py_env = Storage(web2py_env)

 db = web2py_env.db

 return db
 When I use a sqlite database, I'm encountering lock issues, on a query 
 where there really shouldn't be lock issues.

 It's a simple delete query, run before a test to ensure the appropriate 
 table is empty.

 psuedocode:

 db(db.table.id0).delete()
 driver.get(url)

 When running this separately as a test, or within a group of tests, it 
 works fine, no lock issues.

 When running this in the full regression, I'm getting database lock issues.

 Then I switched to postgres for testing (I know -- cheap and dirty, but I 
 wanted to see if that was really the issue).

 So, then I started getting even stranger errors from gluon.contrib.pg8000

 namely:

 NoData Object
 Msg Query Idle Object

 etc. etc.

 In the course of testing, I've seen basically every one of the possible 
 pg8000 errors in the source.

 Anyone have any clues as to where I might be able to track down the source?

 Is it a thread issue, where I should have done from gluon import current 
 and then set the db in the function?

 I'm wondering if this is something to do with pytest's internals or 
 web2py's or my own code.

 Any thoughts would be greatly appreciated.




-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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://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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
really need to do is redo the layout.html from the ground up.

So here is my question: Which static files are must have for web2py?

For CSS we have:
bootstrap.min.css - which needs to be replaced with the new one
bootstrap-responsive.min.css - no idea what this is...
calendar - I assume this is used for Fields that are datetime, does it 
require bootstrap2?
web2py.css - This I assume is a must-have
web2py_bootstrap.css - How necessary is this?
web2py_bootstrap_nojs.css -  no idea what this is...


For JS we have:
bootstrap.min.js - which needs to be replaced with the new one
calendar.js - Again, for Fields I think
dd_belatedpng - No idea
jquery - Duh, though I'd rather point to CDN
modernizr.custom.js - Again, no idea...
share.js - This I know I don't need, as this application is for internal use
web2py.js - Assume it is a must have
web2py_bootstrap - Seems to only affect menus, so not a big deal


So there we have it, if you could shed light on what files need to be edit 
to work with bootstrap 3 and help me understand what each one is 
responsible for, I am at a loss.

Let me thank you in advance for any help you may provide.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: [solved] Weird type 'exceptions.AttributeError' '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 t.strat...@bitesizetv.com:

 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
 causing the issue.

 For safety sake - don't use anything in a field name that can't be part of
 an object/variable name!

 Thanks again.

 Tom

 On Saturday, January 10, 2015 at 5:20:39 AM UTC-8, Carlos Kitu wrote:

 Hi, just for other developers sake to save some time.

 I was getting this error:

 type 'exceptions.AttributeError' 'Row' object has no attribute 'id'

 Versión
 web2py™ Version 2.9.11-stable+timestamp.2014.09.15.23.35.11


 Traceback (most recent call last):
   File ./web2py/gluon/restricted.py, line 224, in restricted
 exec ccode in environment
   File ./web2py/applications/AlcalaFyE/controllers/appadmin.py, line
 671, in module
   File ./web2py/gluon/globals.py, line 392, in lambda
 self._caller = lambda f: f()
   File ./web2py/applications/AlcalaFyE/controllers/appadmin.py, line
 341, in update
 f='download', args=request.args[:1]))
   File ./web2py/gluon/sqlhtml.py, line 1168, in __init__
 self.record_id = str(record[field.name])
   File ./web2py/gluon/dal.py, line 7529, in __getitem__
 raise ae
 AttributeError: 'Row' object has no attribute 'id'

 It was quite confusing because I could create records (with appadmin or
 smartgrid), and see them in a grid, and the problem only appeared when I
 tried to view the record in a form.

 I do NEVER use international characters in field names, but as I am
 spanish,  unintentionally wrote a Ñ character (U+00D1: N with a
 diacritical tilde) in a field name. As soon as I replaced the Ñ with a N,
 everything worked fine.

 I'm quite a new user of web2py, and as I'm dealing with the ins and outs
 of web2py, I repeatedly skipped such an obvious question and was looking
 for a more subtle error.
 As I couldn't find any reference to this problem in the forum, I thought
 I would make sense to report it.

 I think web2py is a great product. Good job!

 Best regards.

  --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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.


 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 iteration. (over 400 seconds).

 This includes a number of browser automation tasks using python and
 selenium.

 For anyone familiar with py.test,

 I'm using a fixture to grab access to the database to make sure the logic
 is working properly.

 Namely:

 from gluon.shell import env

 from gluon.storage import Storage

 @pytest.fixture()

 def db():

 web2py_env = env(appname, import_models=True)

 web2py_env = Storage(web2py_env)

 db = web2py_env.db

 return db
 When I use a sqlite database, I'm encountering lock issues, on a query
 where there really shouldn't be lock issues.

 It's a simple delete query, run before a test to ensure the appropriate
 table is empty.

 psuedocode:

 db(db.table.id0).delete()
 driver.get(url)

 When running this separately as a test, or within a group of tests, it
 works fine, no lock issues.

 When running this in the full regression, I'm getting database lock
 issues.

 Then I switched to postgres for testing (I know -- cheap and dirty, but I
 wanted to see if that was really the issue).

 So, then I started getting even stranger errors from gluon.contrib.pg8000

 namely:

 NoData Object
 Msg Query Idle Object

 etc. etc.

 In the course of testing, I've seen basically every one of the possible
 pg8000 errors in the source.

 Anyone have any clues as to where I might be able to track down the
 source?

 Is it a thread issue, where I should have done from gluon import current
 and then set the db in the function?

 I'm wondering if this is something to do with pytest's internals or
 web2py's or my own code.

 Any thoughts would be greatly appreciated.


  --
 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 a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/WFAB-yKIygg/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 problem



*In default.py*

def test():
form = SQLFORM.factory(
Field('requiredfield', required=True, notnull=True),
Field('textfield', 'text', widget=ckeditor.widget)
)

if form.accepts(request.vars, session, keepvalues=True):
response.flash = 'Accepted'
elif form.errors:
response.flash = 'There are some errors'

return dict(form=form)

and

def index():
return dict(message=T('Hello World'))


*In index.html*

{{extend 'layout.html'}}

div class=editable
h1Hello World!/h1
pThis is my text. This whole content area is editable. Simply 
double-click somewhere in here
and magically, this whole area will turn into a WYSIWYG editor. 
Pretty cool, hu?
Go on, give it a shot!/p
/div

{{=ckeditor.edit_in_place('.editable', URL())}}


*In upload_file.html*

{{extend 'layout.html'}}

h2Upload file/h2
{{=form}}


{{ if url != : }}
script type=text/javascript
  window.opener.CKEDITOR.tools.callFunction({{=cknum}}, '{{=url}}');
/script
{{ pass }}


*In db.py*


from plugin_ckeditor import CKEditor
ckeditor = CKEditor(db)
ckeditor.define_tables()

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2015-03-03 Thread Niphlod
read here 
http://web2py.com/books/default/chapter/29/03/overview?search=wiki#Extending-the-auth-wiki-feature
 
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 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 framework. 

 I don't have a CS background, but would love to eventually learn enough to 
 get involved (I've just come from a PHP background where I've developed my 
 own small framework, to not have to reinvent the wheel each time I work on 
 a new website).

 Now to the question. 

 I am working through the book Chapter 3, Built-in web2py wiki 

 I got to this sentence (Try to create more pages such as index, 
 aboutus, and contactus. Try to edit them.) and created a contactus page 
 with a form that user can use to send me a question. I then tried it out 
 and went to the database and found the table I had created db.contactus as 
 well as all the db.auth tables. But I couldn't find where all the pages the 
 wiki system creates are being stored. I went to the wikidemo folder and 
 looked in databases and found that the sql.log did create wiki_media, 
 wiki_page and wiki_tag tables. But these don't show up in my appAdmin to 
 search, add, or edit. Is there a way I can have the appAdmin find them and 
 add them?

 Thanks,
 Andres

  


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 your time.

Rod


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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, Mar 2, 2015 at 4:22 PM, Guilherme Rosa gcr091...@gmail.com wrote:

 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
 really need to do is redo the layout.html from the ground up.

 So here is my question: Which static files are must have for web2py?

 For CSS we have:
 bootstrap.min.css - which needs to be replaced with the new one
 bootstrap-responsive.min.css - no idea what this is...
 calendar - I assume this is used for Fields that are datetime, does it
 require bootstrap2?
 web2py.css - This I assume is a must-have
 web2py_bootstrap.css - How necessary is this?
 web2py_bootstrap_nojs.css -  no idea what this is...


 For JS we have:
 bootstrap.min.js - which needs to be replaced with the new one
 calendar.js - Again, for Fields I think
 dd_belatedpng - No idea
 jquery - Duh, though I'd rather point to CDN
 modernizr.custom.js - Again, no idea...
 share.js - This I know I don't need, as this application is for internal
 use
 web2py.js - Assume it is a must have
 web2py_bootstrap - Seems to only affect menus, so not a big deal


 So there we have it, if you could shed light on what files need to be edit
 to work with bootstrap 3 and help me understand what each one is
 responsible for, I am at a loss.

 Let me thank you in advance for any help you may provide.

 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
 CAS provider URL + Username. What needs to be done to get the other fields 
 populated?


Looks like Massimo got back to you in the other thread ...  

(for those looking at this in the archives, 
URL:https://groups.google.com/d/msg/web2py/0fqPRI2tjvc/nDV4NyzpPwcJ
)

/dps


On Saturday, January 10, 2015 at 11:37:16 PM UTC+2, Pbop wrote:

 For what it is worth we have integrated a web2py app to two different 
 external cas providers both in http and https with no problem including 
 ssls with ssl3.0 disabled in favor of tls. 

 Anyone working on a shib sso? 



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 recycle --interfaces 
0.0.0.0:80;0.0.0.0:443:path_to_key:path_to_cert

should suffice for most cases.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 to 2.9.12

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': ('baz', None, 1.0, 2)}])) }}


-- 
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 a topic in the Google 
Groups web2py-users group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/web2py/9TZA25peXTE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 index.html
   


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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)
- 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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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, 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 index.html

-- 
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 a topic in the Google 
Groups web2py-users group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/web2py/9TZA25peXTE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 that can 
be used to convert the rows object to JSON?

From: Niphlod 
Sent: Tuesday, March 03, 2015 2:36 PM
To: web2py@googlegroups.com 
Subject: Re: [web2py] Re: Problems after upgrading to 2.9.12

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 (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 a topic in the Google 
Groups web2py-users group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/web2py/9TZA25peXTE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 (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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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://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 a topic in the Google 
Groups web2py-users group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/web2py/9TZA25peXTE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
dramatically faster at something, I'd pursue it, but my initial tests did 
not show a dramatic improvement so I'll probably just deploy on regular 
Python.

Just thought I'd mention it in case you're using some weird version of 
Python on your mac.  Speaking of which, is there some reason you're using 
Python 2.5 instead of a version, say, something like five years newer?

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
 commandline

 web2py.py -a recycle --interfaces 
 0.0.0.0:80;0.0.0.0:443:path_to_key:path_to_cert

 should suffice for most cases.


... so first let us know if you have a working command line version of what 
you want to do. 

nssm is easy after that. 

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
 app store. 
 In short, that means that you can start our own fully-functional web2py 
 cloud instance in less than 30 seconds and you can try it for free!

 This is the link to the web2py snap: 
 https://www.terminal.com/tiny/WELxJg3288





-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 michele.comit...@gmail.com:

 +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
 app store.
 In short, that means that you can start our own fully-functional web2py
 cloud instance in less than 30 seconds and you can try it for free!

 This is the link to the web2py snap: https://www.terminal.
 com/tiny/WELxJg3288



  --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Heroku deploy

2015-03-03 Thread 'Fernando Villarroel' via web2py-users
 web2py@googlegroups.com
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 my foo app folder.
And i have a Heroku account.

Regards

Enviado desde mi iPhone

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
like it may easier to create the adapter.


On Monday, February 13, 2012 at 9:54:05 AM UTC-8, Nolan Nichols wrote:

 I'm researching the nosql and graph database landscape for a web2py 
 application that will require the schema to evolve over time and 
 provide network/graph analysis metrics. 

 I started by looking at the Tinkerpop (http://tinkerpop.com/) stack 
 and the Bulbflow (http://bulbflow.com/) python library for interacting 
 with Tinkerpop graph databases like Neo4j and OrientDB. 

 It looks like there was interest a few months back in adapting 
 OrientDB's sql interface for web2py, and there is an open issue: 

 - http://code.google.com/p/web2py/issues/detail?id=407 

 A few questions: 

 What is the current status of an OrientDB/web2py adapter? 
 Is anyone currently using a graph database with web2py? 
 Any suggestions for using web2py DAI/templates with non-rdbms sources? 

 Cheers, 

 Nolan

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 hits my breakpoint on the try/except is crashes on this
code:
value = cache.disk.storage[key]

The key it is looking for is: 'all-wcprops'

Hmmm... that's an SVN file in a 'hidden' folder (.svn) :)

When I download Web2Py and run it, than everything works.


2015-03-03 13:14 GMT+01:00 Leonel Câmara leonelcam...@gmail.com:

 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://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 a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/3usaQxAFY0k/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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)
- 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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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': ('baz', None, 1.0, 2)}])) }}
  
  


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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://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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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
http://dev.s-cubism.com/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://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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 leonelcam...@gmail.com:

 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)
 - https://code.google.com/p/web2py/issues/list (Report Issues)
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/3usaQxAFY0k/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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');
mi.children('.dropdown-menu').stop(true,
true).delay(200).fadeIn(400);
}, function(){
var mi = jQuery(this);
mi.children('.dropdown-menu').stop(true,
true).delay(200).fadeOut(function(){mi.removeClass('open')});
});
  }
  hoverMenu(); // first page load
  jQuery(window).resize(hoverMenu); // on resize event
  jQuery('ul.nav li.dropdown
a').click(function(){window.location=jQuery(this).attr('href');});

I use to comment these lines in my app because I
use jquery.hoverIntent.minified.js to improve menu dropdown behavior... So
I was not having the issue, but recently I update to 2.9.5 and forget to
comment these lines so I am having the issue...

It should come from the .click()...

I will try something...

Richard

On Thu, Feb 26, 2015 at 9:59 AM, Richard Vézina ml.richard.vez...@gmail.com
 wrote:



 On Wed, Feb 25, 2015 at 5:15 PM, Dave S snidely@gmail.com wrote:



 On Wednesday, February 25, 2015 at 11:25:06 AM UTC-8, Richard wrote:

 Hello,

 I am not sure where is it from, but I notice and change in the behavior
 of CTRL + Click over main web2py menu and submenu entry which in the pass
 were only open an new tab conducting the user on the requested page base on
 menu entry link. But now, when doing CTRL + Click over menu and submenu
 entry new tab still get create and pointing over the proper location, but
 the actual page also get redirecting...

 Any idea?

 I will open a issue on github if you think that actually a regression
 issue?



 Past behavior  was  open top-level menu item, highlight entry for
 submenu, CTRL+click opens new tab which takes you to page corresponding to
 top-level item?

 New behavior -- the tab opens as before, but the tab you started on also
 changes to that location?


 YES, both tab get redirect to the link address which make useless the
 CTRL+Click...

 It may be related to a missing .stopPropagation() jQuery related to some
 recent change, I start looking to commit history, but I really don't know
 where to check exactly. About .stopPropagation() :
 http://stackoverflow.com/questions/26167017/how-to-open-new-tab-with-ctrlclick-instead-of-redirect-current-tab-in-jquery

 I maybe also completly wrong about .stopPropagartion()...

 Richard



 /dps

  --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.