[web2py] python 2.4 - last supported version

2011-10-18 Thread Cory Coager
Could you tell me the last release of web2py that supported python 2.4 and where I can download it? The new version of web2py obviously don't support it and don't work either.

[web2py] Re: python 2.4 - last supported version

2011-10-18 Thread Cory Coager
Thank you both, version 1.95.1 seems to be working so far on python 2.4.

[web2py] Re: table without id

2011-10-12 Thread Cory Coager
Thanks both. I ended up adding an id field to the tables.

[web2py] table without id

2011-10-11 Thread Cory Coager
I have created some database tables externally to web2py. Does web2py require an id field for tables? The reason why I'm asking is, when I use the DAL to do an insert, web2py tries to retrieve the currval of the insert. Seeing how I don't have an id, this throws an exception. How should I

[web2py] existing database, can't migrate

2011-07-29 Thread Cory Coager
I designed and setup a database that was created directly in Postgres, not web2py. When attempting to view the database administration tool in web2py it gives me constant errors: Jul 29 07:32:38 postgres postgres[11459]: [6-1] 2011-07-29 07:32:38 EDT testdb postgres 192.168.148.68 WARNING:

[web2py] Re: existing database, can't migrate

2011-07-29 Thread Cory Coager
That worked, thank you! On Jul 29, 9:25 am, Richard G richard.ga...@gmail.com wrote: Sorry, the id type declaration should be in quotes: db.define_table('test',  Field('test_id', 'id'),  Field('name'), migrate=False, fake_migrate=True)

[web2py] error with mod_wsgi on shared host

2011-01-19 Thread Cory Coager
This is a new setup of web2py using mod_wsgi on a shared host. Any idea what is wrong? .htaccess: SetHandler wsgi-script Options +ExecCGI RewriteEngine On RewriteRule ^((static|auth|admin|mycontroller).*)$ /wsgihandler.py/ myapp/$1 [QSA,PT,L] Error logs: [Wed Jan 19 17:52:06 2011] [error]

[web2py] Re: dashes in controller names?

2010-08-30 Thread Cory Coager
I suppose I could pass in bogus arguments in the url with dashes that never get used. Still would be nice if the controllers would support dashes.

[web2py] Re: dashes in controller names?

2010-08-30 Thread Cory Coager
You're 100% correct. However, since the functionality is lacking I would use this as a workaround for SEO. On Aug 30, 3:37 pm, Kevin extemporalgen...@gmail.com wrote: That last point of yours is why I feel the way I do: the slug is redundant.  Then again, I'm not the kind of programmer to put

[web2py] Re: dashes in controller names?

2010-08-25 Thread Cory Coager
Add to the list: * Hyphens are preferred to underscores for SEO, http://www.google.com/support/webmasters/bin/answer.py?answer=76329topic=15261 Can we make this a feature request?

[web2py] dashes in controller names?

2010-08-24 Thread Cory Coager
How do you use dashes in controller names? I get errors, Invalid request.

[web2py] Re: integrate editarea in application

2010-08-23 Thread Cory Coager
I checked the manual and didn't see anything regarding TEXTAREA. Is there a way to enable the editarea editor on TEXTAREA fields? On Aug 21, 1:41 am, KMax mkostri...@gmail.com wrote: What does mean 'without going through the admin interface' ? Try search TEXTAREA in book?

[web2py] integrate editarea in application

2010-08-20 Thread Cory Coager
How would I integrate editarea in my application without going through the admin interface?

[web2py] Re: python 2.4 support

2010-07-28 Thread Cory Coager
Sorry for my delay in testing. The gluon/tools.py seems to be compatible now and the rocket patch seems to work also. However, the hashlib issue still exists as I'm still getting this error: AttributeError: 'builtin_function_or_method' object has no attribute 'new'

[web2py] Re: Internal error

2010-06-17 Thread Cory Coager
The databases directory is chmod 777 and I have pysqlite-2.6.0 for python 2.4 installed and included in the path PythonPath for htaccess. Is this version not compatible? On Jun 17, 8:11 am, mdipierro mdipie...@cs.depaul.edu wrote: Only two possibilities come to mind: - unable to write on

[web2py] Re: Internal error

2010-06-16 Thread Cory Coager
See above, post #5. On Jun 15, 11:42 pm, mdipierro mdipie...@cs.depaul.edu wrote: No. the error you reported was with postgresql 8.1. What is the problem with sqlite?

[web2py] Re: Internal error

2010-06-14 Thread Cory Coager
According to the postgresql 8.1 documentation, standard_conforming_strings is a read-only variable. http://postgresql2.openmirrors.org/docs/8.1/static/release-8-1.html

[web2py] Re: Internal error

2010-06-13 Thread Cory Coager
Here is the error when using SQLite: Traceback (most recent call last): File gluon/restricted.py, line 178, in restricted exec ccode in environment File /path/to/applications/test/models/db.py, line 15, in ? db = DAL('sqlite://storage.sqlite') File gluon/sql.py, line 3855, in DAL raise

[web2py] Re: Internal error

2010-06-13 Thread Cory Coager
Here is the error when using PostGreSQL: Traceback (most recent call last): File gluon/restricted.py, line 178, in restricted exec ccode in environment File /path/to/applications/test/models/db.py, line 17, in ? db=SQLDB('postgres://user:p...@localhost:5432/database') File gluon/sql.py, line 967,

[web2py] Re: Internal error

2010-06-13 Thread Cory Coager
I did end up getting it working with MySQL although I would have preferred PostGreSQL.

[web2py] Re: python 2.4 support

2010-06-13 Thread Cory Coager
I found some compatibility problems with web2py 1.79.2 and python 2.4.3. The syntax in gluon/tools.py doesn't appear to work in this version of python so I made to make some modifications to get it working. Here is a diff: 2838,2841c2838,2839 if not refsearch:

[web2py] Re: python 2.4 support

2010-06-13 Thread Cory Coager
Found another problem with the welcome application. When attempting to register an account I get this error: Traceback (most recent call last): File gluon/restricted.py, line 178, in restricted exec ccode in environment File /path/to/applications/welcome/controllers/default.py, line 57, in ?

[web2py] Re: python 2.4 support

2010-06-13 Thread Cory Coager
Another problem is, I can't launch from the cli because the rocket module doesn't work with python 2.4: -bash-3.2$ python web2py.py -i 127.0.0.1 -p 8001 -a 'password' sh: ifconfig: command not found WARNING:root:unable to import Rocket web2py Enterprise Web Framework Created by Massimo Di

[web2py] Re: Internal error

2010-06-12 Thread Cory Coager
I'm using python 2.4 on a shared host. I installed hashlib, uuid, pysqlite, psycopg2, MySQL-python, PyGreSQL. I'm using web2py with mod_python with my htaccess as follows: SetHandler python-program PythonHandler web2py_modpython PythonDebug On PythonPath sys.path + ['',

[web2py] Re: Internal error

2010-06-12 Thread Cory Coager
It seems to be failing on the model. I can't seem to get any DAL working. If I do a simple hello world test it works fine. If I add in a model like sqlite or postgresql, it gives Internal error. Whats going on here?

[web2py] Internal error

2010-06-11 Thread Cory Coager
Getting this on an initial setup of web2py trying to load the welcome application. Not much in the logs... [Fri Jun 11 12:45:39 2010] [notice] mod_python (pid=3793, interpreter='example.com'): Importing module '/path/to/ modpythonhandler.py' [Fri Jun 11 12:45:39 2010] [notice] mod_python

[web2py] mod_python error, contains no 'handler'

2010-06-10 Thread Cory Coager
Any idea why I'm getting this error? [Thu Jun 10 17:59:15 2010] [error] [client 74.76.167.89] AttributeError: module '/path/to/modpythonhandler.py' contains no 'handler' [Thu Jun 10 17:59:15 2010] [error] [client 74.76.167.89] Filename: '/ path/to/500.shtml' [Thu Jun 10 17:59:15 2010] [error]

[web2py] Re: fastcgi install not working

2010-06-08 Thread Cory Coager
Answering my own question, the host provider didn't have mod_fcgid enabled.

[web2py] fastcgi install not working

2010-06-06 Thread Cory Coager
I just setup a new install of web2py on a shared host. Using the fastcgi instructions results in the webpage displaying the contents of dispatch.fcgi instead of executing it. What am I doing wrong? Here is dispatch.fcgi: #!/usr/bin/env /home/user/w2env/bin/python import sys from

[web2py] Re: python 2.4 support

2010-06-02 Thread Cory Coager
Still looking for help if anyone has the answer.

[web2py] Re: python 2.4 support

2010-05-31 Thread Cory Coager
I just found this documentation on AlterEgo, is this all thats needed? http://web2py.com/AlterEgo/default/show/231

[web2py] Re: python 2.4 support

2010-05-31 Thread Cory Coager
Sorry I should have been more clear, its a shared web host running python 2.4. I do not have root access. Will this still be possible?

[web2py] python 2.4 support

2010-05-24 Thread Cory Coager
I'm looking at a web host that uses python 2.4. I'm wondering what the compatibility is with python 2.4? Is there any caveats? Should I just move on and find another host that uses python 2.5?

[web2py] Re: python 2.4 support

2010-05-24 Thread Cory Coager
Is this possible without root permissions?

[web2py:13701] Re: calling functions from controllers

2008-12-16 Thread Cory Coager
richar...@gmail.com wrote: within the controller you can call other functions directly like normal Python! Did you try it? On Dec 17, 12:58 pm, Cory Coager ccoa...@gmail.com wrote: How do you call a function from another function in a controller?  And how do you pass variables between them

[web2py:13325] Re: dynamically create sql objects

2008-12-10 Thread Cory Coager
That worked, thanks! On Dec 9, 1:02 am, mdipierro [EMAIL PROTECTED] wrote: or using war SQL (not nice but possible)     sort=table.id, table.otherfield, table.yetanotherfield DESC     records=db().select(db.table.ALL,orderby=sort) Notice in the second case there is no db. because the

[web2py:13166] dynamically create sql objects

2008-12-08 Thread Cory Coager
Is it possible to dynamically create a sql object to be used in the orderby field? Example: sort=db.table.id records=db().select(db.table.ALL,orderby=sort) Gives error: ProgrammingError: schema db does not exist --~--~-~--~~~---~--~~ You received this message