Re: [web2py] Re: pymysql gives Broken Pipe

2011-02-06 Thread Fran Boon
On 6 February 2011 05:15, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Here is a proposed solution in trunk import mysqldb from gluon.dal import MySQLAdapter MySQLAdapter.adapter=mysqldb before calling db=DAL('mysql://...') That seems very workable :) Thanks a lot, Fran.

[web2py] Re: pending issues?

2011-02-06 Thread dlypka
My patch 5. is the most serious. That bug causes an exception when creating a table which has native GAE properties such as gae.ReferenceProperty() because that is not a string (it is not in quotes) For example, this will crash: db.Field('seq','integer'), # OK because

Re: [web2py] Re: Getting started

2011-02-06 Thread Richard Arts
I had a quick look at http://web2py.com/examples/static/cookbook.pdf the other day. Seems to be a nice guide as well. Regards, Richard

Re: [web2py] Re: postgresql error ... class 'psycopg2.ProgrammingError'(relation auth_user already exists)

2011-02-06 Thread Tom Atkins
Thanks for looking into this Massimo. I just pulled the most recent version and still get the same error as originally described. I added a comment here: http://code.google.com/p/web2py/issues/detail?id=173can=1sort=-id http://code.google.com/p/web2py/issues/detail?id=173can=1sort=-idLet me

Re: [web2py] Re: postgresql error ... class 'psycopg2.ProgrammingError'(relation auth_user already exists)

2011-02-06 Thread Ovidio Marinho
here I also have this same problem. I also still have problems with the ID in version 191.6. Ouvir Ler foneticamente Dicionário - Ver dicionário detalhadohttp://www.google.com.br/dictionary?source=translationhl=pt-BRq=langpair= Traduza qualquer site - Yomuiri

Re: [web2py] Re: Getting started

2011-02-06 Thread Anthony
On Sunday, February 6, 2011 5:55:39 AM UTC-5, Richard Arts wrote: I had a quick look at http://web2py.com/examples/static/cookbook.pdf the other day. Seems to be a nice guide as well. Yes, that looks like a good start too. Though, keep in mind that it is fairly old, and there have been

Re: [web2py] Re: postgresql error ... class 'psycopg2.ProgrammingError'(relation auth_user already exists)

2011-02-06 Thread Tom Atkins
Oops - sorry, ignore my last message. I had an old version of dal.pyc... removed that and restarted web2py and everything is working great. Many thanks. On 6 February 2011 13:26, Tom Atkins minkto...@gmail.com wrote: Thanks for looking into this Massimo. I just pulled the most recent version

[web2py] Re: GAE timeout when wsgihandler.py is missing

2011-02-06 Thread dlypka
I suggest checking the logs for any clues. Slow running often = exceptions are happening. On Feb 5, 6:12 pm, Charles Law charles@gmail.com wrote: I am uploading an app to GAE. Through some experimentation I've found that if I don't include wsgihandler.py, the app loads very slowly. It

[web2py] Django vs web2py pain points

2011-02-06 Thread Luther Goh Lu Feng
Hi all, I am about to have a constructive discussion about web2py vs django with a team member of mine before we decide whether to implement a project. He is an expert with django while I consider myself an intermediate web2py user. This is not a flamebait, but I would like to mainly hear pain

[web2py] Re: pending issues?

2011-02-06 Thread Massimo Di Pierro
just do diff -rupN original/dal.py your/dal.py your-dal.patch On Feb 6, 4:41 am, dlypka dly...@gmail.com wrote: My patch 5. is the most serious.  That bug causes an exception when creating a table which has native GAE properties such as gae.ReferenceProperty() because that is not a string

[web2py] Re: postgresql error ... class 'psycopg2.ProgrammingError'(relation auth_user already exists)

2011-02-06 Thread Massimo Di Pierro
The least comment in the issue thread says it is fixed after deleting the pyc. Is that not correct? On Feb 6, 7:26 am, Tom Atkins minkto...@gmail.com wrote: Thanks for looking into this Massimo.  I just pulled the most recent version and still get the same error as originally described.  I

[web2py] Next record in crud.create

2011-02-06 Thread Running Clam
Hi All, Using CRUD methods, in a controller I have: - def update(): crud.settings.showid = True crud.settings.update_next = URL('view', args=[request.args(0),request.args(1)]) return dict(form=crud.update(db.accmgr, request.args(1))) ...and update_next takes me to view

[web2py] Re: Django vs web2py pain points

2011-02-06 Thread Michael Toomim
The biggest django pain points to me: - Templating system is a PAIN. You have to learn a new language, and in the end it's not as powerful as python. - Database ORM can be a pain. Same reasons. You have to learn a big special-purpose API in addition to SQL, and learn how it translates

[web2py] Re: Django vs web2py pain points

2011-02-06 Thread Massimo Di Pierro
Django has a better administrative interface (equivalent to our addadmin) bot nothing equivalent web2py admin. Django has no migrations. Every time you update the models you have to alter tables yourself. There may be third party packages that do mirations but are not in the stable branch. Django

[web2py] Re: Next record in crud.create

2011-02-06 Thread Massimo Di Pierro
There is a shortcut for this: def add(): return dict(form=crud.create(db.accmgr,next='view/[id]')) On Feb 6, 9:55 am, Running Clam running.c...@gmail.com wrote: Hi All, Using CRUD methods, in a controller I have: - def update():      crud.settings.showid = True      

[web2py] Re: Django vs web2py pain points

2011-02-06 Thread Massimo Di Pierro
One more thing. Django follows: explicit is better than implicit. That means you have to be painfully detailed for everything you do. web2py follows: do no repeat yourself. Every has a default. so you can be very loose and still have code that works (models without controllers, controllers

[web2py] Re: Rocket with urllib2 behavior [BUG?]

2011-02-06 Thread Timbo
If you've only got one thread running, then yes, this will deadlock on any threaded server. Rocket was certainly not made to not allow lookups back to itself. Where are you putting this code? If by assigning to response are you masking web2py's response object? I... 1) downloaded a fresh copy

Re: [web2py] Re: Next record in crud.create

2011-02-06 Thread Running Clam
Hi Massimo, On 06/02/2011 16:03, Massimo Di Pierro wrote: There is a shortcut for this: def add(): return dict(form=crud.create(db.accmgr,next='view/[id]')) Sorted - Thanks! -- Cheers, Clam

[web2py] Re: Rocket with urllib2 behavior [BUG?]

2011-02-06 Thread Timbo
I had one more thought, does '/server/default/index' point to this code? If this is the case, then you have an infinite loop that consumes all available threads and deadlocks. Again, this is not a rocket-specific behavior. On Feb 6, 10:08 am, Timbo tfarr...@owassobible.org wrote: If you've

[web2py] Why do we do what we do?

2011-02-06 Thread Massimo Di Pierro
http://www.thersa.org/events/vision/animate/rsa-animate-drive

[web2py] Re: Rocket with urllib2 behavior [BUG?]

2011-02-06 Thread Massimo Di Pierro
wait... def index(): import urllib2 url = 'http://127.0.0.1:8000/welcome/default/index' resp = urllib2.urlopen(url).read() return resp + blah This creates an infinite loops that spans more and more threads. I assumed from the original post, the urllopen code was outside a

[web2py] Re: Django vs web2py pain points

2011-02-06 Thread pbreit
I personally prefer Web2py but I would not feel comfortable pushing it over Django when the other party is significantly disposed to using Django. Mainly because Django is more widely used and especially is known to have been used in many large projects. Web2py is excellent for prototyping and

[web2py] Re: Rocket with urllib2 behavior [BUG?]

2011-02-06 Thread Timbo
It only creates infinite loops if it's in the welcome application...which it isn't (as I specified in step 2). In either case, we still need more information. On Feb 6, 12:04 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: wait... def index():     import urllib2     url =

[web2py] Re: Django vs web2py pain points

2011-02-06 Thread Luther Goh Lu Feng
Is there an equivalent to http://docs.djangoproject.com/en/dev/ref/models/fields/#urlfield in web2py? If not, how does one validate an external url that is to be stored in the database?

Re: [web2py] Re: Django vs web2py pain points

2011-02-06 Thread Jonathan Lundell
On Feb 6, 2011, at 11:40 AM, Luther Goh Lu Feng wrote: Is there an equivalent to http://docs.djangoproject.com/en/dev/ref/models/fields/#urlfield in web2py? If not, how does one validate an external url that is to be stored in the database? There are validators, IS_URL and IS_HTTP_URL,

[web2py] Re: Django vs web2py pain points

2011-02-06 Thread Luther Goh Lu Feng
On Feb 7, 3:54 am, Jonathan Lundell jlund...@pobox.com wrote: On Feb 6, 2011, at 11:40 AM, Luther Goh Lu Feng wrote: Is there an equivalent tohttp://docs.djangoproject.com/en/dev/ref/models/fields/#urlfield in web2py? If not, how does one validate an external url that is to be

[web2py] Re: Django vs web2py pain points

2011-02-06 Thread Anthony
On Sunday, February 6, 2011 1:28:58 PM UTC-5, pbreit wrote: I personally prefer Web2py but I would not feel comfortable pushing it over Django when the other party is significantly disposed to using Django. Mainly because Django is more widely used and especially is known to have been

[web2py] Problem with DAL and Postgres

2011-02-06 Thread Bernardo
Dear all, I am using web2py 1.91.6 and last version of Ubuntu. A model which works perfectly using sqlite database, throws an error when using a postgres database: ProgrammingError: syntax error at or near 100 LINE 1: ALTER TABLE auth_user ADD password VARCHAR(100); posible bug

Re: [web2py] Re: Running web2py on Hostgator Shared hosting!

2011-02-06 Thread Vasile Ermicioi
5- At last I created '.htaccess': AddHandler fcgid-script .fcgi Options +FollowSymLinks +ExecCGI RewriteEngine On RewriteBase / RewriteRule ^dispatch\.fcgi/ - [L] RewriteRule ^(.*)$ dispatch.fcgi/$1 [L] what line should I add and where, or best of how will look entire htaccess file if I

[web2py] Re: Off Topic: HTML5 webapps with Google Closure, Clojure and NoSQL db's

2011-02-06 Thread Luther Goh Lu Feng
I am a bit curious why you went with Closure instead of GWT (with or without pyjamas). Were there specific reasons you could share? On Dec 12 2010, 5:14 am, dspiteself dspites...@gmail.com wrote: It is not public yet, but it is in trial use by handful of offices. It is a commercial product so

[web2py] Re: Problem with DAL and Postgres

2011-02-06 Thread Massimo Di Pierro
Do you have a custom auth_user table? Is seems to miss a length attribute and default to a number too large. I changed the default to 32768 in trunk but I am not sure. On Feb 6, 3:13 pm, Bernardo estem...@gmail.com wrote: Dear all, I am using web2py 1.91.6 and last version of Ubuntu. A model

Re: [web2py] Re: Problem with DAL and Postgres

2011-02-06 Thread Bernardo Botella Corbí
Yes, the error is on my custom auth_user table. So, Do I reduce the leght numbers? Bernardo 2011/2/6 Massimo Di Pierro massimo.dipie...@gmail.com Do you have a custom auth_user table? Is seems to miss a length attribute and default to a number too large. I changed the default to 32768 in

[web2py] SQLFORM.factory bug for field type = password

2011-02-06 Thread ionel
Hello, In the controller I have a custom form that contains a password: form = SQLFORM.factory(Field('afield', 'password')) form.vars.afield = 'some initial password' In view: {{=form.custom.begin}} {{=form.custom.widget.afield}} {{=form.custom.submit}} {{=form.custom.end}} The problem is

[web2py] Re: Running web2py on Hostgator Shared hosting!

2011-02-06 Thread Massimo Di Pierro
says page not found. :-( On Dec 20 2010, 7:56 am, GoldenTiger goldenboy...@gmail.com wrote: I think a lot of users will be happy of seeing this:  web2py running on hostgator. Demo:  http://hostgator.web2py.es   (steps to install included) There are a lot of people using Hostgator shared

[web2py] Re: Running web2py on Hostgator Shared hosting!

2011-02-06 Thread GoldenTiger
LOL XD - January, Last 30 days: -- From Analitycs : hostgator.web2py.es === 6 visits , 0:00:05 secs average time - Yesterday: I removed the url for testing pourposes (temporarily) - Today : This topic is resurrected OK, I am going to fix it then :D I'll write a web2pyslice, ok?

Re: [web2py] Re: Running web2py on Hostgator Shared hosting!

2011-02-06 Thread Franzé Jr
I have a similar problem. I'm using dreamhost. I've used this : http://wiki.dreamhost.com/Web2py But: The requested URL /dispatch.fcgi/ was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Some idea ?

[web2py] Re: Running web2py on Hostgator Shared hosting!

2011-02-06 Thread GoldenTiger
I haven't any problem with hostgator, I renamed the dispatch.fcgi intentionally I also I have a Dreamhost VPS, and a shared plan. Web2py is working OK using WSGI. Why do you want fcgi? On 7 feb, 03:31, Franzé Jr franz...@gmail.com wrote: I have a similar problem. I'm using dreamhost.

[web2py] Re: IS_MATCH() changing a valid value ?

2011-02-06 Thread Ken
Thank you! I am pleased with this resolution. On Feb 6, 1:22 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: In trunk IS_MATCH(...,strict=True)  # true is default now and it does append the '$' is missing. On Feb 4, 8:17 pm, Ken kenma...@mac.com wrote: That change would have

[web2py] Re: Problem with DAL and Postgres

2011-02-06 Thread Massimo Di Pierro
Can you show your custom auth_user. I am still puzzled by the error. On Feb 6, 4:21 pm, Bernardo Botella Corbí estem...@gmail.com wrote: Yes, the error is on my custom auth_user table. So, Do I reduce the leght numbers? Bernardo 2011/2/6 Massimo Di Pierro massimo.dipie...@gmail.com

[web2py] Re: SQLFORM.factory bug for field type = password

2011-02-06 Thread Massimo Di Pierro
can you please open an issue in googlecode? On Feb 6, 7:06 pm, ionel ionelanton...@gmail.com wrote: Hello, In the controller I have a custom form that contains a password: form = SQLFORM.factory(Field('afield', 'password')) form.vars.afield = 'some initial password' In view:

Re: [web2py] web2py working on my iPad! :vD

2011-02-06 Thread Jason Brower
It is always fun to get web2py running on a small environment like a phone or tablet. Congrats, Jason Brower On 02/05/2011 07:39 AM, kgingeri wrote: I have renewed interest in using web2py for simple Google gadgets and CRUD updates to a web database, and in exploring it, wondered if I could

[web2py] Re: Rocket with urllib2 behavior [BUG?]

2011-02-06 Thread vihang
As Tim rightly put it, the issue was only when called from the same controller. The chances of that happening are very bleak and in our case a mere coincidence. Nevertheless we wanted it cleared just to understand the server better. We have remodeled our code.

[web2py] Can anyone recommend a good python forum in google groups or elsewhere?

2011-02-06 Thread Rupesh Pradhan
Can anyone recommend a good python forum in google groups or elsewhere?

Re: [web2py] Why do we do what we do?

2011-02-06 Thread Jason Brower
Very good. I hope to think about these things with my business and rebuild the way we are working. On 02/06/2011 07:02 PM, Massimo Di Pierro wrote: http://www.thersa.org/events/vision/animate/rsa-animate-drive

[web2py] Re: Running web2py on Hostgator Shared hosting!

2011-02-06 Thread GoldenTiger
I put Web2Py Demo running fast on Hostgator again at http://hostgator.web2py.es You can try examples http://hostgator.web2py.es/examples On 7 feb, 03:46, GoldenTiger goldenboy...@gmail.com wrote: I haven't any problem with hostgator, I renamed the dispatch.fcgi intentionally I also I have

Re: [web2py] Re: plugin_wiki suggestions

2011-02-06 Thread Plumo
I also made this change to set the page title. How can I access the page title from within a wiki page? response.title is empty

[web2py] Web2py on Windows Server with IIS and URL Rewrite?

2011-02-06 Thread Panupat Chongstitwattana
Following the early chapters of the online book. I got web2py working under 127.0.0.1:8000 but still confused with a couple things. I'm learning web2py on a virtual server which mimics my company's set up. The spec is as follow. Windows Server 2008 R2 IIS7.5. Python 2.7 MySQL 5.5 - Can I run

Re: [web2py] Re: Getting started

2011-02-06 Thread mikech
http://web2pyslices.com/main/default/index

[web2py] Deleting a cookie

2011-02-06 Thread Dane
Hello, I've got my own user system (not using Auth), and I'm trying to implement a Remember Me option with cookies. It's working fine when the user selects 'Yes' for remember me. Setting and detecting the cookie is no problem, but I can't find a way to delete the cookie when the user logs out or

[web2py] Re: Getting started

2011-02-06 Thread Dane
I advise beginning with the book as it's pretty easy to follow and has the most up-to-date documentation you'll find. You can do some fairly cool stuff just following the patterns in the book, but before attempting anything serious you should spend some time studying and getting comfortable with