[web2py] Re: Apply CSS class to form Generated from DAL?

2012-06-13 Thread pbreit
This might become increasingly important as people try to add Bootstrap classing to various elements: form.element('input[name=color]')['_class']='myclass' ^ you can use jQuery notation to select elements Would this also allow "mixing in". Ex: form.element('input[name=color]')['_

[web2py] Re: How to prevent the default SQLFORM submit when the upload is complete and wait?

2012-06-13 Thread Charles Tang
This does prevent the submit but the index.html view which display the uploading and encoding progress is not active anymore since index.html contains ajax query to a controller reporting the uploading progress. On Thursday, June 14, 2012 12:11:11 PM UTC+8, Anthony wrote: > > I see. Do you want

[web2py] Re: truncate() not resetting the counter id in one table

2012-06-13 Thread sesenmaister
I'm using SQLDB('sqlite://mydb.db'). I was extracting info from a table using regular expressions, and inserting and updating the info in a new table. I had truncate()d a lot of times the table which later had the problem. On Thursday, June 14, 2012 5:53:34 AM UTC+2, Massimo Di Pierro wrote:

[web2py] Re: using a virtual machine

2012-06-13 Thread Craig Matthews
Hi. Can you put this vm image up and provide a link to it? On Wednesday, June 13, 2012 2:47:51 PM UTC-4, peter wrote: > > If you are setting up a website on a remote server you are hiring, then > life is difficult. Setting things up often requires a lot of trial and > error. Googling how to do

[web2py] Re: How to prevent the default SQLFORM submit when the upload is complete and wait?

2012-06-13 Thread Anthony
I see. Do you want the form processing action to simply wait until the file is processed before doing the insert and returning? In that case, you might use this approach: http://web2py.com/books/default/chapter/29/7#SQLFORM-without-database-IO? def index(): upload_form = SQLFORM(db.encodeup

Re: [web2py] Re: pyFpdf supports gif images?

2012-06-13 Thread Massimo Di Pierro
I will wait. Tell me when to merge. On Wednesday, 13 June 2012 21:45:58 UTC-5, Mariano Reingart wrote: > > Hi Massimo: > > I think you can merge it now, maybe more test would be better. > I'm working in unicode support, if you can give me a couple of days it > will be finished with unittests.

[web2py] Re: truncate() not resetting the counter id in one table

2012-06-13 Thread Massimo Di Pierro
db.table.truncate just runs the sql "TRUNCATE TABLE table". There is basically no web2py logic outside the SQL. Which database are you using? Is there an event that triggered the change in behavior? On Wednesday, 13 June 2012 21:16:12 UTC-5, sesenmaister wrote: > > Some evil happended, and tru

[web2py] Re: How to prevent the default SQLFORM submit when the upload is complete and wait?

2012-06-13 Thread Charles Tang
I did some hacking in the copystream in gluon/main.py and begin encoding with ffmpeg from the temporary file onece it detect video upload is happen.

[web2py] Re: How to prevent the default SQLFORM submit when the upload is complete and wait?

2012-06-13 Thread Charles Tang
The encoding happens at backend and progresss is displayed by ajax request. On Thursday, June 14, 2012 10:51:15 AM UTC+8, Anthony wrote: > > Where is the encoding happening? > > On Wednesday, June 13, 2012 10:24:33 PM UTC-4, Charles Tang wrote: >> >> The controller code is simple: >> def index():

[web2py] Re: upload - exceptions.MemoryError

2012-06-13 Thread Anthony
Fixed in trunk now: http://code.google.com/p/web2py/source/detail?r=9debb760021449f9857247efccae5799c84fa515 On Wednesday, June 13, 2012 8:25:02 AM UTC-4, Anthony wrote: > > I think this is a bug. If you're using the "welcome" app layout.html, > auth.navbar() is inserted here: > http://code.goo

Re: [web2py] Is web2py the right tool for a report project?

2012-06-13 Thread Jason Brower
I think web2py would do this very well. I come from experience in jasper reports. --- Jason On 06/13/2012 11:15 PM, thinkwell wrote: I'm rewriting a python report script that processes CSV files and emails the reports on a monthly basis (triggered from system cron). My python script basically

[web2py] Re: How to prevent the default SQLFORM submit when the upload is complete and wait?

2012-06-13 Thread Anthony
Where is the encoding happening? On Wednesday, June 13, 2012 10:24:33 PM UTC-4, Charles Tang wrote: > > The controller code is simple: > def index(): > upload_form = SQLFORM(db.encodeupload) > if upload_form.process().accepted: > session.flash = 'upload complete!' > redire

[web2py] Re: Are we the biggest site using web2py?

2012-06-13 Thread pbreit
I wonder if Cloudflare would help? You could get a free CDN for images at least.

[web2py] Is web2py the right tool for a report project?

2012-06-13 Thread thinkwell
I'm rewriting a python report script that processes CSV files and emails the reports on a monthly basis (triggered from system cron). My python script basically does the following: 1. Parse CSV data. 2. Write html report and save to archive directory on server. 3. Email report as attachment to

[web2py] Web2py 2.0 and SQLFORM

2012-06-13 Thread David Simmons
Hi All I've downloaded Web2Py version 2.00.0 (2012-06-12) from Github today. I created a simple database table and form using SQLFORM. I then display the form using {{=form}}. I can enter data in the form, the form gets saved BUT the redisplayed form does not clear the data: Here is my controll

[web2py] Re: Are we the biggest site using web2py?

2012-06-13 Thread pbreit
I would imagine that's probably the largest install by a wide margin. Are your inserts and pageviews mostly ad impressions? Those might be better handled by something like Mongo. Have you made progress making the tables conditional or putting them in modules. Any opportunities to denormalize ta

Re: [web2py] Re: pyFpdf supports gif images?

2012-06-13 Thread Mariano Reingart
Hi Massimo: I think you can merge it now, maybe more test would be better. I'm working in unicode support, if you can give me a couple of days it will be finished with unittests. Best regards, Mariano Reingart http://www.sistemasagiles.com.ar http://reingart.blogspot.com On Wed, Jun 13, 2012 a

[web2py] Re: Changing images and CSS with language preferences

2012-06-13 Thread Anthony
> > {{if T.accepted_language in('en','en-us'):}} > > {{else:}} > > {{pass}} > You could also replace the above with something like: Then just translate the name of the image file. Even easier, you could use the same image file names but put them in sub-folders with the same names as the la

[web2py] Re: Why errors for incompetent programmer?

2012-06-13 Thread pbreit
We need to see your code, what edits you made and what error messages you are receiving. The more information you can provide, the better we are able to help.

[web2py] Re: How to prevent the default SQLFORM submit when the upload is complete and wait?

2012-06-13 Thread Charles Tang
The controller code is simple: def index(): upload_form = SQLFORM(db.encodeupload) if upload_form.process().accepted: session.flash = 'upload complete!' redirect(URL('index')) uploadlist = db().select(db.encodeupload.ALL) return dict( upload_form = upload_form, uplo

[web2py] truncate() not resetting the counter id in one table

2012-06-13 Thread sesenmaister
Some evil happended, and truncate() has stopped working properly in editor: doesn't reset the counter id, as did before, but only for one of my tables. def cleaning_db(): > db.table1.truncate() > db.table2.truncate() > > def myAction(): > cleaning_db() > db.table1.insert(car='c

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Cliff Kachinske
Gabriella, Does the problem go away if you define the pictures table before the route table? On Wednesday, June 13, 2012 6:38:07 PM UTC-4, Gabriella Canavesi wrote: > > Yes off course :-) > It is just below the route table definition, here: > > db.define_table('pictures', >

[web2py] Why errors for incompetent programmer?

2012-06-13 Thread song
Thanks for developers of web2py programs. I'm not a programmer but a scientist and engineers. I'm often programming if necessary. At recent, I began to study the web2py system. I start the welcome examples. And I modified only the models of the new welcome applications, and titled "Working"

Re: [web2py] pyFpdf supports gif images?

2012-06-13 Thread Cliff Kachinske
Thanks, Mariano I'm using PyFPDF for printed reports with various logos on them; the extended report will come in handy. Cliff Kachinske On Wednesday, June 13, 2012 5:41:21 PM UTC-4, Mariano Reingart wrote: > > PyFPDF currently supports jpg and png (binary transparency should > work, but alpha

Re: [web2py] Re: pyFpdf supports gif images?

2012-06-13 Thread Massimo Di Pierro
can I merge with latest pyfpdf? On Wednesday, 13 June 2012 19:43:41 UTC-5, Mariano Reingart wrote: > > Hi Bob: > > I've added full alpha channel transparency support and GIF format > conversion using PIL (ported from FPDF.php 1.7) > > Can you give it a try? > > https://pyfpdf.googlecode.com/hg

[web2py] Re: new feature in trunk: better markmin

2012-06-13 Thread Massimo Di Pierro
ok. send me a patch. On Wednesday, 13 June 2012 19:38:05 UTC-5, villas wrote: > > Hi Massimo, > > I notice in markmin that an image is centered using P tags like this: > > > > The problem is that HTML attributes are over-ruled by CSS. Therefore this > 'align' attribute is usually ignored. >

Re: [web2py] server down?

2012-06-13 Thread Massimo Di Pierro
some follow up. One thing that happened when the problem started is that I was experimenting with the apache settings and turned off keepalive. I do not fully understand the implications of apache settings (mpm_prefork_module vs mpm_worker_module) and their parameters but since Python get slowe

Re: [web2py] Re: pyFpdf supports gif images?

2012-06-13 Thread Mariano Reingart
Hi Bob: I've added full alpha channel transparency support and GIF format conversion using PIL (ported from FPDF.php 1.7) Can you give it a try? https://pyfpdf.googlecode.com/hg/fpdf.py (you have to replace fpdf.py file in gluon.contrib directory) Mariano Reingart http://www.sistemasagiles.com

[web2py] Re: new feature in trunk: better markmin

2012-06-13 Thread villas
Hi Massimo, I notice in markmin that an image is centered using P tags like this: The problem is that HTML attributes are over-ruled by CSS. Therefore this 'align' attribute is usually ignored. I am wondering therefore whether we could do something like this instead: I also noticed th

Re: [web2py] Are we the biggest site using web2py?

2012-06-13 Thread Bruno Rocha
radbox.me has a big traffic also http://zerp.ly/rochacbruno Em 13/06/2012 20:52, "Bruce Wade" escreveu: > Hi, > > I am really curious if we are the biggest site using web2py at this time? > > So for this month we have used over 512GB of bandwidth averaging > 12,000,000 - 120,000,000 page views a

[web2py] Are we the biggest site using web2py?

2012-06-13 Thread Bruce Wade
Hi, I am really curious if we are the biggest site using web2py at this time? So for this month we have used over 512GB of bandwidth averaging 12,000,000 - 120,000,000 page views a day (and growing), around 1,000,000 - 5,000,000 db inserts daily, 3 databases around 156 tables now. 1 nodebalancer

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Ovidio Marinho
In my long walks migrate sqlite to postgres, I detected that the import_csv has problems when there is this relationship and the table with no records, made ​​the importation into the hand he behaves well. but definitely we know and know that Massimo has import_csv problems sqlite -> to <- Postgres

[web2py] Re: pyFpdf supports gif images?

2012-06-13 Thread Bob St John
Hi Mariano, Yes, binary transparency works with png... thanks. On Wednesday, June 13, 2012 12:37:29 PM UTC-7, Bob St John wrote: > > The documentation for pyFpdf indicates support for gif images, yet there > does not seem to be any hooks for gif in the FPDF class. > > pyFpdf seems to be a nice w

Re: [web2py] server down?

2012-06-13 Thread Massimo Di Pierro
The fact is I did not have that problem before. The number of users has not increased much. Either a recent commit changed something (if this is a web2py problem) or it is a cache issue (I have many apps and some cache too much stuff in ram). massimo On Wednesday, 13 June 2012 17:38:26 UTC-5,

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Massimo Di Pierro
Sorry. I asked a stupid question. Not sure what is wrong. I am looking into possibilities. On Wednesday, 13 June 2012 17:38:07 UTC-5, Gabriella Canavesi wrote: > > Yes off course :-) > It is just below the route table definition, here: > > db.define_table('pictures', > Field("

Re: [web2py] server down?

2012-06-13 Thread Bruce Wade
This seems like the same problems I am having with new.youadworld.com all the resources are getting sucked out of 5 servers. I am starting to think I will have to start porting some of the sites features to a different technology. This is a bad situation as I have been developing www.fittraineronl

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Paolo
Yes off course :-) It is just below the route table definition, here: db.define_table('pictures', Field("picture", "upload", requires=(IS_NOT_EMPTY(), IS_IMAGE())), Field("normal", "upload", IS_IMAGE()), Field("thumbnail", "upload", IS_IMAGE()),

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Massimo Di Pierro
Do you have a db.define_table('pictures',) ? On Wednesday, 13 June 2012 17:21:52 UTC-5, Gabriella Canavesi wrote: > > Hi Niphlod, thanks you for the suggestion I solved even that error and > I added > check_reserved=['common','postgres', 'sqlite'] to avoid future > problems. > > Unfortu

Re: [web2py] server down?

2012-06-13 Thread Massimo Di Pierro
I do not know. Everything worked fine for long time until one week ago I started having problems with the server. The fact is nothing changed in web2py to be causing this. I am still debugging but not much info to look at. I have lots of apps running on the same server and I am planning to do a

Re: [web2py] web2py down

2012-06-13 Thread Massimo Di Pierro
It is up again. > >

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Paolo
Hi Niphlod, thanks you for the suggestion I solved even that error and I added check_reserved=['common','postgres', 'sqlite'] to avoid future problems. Unfortunately now I am getting an error saying: relation "pictures" does not exist which is the first field set as reference. the table defin

Re: [web2py] pyFpdf supports gif images?

2012-06-13 Thread Mariano Reingart
BTW, I'm looking that GIF and alpha channel is supported in FPDF.php 1.7, I'll try to port the changes to python, let me know if you're interested in testing it. Best regards Mariano Reingart http://www.sistemasagiles.com.ar http://reingart.blogspot.com On Wed, Jun 13, 2012 at 6:41 PM, Mariano

Re: [web2py] pyFpdf supports gif images?

2012-06-13 Thread Mariano Reingart
PyFPDF currently supports jpg and png (binary transparency should work, but alpha channel is not supported) You can use PIL to convert between formats as reportlab does (FPDF.php also uses GD to convert images to png) Let me know if it works or you need something else, Best regards, Mariano Rein

[web2py] Re: server down?

2012-06-13 Thread Bill Thayer
Same problem. On Wednesday, June 13, 2012 4:08:56 PM UTC-5, davidjensen wrote: > > cannot establish connection to www.web2py.com > 2012-06-13T17:11 >

[web2py] Re: excelpy in web2py

2012-06-13 Thread Niphlod
still, for exporting a table in csv, web2py provides a nice shortcut: str(db(db.table.id>0).select()) the only limit is having the headers set as web2py's table fields, e.g. table.id, table.name, etc. working with csv is nonetheless very straightforward http://docs.python.org/library/csv.h

Re: [web2py] excelpy in web2py

2012-06-13 Thread Jim Steil
I'm not familiar with excelpy, but I use xlrd and xlwt to read and write Excel files with Python. Works with web2py just fine. -Jim On 6/13/2012 4:18 PM, Janath wrote: Hi, I try to use excelpy module in web2py, and it raises following error. I do the same in python and it works properly

[web2py] Re: excelpy in web2py

2012-06-13 Thread Niphlod
seems like an import error if you changed something in it, did you try restarting web2py ? BTW: I couldn't find excelpy source, but for basic "exporting" without needs of formatting, I'm vry happy with tablib http://docs.python-tablib.org/ (discovered that in this list!) Il giorno merco

[web2py] excelpy in web2py

2012-06-13 Thread Janath
Hi, I try to use excelpy module in web2py, and it raises following error. I do the same in python and it works properly. my code in controller is: def excelpy_test(): import excelpy exl_temp=excelpy.workbook('perturb') exl_temp.show() Be kind to let me know if working with exce

Re: [web2py] server down?

2012-06-13 Thread Javier Quarite
On Wed, Jun 13, 2012 at 4:08 PM, davidjensen wrote: > cannot establish connection to www.web2py.com > 2012-06-13T17:11 > Me too :( why is this happening constantly? Javier

[web2py] server down?

2012-06-13 Thread davidjensen
cannot establish connection to www.web2py.com 2012-06-13T17:11

Re: [web2py] web2py down

2012-06-13 Thread Bruno Rocha
The same for me! *Bruno Cezar Rocha* http://www.CursoDePython.com.br [image: Facebook] [image: Twitter] [image: LinkedIn] [image: about.me] [image: Amazon]

[web2py] Re: Changing images and CSS with language preferences

2012-06-13 Thread RKS
Thanks. Works great. I never thought about translating my CSS attributes. For anyone coming in the future a quick example of what I've done with Massimo's suggestion is add for image swapping: {{if T.accepted_language in('en','en-us'):}} {{else:}} {{pass}} and for the css attributes you can j

[web2py] pyFpdf supports gif images?

2012-06-13 Thread Bob St John
The documentation for pyFpdf indicates support for gif images, yet there does not seem to be any hooks for gif in the FPDF class. pyFpdf seems to be a nice way to create reports, but my project requires gif images with transparency

[web2py] Re: A Web2py CMS like Joomla ?

2012-06-13 Thread Gour
On Tue, 12 Jun 2012 14:21:36 -0700 (PDT) "Arthur P." wrote: > Having installed my first CMS using Joomla, my albums using Gallery2, > and having more recently used Drupal, I think most if not all Python > based CMS's are still very much "programmer's products", have not yet > reached the plug and

[web2py] Re: new feature: GAE projections

2012-06-13 Thread Anthony
Can we simplify to "projection=True" instead of "withprojection=True"? Anthony On Wednesday, June 13, 2012 2:49:55 PM UTC-4, howesc wrote: > > Hi all, > > in trunk is an update and modification to the projection queries. because > of the extra index potentially needed to run a projection query

[web2py] Re: Connecting to Mysql on MAMP?

2012-06-13 Thread pbreit
Apparently it's easier than that: db = DAL('mysql://localhost/web2py', driver_args={'unix_socket':'/opt/local/var/run/mysql51/mysqld.sock'})

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread pbreit
Need to see the code near this line which is causing the error: "/home/paolo/Dropbox/git/web2py/applications/bikend/models/db.py", line 252, in format='%(name)s (%(id)s)' It might be missing a comma or parentheses. On Wednesday, June 13, 2012 7:08:51 AM UTC-7, Gabriella Canavesi wrote:

[web2py] Re: Web2py and Projection Queries

2012-06-13 Thread howesc
there is an update in trunk, please see comments here: https://groups.google.com/forum/?fromgroups#!topic/web2py/HWy0NuelElA On Tuesday, June 12, 2012 12:24:48 PM UTC-7, howesc wrote: > > and thinking about backward compability, if we start automatically doing > projection queries and users don'

[web2py] Re: new feature: GAE projections

2012-06-13 Thread howesc
Hi all, in trunk is an update and modification to the projection queries. because of the extra index potentially needed to run a projection query i updated select on GAE to take an optional attribute 'withprojection' which is a boolean, when True i attempt a projection query. i also implement

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Niphlod
yes, you're using "end" as column namethis is not allowed in postgres and oracle, and also on mssql. Bites me every time, but actually a good practice would be to create the model within a connection made this way: db = DAL(uri, check_reserved_keyword=['all']) it will stop your model creat

[web2py] using a virtual machine

2012-06-13 Thread peter
If you are setting up a website on a remote server you are hiring, then life is difficult. Setting things up often requires a lot of trial and error. Googling how to do it is useful but comes up with many many bum steers. Using a virtual machine on your own laptop with a duplicate of the operat

[web2py] SQLFORM.grid with links in columns

2012-06-13 Thread Cornelius Kölbel
Hi there, I think I found a missing feature and thus got a feature request for the sqlform.grid und thus for the sqlform. I tried to take a look into the code and I think it is not possible. I am using version 1.99.7. I'd like to a a link to any abitrary column. Let's say I got a table | head1 |

[web2py] Centos 5 script for Nginx with Uwsgi and Web2py

2012-06-13 Thread peter
Installing Web2py with Nginx and Uwsgi on Centos 5 is really tricky. There are lots of subtleties of ownership, and one has to take care when installing python 2.6 not to stop the systems python2.4 from working. I have finally developed a script that does all the installation from a clean sta

[web2py] Re: Changing images and CSS with language preferences

2012-06-13 Thread Massimo Di Pierro
if T.accepted_language in ('es','es-es'): should do what you ask. Anyway, I you can use {{=T('...')}} to translate everything not just text. You can use to "translate" the css attributes and with of columns. On Wednesday, 13 June 2012 12:40:01 UTC-5, RKS wrote: > > The old way I was doing thin

[web2py] Changing images and CSS with language preferences

2012-06-13 Thread RKS
The old way I was doing things (because I hadn't had time to explore how w2p was handling T) was creating multiple views based on languages with anchors pointed at these different views. Easy enough since I only had like 6 views to translate into one other language. But now that I want to do th

[web2py] Re: web2py book now free in PDF

2012-06-13 Thread Massimo Di Pierro
of course. ;-) On Wednesday, 13 June 2012 10:36:40 UTC-5, Alan Etkin wrote: > > Congratulations! The pdf book is my first resource when clarifying app > development concepts and browsing for framework features. What about the > 5th edition? Is it on the roadmap? > > Thanks > > El martes, 12 de j

Re: [web2py] Re: Dashboard for web2py.

2012-06-13 Thread Richard Vézina
Didn't know PETL, thanks for sharing the info! Richard On Wed, Jun 13, 2012 at 10:54 AM, Ashraf Mansour wrote: > Most probably, these datasets will come from many different places. > So , ETL is required. > > What about adding nice interface to PETL? > Petl is in https://github.com/alimanfoo/pet

Re: [web2py] Benefit & Disadvantages of 'daemon'

2012-06-13 Thread Michele Comitini
The only way you do not run web2py as a daemon is by running it as a CGI. All other method provide a long running process and since most of them are disassociated from a controlling terminal so you can call them "daemons". In the case of apache + wsgi the daemon is apache itself that loads a pytho

[web2py] Re: web2py book now free in PDF

2012-06-13 Thread Alan Etkin
Congratulations! The pdf book is my first resource when clarifying app development concepts and browsing for framework features. What about the 5th edition? Is it on the roadmap? Thanks El martes, 12 de junio de 2012 10:17:46 UTC-3, Massimo Di Pierro escribió: > > The official web2py book is no

[web2py] Re: Dashboard for web2py.

2012-06-13 Thread Ashraf Mansour
Most probably, these datasets will come from many different places. So , ETL is required. What about adding nice interface to PETL? Petl is in https://github.com/alimanfoo/petl

[web2py] Re: Best practice using scheduler as a task queue?

2012-06-13 Thread Niphlod
Maybe I didn't get exactly what you need , but .. you have 3 tasks, that needs to be unique. Also, you want to be sure that if a task crashes doesn't remain "hanged". This should never happen with the scheduler the worst situation is that if a worker crashes (here "crashes" is it discon

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Paolo
Johann thanks, it worked! but now I got a new error :( Ticket: Traceback (most recent call last): File "/home/paolo/Desktop/git/web2py/gluon/restricted.py", line 205, in restricted exec ccode in environment File "/home/paolo/Dropbox/git/web2py/applications/bikend/models/db.py", line 2

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Johann Spies
On 13 June 2012 14:06, Paolo wrote: > Hi Johann, > Yes, I started the db in postgres is totally empty. > As y suggested I've removed all the files in databases/ but I am still > getting the same error. > > What do you mean with "drop all the app-related-tables" ? > in pgadmin3 or in psql: drop

Re: [web2py] Temporary tables: best practices

2012-06-13 Thread Richard Vézina
In your SELECT INTO you can't create a fake id field with a custom sequence just for the new table or better use the id field of the quered table? web2py doesn't need the field to be serial type it just need a integer field I think so when you define your model just tell web2py that the field is th

[web2py] Re: web2py book now free in PDF

2012-06-13 Thread Carlos Mantilla
Gracias por el esfuerzo y entrega! Carlos El martes, 12 de junio de 2012 08:47:46 UTC-4:30, Massimo Di Pierro escribió: > > The official web2py book is now free for everybody: > > https://dl.dropbox.com/u/18065445/web2py/web2py_manual_4th.1.pdf > > Massimo >

[web2py] Re: How to prevent the default SQLFORM submit when the upload is complete and wait?

2012-06-13 Thread Anthony
Can you show the controller code? On Wednesday, June 13, 2012 6:56:12 AM UTC-4, Charles Tang wrote: > > I am using sqlform to upload a video and in the meantime converting the > video to flv .Both the progress of uploading and encoding is displayed by > two progress-bar using this code( > http:/

[web2py] [Bug?] Application Name

2012-06-13 Thread Peter O
This may be a bug. parse_path_info() in shell.py gives (None, None, None), if the application name is abc-xyz, where the hyphen is causing the problem. abc_xyz is a valid application name. Version 1.99.4

[web2py] Re: web2py book now free in PDF

2012-06-13 Thread R. Osinga
Thanx!! On Tuesday, June 12, 2012 3:17:46 PM UTC+2, Massimo Di Pierro wrote: > > The official web2py book is now free for everybody: > > https://dl.dropbox.com/u/18065445/web2py/web2py_manual_4th.1.pdf > > Massimo >

[web2py] Re: upload - exceptions.MemoryError

2012-06-13 Thread Anthony
I think this is a bug. If you're using the "welcome" app layout.html, auth.navbar() is inserted here: http://code.google.com/p/web2py/source/browse/applications/welcome/views/layout.html#96. However, rather than completely removing, try the following: auth.navbar(..., action=URL()) That will

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Paolo
Hi Johann, Yes, I started the db in postgres is totally empty. As y suggested I've removed all the files in databases/ but I am still getting the same error. What do you mean with "drop all the app-related-tables" ? currently I am saving the db with db.export_to_csv_file() Regards, paolo Il

[web2py] How to prevent the default SQLFORM submit when the upload is complete and wait?

2012-06-13 Thread Charles Tang
I am using sqlform to upload a video and in the meantime converting the video to flv .Both the progress of uploading and encoding is displayed by two progress-bar using this code(http://www.web2pyslices.com/slice/show/1337/upload-progress-in-web2py). After the encoding and converting is both co

Re: [web2py] Re: web2py book now free in PDF

2012-06-13 Thread Rahul
okay.. removing the *s* from *'https'* works! I just downloaded it.. Awesome... Thanks Massimo Cheers Rahul D. On Wednesday, June 13, 2012 3:05:44 PM UTC+5:30, Amit wrote: > > I am able to download, its awesome ...thanks guys for your effort..can > anybody put free version of web2py cook book

[web2py] Re: web2py book now free in PDF

2012-06-13 Thread Omar Ali
Hey, that's great. Thanks .. On Tuesday, June 12, 2012 5:17:46 PM UTC+4, Massimo Di Pierro wrote: > > The official web2py book is now free for everybody: > > https://dl.dropbox.com/u/18065445/web2py/web2py_manual_4th.1.pdf > > Massimo >

Re: [web2py] Switching sqlite/postgres

2012-06-13 Thread Johann Spies
On 13 June 2012 10:55, Paolo wrote: > Hi all, > I am getting several errors switching from sqlite to postgres > Are you starting out on PostgreSQL with an empty database? > my connection string for sqlite was: > db = DAL('sqlite://storage.sqlite', migrate=True) > while for postgres is: > db =

[web2py] Re: web2py book now free in PDF

2012-06-13 Thread blye
Thank you! In return we lucky recipients of web2py should buy Cookbook by the heads! I wait my copy eagerly. On Tuesday, 12 June 2012 15:17:46 UTC+2, Massimo Di Pierro wrote: > > The official web2py book is now free for everybody: > > https://dl.dropbox.com/u/18065445/web2py/web2py_manual_4th.1.p

Re: [web2py] Re: web2py book now free in PDF

2012-06-13 Thread Amit
I am able to download, its awesome ...thanks guys for your effort..can anybody put free version of web2py cook book also, it would be appreciable. On Wed, Jun 13, 2012 at 2:46 PM, Rahul wrote: > It does not work for me - I *cannot *get my hands to the free PDF :( > Accessed from both firefox and

Re: [web2py] Re: A Web2py CMS like Joomla ?

2012-06-13 Thread Andrew
Thankyou Arthur and Jason, Arthur: I have looked at the instantpress post and I've installed it. I had a first look some time ago and it seems a lot easier in the later version. Well done Martin. I have started doing some trials with both instantpress and movuca, and I would have to say th

Re: [web2py] Re: web2py book now free in PDF

2012-06-13 Thread Rahul
It does not work for me - I *cannot *get my hands to the free PDF :( Accessed from both firefox and ie9 https://dl.dropbox.com/u/18065445/web2py/web2py_manual_4th.1.pdf* *anyother url to download the book?* * Thanks to everyone contributing to the book as well as previous purchasers of the bo

[web2py] Switching sqlite/postgres

2012-06-13 Thread Paolo
Hi all, I am getting several errors switching from sqlite to postgres my connection string for sqlite was: db = DAL('sqlite://storage.sqlite', migrate=True) while for postgres is: db = DAL('postgres://web2py:web2py@localhost:5432/mydb', migrate=True) so far, I got tickets saying ProgrammingError:

Re: [web2py] Re: web2py book now free in PDF

2012-06-13 Thread Khalil KHAMLICHI
Hi everybody, We should also thank those who paid for it when it was not free :) Thanks Massimo. On Wed, Jun 13, 2012 at 5:48 AM, RKumar Its mee wrote: > Thanks you Team. It is great really a great move > > > On Wed, Jun 13, 2012 at 2:59 AM, felix jimenez wrote: > >> muchas gracias Massimo >>