Re: [web2py] web2py 2.3.1?

2012-12-03 Thread Nico Zanferrari
I've notice yesterday that the DEBUG button on the admin interface has problems: it always gives just the error "invalid view (debug/interact.html)". 2012/12/4 rif > I've been using trunk for the last three weeks and I didn't notice any > problems. > > -rif > > -- > > > > --

Re: [web2py] python web2py.py -S welcome doesn't work

2012-12-03 Thread Johann Spies
On 4 December 2012 03:24, Michael Feingold wrote: > When I type: > python web2py.py -S welcome > > It just says: > python: can't open file 'web2py.py': [Errno 2] No such file or directory > > I have python 2.7.3 and I have web2py 1.99.7. > Where is the file web2py.py located? I was in the web2py d

[web2py] REF: Concatinate OPTIONS

2012-12-03 Thread Teddy Nyambe
I am still playing with SELECT(OPTION()), am having a challenge adding a ---select--- option to a list of options generated from a table. I have this, when it excites it adds an option with no content but with a value of all options see below: print SELECT(CAT(OPTION('--select--'),*[OPTION(s.name

Re: [web2py] web2py 2.3.1?

2012-12-03 Thread rif
I've been using trunk for the last three weeks and I didn't notice any problems. -rif --

[web2py] widget-select-or-add-option not working with web2py 2.0

2012-12-03 Thread Naleen Yadav
Hii All, I am working on a web application where I need to use widget-select-or-add-option but its not working. I am not getting " Add New"button rather getting "Add New" link, which does nothing. I have attached the snapsho

[web2py] A way to create employee scheduler?

2012-12-03 Thread greenpoise
Hi, Dates must be the most confusing thing on any prog. language. I dont know where to begin with this one. I tried the Appointment Appliance but it is not quite what I need. The scenario is if I have employees with different schedules, do I use generic dates/times (from 0-8 times) in the Datab

Re: [web2py] Re: ('web2py' in pycon.us.talks) == False

2012-12-03 Thread Massimo Di Pierro
Sorry. I should have clarified. I proposed a tutorial and a talk. They were rejected. I do not know if others have proposed talks on web2py. Too bad more talks on the subject should have been proposed. I am familiar with the previous process for reviewing proposals. I had my reservations about

[web2py] Re: Web2Py on OpenShift

2012-12-03 Thread greaneym
Andrew, thanks very much for the upgrade. I installed on openshift and tested one of my apps for teachers. It has 3 problems, an rss aggregator which doesn't work now, the data for a google map app did not load, and a video behaves differently (it recycles over and over instead of just playing

Re: [web2py] Command: python web2py.py doesn't work

2012-12-03 Thread Bruno Rocha
DId you downloaded the windows version? Mac version? I recommend you to use source version, then unzip and you will have the web2py.py file *Bruno Cezar Rocha** - @rochacbruno* rochacbr...@gmail.com | Mobile: +55 (11) 99210-8821 www.CursoDePython.com.br | www.rochacbruno.com.br On Mon, Dec 3,

Re: [web2py] web2py 2.3.1?

2012-12-03 Thread Massimo Di Pierro
It is mostly lots of bug fixes. More wiki and grid options. On Monday, December 3, 2012 6:50:42 PM UTC-6, rochacbruno wrote: > > I would check this now because I am preparing a talk and material for new > students. > > There are any key feature or change that we need to look? > --

[web2py] Re: Issue with length of cookie header

2012-12-03 Thread Massimo Di Pierro
It uses the SimpleCookie.load method. we can make it more resilient at the expense of using our own parser which would be slower. I think we should leave this alone but I will bring this up on web2py-developers. Feel free to join that list. It is public. On Monday, December 3, 2012 6:36:30 PM U

[web2py] Re: @request.restful args...bug or feature?

2012-12-03 Thread Massimo Di Pierro
Perhaps restful should take an argument to prevent that. By default is essumes restful requests terminate in .extension On Monday, December 3, 2012 5:24:00 PM UTC-6, howesc wrote: > > Hi all, > > i'm trying to parse some data with a restful request that has arguments. > my GET looks something l

[web2py] python web2py.py -S welcome doesn't work

2012-12-03 Thread Michael Feingold
When I type: python web2py.py -S welcome It just says: python: can't open file 'web2py.py': [Errno 2] No such file or directory I have python 2.7.3 and I have web2py 1.99.7. Where is the file web2py.py located? I was in the web2py directory as well. Thank you --

[web2py] Command: python web2py.py doesn't work

2012-12-03 Thread Michael Feingold
I can start it up by clicking the icon or browsing for it. but if I type in the command: python web2py.py -S welcome like in the tutorial, however, it says python: can't open file 'web2py.py': [Errno 2] No such file or directory What am I doing wrong? Where is the web2py.py file? I also change

Re: [web2py] Re: ('web2py' in pycon.us.talks) == False

2012-12-03 Thread Bruno Rocha
Somebody proposed a talk? --

[web2py] Re: ('web2py' in pycon.us.talks) == False

2012-12-03 Thread Joe Barnhart
Who in the overall structure of PyCon decides these things? Do they live in the Bay Area? I can be pretty persuasive when I want to. (No, not in the Godfather sense!) -- Joe B. On Monday, December 3, 2012 2:45:13 PM UTC-8, Massimo Di Pierro wrote: > > I have just been informed there will be

[web2py] Re: Create a custom layout based on existing web site css

2012-12-03 Thread Mark Kirkwood
Thanks Massimo! I see that since I posted the original question the web2py book has gained some good stuff about how to do this (or maybe I just did not know where to find it back then...). For anyone else who (like me) has small experience with css and web design, I modelled by styling changes

Re: [web2py] web2py 2.3.1?

2012-12-03 Thread Bruno Rocha
I would check this now because I am preparing a talk and material for new students. There are any key feature or change that we need to look? --

[web2py] Re: Issue with length of cookie header

2012-12-03 Thread Dominic Cioccarelli
Ok, found the issue (probably specific to my environment). One of the cookies seems to be "badly formatted", specifically "lib/pb_server.py" (still trying to find where that one comes from). In web2py main.py, the following code will only load the cookies up to the bad one: #

[web2py] Re: Issue with length of cookie header

2012-12-03 Thread Dominic Cioccarelli
Hi Massimo, sure, the parsing code is as follows: def getCookie(name): cookies = self.request.env.http_cookie.split(';') for cookie in cookies: cookie = cookie.strip() if cookie.startswith(name): temp = cookie.spl

[web2py] @request.restful args...bug or feature?

2012-12-03 Thread howesc
Hi all, i'm trying to parse some data with a restful request that has arguments. my GET looks something like this: http://127.0.0.1:8080/api_v7/test/subscription/com.company.product.IWantYouTheJaSou0001 my controller is api_v7, my method is test, then there are 2 args the last of which has do

Re: [web2py] ('web2py' in pycon.us.talks) == False

2012-12-03 Thread Ovidio Marinho
Again this discussion.my God! Ovidio Marinho Falcao Neto Web Developer ovidio...@gmail.com ovidiomari...@itjp.net.br ITJP - itjp.net.br 83 8826 9088 - Oi 83 9336 3782 - Claro

Re: [web2py] ('web2py' in pycon.us.talks) == False

2012-12-03 Thread Ovidio Marinho
why? Ovidio Marinho Falcao Neto Web Developer ovidio...@gmail.com ovidiomari...@itjp.net.br ITJP - itjp.net.br 83 8826 9088 - Oi 83 9336 3782 - Claro Brasil 2012/12/3 Mas

[web2py] ('web2py' in pycon.us.talks) == False

2012-12-03 Thread Massimo Di Pierro
I have just been informed there will be no web2py talk and no web2py tutorial at PyCon US 2013. Massimo --

[web2py] Re: Upload directly to the server: error

2012-12-03 Thread Massimo Di Pierro
I plan to release a new stable later this week. On Monday, 3 December 2012 11:42:05 UTC-6, Paulo wrote: > > I think I have good news: I tried trunk version instead and the upload of > a 300 mb file worked perfectly! > > I was using the stable 2.2.1 version until now. > > I use web2py in a product

[web2py] web2py 2.3.1?

2012-12-03 Thread Massimo Di Pierro
Please check the nightly build. I would like to release 2.3.1 asap, later this week. Massimo --

Re: [web2py] Re: Why does 'group' field cause web2py to stall?

2012-12-03 Thread Massimo Di Pierro
This is a good idea. It is now in trunk! On Monday, 3 December 2012 16:10:35 UTC-6, Marin Pranjić wrote: > > I think it should be there in welcome app, just as migrations are turned > on. > > > On Mon, Dec 3, 2012 at 10:55 PM, Massimo Di Pierro > > > wrote: > >> It is not enabled by default sim

[web2py] mysql vulnerabilities

2012-12-03 Thread Massimo Di Pierro
http://www.securityweek.com/security-researcher-releases-batch-mysql-vulnerabilities --

Re: [web2py] Re: Why does 'group' field cause web2py to stall?

2012-12-03 Thread Marin Pranjić
I think it should be there in welcome app, just as migrations are turned on. On Mon, Dec 3, 2012 at 10:55 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > It is not enabled by default simply for performance reasons. > > > On Monday, 3 December 2012 13:08:01 UTC-6, David Tucker wrote:

[web2py] Re: Why does 'group' field cause web2py to stall?

2012-12-03 Thread Massimo Di Pierro
It is not enabled by default simply for performance reasons. On Monday, 3 December 2012 13:08:01 UTC-6, David Tucker wrote: > > Wow thanks for that check_reserved=['all'] tip, turns out I had a few > illegal names that weren't causing problems yet. I wonder why it's not > enabled by default. > >

[web2py] Re: Why does 'group' field cause web2py to stall?

2012-12-03 Thread David Tucker
Wow thanks for that check_reserved=['all'] tip, turns out I had a few illegal names that weren't causing problems yet. I wonder why it's not enabled by default. On Saturday, December 1, 2012 2:01:17 PM UTC-8, David Tucker wrote: > > I'm editing my data model in db.py and trying to add a field t

[web2py] Re: Upload directly to the server: error

2012-12-03 Thread Paulo
I think I have good news: I tried trunk version instead and the upload of a 300 mb file worked perfectly! I was using the stable 2.2.1 version until now. I use web2py in a production server with other websites online. Is it safe to use trunk version for the final web? Or should I wait for the s

[web2py] Re: cron job not running at all

2012-12-03 Thread Massimo Di Pierro
Cron was broken. Until 1h ago (revision hg 4451). @reboot should also be fixed. The problem was a typo introduced in rev 4278. On Monday, 3 December 2012 15:39:42 UTC-6, david.waldrop wrote: > > Ok I am giving up on cron and going to try the scheduler. > One thing I am not sure of is whether or n

[web2py] Re: Issue with length of cookie header

2012-12-03 Thread Massimo Di Pierro
Can you post your cookie parsing code? It would help us understand the problem. On Monday, 3 December 2012 15:28:12 UTC-6, Dominic Cioccarelli wrote: > > Hi all, > > I have discovered an issue with the way web2py treats the "cookies" > header. Specifically, when the header grows bigger than a ce

[web2py] Re: cron job not running at all

2012-12-03 Thread david.waldrop
Ok I am giving up on cron and going to try the scheduler. One thing I am not sure of is whether or not the scheduler worker task is started automatically by default? How can I tell if there are any worker tasks executing. In the web faction environment how can I start the worker tasks. And do so a

Re: [web2py] Re: Truncate Sqlite DB

2012-12-03 Thread Mike Anson
Cheers for all the responses. On Monday, 3 December 2012 16:16:22 UTC-5, Niphlod wrote: > > without migrations, db and tables have to be there. As soon as you turn > migrations on, the first request will recreate databases and the tables. > Having a scheduler defined in your models will just crea

[web2py] Issue with length of cookie header

2012-12-03 Thread Dominic Cioccarelli
Hi all, I have discovered an issue with the way web2py treats the "cookies" header. Specifically, when the header grows bigger than a certain size, web2py doesn't retrieve all the required cookies for the domain in question. In my case, the application is running on an intranet for a rather big

[web2py] Re: importing issues

2012-12-03 Thread Maggs
Yes On Saturday, December 1, 2012 10:57:45 AM UTC-8, Massimo Di Pierro wrote: > > Did you restart web2py/web server? > > On Friday, 30 November 2012 15:07:26 UTC-6, Maggs wrote: >> >> Hm, ok, that makes sense. However I have changed the name of the module >> within my app and restart web2py but I

Re: [web2py] Re: Truncate Sqlite DB

2012-12-03 Thread Niphlod
without migrations, db and tables have to be there. As soon as you turn migrations on, the first request will recreate databases and the tables. Having a scheduler defined in your models will just create also the 3 tables the scheduler needs to work (just as the auth_* tables if you're using web

Re: [web2py] Re: Truncate Sqlite DB

2012-12-03 Thread Mike Anson
Yes I did delete everything from /databases before but my problems could have arisen from not having migrations turned on. Just want to make sure that if I have a scheduler, should I restart web2py without the scheduler initially so the DB can be recreated or does it not matter? On 3 December 20

Re: [web2py] Re: Truncate Sqlite DB

2012-12-03 Thread Niphlod
with sqlite wouldn't it be easier to just delete all contents of the databases/* folder ? As long as the first request comes in and you have table migrations turned on, the database and all the tables will be recreated. On Monday, December 3, 2012 8:47:45 PM UTC+1, viniciusban wrote: > > Do you

[web2py] Re: web2py on Heroku

2012-12-03 Thread Massimo Di Pierro
get_db tries to get a postgres database. If it does not found one, it thinks it running local and revers to sqlite. On Monday, 3 December 2012 11:10:32 UTC-6, Niphlod wrote: > > db = DAL('sqlite://heroku.test.sqlite') > > isn't this problem related to the fact that trying to use a sqlite db on

Re: [web2py] Web2py database design

2012-12-03 Thread Vinicius Assef
Try http://code.google.com/p/wwwsqldesigner/ On Mon, Dec 3, 2012 at 7:17 AM, David wrote: > Hi guys, > > I'm new to web2py, and got a question here. I want to design a database with > sqlite for my app, but I prefer to design it on a visualiable tool e.g. GEA, > which is recommended in web2py ad

Re: [web2py] Re: Truncate Sqlite DB

2012-12-03 Thread Vinicius Assef
Do you want a code snippet to clear you database? Try this: >>> for t in db.tables: >>>db[t].truncate() >>>db.commit() On Mon, Dec 3, 2012 at 5:17 PM, Mike Anson wrote: > Can anyone else give my advice on clearing out my database? > > > On Wednesday, November 28, 2012 12:10:13 PM UTC-5,

[web2py] Re: REF: Populating SELECT with OPTIONS from DB unexpected results

2012-12-03 Thread Teddy Nyambe
Thanks you guys, wealth of information, web2py 4 life! On Monday, December 3, 2012, Anthony wrote: > Note, CAT() is only needed when you need to keep a group of HTML elements > together inside an HTML helper object (e.g., for further manipulation) but > don't want any surrounding HTML tags. Becau

[web2py] Re: Truncate Sqlite DB

2012-12-03 Thread Mike Anson
Can anyone else give my advice on clearing out my database? On Wednesday, November 28, 2012 12:10:13 PM UTC-5, Mike Anson wrote: > > *Database: Sqlite v3.7* > > Hello all, > > I have thousands of test records accumulated through testing my > application. > > Forgive me for not taking the advice p

[web2py] Re: redirect loop when using routes_app_raw

2012-12-03 Thread Massimo Di Pierro
I am on the IRC channel. Let's talk abut this. The problem is not fixing this. The problem is that I do not understand what it is supposed to do. I did not create feature. massimo On Monday, 3 December 2012 10:49:16 UTC-6, Vasile Ermicioi wrote: > > hi, > > 2 weeks ago I commented on it > http:

[web2py] Re: web2py on Heroku

2012-12-03 Thread Niphlod
db = DAL('sqlite://heroku.test.sqlite') isn't this problem related to the fact that trying to use a sqlite db on heroku is forbidden ? (read-only filesystem!) On Monday, December 3, 2012 6:00:26 PM UTC+1, Massimo Di Pierro wrote: > > Can you try run this: > > heroku addons:add heroku-postgresq

[web2py] Re: Upload directly to the server: error

2012-12-03 Thread Massimo Di Pierro
Are you using trunk or stable? Can you try trunk? On Monday, 3 December 2012 03:59:48 UTC-6, Paulo wrote: > > Hi again. > First of all: thanks a lot for your answer Massimo, I know you have a lot > to do, thanks for patiently helping the rookies. > > I had already tried that code (saw from an ol

[web2py] Re: web2py on Heroku

2012-12-03 Thread Massimo Di Pierro
Can you try run this: heroku addons:add heroku-postgresql:dev On Sunday, 2 December 2012 08:41:53 UTC-6, Joe Repka wrote: > > I tested with the welcome app. The script seems to work fine now. Web2py > on Heroku opens in a browser after the script runs. > > However, there is still a database driv

[web2py] Re: web2py on Heroku

2012-12-03 Thread Joe Repka
I tested with the welcome app. The script seems to work fine now. Web2py on Heroku opens in a browser after the script runs. However, there is still a database driver error: Failure to connect, tried 5 times: Traceback (most recent call last): File "/app/gluon/dal.py", line 6825, in __init__ s

[web2py] Re: Upload directly to the server: error

2012-12-03 Thread Paulo
Hi again. First of all: thanks a lot for your answer Massimo, I know you have a lot to do, thanks for patiently helping the rookies. I had already tried that code (saw from an old post) but it dont work too. Tried again and it gives the same exact error. This is the full code I used: import os

Re: [web2py] Re: How to call controller function upon onClick from html?

2012-12-03 Thread Arshad Ali
I have problems regarding fetching value from a text field, I have created a form in python/web2py as shown below: form = FORM(DIV (DIV(SPAN(' First Name ', _class='signup', _style=''),INPUT(_name='fname', _style=''' float:right; width:200px; height:20px; border-radius:3px; border:1px soli

Re: [web2py] Re: How to call controller function upon onClick from html?

2012-12-03 Thread Arshad Ali
How can I call a python function from javascript with passing a value getting from text field??? please help me in this. On Monday, September 3, 2012 10:13:20 AM UTC+5, Amit wrote: > > Thanks Anthony :) > > Regards, > Amit > > On Fri, Aug 31, 2012 at 4:47 PM, Anthony >wrote: > >> On Thursday, Au

[web2py] Web2py database design

2012-12-03 Thread David
Hi guys, I'm new to web2py, and got a question here. I want to design a database with sqlite for my app, but I prefer to design it on a visualiable tool e.g. GEA, which is recommended in web2py admin panel. But after some trials, I can't get the generated script work in web2py, especially for

[web2py] redirect loop when using routes_app_raw

2012-12-03 Thread Vasile Ermicioi
hi, 2 weeks ago I commented on it http://code.google.com/p/web2py/issues/detail?id=1105 just downloaded web2py trunk and it is still not fixed when it will be fixed? (there are 6 weeks since it was reported) --

Re: [web2py] response.js isolation

2012-12-03 Thread Richard Vézina
Ho yeah! Thank Anthony, I forgot about .live() jQuery(document).ready(function () { jQuery(".icon-calendar").live("click", function() {$(this).parent().prev().click().focus();}); }); @Niphlod, the other instance of the calendar was hided at the bottom of the page, so I discover them

Re: [web2py] response.js isolation

2012-12-03 Thread Anthony
Instead of adding two identical click even handlers, maybe it would work to use the jQuery .live() method to add the handler just once (when the main page is loaded). The .live() method will handle events even on DOM elements that are added to the page after the handler is initiated -- see http

Re: [web2py] response.js isolation

2012-12-03 Thread Niphlod
response.js gets executed when you load a component. There is no "scope separation" that executes the javascript fragment only in the loaded component. PS: didn't you asked already and solved the issue with this dreaded .icon-calendar ? On Monday, December 3, 2012 4:26:47 PM UTC+1, Richard wro

[web2py] Re: Unable to send emails (mail.send) from server

2012-12-03 Thread Niphlod
STOP! you should have only executed from gluon.tools import Mail server = Mail('smtp.gmail.com:587', 'your...@gmail.com', 'youruser:password' ) server.send('t...@example.com', 'subject', 'test body') and copied the output here. You seem to have entered in the console my example output, that is N

[web2py] Re: web2py static folder

2012-12-03 Thread Niphlod
in web2py all links generated with URL are relative, unless you specify the host parameter. I really don't see the problem: normally static files links are defined in layout.html and if you're using response.files.append(URL('tosomethingstatic')). How many are there in your app? 20, 30 ? Is it

[web2py] Re: Unable to send emails (mail.send) from server

2012-12-03 Thread Aurelijus Useckas
Thanx for a tip Niphlod, Here's the output: >>> send: 'ehlo [127.0.1.1]\r\n' reply: '250-mx.google.com at your service, [95.244.128.226]\r\n' reply: '250-SIZE 35882577\r\n' reply: '250-8BITMIME\r\n' reply: '250-STARTTLS\r\n' reply: '250 ENHANCEDSTATUSCODES\r\n' reply: retcode (250); Msg: mx.googl

Re: [web2py] Re: dashboard using bootstrap

2012-12-03 Thread Richard Vézina
I am not sure I understand your question. web2py bootstrap.js contain all the boostrap.js into one file. So you don't need to import anything else from bootstrap to create any bootstrap "effect" (just make sure you don't try to use something available in new version of bootstrap since web2py boots

[web2py] response.js isolation

2012-12-03 Thread Richard
Hello, I read in the book that response.js should be use to insert javascript stuff that should be executed in context of a LOAD component. My understanding is that the piece of javascript embeded in the component should be executed only in the component... But under web2py 221 I can get this

[web2py] Re: REF: Populating SELECT with OPTIONS from DB unexpected results

2012-12-03 Thread Anthony
Note, CAT() is only needed when you need to keep a group of HTML elements together inside an HTML helper object (e.g., for further manipulation) but don't want any surrounding HTML tags. Because you're putting the OPTION's inside a SELECT, there is no need for the CAT. Anthony On Monday, Decem

Re: [web2py] Re: REF: Populating SELECT with OPTIONS from DB unexpected results

2012-12-03 Thread Anthony
In Python, when passing a list as a function argument, if you precede the list with a *, that is equivalent to entering each element of the list as a separate positional argument. When passing a dictionary as a function argument, if you precede the dictionary with a **, that is equivalent to en

[web2py] Re: Check if a from's boolean is true or false from the controller

2012-12-03 Thread Niphlod
if it's checked the corresponding var would be True. If the form is submitted the controller will receive that field as request.vars.fieldname or as form.vars.fieldname if you are using a form. When you "get to" the form.process() line the value has been already been "shipped" to the database.

Re: [web2py] Re: REF: Populating SELECT with OPTIONS from DB unexpected results

2012-12-03 Thread Teddy Nyambe
Hi Sorry for posting again ... more findings and more questions on the * and **. I am getting same results when i use * or don't use it, what function does the * and ** really do puzzling a bit... print SELECT([OPTION(s.name, _value=s.id) for s in db(db.file_subject).select()]) am getting results

Re: [web2py] Re: REF: Populating SELECT with OPTIONS from DB unexpected results

2012-12-03 Thread Teddy Nyambe
...Hi Masimo, Its working when i remove the one asterisk (*)...with two its giving an error, my db is fine...look at the results: In [2] : print SELECT(*[OPTION(s.name, _value=s.id) for s in db(db.file_subject).select()]) Information TechnologyCorrespondance In [3] : print SELECT(**[OPTION(s.na

[web2py] Check if a from's boolean is true or false from the controller

2012-12-03 Thread Daniele
Hey guys, I'm wondering if there's a way from the controller to know whether a form's boolean field (checkbox) is selected or not. I only want to add the info in the form to the database if the checkbox is selected, otherwise the controller should not process that form. Thanks! --

[web2py] Re: Login not working after moving to 2.2.1

2012-12-03 Thread Massimo Di Pierro
I do not know what the problem is. Looks like a problem with emails or sessions but I cannot think of change that may cause this behavior. Before starting debugging, can you check the latest trunk? What OS? What python version? On Monday, 3 December 2012 03:57:36 UTC-6, Geo wrote: > > this is g

[web2py] Re: REF: Populating SELECT with OPTIONS from DB unexpected results

2012-12-03 Thread Massimo Di Pierro
You do not need CAT SELECT(**[OPTION(s.name, _value=s.id) for s in db(db.file_subject).select()]) yet I do not think this is the problem. Probably you have duplicated options in database. On Monday, 3 December 2012 01:23:06 UTC-6, software.ted wrote: > > Hi, I have this unusual behavior of

[web2py] Re: dashboard using bootstrap

2012-12-03 Thread Manuele Pesenti
Il 29/11/12 10:58, Manuele Pesenti ha scritto: Is there something more I need for bootstrap except what I find in web2py static js libs? Thankyou very mutch Manuele ok... now what about the real question? thankyou M. --

Re: [web2py] Re: Web2Py on OpenShift

2012-12-03 Thread Alec Taylor
On Sun, Oct 21, 2012 at 1:57 AM, Massimo Di Pierro wrote: > Notice you can do > > $ pip install pyfilesystem > import pyfilesystem s3 = fs.s3fs.S3FS() db.define_table('mytable',,Field('file','upload',uploadfs = s3),...) > > You can use any pyfilesystem (s3, dropbox, ftp, zip

[web2py] Re: web2py static folder

2012-12-03 Thread elyase
Well if I am uploading my whole my static folder to cloudfront I wouldn't like to have to manually change all my url links for every image, css, js file in there, I know in Django you just change the static_url location in the settings, isn't there something similar in Web2py? On Thursday, Nove

[web2py] Re: Web2Py on OpenShift

2012-12-03 Thread elyase
thanks a lot Andrew On Saturday, December 1, 2012 1:58:28 AM UTC+1, Andrew wrote: > > FYI - I've finally gotten some time to update the repo to 2.2.1 > > For those interested, give it a test and report any issues in the github > project issue currently opened for 2.2.1 > > As I get time I'm goin

[web2py] Re: server request as transfer encoding: chunked not working

2012-12-03 Thread Niphlod
that's because with chunked encoding when you read the 1st byte you don't know how many other bites are coming (lacking the content-length, you can't tell in advance "how many bytes is the request") On Monday, December 3, 2012 1:26:55 PM UTC+1, szimszon wrote: > > Wow. Thanks for the hint :) > >

[web2py] Re: server request as transfer encoding: chunked not working

2012-12-03 Thread szimszon
I was able to handle it: try: import gluon if isinstance(request.env.wsgi_input, gluon.rocket.ChunkedReader): body = '' while True: try: s = request.env.wsgi_input.read(1) if s == '':

[web2py] Re: server request as transfer encoding: chunked not working

2012-12-03 Thread szimszon
Wow. Thanks for the hint :) Funny that the variables have a different type in *chunked*: request.body: request.env.wsgi_input: and in *Content-Lenght* context: request.body: request.env.wsgi_input: 2012. december 3., hétfő 13:10:31 UTC+1 időpontban Niphlod a következőt írta: > > don'

[web2py] Re: server request as transfer encoding: chunked not working

2012-12-03 Thread Niphlod
don't know if it's a design decision but request.body is filled only if there is a content-length header, otherwise a StringIO() is returned. you can still read the contents iterating over request.env.wsgi_input On Monday, December 3, 2012 12:30:38 PM UTC+1, szimszon wrote: > > Version 2.2.1 (20

[web2py] Re: server request as transfer encoding: chunked not working

2012-12-03 Thread szimszon
Version 2.2.1 (2012-11-04 20:45:19) stable --

[web2py] server request as transfer encoding: chunked not working

2012-12-03 Thread szimszon
Hi All! I wonder if somebody could help me. I need a little help with rocket :( I have a contoller like: def statementlist(): body = request.body.read() return dict(body=body) And I try to send a request as: curl -H "Transfer-Encoding: chunked" --data 'Some data inside the request...'

[web2py] Re: Help with rendering checkboxes differently

2012-12-03 Thread Niphlod
checkbox 1,2,3 requires you to have multiple possible values that can be checked. In your code only one checkbox is created: it's not strange that with your code only one checkbox is rendered. Check CheckboxesWidget in gluon/sqlhtml.py to understand how web2py generates the standard checkboxes w

[web2py] Re: Ref: Advise on XML document processing

2012-12-03 Thread Niphlod
elementtree, dom, minidom and sax are on the official python.org pages. lxml is the first result on google (lxml.de) . On Monday, December 3, 2012 5:01:57 AM UTC+1, software.ted wrote: > > Thanks, any pointers on documentation, cause I would like to create an > interface for my users, cause I f

[web2py] Re: Login not working after moving to 2.2.1

2012-12-03 Thread Geo
this is getting even more strange I have just tried adding a new record to db.auth_user but no additional records were created... --

[web2py] Re: Tips & tricks : showing / pre-viewing an image before uploading and/or resizing and/or submit :)

2012-12-03 Thread rif
Unfortunately it doesn't seem to work in internet explorer (except 10). Hopefully it will be usable in the next few years. -rif luni, 3 decembrie 2012, 06:20:12 UTC+2, Don_X a scris: > > Hello Web2py users : > > I had so much trouble with previewing an image before upload or submit, I > have t