[web2py] Re: Web2py MVC and Qooxdoo

2011-10-19 Thread omicron
Why not jsonrpc ? In web2py, i use decorator like this : @service.jsonrpc def insert(code, libelle, cours=1.0): try: id = dba.devise.insert(code=code, libelle=libelle) except: dba.rollback() raise Exception(sys.exc_info()[1]) else: dba.commit() r

[web2py] Re: Error: Start as Windows Service

2011-10-19 Thread toan75
Yes, i renamed options_std.py to options.py. import socket import os ip = '192.168.0.1' port = 80 interfaces=[('0.0.0.0',80),('0.0.0.0',443,'ssl_private_key.pem','ssl_certificate.pem')] password = '' # ## means use the previous password pid_filename = 'httpserver.pid' log_filename = 'httpserver

[web2py] smartgrid setup

2011-10-19 Thread petrasadi
Is it possible to set custom levels of access for view, edit and delete functions of the smartgrid? For example, can I allow all users to access "View", but only authenticated user to access "Edit"? Thank you

[web2py] join and sum - display in view

2011-10-19 Thread andrej burja
in controler i do join and sum the result si rows object in response._vars the sum is displayed in SUM(t_table.f_field) what is the syntax to display that in view? andrej

[web2py] Re: Mobile Viewport Fix

2011-10-19 Thread horridohobbyist
Thanks! On Oct 19, 10:54 pm, Anthony wrote: > Just delete that meta tag from layout.html. Actually, I think you might only > need to delete the maximum-scale=1.0 part of it if you want to be able to > zoom in. > > > > > > > > On Wednesday, October 19, 2011 10:47:22 PM UTC-4, horridohobbyist wrot

Re: [web2py] installing over network

2011-10-19 Thread Bruno Rocha
better to have multiple instances of web2py and link the same application folder On Wed, Oct 19, 2011 at 11:59 PM, jcrowe wrote: > Is it possible to use web2py to my dropbox folder which is on a Mac > and PC? > > I would like one installation that is shared to multiple locations. I > know this w

Re: [web2py] Re: installing over network

2011-10-19 Thread Jonathan Lundell
On Oct 19, 2011, at 7:24 PM, Anthony wrote: > On Wednesday, October 19, 2011 10:06:05 PM UTC-4, pbreit wrote: > I think that might be a problem since you can't run the same version of > Web2py on both Mac and Windows. > > Running from source is the same on Mac and Windows (and Linux). If you're

[web2py] Re: Mobile Viewport Fix

2011-10-19 Thread Anthony
Just delete that meta tag from layout.html. Actually, I think you might only need to delete the maximum-scale=1.0 part of it if you want to be able to zoom in. On Wednesday, October 19, 2011 10:47:22 PM UTC-4, horridohobbyist wrote: > > Um, guys, I think we have a BIG problem here... > > For so

[web2py] Mobile Viewport Fix

2011-10-19 Thread horridohobbyist
Um, guys, I think we have a BIG problem here... For some reason, web2py adds a viewport meta tag to the header that restricts the screen to the device width. This makes it impossible to pinch-zoom on a tablet such as the iPad or TouchPad. For people (with poor eyesight) who need to zoom into the

[web2py] Re: Error: Start as Windows Service

2011-10-19 Thread Anthony
Did you create an options.py file, as per the instructions here: http://web2py.com/book/default/chapter/11#Start-as-Windows-Service? On Wednesday, October 19, 2011 10:12:19 PM UTC-4, toan75 wrote: > > > > > HI ALL, > > I can't run web2py as windows server 2003 service. > Pls help me. Thanks very

[web2py] Re: installing over network

2011-10-19 Thread Anthony
On Wednesday, October 19, 2011 10:06:05 PM UTC-4, pbreit wrote: > > I think that might be a problem since you can't run the same version of > Web2py on both Mac and Windows. Running from source is the same on Mac and Windows (and Linux).

[web2py] Error: Start as Windows Service

2011-10-19 Thread toan75
HI ALL, I can't run web2py as windows server 2003 service. Pls help me. Thanks very much. This error: C:\web2py>c:\Python27\python.exe web2py.py -W install No handlers could be found for logger "web2py" web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2011 Version 1.99.2 (2

[web2py] Re: installing over network

2011-10-19 Thread pbreit
I think that might be a problem since you can't run the same version of Web2py on both Mac and Windows. The only thing I can think of is that you install Web2py on each machine as usual and get it working. Then move the "applications" folder to Dropbox and create an alias/link from /web2py/appl

[web2py] installing over network

2011-10-19 Thread jcrowe
Is it possible to use web2py to my dropbox folder which is on a Mac and PC? I would like one installation that is shared to multiple locations. I know this works with one operating system, but I am wanting to work with both PC and Mac. Any Ideas? Thanks!

Re: [web2py] Re: Foundation CSS Framework

2011-10-19 Thread Vasile Ermicioi
> > I recommend LESS http://lesscss.org > you can use twitter bootstrap framework with less http://twitter.github.com/bootstrap/ here we discuss kind of complete css frameworks that include such elements like layouts, form elements, buttons, tables, tabs, et

[web2py] Re: Error in URI 'MYSQL' or database not supported

2011-10-19 Thread Anthony
If you use SQLite and the database doesn't already exist, it will be created for you. However, when using other DBs, you have to first create the database outside of web2py before web2py can connect to it. Also, the connection string for MySQL should be something like: mysql://username:password

[web2py] Error in URI 'MYSQL' or database not supported

2011-10-19 Thread now0pen
Hi, I am a python/web2py noob. Following this tutorial -- http://www.web2py.com/AlterEgo/default/show/110 ... where my web2py is deployed with fluxflex.com. After I finished everything and accessed the site, I got the error message -- Internal error Ticket issued: blog/ 4ddbe3d13c161dc281968279d5

[web2py] Re: is it form.validate() or form.validate().accepted

2011-10-19 Thread Anthony
Yes, looks like it should just be form.validate() -- .validate() returns True or False, but .process() returns the form itself (with a .accepted attribute set to True or False). On Wednesday, October 19, 2011 7:16:24 PM UTC-4, apple wrote: > > There are two examples in the book that use "if > f

[web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread greenpoise
ah ok..got it..I have never tried or didnt know anything about qooxdoo as a matter of fact. I like it but for some reason is slow in my browser..scrolling that is.. the tables are such a treat for a backoffice perspective...can these tables size can be change, like their width?? On Oct 19, 4:34

Re: [web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread Phyo Arkar
I added notice on the website that login is not required now. Sorry for causing some hassle :) On 10/20/11, Phyo Arkar wrote: > Oh you dont need to login , login is not read yet i forget to add that :D > > On 10/20/11, Phyo Arkar wrote: >> our restaurant just opened 2 months ago , and no shes no

Re: [web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread Phyo Arkar
Oh you dont need to login , login is not read yet i forget to add that :D On 10/20/11, Phyo Arkar wrote: > our restaurant just opened 2 months ago , and no shes not using any > POS Software , registering by hand, She started using this POS this > week,. It was just 2 week of coding in my free tim

Re: [web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread Phyo Arkar
our restaurant just opened 2 months ago , and no shes not using any POS Software , registering by hand, She started using this POS this week,. It was just 2 week of coding in my free time . I am busy with other projects . I am going to put more features . The feature she requested right now is to

[web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread greenpoise
I cant change or add values. I tried adding a user but login does not work for me. I like the simplicity of the table On Oct 19, 4:29 pm, Phyo Arkar wrote: > Multiple item of same type can be added by incresing the items count. > > Multiple items of different type , should be easy to do too ,

[web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread greenpoise
Cool. Is your wife currently using a POS?? we are currently using Microsoft Dynamics RMS and wow..what a battle it has been.. On Oct 19, 4:26 pm, Phyo Arkar wrote: > its hard to make it configurable , i don't know how to pass variable > from Qooxdoo to web2py thats why i need to hard-code it.

Re: [web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread Phyo Arkar
Multiple item of same type can be added by incresing the items count. Multiple items of different type , should be easy to do too , can you think of a UI ? I dont like full form style UI. hmm something compact without needing forms will be beautiful. On 10/20/11, pbreit wrote: > Actually the bu

Re: [web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread Phyo Arkar
its hard to make it configurable , i don't know how to pass variable from Qooxdoo to web2py thats why i need to hard-code it. coz qooxdoo is totally js and web2py's template code wont work inside JS files. One thing is to pass via url-string is that acceptable ? On 10/20/11, greenpoise wrote: >

[web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread greenpoise
Got ya..thanks..will do.. d On Oct 19, 4:19 pm, Phyo Arkar wrote: > rename it to HersPOS (URL is hardcoded). > > On 10/20/11, greenpoise wrote: > > > > > > > > > Mine does not show anything. I did as pbreit said, under /herspos but > > nothing. > > > On Oct 19, 4:14 pm, Phyo Arkar wrote: >

Re: [web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread Phyo Arkar
rename it to HersPOS (URL is hardcoded). On 10/20/11, greenpoise wrote: > Mine does not show anything. I did as pbreit said, under /herspos but > nothing. > > > > > > On Oct 19, 4:14 pm, Phyo Arkar wrote: >> upper toolbar buttons not working yet , i forgot to mention that. >> >> On 10/20/11, Phy

[web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread greenpoise
Mine does not show anything. I did as pbreit said, under /herspos but nothing. On Oct 19, 4:14 pm, Phyo Arkar wrote: > upper toolbar buttons not working yet , i forgot to mention that. > > On 10/20/11, Phyo Arkar wrote: > > > > > > > > > ok i will make a w2p release. > > I will also make it

[web2py] is it form.validate() or form.validate().accepted

2011-10-19 Thread apple
There are two examples in the book that use "if form.validate().accepted" However I get an error with this. Should it be just "if form.validate()" ?

Re: [web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread Phyo Arkar
upper toolbar buttons not working yet , i forgot to mention that. On 10/20/11, Phyo Arkar wrote: > ok i will make a w2p release. > I will also make it configurable. > You guys feel free to clone. modify what you feel needed. > I had tested on chrome and firefox on linux and firefox on windows , >

Re: [web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread Phyo Arkar
ok i will make a w2p release. I will also make it configurable. You guys feel free to clone. modify what you feel needed. I had tested on chrome and firefox on linux and firefox on windows , can you give me the firebug output or chrome devtool output ? On 10/20/11, greenpoise wrote: > Neat,thanks

[web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread greenpoise
Neat,thanks for sharing. I download it havent checked out. Can you package it so users can install? d On Oct 19, 3:24 pm, Phyo Arkar wrote: > Hello Web2py. > > As a practice for integrating Qooxdoo and web2py. I had created a > Point of Sales system for my wife's sushi shop. > > All people who

[web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread pbreit
Actually the buttons might have been working but I didn't see that a row had been added. Is there a way to add multiple items to one order?

[web2py] Re: Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread pbreit
Cool. I'm interested in this as I own a pet store and am not that happy with the POS system. It didn't work at first to me because you have some URLs hard-coded for /HersPOS (I originally installed under /herspos). When I got it running, none of the buttons seemed to work. I tried on Mac Chrom

[web2py] Re: Fluxflex admin problem

2011-10-19 Thread Lucidguppy
My bad - I think the fluxflex is under maintenance... On Oct 19, 6:48 pm, Lucidguppy wrote: > I think I found an issue - if you set the project status to private > twice in a row - the admin page hangs.  Anyone know how to fix it?  I > submitted a forum problem up on flux flex - don't know if it

[web2py] Fluxflex admin problem

2011-10-19 Thread Lucidguppy
I think I found an issue - if you set the project status to private twice in a row - the admin page hangs. Anyone know how to fix it? I submitted a forum problem up on flux flex - don't know if it will get addressed.

[web2py] Qooxdoo + Web2py Based AJAX POS system, Released!

2011-10-19 Thread Phyo Arkar
Hello Web2py. As a practice for integrating Qooxdoo and web2py. I had created a Point of Sales system for my wife's sushi shop. All people who have trouble integrating Qooxdoo, can base on my code. It used multiple Qooxdoo features . - Tables - Folder Trees - Events - Event Bubbling - Delegates

Re: [web2py] DAL: Selecting using the 'WHERE' clause

2011-10-19 Thread howesc
google has been changing how indexing works so you need custom indexes less often. if you app does not need them, then no index.yaml file will be created during local usage. this is OK as long as you have tested each query you have built that will run on production. about the text property, f

Re: [web2py] Re: Web2py MVC and Qooxdoo

2011-10-19 Thread Phyo Arkar
Here it is. Check it out. http://code.google.com/p/herspos :) On 10/20/11, Phyo Arkar wrote: > Yes, > > I was writing a POS application for my wife's sushi shop as a practice > . I am enjoying QooXDoo A Lot now. > > Its unfinished but already usable for adding Items and record. You > will get

[web2py] Re: Foundation CSS Framework

2011-10-19 Thread Francisco Costa
On Oct 19, 10:05 pm, Anthony wrote: > The core doesn't look too heavy to me. There's a bunch of extra stuff (CSS > and JS) that could easily be cut out. I recommend LESS http://lesscss.org

[web2py] Re: Foundation CSS Framework

2011-10-19 Thread Anthony
The core doesn't look too heavy to me. There's a bunch of extra stuff (CSS and JS) that could easily be cut out. On Wednesday, October 19, 2011 4:33:24 PM UTC-4, viniciusban wrote: > > What do you mean with "heavy"? > > Is it large in KB? > > > On Oct 17, 6:22 pm, pbreit wrote: > > Nice new r

[web2py] Re: Foundation CSS Framework

2011-10-19 Thread viniciusban
What do you mean with "heavy"? Is it large in KB? On Oct 17, 6:22 pm, pbreit wrote: > Nice new responsive CSS framework but I suspect it's not quite what we are > looking for since it is kind of "heavy".http://foundation.zurb.com/

[web2py] Question about crud forms and foreign keys

2011-10-19 Thread Matthew Young
Currently, I have a table that has a field that represents a different table in my database (ex: Field('thing', db.thing)). If I make a crud form of the table that has a field referring to a foreign table, I am able to select items from the second table in a drop down menu. Is there a way I can tel

Re: [web2py] Re: Web2py MVC and Qooxdoo

2011-10-19 Thread Phyo Arkar
Yes, I was writing a POS application for my wife's sushi shop as a practice . I am enjoying QooXDoo A Lot now. Its unfinished but already usable for adding Items and record. You will get whole idea. Now i am going to Release it as Opensource, so Everyone can use and contribute too. I am uploadi

Re: [web2py] Web2py on android

2011-10-19 Thread Phyo Arkar
I have seen somewhere on this groups that someone successfully runs web2py on android. Can you make a search? Also Iphone and Nokia Memeo . On 10/19/11, Richard Vézina wrote: > I have no idea how to make work web2py under android but I guest that you > will need this : > > http://code.google.com

[web2py] Re: Cannot see Plugins listed in Wizard

2011-10-19 Thread Matthew
Here is a screenshot to illustrate, http://bit.ly/qL7VjA and a previous thread about testing the wizard, http://groups.google.com/group/web2py/browse_thread/thread/6c368ee2723bb3b9/deb78bbc76b4d299?lnk=gst&q=plugins+wizard#deb78bbc76b4d299

[web2py] Re: can auth.settings.on_failed_authorizatio raise http 403 error

2011-10-19 Thread d
Thanks a lot for reply. It is the problem. And there is minor change in fff function needed def fff(args): raise HTTP(403, "HTTP 403: Not authenticated to access this URL.") because if do not put args in fff(), it complains error Now it works fine. Thanks a lot! This forum is really useful

[web2py] Re: language

2011-10-19 Thread Christopher Steel
You might want to try this out. It is a recent blank Web2py application with a plugin that gives you a language changing button. At the moment it requires some manual intervention to add it to a site. ( need to edit layout.html and perhaps some other stuff ). Install instructions are included i

Re: [web2py] Re: Tell Web2py Groups: The Web2py Book 3rd Edition is long over due

2011-10-19 Thread joseph simpson
Just checking on the current state of the Web2py online book update as well as the rumored "Packt Web2py book." Any new projected release dates? Have fun, Joe On Tue, Sep 27, 2011 at 7:00 AM, Jim Steil wrote: > +1 for keeping in the book format. Definitely helped attract me to Web2py. > >

[web2py] Re: grid usage

2011-10-19 Thread brushek
> the problem is that the controller is reloaded when you click on grid > command as edit or new page but the variable "a" is no more posted to > the page... why not to use different controllers?? it's surely the > easiest way Well, it depends. I don't like to have many files for views, and diffre

[web2py] Re: grid usage

2011-10-19 Thread brushek
On 19 Paź, 16:38, Martín Mulone wrote: > at the moment you can't pass vars to grid, instead use args. > OK, understand, thank You. regards brushek

[web2py] Re: Cannot see Plugins listed in Wizard

2011-10-19 Thread Anthony
Yeah, looks like something is wrong with the display of the multi-select widget (Chrome and IE on Windows 7). On Wednesday, October 19, 2011 2:28:53 PM UTC-4, Matthew wrote: > > I am trying to use the plugins dropdown, but I can't see any choices > at all. I've tried this on both Chrome and Fire

[web2py] Cannot see Plugins listed in Wizard

2011-10-19 Thread Matthew
I am trying to use the plugins dropdown, but I can't see any choices at all. I've tried this on both Chrome and Firefox, and am using Ubuntu 10.04. Thanks for your help, Matthew

Re: [web2py] AJAX weirdness

2011-10-19 Thread Harshad
Makes sense. Thanks.

[web2py] Re: DAL: Selecting using the 'WHERE' clause

2011-10-19 Thread Sathvik Ponangi
Please ignore my previous post, the error was caused by another section of my code which went bad when I replaced 'text' with 'string' in my db.py file, accidentally altering the names of a few fields. Thank you all for everything...

[web2py] Re: Ideas for new welcome app

2011-10-19 Thread Christopher Steel
+1 for all of the above. I think this is a really important discussion that could have a big impact on Web2py since the Welcome app is used as the scaffolding for creating new Web2py applications. It reminds me a lot of the primary reason why I decided to risk using Web2py in the first place w

Re: [web2py] Web2py on android

2011-10-19 Thread Richard Vézina
I have no idea how to make work web2py under android but I guest that you will need this : http://code.google.com/p/android-scripting/ And I am pretty the sure there is a video on vimeo or youtube about someone who have web2py to work under android... May be search in the google group can help t

Re: [web2py] Web2py on android

2011-10-19 Thread Sebastian E. Ovide
have you considered Google Gears ? 2011/10/19 António Ramos > hello, can i install web2py on android? > > The need is to create an app for an android table that in some > circumstances may not have network access. > > As soo as it gets network signal a replication action could syncronize > conte

[web2py] Re: DAL: Selecting using the 'WHERE' clause

2011-10-19 Thread Sathvik Ponangi
@Anthony, I am running it with the Google AppEngine SDK for Python 1.5.5 on Windows7 I've just run into another issue here, with updating the records... When I try to update the table with update_record, I get a Syntax error saying t

[web2py] Re: response.files.append attributes

2011-10-19 Thread Anthony
I wasn't suggesting hacking the framework -- just create your own function somewhere in your app (or even in site-packages to use it in multiple apps). Anyway, it might not be a bad idea to enhance response.include_files() to support additional file types. On Wednesday, October 19, 2011 11:26:3

[web2py] Re: can auth.settings.on_failed_authorizatio raise http 403 error

2011-10-19 Thread Anthony
I think you actually want: auth.settings.on_failed_authentication = fff Note, authentication rather than authorization. I believe on_failed_authentication will be called before any redirect to the login page, and on_failed_authorization gets called after login if the condition for authorizatio

[web2py] Re: Error when @auth.requires_login() decorator is used on a method in controllers/default.py

2011-10-19 Thread Anthony
Why does the first version generate the error? On Wednesday, October 19, 2011 11:48:34 AM UTC-4, Massimo Di Pierro wrote: > > Fascinating in gluon/tools.py replace > > if condition and callable(condition): > condition = condition() > if no

[web2py] Re: GAE - SQL cloud connection

2011-10-19 Thread Massimo Di Pierro
This is another of those weird mysql issues CREATE TABLE IF NOT EXISTS web2py_filesystem (path VARCHAR(512), content LONGTEXT, PRIMARY KEY(path)); results in DatabaseError: 1071: Specified key was too long; max key length is 767 bytes I need to think about a workaround I have been running on

[web2py] Re: Error when @auth.requires_login() decorator is used on a method in controllers/default.py

2011-10-19 Thread Massimo Di Pierro
Fascinating in gluon/tools.py replace if condition and callable(condition): condition = condition() if not condition: with if not condition and not (condition and callable(condition) and condition()): does the problem go aw

Re: [web2py] AJAX weirdness

2011-10-19 Thread Anthony
On Wednesday, October 19, 2011 11:29:15 AM UTC-4, rochacbruno wrote: > > On Wed, Oct 19, 2011 at 1:13 PM, Harshad wrote: > >> Before we close this thead, I am curious as to why/how is this a security >> risk? > > > Having a controller which returns nothing > > def index(): > return dict() > >

[web2py] Re: Error when @auth.requires_login() decorator is used on a method in controllers/default.py

2011-10-19 Thread Massimo Di Pierro
The nightly version. Looks like the version is recomputed when the nightly version is built. Otehrwise it is the same as trunk. On Oct 18, 10:40 pm, Anthony wrote: > On Tuesday, October 18, 2011 8:30:41 PM UTC-4, Matthew Young wrote: > > > Hi everyone I am using the following python/web2y version

[web2py] Potential Bug?

2011-10-19 Thread horridohobbyist
I was just curious... In "profile", you can change your E-mail address. Does this send an "Email verification" message just as when you register (assuming you enabled this)? You can see what I'm getting at. If the registration email was verified and the user subsequently changes the email address

Re: [web2py] Re: can auth.settings.on_failed_authorizatio raise http 403 error

2011-10-19 Thread Bruno Rocha
On Wed, Oct 19, 2011 at 1:31 PM, d wrote: > so, any idea where is problem? is it because fff() function is not > right? > Any @auth. decorators first check if the user is logged in. So it is checking for logged in user before fire your fff function. You can supress (only in trunk) with require

Re: [web2py] Re: response.files.append attributes

2011-10-19 Thread Bruno Rocha
On Wed, Oct 19, 2011 at 1:26 PM, Francisco Costa wrote: > But if I want to upgrade web2py, I would lost that changes... Create your implementation under /modules or /models of your own application

[web2py] Re: can auth.settings.on_failed_authorizatio raise http 403 error

2011-10-19 Thread d
Thanks Anthony, After change to auth.settings.on_failed_authorization = fff for controller which requires log in and if user not logged in, it redirect to log in page. But purpose of using fff function is to raise http error but not redirecting to log in page. def fff(): raise HTTP(403, "H

Re: [web2py] AJAX weirdness

2011-10-19 Thread Bruno Rocha
On Wed, Oct 19, 2011 at 1:13 PM, Harshad wrote: > Before we close this thead, I am curious as to why/how is this a security > risk? Having a controller which returns nothing def index(): return dict() and for example in session. session.mysecretvariable = "hello" If the index controller

[web2py] Re: response.files.append attributes

2011-10-19 Thread Francisco Costa
On Oct 19, 2:41 pm, Anthony wrote: > That's currently not supported. I suppose you could write your own > include_less function, similar to response.include_files > (seehttp://code.google.com/p/web2py/source/browse/gluon/globals.py#195). > Then, include {{include_less()}} in your layout head. But

Re: [web2py] AJAX weirdness

2011-10-19 Thread Harshad
Before we close this thead, I am curious as to why/how is this a security risk?

[web2py] Web2py on android

2011-10-19 Thread António Ramos
hello, can i install web2py on android? The need is to create an app for an android table that in some circumstances may not have network access. As soo as it gets network signal a replication action could syncronize content with a server.Example at the end of the day. Also the tablet may be use

Re: [web2py] DAL: Selecting using the 'WHERE' clause

2011-10-19 Thread Anthony
Are you specifically running it using the GAE appserver -- see http://web2py.com/book/default/chapter/11#Running-and-Deployment? I think it's supposed to generate the index.yaml file automatically in that case. I don't use GAE, so maybe someone else on the list who does can chime in. On Wednes

Re: [web2py] DAL: Selecting using the 'WHERE' clause

2011-10-19 Thread Sathvik Ponangi
Dear Anthony, I am testing it locally, just as the book says. Do I need to do something else? With Regards, Sathvik

Re: [web2py] DAL: Selecting using the 'WHERE' clause

2011-10-19 Thread Anthony
On Wednesday, October 19, 2011 10:12:22 AM UTC-4, Sathvik Ponangi wrote: > > I don't have one. How do I generate it? Follow the instructions in the book. Looks like you have to run your app locally on your machine using the GAE appserver that comes with the SDK. I guess you should perform all t

Re: [web2py] grid usage

2011-10-19 Thread Martín Mulone
at the moment you can't pass vars to grid, instead use args. 2011/10/19 Manuele > On 19/10/2011 13:49, brushek wrote: > >> Hello, >> >> I want to use SQLFORM.grid in one controller like this: >> >> def klienci(): >> if request.vars.a == 'adresacje': >> grid=SQLFORM.grid(db.**adresacj

[web2py] Re: can auth.settings.on_failed_authorizatio raise http 403 error

2011-10-19 Thread Anthony
You should do: auth.settings.on_failed_authorization = fff You were calling the function fff() instead of assigning it to on_failed_authorization. Auth will call the function itself at the appropriate time. Anthony On Wednesday, October 19, 2011 10:21:18 AM UTC-4, d wrote: > > Hi All, > > I

[web2py] can auth.settings.on_failed_authorizatio raise http 403 error

2011-10-19 Thread d
Hi All, I am newbie in web2py, and currently work on web service of model part, say if user is logged in, then then can see the data, otherwise I want to raise http 403 error but not redirect user to log in page. Right now seems redirect user to log in page is default option. I tried but failed,

Re: [web2py] grid usage

2011-10-19 Thread Manuele
On 19/10/2011 13:49, brushek wrote: Hello, I want to use SQLFORM.grid in one controller like this: def klienci(): if request.vars.a == 'adresacje': grid=SQLFORM.grid(db.adresacje,user_signature=False) elif request.vars.a == 'serwery' or 'serwery' in request.args: gri

Re: [web2py] DAL: Selecting using the 'WHERE' clause

2011-10-19 Thread Sathvik Ponangi
I don't have one. How do I generate it? On Wed, Oct 19, 2011 at 7:39 PM, Anthony wrote: > On Wednesday, October 19, 2011 8:56:59 AM UTC-4, Sathvik Ponangi wrote: >> >> Dear Howsec, >> >> Bulls-Eye! Changing it from 'text' to 'string' fixed it!!! It works >> now. >> Thank you all a lot!!! >> >>

Re: [web2py] DAL: Selecting using the 'WHERE' clause

2011-10-19 Thread Anthony
On Wednesday, October 19, 2011 8:56:59 AM UTC-4, Sathvik Ponangi wrote: > > Dear Howsec, > > Bulls-Eye! Changing it from 'text' to 'string' fixed it!!! It works now. > Thank you all a lot!!! > > P.S. Could someone tell me why text didn't work? > Did you create an index.yaml file, as described h

[web2py] DAL for Apache Cassandra

2011-10-19 Thread seongjoo
Since Apache Cassandra 1.0 has been release, I wonder web2py developers are considering DAL for Cassandra.

[web2py] Re: Ideas for new welcome app

2011-10-19 Thread Anthony
Foundation has an MIT license. What would be more liberal? web2py is LGPLv3, which is more restrictive than MIT. On Wednesday, October 19, 2011 9:20:09 AM UTC-4, Joseph Jude wrote: > > choosing a license type as liberal as web2py would be preferred. as far as > I could read and understand, found

Re: [web2py] Re: grid custom button icons

2011-10-19 Thread Bruno Rocha
Here https://github.com/michenriksen/css3buttons you can find a list of all suported classes for standard style, for the ui-icon option take a look at jquery-ui theme roller page

[web2py] Re: represent, format in view

2011-10-19 Thread DenesL
On Oct 19, 5:57 am, andrej burja wrote: > requires = IS_IN_DB(db,'tag.id',db.tag._ > format,multiple=True) > > displays format of tag in dropdown while editing > > how to display format in view. doing it would be db.tag._format %row > row.tag > displays id > > is it different if format of tag

[web2py] Re: response.files.append attributes

2011-10-19 Thread Anthony
That's currently not supported. I suppose you could write your own include_less function, similar to response.include_files (see http://code.google.com/p/web2py/source/browse/gluon/globals.py#195). Then, include {{include_less()}} in your layout head. Anthony On Wednesday, October 19, 2011 9:3

Re: [web2py] AJAX weirdness

2011-10-19 Thread Harshad
Thanks to rochacbruno and Anthony, I was able to solve this problem. All I did was include the line response.generic_patters=[*] in db.py.

[web2py] response.files.append attributes

2011-10-19 Thread Francisco Costa
When you add files to the via response.files.append, web2py check if its a .css or .js and creates the html according: css: js: But if you want to change the rel attribute how can you do it? We need it because of LESS http://lesscss.org/#-client-side-usage that has an rel="stylesheet/less"

Re: [web2py] _href and user signature

2011-10-19 Thread Martín Mulone
Why do you need to pass a signature?. If it's in another controller put the authorization decorator and link as normal. If its in the same controller you only can pass args. 2011/10/19 Nik Go > In a smartgrid, I'm trying to generate a clickable link to view another > records. How do I pass the s

Re: [web2py] Re: table, grid, smartgrid, getting better

2011-10-19 Thread Martín Mulone
I think buttons are under T(), fill a ticket perhaps some are missing 2011/10/18 Tito Garrido > Is there a way to translate the buttons and etc? Is there any documentation > about smartgrid? This thread is so big... it complicated to follow it... > > Regards, > > Tito > > > On Mon, Oct 3, 2011 a

[web2py] Re: Ideas for new welcome app

2011-10-19 Thread Joseph Jude
choosing a license type as liberal as web2py would be preferred. as far as I could read and understand, foundation is not that liberal.

Re: [web2py] Re: grid custom button icons

2011-10-19 Thread Martín Mulone
ui = dict(widget='ui-widget', header='ui-widget-header', content='ui-widget-content', default='ui-state-default', cornerall='ui-corner-all', cornertop='ui-corner-top',

[web2py] Opera : web2py IDE : CTRL+S not working

2011-10-19 Thread Vineet
OS: Win7 web2py 1.99.2 windows version Browser: Opera ver. 11.51 After CTRL+S, a dialog box for "save file" is displayed. In IE and firefox, No problem. I read in earlier posts that this issue was addressed. Do I need to grab anything from the trunk? Vineet

Re: [web2py] DAL: Selecting using the 'WHERE' clause

2011-10-19 Thread Sathvik Ponangi
Dear Howsec, Bulls-Eye! Changing it from 'text' to 'string' fixed it!!! It works now. Thank you all a lot!!! P.S. Could someone tell me why text didn't work? With regards, Sathvik On Wed, Oct 19, 2011 at 9:14 AM, howesc wrote: > shot in the dark herechange the field type from 'text' to '

[web2py] json calls - differences between use with Pyjamas and json2.js

2011-10-19 Thread Carl
When using Pyjamas, in my default.py, I use functions of the form: @service.jsonrpc def get_function(params): # do some action based on params return ['planet', 3] but when calling from Spine (which uses json2.js) I need to add additional parameter and return value handling code. @servic

[web2py] Re: Smartgrid documentation.

2011-10-19 Thread annet
Bruno, Thanks for your reply, > The book version 4.0 is coming and smartgrid will be there. I'll await the new book ... Kind regards Annet.

[web2py] grid usage

2011-10-19 Thread brushek
Hello, I want to use SQLFORM.grid in one controller like this: def klienci(): if request.vars.a == 'adresacje': grid=SQLFORM.grid(db.adresacje,user_signature=False) elif request.vars.a == 'serwery' or 'serwery' in request.args: grid=SQLFORM.grid(db.serwery,user_signature=F

  1   2   >