[web2py] Re: Installing app on Pythonanywhere

2015-10-09 Thread Joe
Hi Leonel, Thanks very much for your reply. I tried to use the code in your post but it doesn't seem to work. I installed a new app and I placed the code in the folder, as per your post, but the url is still the same: http://www.mydomain.com/init/default/about On Friday, September 25, 2015 at

[web2py] Re: Version control: web2py and my application in separate repos?

2015-10-09 Thread Tom Campbell
Thank you, Leonel and Vincinius. So it seems that the canonical way to do this would be as follows? # Create a git repo of web2y and pydal on your local machine $ git clone --recursive https://github.com/web2py/web2py.git # Inside the web2py directory... $ cd web2py # ...check out version

[web2py] Sitemap Question

2015-10-09 Thread Joe
What is the best way to implement a sitemap for a Web2py site? Is there a Web2py code to generate the sitemap or I should use a third party sitemap generator? If so, should I place the XML file in the static folder? I'd appreciate some advise on this. Thanks very much. Cheers, Joe --

[web2py] Re: How to disable the calendar widget?

2015-10-09 Thread Anthony
We should make this easier to configure, but here are a few more options that don't require forking a framework file: - The calendar/time widget is only activated for inputs with classes "date", "datetime", or "time", so, you can just use a custom widget that excludes those classes.

[web2py] Re: Postgres: No databases/*.table files created

2015-10-09 Thread Niphlod
"file blablabla appears corrupted" kinda points out that a file is there ... On Friday, October 9, 2015 at 12:29:42 AM UTC+2, Matt Norris wrote: > > I am using Postgres and my tables are created fine when I first hit my > application. However, on the next hit, I get the following error: >

[web2py] Re: Version control: web2py and my application in separate repos?

2015-10-09 Thread Leonel Câmara
You can get them from github as long as you remember to use the --recursive flag when you're doing the cloning otherwise you won't get PyDAL which lives in its own repo right now. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: Why is appadmin redirecting to URL('default', 'index') from within web2py IDE?

2015-10-09 Thread Leonel Câmara
Deleting welcome shouldn't cause problems for your existing apps, as it should use the appadmin in myapp's controllers folder. That said, the admin uses the welcome application as a template for when you ask it to create a new application so that breaks. -- Resources: - http://web2py.com -

[web2py] Shceduler mesaging

2015-10-09 Thread Rod Watkins
Hi everyone, I have a question about the scheduler and communicating between the scheduler process and my web app. In another post here, Niphlod suggested using the database or the file system to communicate between the scheduler and my app--for example, to communicate some content to display

[web2py] Re: auth.requires_login redirect and session expiration

2015-10-09 Thread Massimo Di Pierro
Shouldn't we always return 403 is ajax? On Friday, 9 October 2015 12:22:52 UTC-5, DenesL wrote: > > Changing > if current.request.ajax: > raise HTTP(401, self.messages.ajax_failed_authentication) > > to > if current.request.ajax and current.request.cid: > raise HTTP(401,

Re: [web2py] Re: Version control: web2py and my application in separate repos?

2015-10-09 Thread Vinicius Assef
I always download it from github and checkout the tag (version) I want. This way: ``` $ git clone https://github.com/web2py/web2py.git $ git cd web2py $ git checkout -b v2.12.3 R-2.12.3 ``` -- Vinicius Assef On 9 October 2015 at 16:53, Tom Campbell wrote: > Me too.

[web2py] Re: Make custom SQLFORM grid LINKS buttons give feedback like regular web2py form buttons?

2015-10-09 Thread Gary Cowell
I'm revisiting this again. Think it should be possible with a javascript onclick action, but how can I do this from within my A( helper ? My problem with using web2py I think, is that I'm a python programmer who's trying to write apps that run on web pages, but I know very little

Re: [web2py] API

2015-10-09 Thread PAVAN DHAVALESWARAPU
To use API of other applications in my application. On Saturday, October 3, 2015 at 10:21:56 PM UTC+5:30, Kiran Subbaraman wrote: > > Can you provide more details - which API are you talking about? > Are you thinking of creating APIs for your web2py application - see this > for some ideas: >

[web2py] Re: Postgres: No databases/*.table files created

2015-10-09 Thread Anthony
Looks like that is coming from here, https://github.com/web2py/pydal/blob/master/pydal/adapters/base.py#L497, which indicates a file is being found. Are you sure there's nothing there? If it is there, is it an empty file? Can you unpickle it yourself? I've read that you can also get this error

Re: [web2py] API

2015-10-09 Thread Anthony
On Friday, October 9, 2015 at 7:13:59 AM UTC-4, PAVAN DHAVALESWARAPU wrote: > > To use API of other applications in my application. > In that case, there's nothing special about web2py -- you can access external APIs the same way you would from any Python module or code. Just follow the

[web2py] Version control: web2py and my application in separate repos?

2015-10-09 Thread Tom Campbell
My app is under version control at Github. It will be deployed on Google App Engine. There's a chance that web2py could be updated and render some of my app's behavior unpredictable, or, more likely, GAE could screw something up and break web2py. I think the obvious choice, then, is to have a

[web2py] Why is appadmin redirecting to URL('default', 'index') from within web2py IDE?

2015-10-09 Thread weheh
I broke my web2py installation. I was cleaning out what I thought were unused files because I don't use welcome app. The problem is that when I click the database button from this page: http://127.0.0.1:8000/admin/design/myapp I'm getting redirected to URL('default', 'index') What did I

[web2py] Re: auth.requires_login redirect and session expiration

2015-10-09 Thread 'DenesL' via web2py-users
Changing if current.request.ajax: raise HTTP(401, self.messages.ajax_failed_authentication) to if current.request.ajax and current.request.cid: raise HTTP(401, self.messages.ajax_failed_authentication) in gluon/tools/Auth class/requires function (line 3749 in release 2.12.03) seems to

[web2py] Re: Version control: web2py and my application in separate repos?

2015-10-09 Thread Leonel Câmara
web2py tags releases so you don't really need your own github repo you can just tell people to clone a given web2py tag. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: Version control: web2py and my application in separate repos?

2015-10-09 Thread weheh
Can you elaborate, please? On Friday, October 9, 2015 at 11:25:17 AM UTC-6, Leonel Câmara wrote: > > web2py tags releases so you don't really need your own github repo you can > just tell people to clone a given web2py tag. > -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Using Sphinx to document web2py based application

2015-10-09 Thread Carlos Kitu
Hi friends, this group is making a great job supporting web2py users. I don't use to ask many questions because it's easy to find them already solved. I would like to use Sphinx to document an application developed with web2py 2.12.1. I mean using docstrings in controllers and models. As

[web2py] Re: Version control: web2py and my application in separate repos?

2015-10-09 Thread Tom Campbell
Me too. I have to be honest, the reason I'm using my own web2py repo is because I don't understand the WARNING: DO NOT DOWNLOAD RELEASES FROM THIS GITHUB PAGE at https://github.com/web2py/web2py/releases thing. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: How to disable the calendar widget?

2015-10-09 Thread Edward Shave
> > >> Thanks a bunch for that. No way would I have figured that out on my own. Thanks again, Ed -- 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

Re: [web2py] Re: Has anyone done a detailed security analysis or attempted a methodical attack on web2py?

2015-10-09 Thread Michael M
My company has to have an outside firm Pen test all Web-Service applications. So I am spinning up two internal services and both are going to be tested around November before they go into Prod from Non-Prod. I'm starting talks with the InfoSec team to see if I can share the findings of the