[web2py] session.connect() on 127.0.0.1 or on domain.

2014-07-01 Thread Annet
I have a front-end (init) and a back-end (myleoneuxs) application in db.py of the init application I set: session.connect(request, response, masterapp="myleonexus") so they share the same session. The init application has the following menu items: {{if auth.is_logged_in():}} myLeonexus {{els

[web2py] Re: auth.login() and use of _next

2014-07-01 Thread lyn2py
I just saw this post, and it explains the issue I'm facing. I guess will wait for the patch. https://groups.google.com/forum/#!topic/web2py/e5eNdZnW4uc My version: 2.9.5-trunk+timestamp.2014.06.14.10.06.38 (Running on Rocket 1.2.6, Python 2.7.1) On Tuesday, July 1, 2014 11:36:00 AM UTC+8,

[web2py] Re: improving uwsgi configuration

2014-07-01 Thread lyn2py
Hi Niphlod, I'm using nginx, uwsgi, ubuntu setup as well. And restarting the uwsgi-emperor caused all my apps to fail with Internal errorTicket issued: unrecoverable I need to get the apps back without having to reinstall everything... Newbie question… where can I find web2py2.xml to remove th

[web2py] Re: improving uwsgi configuration

2014-07-01 Thread lyn2py
Sorry for the noise, I have resolved it after some mucking around. For those who run into similar situations, you may find your answers in the uwsgi.log (errors are logged there) You may need to muck around to get to it, if yours isn't already at /var/log/uwsgi/uwsgi.log Good luck! On Thursd

[web2py] Re: auth.login() and use of _next

2014-07-01 Thread Massimo Di Pierro
It should be fixed. Is it not? On Tuesday, 1 July 2014 03:20:30 UTC-5, lyn2py wrote: > > I just saw this post, and it explains the issue I'm facing. I guess will > wait for the patch. > > https://groups.google.com/forum/#!topic/web2py/e5eNdZnW4uc > > My version: > 2.9.5-trunk+timestamp.2014.06.14

[web2py] Re: tip of the day. The power of routes

2014-07-01 Thread lyn2py
I don't know how I missed this, but these routes are working very well and very stable on production server. Thanks Massimo for sharing the great tip! On Monday, June 23, 2014 12:51:03 PM UTC+8, Massimo Di Pierro wrote: > > Can you post the complete correct script? thanks. > > On Sunday, 17 Oct

[web2py] how to trier submit action of form(SQLFORM) under separated div(outside form)

2014-07-01 Thread Andrey K
Dear web2py users, I have a straight forward need in trigger submit action of sqlform outside of form div - by clicking other button and hide original submit button on the form. Can I do it and how? I have only found that I can hide submit button on the original w2p form by using: def myform():

[web2py] Re: session.connect() on 127.0.0.1 or on domain.

2014-07-01 Thread Anthony
By default the session cookie will not be shared across subdomains. Try adding something like the following in a model file in both apps: response.cookies[response.session_id_name]['domain'] = '.leonexus.com' Anthony On Tuesday, July 1, 2014 4:07:17 AM UTC-4, Annet wrote: > > I have a front-end

[web2py] Re: When to use jQuery.ajax or $.web2py.component ?

2014-07-01 Thread Anthony
Note, LOAD is just a server-side helper that creates an empty DIV that ultimately gets filled via a call to $.web2py.component when the parent page is initially rendered in the browser. Anthony On Tuesday, July 1, 2014 12:42:21 AM UTC-4, Andrew W wrote: > > Thank you Anthony, > I have read that

[web2py] SQLEDITABLE plugin

2014-07-01 Thread 'kato' via web2py-users
Hi. I tried to make SQLEDITABLE plugin. demo-page: http://docs1.erp2py.com/sqleditable/demo/demo_en.html It is similar as gluon/contrib/spreadsheet. But, it is easy to use more. If you are interested, please try. Thanks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentatio

[web2py] Re: importing a module that has db

2014-07-01 Thread Kurt Jensen
Thank You! That did it... I was missing current in *models/db.py.* Now the only problem to solve is that I can not get* URL()* in Module *images.py* to point to *http://127.0.0.1:8000/images/* When I view *http://127.0.0.1:8000/articles/edit/2* which includes module *images.py, * URL("images/sh

[web2py] Using Sphinx to automatically create documentation of an application

2014-07-01 Thread Luis Garcia
Hi all, I am just working in a project that involves to create a large App for web2py and we would like to use Sphinx to read the docstring documentations that we already have in the code. I tried to use the autodoc but some problems arise when I tried to make the build. I saw that the web2py

[web2py] can we make E-commerce web portal in web2py for multiple users and hits.

2014-07-01 Thread kanchan
I have to develop a ecommerce software with payment gateway also in web2py. In this more than 500 users can use and hit it simulataneously . My query is that will software speed decrease on multiple user hits or web2py will not comfortable for this . -- Resources: - http://web2py.com - htt

[web2py] can we make e-commerce web portal in web2py with multiple hits and users.

2014-07-01 Thread kanchan
we have to develop a complete E-commerce software with payment gateway also . In this software more than 500 users will use it , hit it simultaneously . So my query is that does web2py can handle multiple user easily , or will it decrease the software speed if we make it in web2py or any other

[web2py] Security Problem: appadmin is accessible whithout any authentication

2014-07-01 Thread Detlev Bielz
Hello, we, a small company, are using web2py for some web services with a couple of different apps we developed ourselves. Recently, a collegue of mine pointed me to the fact, that he was able to access *https://ourdomain/our_app/appadmin/index* whithout having to authenticate in any way. Since

[web2py] Re: Sending the ID of the newly registered user in email message (auth.messages.verify_email)

2014-07-01 Thread Kenwyn Pilgrim
Massimo Thanks. Your suggestion to change the code in gluon/tools.py works like a charm. I am now able to send the ID in email. Thanks much (I had initially *misread *your answer as *%(id)s **shouldn't **be allowed*) On Wednesday, June 25, 2014 10:52:03 AM UTC-5, Massimo Di Pierro wrote: > > wro

[web2py] Any one intergrated Indian Payment Systems with web2py app?

2014-07-01 Thread Sarbjit
Hi All, Has any one integrated Indian Payment System with web2py app. In India, ccavenue seems to be more popular (http://www.ccavenue.com/quick.jsp) but they doesn't appears to provide python support. But apparently, I found few Django app's integarted with ccavenue on google, has any one im

[web2py] Re: auth.login() and use of _next

2014-07-01 Thread lyn2py
Thanks for clarifying Massimo, I have pulled the latest web2py from trunk and it is now working. Version: 2.9.5-trunk+timestamp.2014.06.30.09.56.25 (Running on Rocket 1.2.6, Python 2.7.1) Looking at the dates it was fixed within the 2-week period. Thank you!!! On Tuesday, July 1, 2014 9:10:56

[web2py] Re: session.connect() on 127.0.0.1 or on domain.

2014-07-01 Thread Annet
Hi Anthony, Thanks for your reply. I added response.cookies[response.session_id_name]['domain'] = '.leonexus.com' > to both apps and now the menus display the correct items. Best Annet. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web

Re: [web2py] Any one intergrated Indian Payment Systems with web2py app?

2014-07-01 Thread Kiran Subbaraman
I integrated a web2py app with payu (payu.com). Each of these payment gateways have their own integration API. This blog is a useful read: http://gaganpreet.in/blog/2013/09/18/how-secure-are-indian-payment-gateways/ Kiran Subbaraman http://subbaraman.wor

[web2py] jQuery select form items based on name startswith...

2014-07-01 Thread Jordan Ladora
Hi, I'm trying to make a button that will check some boxes in a form based on the checkboxes' name attributes. But I can't get this to work- Deselect All I'm basing it off http://api.jquery.com/attribute-starts-with-selector/ I've tried a few different things but cannot get it to do anyth

[web2py] Default value in dict returned by the controller

2014-07-01 Thread Mandar Vaze
Hi, I have several views which are similar, so I am using common view file using "response.view =common_view.html" rather than separate one per controller. Out of these - 2 or 3 views are slightly different where certain parts of the page (layout.html) need to be hidden. I tried : return dic

Re: [web2py] Default value in dict returned by the controller

2014-07-01 Thread Kiran Subbaraman
globals().get(' hide_my_div',False) should return a False, if this is not present. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Tue, 01-07-2014 10:06 PM, Mandar Vaze wrote: Hi, I have several views which are similar, so I am using common

Re: [web2py] Default value in dict returned by the controller

2014-07-01 Thread Vinicius Assef
I would extend your common view with an empty block to hide the undesired part and avoid passing this argument to views. On Tue, Jul 1, 2014 at 1:36 PM, Mandar Vaze wrote: > Hi, > > I have several views which are similar, so I am using common view file using > "response.view =common_view.html" ra

[web2py] upload progress recipe not working

2014-07-01 Thread cowbert
I'm trying to do a simple manual file upload (without DAL) and display progress bar. I would prefer not to use any ajax helpers. I'm trying to use the upload progress recipe (involving the cache.ram tracking in copystream_progress). Here's my controller default.py: def index(): if request.ex

[web2py] Re: Using Sphinx to automatically create documentation of an application

2014-07-01 Thread Niphlod
not really. An app is not really structured as a python module/package, so what sphinx does with autodoc is not really possible. That being said you can play with sphinx going in a file-by-file way. On Monday, June 30, 2014 6:00:43 PM UTC+2, Luis Garcia wrote: > > Hi all, > > I am just working

[web2py] Re: Security Problem: appadmin is accessible whithout any authentication

2014-07-01 Thread Niphlod
all the "protection" logic is in the first 70 lines of the appadmin controller. On Tuesday, July 1, 2014 8:43:56 AM UTC+2, Detlev Bielz wrote: > > Hello, > > we, a small company, are using web2py for some web services with a couple > of different apps we developed ourselves. > Recently, a colle

[web2py] Re: jQuery select form items based on name startswith...

2014-07-01 Thread Niphlod
1st rule: never, never, never use inline javascript. 2nd rule: start with console.log() and an open debugger (firebug, chrome developer tools, etc) 3rd rule: use the quotes! you are terribly wrong with those 3rd rule: simplify the code, then expand. $('#div2 button').on('click', function() {

Re: [web2py] Re: jQuery select form items based on name startswith...

2014-07-01 Thread Jordan Ladora
Thanks, Niphlod, that is very helpful.. I think I'm on the right track now! On Tue, Jul 1, 2014 at 12:02 PM, Niphlod wrote: > 1st rule: never, never, never use inline javascript. > 2nd rule: start with console.log() and an open debugger (firebug, chrome > developer tools, etc) > 3rd rule: use t

Re: [web2py] can we make e-commerce web portal in web2py with multiple hits and users.

2014-07-01 Thread Marco Mansilla
El Tue, 1 Jul 2014 02:15:17 -0700 (PDT) kanchan escribió: > we have to develop a complete E-commerce software with payment > gateway also . In this software more than 500 users will use it , > hit it simultaneously . So my query is that does web2py can handle > multiple user easily , or will it

[web2py] Re: Security Problem: appadmin is accessible whithout any authentication

2014-07-01 Thread Massimo Di Pierro
This should not be possible but of course it deserves investigation. What web server do you use? Are you behind any kind of proxy or load balancer? Those friends who were able to access it, did they ever login into admin? Can you diff your appadmin.py vs the latest welcome/controllers/appadmin? Wh

[web2py] Silent dal failure with missing field def. Maybe a bug?

2014-07-01 Thread Cliff Kachinske
I would have thought DAL would raise an exception here, but the failure was silent. The postgres table contains these fields: quantity_used | numeric(12,3) | container_count | integer | container_id | integer | restock

[web2py] Re: SQLEDITABLE plugin

2014-07-01 Thread Simon Ashley
+1. Very nice work. Thanks you for sharing -- 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 Goo

[web2py] Re: Silent dal failure with missing field def. Maybe a bug?

2014-07-01 Thread Anthony
That particular method of updating calls: .update(**self._filter_fields(value)) So no exception is raised because the fields are filtered to include only those in the table definition. If you want to catch such errors, use the more explicit .update() method. Anthony On Tuesday, July 1, 2014 5

[web2py] Re: upload progress recipe not working

2014-07-01 Thread cowbert
So I inserted a console.log(data) after calling $.getJSON to see what data the ajax call would return as a large file is uploaded. It does return a json object containing 'length' and 'uploaded' but the values are always zero. I also set X-Progress-ID and uuid to the same static test value and

Re: [web2py] SQLEDITABLE plugin

2014-07-01 Thread Fabiano Almeida
Very Nice! Thank you very much! 2014-07-01 10:12 GMT-03:00 'kato' via web2py-users : > Hi. > > I tried to make SQLEDITABLE plugin. > > demo-page: http://docs1.erp2py.com/sqleditable/demo/demo_en.html > > It is similar as gluon/contrib/spreadsheet. But, it is easy to use more. > If you are inte

[web2py] Inserting in Register Menu

2014-07-01 Thread Carlos Zenteno
Trying to insert a new option in the register/login menu (the one on the top right of admin). I searched and read a bunch of threads and concluded that the best way was to do it like thi

[web2py] Re: Security Problem: appadmin is accessible whithout any authentication

2014-07-01 Thread nick name
By any chance, do any of you connect to a local vpn/proxy running on the server that relays the connection, rather than directly? (through openvpn, sshuttle, ssh tunnels, nginx, socks or anything of the sort?) If you do, then it is possible that the connection arrives to the app from 127.0.0.1

[web2py] Re: Security Problem: appadmin is accessible whithout any authentication

2014-07-01 Thread Anthony
Even in that case, you would still have to be logged into admin for access. On Tuesday, July 1, 2014 7:33:12 PM UTC-4, nick name wrote: > > By any chance, do any of you connect to a local vpn/proxy running on the > server that relays the connection, rather than directly? (through openvpn, > ssh

[web2py] Re: SQLEDITABLE plugin

2014-07-01 Thread JorgeH
Cool!! Great work On Tuesday, July 1, 2014 8:12:29 AM UTC-5, kato wrote: > > Hi. > > I tried to make SQLEDITABLE plugin. > > demo-page: http://docs1.erp2py.com/sqleditable/demo/demo_en.html > > It is similar as gluon/contrib/spreadsheet. But, it is easy to use more. > If you are interested, plea

[web2py] Re: importing a module that has db

2014-07-01 Thread 黄祥
please spend some time read web2py book. ref: http://web2py.com/books/default/chapter/29/04/the-core#Dispatching http://web2py.com/books/default/chapter/29/04/the-core#request best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web

[web2py] what are the12 core objects

2014-07-01 Thread 'tomt' via web2py-users
The preface says that "the API includes just 12 core objects" What are they? - Thanks in advance -- 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 rec

Re: [web2py] Default value in dict returned by the controller

2014-07-01 Thread Mandar Vaze
Kiran, Thanks. I came across same solution when I searched this forum a little more (I had already searched before posting, obviously not enough) https://groups.google.com/d/msg/web2py/b1WmPZh6PlI/nMAX-u5Des0J -Mandar On Tuesday, July 1, 2014 10:49:23 PM UTC+5:30, Kiran Subbaraman wrote: > >

[web2py] Re: what are the12 core objects

2014-07-01 Thread Anthony
I'm not sure we can say there are exactly 12 (depends on how you define "core"), but that probably refers to the global objects listed here , minus most of the HTML helpers and all the validators. So, minimally: request, response, sess

Re: [web2py] Any one intergrated Indian Payment Systems with web2py app?

2014-07-01 Thread Sarbjit
Thanks Kiran for the reply and sharing the knowledgeable link. I found zaapakpay.com and payu.in to be promising. zaapakpay has their legal terms to accept an application which includes the application to be submitted on behalf of company and it is a must that the website should be an ecommerce

[web2py] Re: Inserting in Register Menu

2014-07-01 Thread Annet
Hi, I had the same question and found this answer in the workgroup: The auth.navbar() produces an HTML helper DOM, so you can manipulate it as usual: navbar = auth.navbar(mode='dropdown') if auth.user: navbar.element('ul.dropdown-menu').components.extend([LI('Item 1'), LI('Item 2'), ...]