[web2py] Re: web2py cherokee vanilla

2011-03-25 Thread pbreit
The uWSGI is required as far as I know. It's an alternative to fastcgi. Cherokee is fully aware of it but it does need to be installed separately.

[web2py] Re: web2py fabric, pip, virtualenv, virtualenvwrappers deployment scripts

2011-03-25 Thread Christopher Steel
If you use the --no-site-packages options then you will need to install PIL to your virtual environment(s). Make sure to make sure the environment is made "active" using 'workon' (if you are using the virtualenvwrappers script) or that you specify the virtual environemnts version of pip (or othe

[web2py] Re: Converting legacy MySQL databases to web2py DAL

2011-03-25 Thread Massimo Di Pierro
what are the differences between this one and the original? Should this be a replacement? On Mar 25, 10:36 pm, Kevin Ivarsen wrote: > Great idea - I was not aware of pymysql. I had assumed web2py depended on an > external MySQLdb module, which I already had installed. > > I changed the couple of

Re: [web2py] Re: Converting legacy MySQL databases to web2py DAL

2011-03-25 Thread Kevin Ivarsen
Great idea - I was not aware of pymysql. I had assumed web2py depended on an external MySQLdb module, which I already had installed. I changed the couple of lines to make it use gluon.contrib.pymysql, and it appears to still work. Revised copy is attached. Kevin ''' Create the web2py code neede

[web2py] Re: web2py fabric, pip, virtualenv, virtualenvwrappers deployment scripts

2011-03-25 Thread Christopher Steel
Any errors? Anything to do with this: http://stackoverflow.com/questions/1438270/installing-python-imaging-library-pil-on-snow-leopard-with-updated-python-2-6-2 On Mar 25, 2:50 pm, pbreit wrote: > I had a lot of trouble getting reliable installs of PIL, especially on my > Mac. What I currently

[web2py] Re: web2py cherokee vanilla

2011-03-25 Thread Dale DeWitt
I'd have no problem revisiting where it is but was just wondering if that middleware is absolutely necessary to get the ball rolling. I understand the eventual need for that. And, is it possible to script it after cherokee's already been install, or is it best to do both at once. On Mar 25, 8:41

[web2py] web2py cherokee vanilla

2011-03-25 Thread pbreit
I posted a shell script that installs uWSGI and Cherokee on ubuntu 10.04. Should be able to find it here and on slices.

[web2py] Re: help with using rich text file.

2011-03-25 Thread andre . dwyer89
I tried that and it still gave me the error, I guess I could just parse the variable as a string like: sum=1+2 string=str(sum) Section.append(string) Sent from my BlackBerry® device from Digicel

[web2py] web2py cherokee vanilla

2011-03-25 Thread Dale DeWitt
I've got the cherokee-admin Sources: type >remote host; nick >web2py; connection >127.0.0.1:8000. Virtual Server (Manual): nick >web2py; document root >/home/www-data/web2py root@1010:/opt/cherokee/sbin# ./cherokee-admin -b allows for ISP IP connection (Easy Install wget http://cherokee-project.c

Re: [web2py] Unpack a MIME message (Gmail)

2011-03-25 Thread Bani
Thanks Bruno Rocha! Yes, it helps... On 03/25/2011 06:42 AM, Bruno Rocha wrote: > may be this can help you > > |import email, getpass, imaplib, os > > > > > detach_dir = '.' # directory where to save attachments (default: current) > > > > user = raw_input("Enter your GMail username:") > >

[web2py] Re: Using date/datetime fields with sqlite3, and wcf xml/json clients

2011-03-25 Thread nick name
*> 2nd: Talking json to a WCF / .NET client * > My solution here was to modify simplejson so that it also escapes the '/' character, and just return '/Date(...)/' as my date value. This works, and (based on the same reasoning used by MS) is safe for anything. But I don't like it; Is there any si

[web2py] Re: How do you change xml format of datetime?

2011-03-25 Thread nick name
(sorry for taking so long to reply, I've been sidetracked by other things.) While trying to prepare a concise example and trace through everything, I was able to figure out the problem - I was using as_list(). Turns out that as_list() has a parameter "datetime_as_str" which defaults to True

[web2py] Re: What is the convention for using web2py/site-packages for GAE?

2011-03-25 Thread ChrisM
wondering if this has been resolved as i have copied a package into site packages using latest web2py and GAE dev_appserver cant find it. chrism On Feb 13, 11:46 am, Carl wrote: > On Feb 12, 4:03 pm, Jonathan Lundell wrote: > > > > > On Feb 12, 2011, at 3:12 AM, Carl wrote: > > > > I've avoided

[web2py] Re: can web2py "internal webserver" handle serveral requests in parallel?

2011-03-25 Thread Anthony
On Friday, March 25, 2011 5:09:28 PM UTC-4, olivier wrote: > > Thanks for all the answers. > > To summarize: > - session will lock unless the controller calls session._unlock() or > session.forget() Just to be clear, in order to unlock the session file, you have to pass 'response' to the fo

Re: [web2py] Re: to the artists among us

2011-03-25 Thread Marin Pranjic
On Fri, Mar 25, 2011 at 10:09 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Ideally this color scheme > > http://127.0.0.1:8000/examples/static/img/logo_db.png > > this: http://web2py.com/examples/static/img/logo_db.png :)

[web2py] Re: patch - redirect with original get_vars after multiple consecutive failed logins

2011-03-25 Thread howesc
gold star to carlos! i've been wanting that for some time now, but never took the time to dig up what line of code to change! christian

[web2py] Re: Proposals for New Tagline

2011-03-25 Thread Massimo Di Pierro
I does not. It is one of my favorites. On Mar 21, 5:46 pm, AdamF wrote: > > web2py : A small framework that allow you to think Big ;-) > > > Richard > > Web2py: solid as rock, easy as pie ;) > > I am not a native speaker so sorry if it sounds stupid ;) > > Regards > Adam

[web2py] Re: to the artists among us

2011-03-25 Thread Massimo Di Pierro
Ideally this color scheme http://127.0.0.1:8000/examples/static/img/logo_db.png It should contain the logo and a a subtitle for example "simplicity that makes you powerful" or something like that. We can change it later. Perhaps the web2py book tree in background? http://www.web2py.com/book/sta

[web2py] Re: can web2py "internal webserver" handle serveral requests in parallel?

2011-03-25 Thread olivier
Thanks for all the answers. To summarize: - session will lock unless the controller calls session._unlock() or session.forget() - database locking may also occur In my case, when calling (ajax) the same controller function with different parameters, the requests would be handled sequentially. Add

[web2py] Re: plugins

2011-03-25 Thread Will Stevens
>From what I can tell there is no way for me to upload the plugin there either. Am I just missing something? Will On Fri, Mar 25, 2011 at 4:11 PM, Arun K.Rajeevan wrote: > http://www.web2pyslices.com/main/default/index post it there. > for a plugin that's the better place. >

[web2py] Re: plugins

2011-03-25 Thread Arun K.Rajeevan
http://www.web2pyslices.com/main/default/index post it there. for a plugin that's the better place.

[web2py] Re: Proposals for New Tagline

2011-03-25 Thread Arun K.Rajeevan
Productive by design is good here goes some of my thoughts, 1. coding at thought's speed. 2. secure doesn't mean it's slow 3. fun back at web development 4. code less express more 5. framework for people who does things to do

[web2py] Re: DAL not working in shell

2011-03-25 Thread Nosnam
Thanks to everyone for the help! It was as you expected, I was trying to create (and manipulate) the database using the browser-based shell. I switched to the command line shell and it worked fine. It would be great to see Kevin's proposed changes to the browser-based shell, or at least a mention o

[web2py] Re: DAL not working in shell

2011-03-25 Thread Nosnam
Thanks for the help everyone! It was just as you expected, I was trying to create database connections with the browser-based shell instead of the console shell. Everything seems to work fine in the console. It would be nice to see Kevin's proposed changes to the browser-based shell get rolled into

[web2py] Re: to the artists among us

2011-03-25 Thread Hiran Venugopalan
I am that Zope3's logo designer. And I am glad to do this. Its a bit Huge 85cm x 198cm So what all content you need inside that banner. Also let me know the design idea / contents / color scheme / web2py logo and all such metas. Thanks PS: Thanks KRA who linked me to this requirement. ;) Hiran

[web2py] Re: to the artists among us

2011-03-25 Thread Arun K.Rajeevan
*I don't have a guaranty,* but I've already forwarded this to two of my designer friends who is being working with only open source fields. One of them is the man behind done Zope3's logo. May be they will drop in soon.

[web2py] Re: help with using rich text file.

2011-03-25 Thread pbreit
OK, I see. Well, a variable might work: s = 1+2 section.append(s)

[web2py] Re: Where is default user() auth() handler

2011-03-25 Thread pbreit
I've done what I imagine many projects end up doing: 1) Customize auth model: http://web2py.com/book/default/chapter/08#Customizing-Auth. 2) Rewrite views/default/user.html For example: {{if request.args(0)=='login':}} Login {{=form.custom.begin}} Email {{=form.c

[web2py] Re: web2py function documentation

2011-03-25 Thread pbreit
I agree about using the online book, especially if you are following along at your computer. If you are new to Python, make sure to read the Python chapter. Just keep in mind that writing technical documentation for a wide variety of skill levels is really, really hard. The Web2py Book does a v

[web2py] Re: web2py fabric, pip, virtualenv, virtualenvwrappers deployment scripts

2011-03-25 Thread pbreit
I had a lot of trouble getting reliable installs of PIL, especially on my Mac. What I currently do is "apt-get install python-imaging" which seems to work OK.

[web2py] Re: making row in form hidden (as opposed to making a form field hidden)

2011-03-25 Thread pbreit
Another technique is to set readable/writable in the controller. For example: def user(): hide_last_name = True if hide_last_name: db.auth_user.last_name.readable = db.auth_user.last_name.writable = False return dict(form=auth())

[web2py] Re: discounted books

2011-03-25 Thread Mariusz Zieliński
I'm interested aswell. Destination Poland :) On 25 Mar, 14:58, Massimo Di Pierro wrote: > I have a a few leftover web2py books from PyCon. They are new and I > can sell the at $20 each + mail. Let me know if you want once and I > will mail one to you.

Re: [web2py] Re: squeeze + Apache2 = lots of RAM

2011-03-25 Thread Anthony
When it redirects, I find I can simply hit the back button, and I get to the page I request (it doesn't redirect again once I go back). On Friday, March 25, 2011 2:25:02 PM UTC-4, pbreit wrote: > I"m on the new Google Groups and it's been acting really flakey recently > with links. As you say,

Re: [web2py] Re: squeeze + Apache2 = lots of RAM

2011-03-25 Thread pbreit
That looks simpler than mine. Here is what I came up with (Fabric script): Credit: http://library.linode.com/web-servers/nginx/python-uwsgi/ubuntu-10.04-lucid The two init.d files are: https://library.linode.com/web-servers/nginx/installation/reference/init-deb.sh https://library.linode.com/web-

Re: [web2py] Re: squeeze + Apache2 = lots of RAM

2011-03-25 Thread pbreit
I"m on the new Google Groups and it's been acting really flakey recently with links. As you say, it constantly redirects back to the main list. But sometimes it doesn't. I'm not sure how else to get you a link but the thread had to do with getting a setup script for Nginx.

[web2py] Re: plugins

2011-03-25 Thread Will Stevens
I have a plugin that I wrote that I thought other people may appreciate. How do I make it accessible to people? When I go to http://www.web2py.com/appliances and login, I cannot find how I add my plugin. Thanks, Will

Re: [web2py] Re: squeeze + Apache2 = lots of RAM

2011-03-25 Thread Vasile Ermicioi
before proceeding I created a custom running application from webfaction panel, then pointed my domain to this application *[ nginx install ]* wget http://nginx.org/download/nginx-0.8.54.tar.gz tar xvxf nginx-0.8.54.tar.gz cd nginx-0.8.54 ./configure \ --prefix=/home/myuseronwebfaction/nginx \

[web2py] Re: Using my own dropdown lists

2011-03-25 Thread Paul Gerrard
Sorry - false alarm. It's exactly as it should be - a typo in my code threw me completely. form.vars.fieldname is of course the way to go. Doh! :O) Paul.

[web2py] recent web2py contributors

2011-03-25 Thread Massimo Di Pierro
Recently I did not do a good job at keeping track of contributors. To save me time, if you have contributed a patch to web2py or reported an issue that resulted in a web2py patch, check if your name is mentioned here: http://web2py.com/examples/default/who If not, probably it should be, so - do n

[web2py] Re: patch - redirect with original get_vars after multiple consecutive failed logins

2011-03-25 Thread Massimo Di Pierro
uploading your fix On Mar 25, 12:38 pm, Carlos wrote: > Hi, > > It would be good if the original get_vars (e.g. _next) are carried forward > even after multiple consecutive failed logins, so I propose the following > change in tools.py, line 1497 (in v. 1.93.2): > > before: >    redirect(self.ur

[web2py] to the artists among us

2011-03-25 Thread Massimo Di Pierro
Since next week, I am attending Flourish and we will have a table, I am looking into printing a trade show banner ~ 33.5" w x 78" h. Does anybody want to help with design? massimo

[web2py] patch - redirect with original get_vars after multiple consecutive failed logins

2011-03-25 Thread Carlos
Hi, It would be good if the original get_vars (e.g. _next) are carried forward even after multiple consecutive failed logins, so I propose the following change in tools.py, line 1497 (in v. 1.93.2): before: redirect(self.url(args=request.args)) after: redirect(self.url(args=request.args,

[web2py] Small typo in Example 18

2011-03-25 Thread Bruno da Silva Assis
Hi! I was looking thru the Examples page when I stumbled upon a small typo on Example 18: 5. {{number.capitalize()}} Note that the closing tag should be . I've noticed this because in Internet Explorer 8 it renders in a quite strange way. In Firefox (and probably WebKit) it renders OK, so you s

[web2py] Re: video about new RESTful APIs

2011-03-25 Thread Massimo Di Pierro
It is in stable now. We may make minor changes but not major ones. I'd say post it. On Mar 25, 12:08 pm, mikech wrote: > Very good and very clear.  I wanted to post this to Dzone, but noticed that > it's a proposal.  Should I wait until the final format is set?

[web2py] Re: DAL not working in shell

2011-03-25 Thread ron_m
Sorry should have put in link for interest of others, the post on the DAL shell by Kevin is in web2py-developers at https://groups.google.com/forum/?pli=1#!topic/web2py-developers/AbBiV8hoLIw

[web2py] Re: Performance of web2py's hello world

2011-03-25 Thread Massimo Di Pierro
It is hard to do an apples to apples comparison. For example in Flask, unless you ask for it explicitly there is no session management. Basically Flask only gives you routing. web2py instead always assumes you want sessions so it parses the http header, looks for session cookies and assignes you a

[web2py] Re: DAL not working in shell

2011-03-25 Thread ron_m
It is in web2py-developers

[web2py] Re: video about new RESTful APIs

2011-03-25 Thread mikech
Very good and very clear. I wanted to post this to Dzone, but noticed that it's a proposal. Should I wait until the final format is set?

[web2py] Re: discounted books

2011-03-25 Thread ron_m
I would like one, location Vancouver Canada for the postage calculation. Can use Paypal if you like.

[web2py] Using my own dropdown lists

2011-03-25 Thread Paul Gerrard
Hi, I have a screen transaction that uses a select drop down list that i create myself using code in my controller. All works well except when I have an error on another field, Web2py highlights the error on screen, but if I've made a selection using the drop down list, the selection made (if diff

[web2py] Re: Performance of web2py's hello world

2011-03-25 Thread VP
Another observation to make is about relative comparison between Apache2 and ngnix. I think I could get better results with ngnix than I did get with Apache. But 3ms, I think might not worth it, if Apache is more stable. That said, ngnix might consume less RAM.

[web2py] Re: Performance of web2py's hello world

2011-03-25 Thread VP
I meant to say that: "I'm predicting that web2py will win (1), if DAL is faster than SQLAlchemy. And depending on who you're asking, web2py will win (2) as well." I messed it up after some renumbering. :-)

[web2py] Performance of web2py's hello world

2011-03-25 Thread VP
I saw a discussion on a new framework at reddit. In this discussion, someone ran a hello world test on this framework. He used Flask configured with ngnix. I assume that this is a good set up as the person appears to know what he's doing. This is on a VPS 512 Slicehost. Seeing this, I thought

[web2py] Re: discounted books

2011-03-25 Thread luckysmack
Same here.I'm interest. PayPal ok? On Mar 25, 6:58 am, Massimo Di Pierro wrote: > I have a a few leftover web2py books from PyCon. They are new and I > can sell the at $20 each + mail. Let me know if you want once and I > will mail one to you.

[web2py] Re: discounted books

2011-03-25 Thread luckysmack
What books are they? On Mar 25, 9:58 am, Massimo Di Pierro wrote: > I have a a few leftover web2py books from PyCon. They are new and I > can sell the at $20 each + mail. Let me know if you want once and I > will mail one to you.

Re: [web2py] Re: squeeze + Apache2 = lots of RAM

2011-03-25 Thread JorgeRpo
I would be interested in your config, too, elffikk

Re: [web2py] Re: squeeze + Apache2 = lots of RAM

2011-03-25 Thread Vasile Ermicioi
I use nginx with uwsgi on webfaction, I will post later my configuration and my steps to install them if you are interested webfaction offers max 80Mb per user processes in their default plan, and I needed something like this

Re: [web2py] Re: squeeze + Apache2 = lots of RAM

2011-03-25 Thread Anthony
After clicking the link, try hitting your back button. On Friday, March 25, 2011 10:13:57 AM UTC-4, Luis Díaz wrote: > pbreit > that link does not lead me to anything .. > > > Díaz Luis > http://www.facebook.com/diazluis2007 > User Linux 532223 > progjuegos.com > TSU Analisis de Sistemas > Uni

[web2py] Re: web2py fabric, pip, virtualenv, virtualenvwrappers deployment scripts

2011-03-25 Thread johntynan
I just rebuilt my current work with web2py on a new laptop (running ubuntu 10.10). Since google app engine's dev server requires python 2.5, I used the following command to install python2.5 within my virtualenv: virtualenv --python=python2.5 --no-site-packages python25_virtualenv However, I am

Re: [web2py] discounted books

2011-03-25 Thread Bruno Rocha
I want one. I can pay with paypal. How to calculate the shipping to Brazil? Em 25/03/2011 10:58, "Massimo Di Pierro" escreveu: > I have a a few leftover web2py books from PyCon. They are new and I > can sell the at $20 each + mail. Let me know if you want once and I > will mail one to you.

[web2py] Restifulie Python

2011-03-25 Thread contatogilson...@gmail.com
This is interesting: https://github.com/caelum/restfulie-py _ *Gilson Filho* *Web Developer http://gilsondev.com*

[web2py] Re: web2py function documentation

2011-03-25 Thread Anthony
On Friday, March 25, 2011 10:00:04 AM UTC-4, Hal Smith wrote: > > As I continue to plug along, following your manual, I keep bumping > into web2pyfunctions (I assume) - such as index (), first (), second > (), and dict (). It would be nice to have these documented, in > something like the UNIX

[web2py] Re: web2py function documentation

2011-03-25 Thread Massimo Di Pierro
There are Python keywords http://zetcode.com/tutorials/pythontutorial/keywords/ There are Python built-in function, defined here: http://docs.python.org/library/functions.html (dict is one of them) There are web2py APIs, they are all documented in the book: http://web2py.com/book/default/chap

Re: [web2py] Re: squeeze + Apache2 = lots of RAM

2011-03-25 Thread Luis Díaz
pbreit that link does not lead me to anything .. Díaz Luis http://www.facebook.com/diazluis2007 User Linux 532223 progjuegos.com TSU Analisis de Sistemas Universidad de Carabobo Facultad de Odontología

[web2py] Re: DAL not working in shell

2011-03-25 Thread Kevin Ivarsen
I see that the web2py book describes tarting the shell in Chapter 2 under Starting Up: http://web2py.com/book/default/chapter/02#Starting-up However, I think Chapter 6 should clarify that you need to use the command line shell and not the browser-based shell for doing the interactive examples,

Re: [web2py] Re: book "bugs"

2011-03-25 Thread Kevin Ivarsen
As of right now the site is working for me. It may have been a temporary error. Kevin

[web2py] Re: DAL not working in shell

2011-03-25 Thread Kevin Ivarsen
Are you using the shell in the web browser, accessed via the Admin app, or the command line shell? There are currently some limitations in the browser-based shell that prevent things like database connections and open file handles from working. (Speaking more precisely, the online shell can onl

[web2py] web2py function documentation

2011-03-25 Thread Hal Smith
As I continue to plug along, following your manual, I keep bumping into web2pyfunctions (I assume) - such as index (), first (), second (), and dict (). It would be nice to have these documented, in something like the UNIX Man pages. Later, it speaks of request.vars.visitor_name - without explaini

[web2py] discounted books

2011-03-25 Thread Massimo Di Pierro
I have a a few leftover web2py books from PyCon. They are new and I can sell the at $20 each + mail. Let me know if you want once and I will mail one to you.

[web2py] Re: Where is default user() auth() handler

2011-03-25 Thread Anthony
Also, see http://web2py.com/book/default/chapter/08#Authentication and http://web2py.com/book/default/chapter/08#Customizing-Auth. On Friday, March 25, 2011 9:12:46 AM UTC-4, Massimo Di Pierro wrote: > yes. in models/db.py > > fron gluon.tools import * # including Auth > auth = Auth(globals(),

[web2py] Re: Is it possible to update or insert object to database in one command?

2011-03-25 Thread Massimo Di Pierro
object_o = db.t_table(f_name='same name') or db.t_table[db.t_table.insert(f_name="some name")] On Mar 25, 7:21 am, Sergey Ozhigin wrote: > Thanks for answers, i will try that. > > Now, what about task "get object if exists, or create and get object > if it doesn't exist"? > > I use folowing co

[web2py] Re: Where is default user() auth() handler

2011-03-25 Thread Massimo Di Pierro
yes. in models/db.py fron gluon.tools import * # including Auth auth = Auth(globals(),db) auth.define_tables() On Mar 25, 7:02 am, villas wrote: > It is not so obvious from the name,  but the Auth class is in gluon/ > tools.py > > On Mar 25, 10:24 am, coderbuzz wrote: > > > > > > > > > Hi, star

[web2py] Re: OpenERP like widgets

2011-03-25 Thread Massimo Di Pierro
I know the developer of Tryton (http://www.tryton.org/en/) which is rewrite of OpenERP and is supposed even more modular. You may want to look into that too. On Mar 25, 3:47 am, jeff wrote: > Some elements about what you are asking about : > - The company behind OpenERP (Tiny) wrote the OpenERP c

[web2py] Re: onmouseover

2011-03-25 Thread DenesL
%s is part of the "old" string formatting options http://docs.python.org/tutorial/inputoutput.html#old-string-formatting for python 2.7 or newer there are fancier formatting options http://docs.python.org/tutorial/inputoutput.html#fancier-output-formatting On Mar 25, 8:18 am, Kenneth Lundströ

[web2py] Re: DAL not working in shell

2011-03-25 Thread DenesL
Please tell us how do you start the shell, which OS and which version of web2py are you using. On Mar 25, 12:12 am, Nosnam wrote: > I'm following along with the web2py book, and got hung up in Chapter > 6:http://web2py.com/book/default/chapter/06#DAL,-Table,-Field > > When I do the following: "d

[web2py] Re: Database

2011-03-25 Thread DenesL
Please post a sample of your table definitions and use them to explain what is your desired result. On Mar 25, 3:25 am, Rupesh wrote: > hi everyone. > i have a one problem with database. > i want use one of my column into another table. > i know i can do it with the help of Format function but i

[web2py] Database

2011-03-25 Thread Rupesh
hi everyone. i have a one problem with database. i want use one of my column into another table. i know i can do it with the help of Format function but i am not getting it.

[web2py] DAL not working in shell

2011-03-25 Thread Nosnam
I'm following along with the web2py book, and got hung up in Chapter 6: http://web2py.com/book/default/chapter/06#DAL,-Table,-Field When I do the following: "db = DAL('sqlite://storage.db')" absolute nothing happens after I press enter. Nothing happens in the console, no errors pop up in the error

[web2py] Re: Is it possible to update or insert object to database in one command?

2011-03-25 Thread Sergey Ozhigin
Thanks for answers, i will try that. Now, what about task "get object if exists, or create and get object if it doesn't exist"? I use folowing construction: object_o="" try: q= db.t_table.f_name == "some name" object_o=next(iter(db(q).select())) except: object_o=db.t_tabl

Re: [web2py] Re: onmouseover

2011-03-25 Thread Kenneth Lundström
Thank You, now I understand what that %s does. Have been using it for maybe twp years without understanding, just coping it from examples. Kenneth On Mar 24, 4:41 pm, Kenneth Lundström wrote: > I am guessing you mean a Python variable Right > so maybe: > _onmouseover="displayTe

[web2py] Re: Where is default user() auth() handler

2011-03-25 Thread villas
It is not so obvious from the name, but the Auth class is in gluon/ tools.py On Mar 25, 10:24 am, coderbuzz wrote: > Hi, starting learn web2py... and confusing on first sign. > > What I have do? > 1. Create new application via web intf, name it  'init' so it will be > default > 2. Clear views/

[web2py] Re: setting width of dropdown in TABLE/SELECT

2011-03-25 Thread Auden RovelleQuartz
that works - thank-you very much!! On Mar 25, 6:35 am, Martín Mulone wrote: > Add: _style="width: 300px;" to SELECT helper > > SELECT(_type="select", _name="field_name", _style="width: 300px;" ... > > 2011/3/25 Auden RovelleQuartz > > > > > > > > > > > the following code snippet: > > > { > >  

[web2py] Re: setting width of dropdown in TABLE/SELECT

2011-03-25 Thread Auden RovelleQuartz
thank - you On Mar 25, 6:35 am, Martín Mulone wrote: > Add: _style="width: 300px;" to SELECT helper > > SELECT(_type="select", _name="field_name", _style="width: 300px;" ... > > 2011/3/25 Auden RovelleQuartz > > > > > > > > > > > the following code snippet: > > > { > >      

Re: [web2py] setting width of dropdown in TABLE/SELECT

2011-03-25 Thread Martín Mulone
Add: _style="width: 300px;" to SELECT helper SELECT(_type="select", _name="field_name", _style="width: 300px;" ... 2011/3/25 Auden RovelleQuartz > the following code snippet: > > { > form=FORM(TABLE(TR("some field label",SELECT(_type="select", > _name="field_name", \ >

[web2py] setting width of dropdown in TABLE/SELECT

2011-03-25 Thread Auden RovelleQuartz
the following code snippet: { form=FORM(TABLE(TR("some field label",SELECT(_type="select", _name="field_name", \ *[OPTION("$" + str(cost) + " " + x.item)\ for x in db().select(d

[web2py] Where is default user() auth() handler

2011-03-25 Thread coderbuzz
Hi, starting learn web2py... and confusing on first sign. What I have do? 1. Create new application via web intf, name it 'init' so it will be default 2. Clear views/index.html and just leave: {{=BEAUTIFY(response._vars)}} to inspect the params (make me clear) 3. Entering this: http://127.0.0.1:8

[web2py] Re: OpenERP like widgets

2011-03-25 Thread jeff
Some elements about what you are asking about : - The company behind OpenERP (Tiny) wrote the OpenERP client/web server with another (french) company and I guess that the reason they didn't do that on their own is that this is a huge work. - Both clients (the web server you want to rewrote and the

[web2py] Re: Is it possible to update or insert object to database in one command?

2011-03-25 Thread carlo
This is the kind of thing I would love to find in a handy Web2py Cookbook! carlo On 24 Mar, 14:27, Massimo Di Pierro wrote: > You can do it without if as well: > > db(query).update(...) or db.mytable.insert(...) > > On Mar 24, 8:26 am, Massimo Di Pierro > wrote: > > > To know if it exist or not

[web2py] Re: help with using rich text file.

2011-03-25 Thread andre . dwyer89
Yes I was trying to actually, I jus wanted to see if I would be possible to perform certain mathematical calculations and store the result in an rtf Sent from my BlackBerry® device from Digicel