Re: [web2py] Re: Alternative to Janrain: in pure Python

2012-07-07 Thread Alec Taylor
Hey Massimo, What he was referring to is what the maintainer has added examples for: https://github.com/demianbrecht/sanction/blob/master/example/server.py (I also made a commit) On Sat, Jul 7, 2012 at 11:30 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Hello Demian, I do not

[web2py] Re: {{=LOAD()}} and JavaScript function

2012-07-07 Thread Annet
Thanks for bearing with me. You'll have to add some logic to set the value of the show_function variable included in the call to URL(). Problem solved. Kind regards, Annet.

[web2py] Re: Condition in view weird behaviour

2012-07-07 Thread Annet
I cannot reproduce the problem. If I create a condition that fails, the content of the included file does not display. That's what I tried: {{if 1==0:}} I finally rebuild the whole function and its views bit by bit just to discover this: {{session.cal.cursusrooster}} :-( any way

Re: [web2py] Re: Standalone DAL leaves mysql connections opened

2012-07-07 Thread Daniel Gonzale
Of course, i will try this afternoon. El 07/07/2012, a las 03:33, Massimo Di Pierro massimo.dipie...@gmail.com escribió: Meanwhile, can you check the new db.close() in trunk? On Friday, 6 July 2012 15:40:57 UTC-5, demetrio wrote: Mail with the code sended :) 2012/7/6 Massimo Di

[web2py] Re: Alternative to Janrain: in pure Python

2012-07-07 Thread David Marko
That would be great having something like this integrated into web2py . David

[web2py] yeamcs + filepicker.io

2012-07-07 Thread Massimo Di Pierro
http://brettcvz.github.com/ymacs/ http://brettcvz.github.com/ymacs/demo

[web2py] Re: How to use button instead of input in SQLForm

2012-07-07 Thread Andreas Kaiser
Hi, is there a way to simplify these expression: form[0][-1][1] ? Ok, I can assign these expression to a var. For a lot of questions regarding forms, there is form[0][-1][1] part of an answer. Thanks Andreas Am Samstag, 7. Juli 2012 02:38:04 UTC+2 schrieb Massimo Di Pierro: try

[web2py] Web2py using json

2012-07-07 Thread Akash Kakkar
Hi, I want to send string content (html) from client to server using JSON and then decode the JSON to string in python controller, Can somebody help me with the syntax. Thanks Akash

[web2py] Generating pdf using web2py-appreport (xhtmltopdf) in Python Web2py webapp

2012-07-07 Thread Akash Kakkar
* * I am from a non coding background so python, web2py is very new to me. I am trying to send html content using json and then use that in controller to generate pdf. If I am able to send json data and then use it in controller function, i should be able to get the pdf. More details below. I

[web2py] Identifying the session

2012-07-07 Thread Daniel Gonzalez
Hello, I have a (I guess rather common) scenario: my application is providing some information to the connected users, depending on some input parameters. The input parameters can be set in a per-browser-window way. That means, user1 can be logged in two different browser windows (or two

[web2py] Mistake in the Web2Py book?

2012-07-07 Thread Remco K
Hi, I was reading about crud.archive in the online Web2Py book, when i noticed the following: auth.archive does not timestamp the stored record unless your original table has timestamp fields, for example: db.define_table('mytable', Field('created_on','datetime',

Re: [web2py] Re: Standalone DAL leaves mysql connections opened

2012-07-07 Thread Daniel Gonzalez Zaballos
It's not working :( In the best scenario i can leave one connection opened in a whole request (with other combinations it leaves at least 10 more or less) only with: self.db.commit() from gluon.dal import BaseAdapter BaseAdapter.close_all_instances('commit') 2012/7/7 Daniel Gonzale

[web2py] Production performance lessions uwsgi + nginx

2012-07-07 Thread Bruce Wade
Thanks to help from the uwsgi group (Specifically Ryan Showalter and Lukasz Mierzwa) I learned about two important settings to help speed up web2py sites. I hope this advice helps anyone else who is using uwsgi and has a very slow site with traffic starts poring in. 1) Set --cpu-affinity when

[web2py] auth email verification design question

2012-07-07 Thread amit
For the case that the email has not been verified by the user, request_reset_password can be overload to include resend email verification request. Not sure if the above is a good idea?

[web2py] Re: Mistake in the Web2Py book?

2012-07-07 Thread Anthony
Mistake. Fixed now. Thanks. Anthony On Saturday, July 7, 2012 10:08:31 AM UTC-4, Remco K wrote: Hi, I was reading about crud.archive in the online Web2Py book, when i noticed the following: auth.archive does not timestamp the stored record unless your original table has timestamp

[web2py] Re: Identifying the session

2012-07-07 Thread Anthony
1. the session object maps to a browser-window (*not* to a user!). Is this correct? The session is associated with a particular browser, but not with a particular window/tab within the browser (i.e., two windows in the same browser will share the same session). Different browsers

[web2py] Re: Identifying the session

2012-07-07 Thread Anthony
Also, the session ID itself can be found in response.session_id. Anthony On Saturday, July 7, 2012 11:37:18 AM UTC-4, Anthony wrote: 1. the session object maps to a browser-window (*not* to a user!). Is this correct? The session is associated with a particular browser, but not with

[web2py] Re: Identifying the session

2012-07-07 Thread Daniel Gonzalez
On Saturday, July 7, 2012 5:37:18 PM UTC+2, Anthony wrote: 1. the session object maps to a browser-window (*not* to a user!). Is this correct? The session is associated with a particular browser, but not with a particular window/tab within the browser (i.e., two windows in the

[web2py] Re: Identifying the session

2012-07-07 Thread Anthony
1. the session object maps to a browser-window (*not* to a user!). Is this correct? The session is associated with a particular browser, but not with a particular window/tab within the browser (i.e., two windows in the same browser will share the same session). Different browsers

[web2py] Can 2 apps use 1 database ?

2012-07-07 Thread Horus
I currently have 2 apps which i would like to share one database. one app is for authentication the other is the main app. When I run the app1 it creates the auth tables along with another table called *base_tags* when I run app2 I get the following error. (the base_tags table in app1 is

[web2py] Re: Can 2 apps use 1 database ?

2012-07-07 Thread Horus
Found this Was having trouble but i guess this --

Re: [web2py] Re: Web Development Introduction Based On Web2py

2012-07-07 Thread Luther Goh Lu Feng
Still down :( On Friday, July 6, 2012 1:53:13 AM UTC+8, Richard wrote: Still down! Richard On Thu, Jul 5, 2012 at 2:27 AM, dave arifu...@gmail.com wrote: the site is down Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete

[web2py] Re: Can 2 apps use 1 database ?

2012-07-07 Thread Anthony
Found this Was having trouble but i guess this --

[web2py] Re: Working with custom form

2012-07-07 Thread Chris
{{=form.custom.begin}} #in between the opening and closing tags put in your normal html code and make sure the element names corresponds to the column names as defined in your database. web2py will handle the rest automatically. This is the most flexible way while still making use of

[web2py] Vanity URLs

2012-07-07 Thread Sushant Taneja
Hi, I want to generate vanity urls for my users. For example: www.domain.com/user_first_name The above URL should actually point to the www.domain.com/appname/view/user/user_first_name How should I configure my routes.py so that I can achieve the above without disturbing other URLs ? Also I

[web2py] Keeping track of CKEditor uploads in Web2py

2012-07-07 Thread Athelionas
Let's suppose we have a page for creating blog posts with a form with text area transformed into an editor. That editor has properly configured custom upload mechanism meaning that it uses a controller function such as upload_file() and it also has a view which is only needed to run some

[web2py] Re: How to use button instead of input in SQLForm

2012-07-07 Thread Massimo Di Pierro
You can try replace form[0][-1][1] with form.element(_type='submit').parent On Saturday, July 7, 2012 3:19:02 AM UTC-5, Andreas Kaiser wrote: Hi, is there a way to simplify these expression: form[0][-1][1] ? Ok, I can assign these expression to a var. For a lot of questions regarding

Re: [web2py] Re: Standalone DAL leaves mysql connections opened

2012-07-07 Thread Massimo Di Pierro
Are you using threads? On Saturday, July 7, 2012 9:21:51 AM UTC-5, demetrio wrote: It's not working :( In the best scenario i can leave one connection opened in a whole request (with other combinations it leaves at least 10 more or less) only with: self.db.commit() from gluon.dal

[web2py] Re: auth email verification design question

2012-07-07 Thread Massimo Di Pierro
No objection. The effect is the same since we do not check the new password is the same as the old password. On Saturday, July 7, 2012 9:45:02 AM UTC-5, amit wrote: For the case that the email has not been verified by the user, request_reset_password can be overload to include resend

[web2py] Re: Vanity URLs

2012-07-07 Thread Massimo Di Pierro
The rule you want is routes_in = [ ('/$anything', '/appname/view/user/http://www.domain.com/appname/view/user/user_first_name $anything') ] but before this rule you must make sure treat other URLs as exceptions (should not be mapped): routes_in = [ ('/admin','/admin'),

Re: [web2py] Re: [Version 1.96.4] DAL timing issue.

2012-07-07 Thread howesc
how many of those fields are references? what is the geometry field? is that a custom field in web2py? parsing that might be taking some time. On Friday, July 6, 2012 5:37:47 PM UTC-7, Anthony wrote: Hmm, not sure what's going on. What happens if you remove the virtual field? On

[web2py] Re: Website running extremely slow

2012-07-07 Thread howesc
do you have anything in models that run queries? i made that mistake once and it slowed things down a lot! On Friday, July 6, 2012 11:51:38 AM UTC-7, wdtatenh wrote: My website is deployed on webfaction. I've compiled the application before uploading. Doesn't seem to matter what page is

Re: [web2py] Re: Vanity URLs

2012-07-07 Thread Jonathan Lundell
On 7 Jul 2012, at 3:37 PM, Massimo Di Pierro wrote: The rule you want is routes_in = [ ('/$anything', '/appname/view/user/$anything') ] but before this rule you must make sure treat other URLs as exceptions (should not be mapped): routes_in = [ ('/admin','/admin'),

Re: [web2py] Re: Website running extremely slow

2012-07-07 Thread Bruce Wade
Remove any requires you have in you models will reduce function calla On Jul 7, 2012 3:53 PM, howesc how...@umich.edu wrote: do you have anything in models that run queries? i made that mistake once and it slowed things down a lot! On Friday, July 6, 2012 11:51:38 AM UTC-7, wdtatenh wrote:

Re: [web2py] Re: Vanity URLs

2012-07-07 Thread pbreit
I wonder if we should try to support this formally. Perhaps if as a catchall if the router doesn't find any valid routes and before it returns a 404?

Re: [web2py] Re: Vanity URLs

2012-07-07 Thread Jonathan Lundell
On 7 Jul 2012, at 4:25 PM, pbreit wrote: I wonder if we should try to support this formally. Perhaps if as a catchall if the router doesn't find any valid routes and before it returns a 404? The parametric router will do this for the default controller and function, if you list the

[web2py] web2py deployment: Watchup

2012-07-07 Thread Jonathan Lundell
I've written an iPad (only, US-only for now) app, newly in the App Store, that is powered on the back end by web2py. The marketing website (SquareSpace, not web2py): http://watchup.com Watchup is designed to make it easy and efficient to create a playlist of news videos and watch them. The

Re: [web2py] web2py deployment: Watchup

2012-07-07 Thread Jonathan Lundell
On 7 Jul 2012, at 5:15 PM, Jonathan Lundell wrote: I've written an iPad (only, US-only for now) app, newly in the App Store, that is powered on the back end by web2py. The marketing website (SquareSpace, not web2py): http://watchup.com Watchup is designed to make it easy and efficient

[web2py] translation does not translate

2012-07-07 Thread Cornelius Kölbel
Hi there, I am using web2py 1.99.7. It seems that my translation does not seem to work. I updated the translations, saw my added text, translated it to german, checked the browser for preferred language but still see the enflish words. How could I start here to solve my issue? Thanks a lot and

[web2py] Re: [Version 1.96.4] DAL timing issue.

2012-07-07 Thread Massimo Di Pierro
the DAL db(..).select(...) does two things: 1) generates and executes the SQL (no overhead) 2) parses and normalizes the output in a database independent way 2) takes time proportional to the number of rows you select. You select 66000 rows and you tell us it takes 40 minutes? That is more than

Re: [web2py] Re: Vanity URLs

2012-07-07 Thread Massimo Di Pierro
It can be done already ('/$anything','404-/myapp/default/catchall/$anything') On Saturday, 7 July 2012 18:25:25 UTC-5, pbreit wrote: I wonder if we should try to support this formally. Perhaps if as a catchall if the router doesn't find any valid routes and before it returns a 404?

[web2py] Re: Working with custom form

2012-07-07 Thread Anthony
1. I want to utilize 'layout.html' to some extent such that it stores some common css files for the rest of the view pages. Kinda like a shared base template, and I want to add page-specific css (or js) files on individual html view page. Is it as simple as including: {{extend

[web2py] footer misplaced with three columns (NightlyBuild)

2012-07-07 Thread Kevin Miller
Hi all, Anyone else having this problem? When I use three columns like this: {{left_sidebar_enabled,right_sidebar_enabled=True,True}} The footer gets misplaced. If I disable the left and right sidebar, everything is ok. Thanks very much. Kevin Miller

[web2py] Re: footer misplaced with three columns (NightlyBuild)

2012-07-07 Thread Kevin Miller
Hi all, Well what I notice is that when the sidebars are enabled the sticky footer stays at the bottom of the page, where it should be. However, when disabled the sticky footer does not work. On Sat, Jul 7, 2012 at 11:04 PM, Kevin Miller kevinvani...@gmail.comwrote: Hi all, Anyone else