[web2py:29060] Re: How to create a hidden field in CRUD?

2009-08-21 Thread Iceberg
On Aug21, 7:21am, Marco saf...@gmail.com wrote: Hello everyone. I am working with a controller for ratings on an item. The item details come from a legacy database, and the ratings are stored in a separate database. In the ratings database, alongside the ordinal ratings I store the

[web2py:29061] Re: web2py 1.66.1 (win) zipimport.ZipImportError

2009-08-21 Thread mdipierro
works for me. are you sure it is not a download problem? On Aug 19, 12:55 am, Jonathan Lundell jlund...@pobox.com wrote: On Aug 18, 2009, at 9:27 PM, Yarko Tymciurak wrote: Indeed - I get the same, although there is library/gluon - it's not   found... OS X version, too. The source copy

[web2py:29062] Re: Can I access BigTable api from within Web2py

2009-08-21 Thread mdipierro
On Aug 19, 2:55 am, Carl carl.ro...@gmail.com wrote: hi, I want to leverage BigTable within my web2py-based application. To create a local environment that I can test code what would be involved? You can do it. you need to download the google appserver. Would I need to run

[web2py:29063] Re: download problem of web2py_src.zip from web2py.com site. are there any other mirrors to download..?

2009-08-21 Thread mdipierro
There is a problem with the server. Probably due to a denial of service attack. I have blocked some ip addresses. Let's see what happens. On Aug 19, 8:57 am, Vertigo mar...@gmail.com wrote: I also had a problem to download this morning, it would suddenly drop out after 1Mb or 8Mb or 3Mb. I

[web2py:29064] Re: Reg. Permissions for Attributes of Table

2009-08-21 Thread mdipierro
You have to be explicit auth.add_permission('change attribute xyz',db.table) auth.has_permission('change attribute xyz',db.table) if not auth.has_permission('change attribute xyz',db.table): db.table.xyz.writable=False etc. etc. On Aug 19, 3:13 pm, newbie_web2py varunk.ap...@gmail.com

[web2py:29065] Re: WSGI apache -- WSGIScriptAlias as /python and not just plain /

2009-08-21 Thread mdipierro
I have a new .conf created by nothing less than Graham Dumpleton for web2py. I will post it soon. It will be in the new book. Massimo On Aug 19, 9:30 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Aug 20, 4:06 am, Jonathan Benn jonathan.b...@gmail.com wrote: I'm curious to know

[web2py:29066] Re: Add appliances to some repository?

2009-08-21 Thread mdipierro
sure. we need something better than current system On Aug 20, 10:49 am, Fran francisb...@googlemail.com wrote: On Aug 20, 2:33 pm, Peterle newsv...@tiscali.it wrote: Drupal has an impressive workflow to manage modules, included a way to track usage statistics and the overall status of

[web2py:29067] Re: upgrading to 1.66.1 chokes on sqlite database

2009-08-21 Thread mdipierro
I will look into this today. On Aug 20, 4:24 am, Carl carl.ro...@gmail.com wrote: hi, I upgraded from 1.65.5 to 1.66.1 this morning but had the following issue. I'm using WinXP with sqlite. recent call stack (most recent call at bottom)... gluon/main.py line 470 inwsgibase

[web2py:29068] Re: Problems with mac.

2009-08-21 Thread mdipierro
I suspect this is does to a partial download. Can you try download again? On Aug 20, 1:08 am, Ahmed Soliman ah...@farghal.com wrote: Hello everybody, I've downloaded the pre-packaged mac package from web2py.com but when I double click on it it gives me web2py Error An unexpected error

[web2py:29069] how do I upload data to GAE database tables

2009-08-21 Thread durga
how do I upload default data to GAE database tables like we do it in admin app using CSV file --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py:29070] Re: wsgi

2009-08-21 Thread mdipierro
Can you post the file you sent me(or something better). I have limited connection. On Aug 20, 8:36 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Aug 20, 10:20 pm, Alex Fanjul alex.fan...@gmail.com wrote: Massimo, Graham commented (replying my apache+windows+wsgi

[web2py:29071] Re: Web2py.com down

2009-08-21 Thread mdipierro
I do not know. I am away from the server, I am on vacation with limited connection capabilities and the server is constantly being attacked. I will investigate in september. Massimo On Aug 20, 9:22 pm, waTR r...@devshell.org wrote: Could we know the reason for the outages? Is it the hardware?

[web2py:29073] Re: creating fields for state and country

2009-08-21 Thread mdipierro
I do not remember the name but there is a service that does that from the IP. On Aug 21, 12:09 am, jayvandal jayvan...@gmail.com wrote: I want to have a field where the user selects the state where he is living. Also be able to select the country he where he is living Any help will be

[web2py:29074] Re: WSGI apache -- WSGIScriptAlias as /python and not just plain /

2009-08-21 Thread Graham Dumpleton
On Aug 21, 5:49 pm, mdipierro mdipie...@cs.depaul.edu wrote: I have a new .conf created by nothing less than Graham Dumpleton for web2py. I will post it soon. It will be in the new book. That configuration doesn't though cover the case that this person was after, well presuming that he was

[web2py:29075] Re: wsgi

2009-08-21 Thread Graham Dumpleton
On Aug 21, 5:55 pm, mdipierro mdipie...@cs.depaul.edu wrote: Can you post the file you sent me(or something better). I have limited connection. As I said, I will blog about it soon. Rather do it that way as can then provide proper explanation to accompany it. Graham On Aug 20, 8:36 pm,

[web2py:29076] Re: stackless python

2009-08-21 Thread Joe Barnhart
On the same page as the WSGI stuff they have a demonstration of what they call sessionless programming -- it's pretty much the same idea as Seaside, including the UUID-like parameters that are used to track the open continuations as the user provides input to the application. (see

[web2py:29077] Re: web2py, bigtable and the '09 DAL

2009-08-21 Thread dlypka
Here are my GAE DALnr snippets. Some code has been simplified (by using if stmts with hard-coded classnames) for brevity. I will provide a link to a zip of a working sample next Monday. In gluon\contrib\gql.py:

[web2py:29078] Re: Almost working on the dreamhost server... $50 to the person that can make this a script!

2009-08-21 Thread Alexei Vinidiktov
I've checked and unfortunately on my dreamhost server they have Python 2.4, so no luck with the stock install of Python. I'll have to continue with the custom version. If only I could figure out how to compile the custom version of Python with ssl support... On Thu, Aug 20, 2009 at 10:57 PM,

[web2py:29079] Re: Web2py.com down

2009-08-21 Thread Pynthon
Indeed, do you mean the server is being DDosed? I hope we can persuade Massimo to change servers. This one is a tinker-toy and it seems to be down as much as it is up. It does not live up to the reputation we want for web2py. I agree with you! 2009/8/21 mdipierro mdipie...@cs.depaul.edu I

[web2py:29080] Web2py does not run

2009-08-21 Thread Pynthon
Hello I saw the site was back up so I downloaded Web2py! I unpacked it but if I click the web2py.exe file it shows me a DOS screen and then the DOS screen disappears. If I using the commandline (DOS) then it says that web2py can't find the library gluon?: Traceback (most recent call last):

[web2py:29081] Re: Deployment Issues on CentOS

2009-08-21 Thread Graham Dumpleton
On Aug 21, 4:28 am, Mark Larsen larsen...@gmail.com wrote: == ### setup WSGI WSGIScriptAlias /apps /usr/local/web2py/current/wsgihandler.py WSGIDaemonProcess web2py user=apache group=apache \     home=/usr/local/web2py/current \     processes=10

[web2py:29082] Re: web2py 1.66.1 (win) zipimport.ZipImportError

2009-08-21 Thread omar.webs...@gmail.com
I have the same problem here :(. On 21 aug, 09:34, mdipierro mdipie...@cs.depaul.edu wrote: works for me. are you sure it is not a download problem? On Aug 19, 12:55 am, Jonathan Lundell jlund...@pobox.com wrote: On Aug 18, 2009, at 9:27 PM, Yarko Tymciurak wrote: Indeed - I get the

[web2py:29083] Re: Deployment Issues on CentOS

2009-08-21 Thread Graham Dumpleton
On Aug 20, 5:45 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Aug 20, 12:21 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Aug 20, 5:14 am, Don Lee sam...@gmail.com wrote: I'll try that, but I got that from the web2py_manual.  The manual gives an example of a

[web2py:29084] Displaying variable in drop-down menu

2009-08-21 Thread newbie_web2py
db.table_name.field1.requires= IS_IN_DB(db,'table_name.field2_name','% (name)s') Can we extend the above syntax so that we can select field1 from field2 or field3 ( with or without the drop-down menu ) ?? --~--~-~--~~~---~--~~ You received this message because

[web2py:29085] Re: web2py 1.66.1 (win) zipimport.ZipImportError

2009-08-21 Thread Ahmed Soliman
same problem here on mac. source version works. On Aug 21, 2:13 pm, omar.webs...@gmail.com omar.webs...@gmail.com wrote: I have the same problem here :(. On 21 aug, 09:34, mdipierro mdipie...@cs.depaul.edu wrote: works for me. are you sure it is not a download problem? On Aug 19,

[web2py:29090] Re: Deployment Issues on CentOS

2009-08-21 Thread Mark Larsen
You don't need to use rewrite rules to do the latter, you can generalise both to:  WSGIScriptAliasMatch ^/(admin|welcome|examples)(/.*)?$ /path/to/ web2py/wsgihandler.py/$1$2 With this approach though, you have to modify the configuration every time you add a new application. That

[web2py:29087] Re: Can I access BigTable api from within Web2py

2009-08-21 Thread Carl
ha! sometimes web2py is too straightforward! :) and that's not a complaint! have set-up Eclipse to launch a debug session for dev_appserver.py as well as web2py.py thanks for the pointer mdipierro wrote: On Aug 19, 2:55 am, Carl carl.ro...@gmail.com wrote: hi, I want to leverage

[web2py:29089] Re: Deployment Issues on CentOS

2009-08-21 Thread Don Lee
Thanks for all the help. serious progress has been made. My configurations file now looks like: = WSGIScriptAliasMatch ^/(admin|welcome|examples|instructions)(/.*)?$ /usr/local/web2py/current/wsgihandler.py/$1$2 WSGIDaemonProcess web2py user=apache

[web2py:29092] Re: Web2py does not run

2009-08-21 Thread Yarko Tymciurak
as stated in other threads, it appears there is something not right with the packaging of the all-in-one executables of this version; for now, you have the option to run from the source version. On Fri, Aug 21, 2009 at 4:15 AM, Pynthon omar.webs...@gmail.com wrote: Hello I saw the site was

[web2py:29091] sharing a web2py install

2009-08-21 Thread Ian Reinhart Geiser
Greetings, i have two virtual hosts that i am moving from php to web2py and i would like to share the same web2py install between both vhosts. Is this possible? I have searched the archives and its pretty clear how to create a default application for a single vhost, but not sharing a web2py

[web2py:29096] Re: web2py 1.66.1 (win) zipimport.ZipImportError

2009-08-21 Thread mdipierro
I reverted the binary versions to 1.65.11 for now. I identified the problem. I installed Enthought Python and that must have changed something in my python distribution. In particular it creates gluon/*.pyc file with a different magic number than expected by the binary python distribution that

[web2py:29099] Re: calling function from the view

2009-08-21 Thread Don Lee
I found what appears to be an easier way. I should have thought of it before. Everything is an object so: in my controller: = def testFunction(a): return a*a def index(): return dict(funct=testFunction) = in my

[web2py:29094] Re: Almost working on the dreamhost server... $50 to the person that can make this a script!

2009-08-21 Thread mdipierro
web2y should work with 2.4. Some apps that use specific 2.5 syntax may need tweaking. On Aug 21, 3:53 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: I've checked and unfortunately on my dreamhost server they have Python 2.4, so no luck with the stock install of Python. I'll have to

[web2py:29095] Re: Web2py.com down

2009-08-21 Thread mdipierro
This is virtual machine running on my office desktop. It has only 256MB Ram. I will move to a better machine by the end of september. massimo On Aug 21, 4:01 am, Pynthon omar.webs...@gmail.com wrote: Indeed, do you mean the server is being DDosed? I hope we can persuade Massimo to change

[web2py:29098] Re: web2py 1.66.1 (win) zipimport.ZipImportError

2009-08-21 Thread Pynthon
Lol a few minutes before I posted a post on my blog about it and now it is kinda fixed! Great Massimo! And sure, no problem 2009/8/21 Yarko Tymciurak yark...@gmail.com On Fri, Aug 21, 2009 at 2:34 AM, mdipierro mdipie...@cs.depaul.eduwrote: works for me. are you sure it is not a

[web2py:29097] Re: web2py 1.66.1 (win) zipimport.ZipImportError

2009-08-21 Thread mdipierro
I found the problem! It was not Enthought. It was stackless. It replaced itself as default python installation. I am rebuilding the binaries as we speak. If I manage to upload 1.66.2 tonight from the Internet Cafe where I am at, please give it a try. I may also have fixed (temporarily) the file

[web2py:29101] Re: Web2py.com down

2009-08-21 Thread omar.webs...@gmail.com
No problem, and if you invest in the new server please take DDOS protection :$, just a tip... But who guys are doing this? Django fanboys? On 21 aug, 18:47, mdipierro mdipie...@cs.depaul.edu wrote: This is virtual machine running on my office desktop. It has only 256MB Ram. I will move to a

[web2py:29100] Re: Web2py does not run

2009-08-21 Thread Pynthon
Yeah, I forgot to search before I created this post. Sorry... 2009/8/21 Yarko Tymciurak yark...@gmail.com as stated in other threads, it appears there is something not right with the packaging of the all-in-one executables of this version; for now, you have the option to run from the source

[web2py:29104] Re: test on IBM AS/400 iSeries System i

2009-08-21 Thread DenesL
Update: I found a compiled version of Lynx for AIX, and even though it runs it is unusable in PASE because of how the I/O works (5250 sends the whole screen not each keystroke). Then it occured to me I could also use SSH tunnels, so I started the SSHD as described in:

[web2py:29103] Re: Web2py.com down

2009-08-21 Thread Jason Brower
I can let you have some of my hosting space. Would you like that? Regards, Jason Brower On Fri, 2009-08-21 at 09:47 -0700, mdipierro wrote: This is virtual machine running on my office desktop. It has only 256MB Ram. I will move to a better machine by the end of september. massimo On

[web2py:29105] Re: creating fields for state and country

2009-08-21 Thread jayvandal
I will just create a state table and add the states in to it. Most other systems offer that feature. I don't remember any for countries though Thanks Jim On Aug 21, 1:57 am, mdipierro mdipie...@cs.depaul.edu wrote: I do not remember the name but there is a service that does that from the IP.

[web2py:29106] Re: test on IBM AS/400 iSeries System i

2009-08-21 Thread DenesL
I patched admin/models/access.py so that hosts also includes '192.168.0.4' since it only had '127.0.0.1' and '400_host_name' in it but not the ip which comes from request.env.remote_addr even though the request is coming from the same machine via SSH tunnel. My web2py start command is:

[web2py:29108] Routes in GAE

2009-08-21 Thread Prabhu
Hi, Newbie to web2py here. My routes.py reads, #!/usr/bin/env python # -*- coding: utf-8 -*- routes_in = (('/testme','/myapp/default/index'),) routes_out = (('/myapp/default/index', '/test'),) http://127.0.0.1:8000/testme works. When I upload web2py to GAE, I get the following error Your

[web2py:29107] Re: creating fields for state and country

2009-08-21 Thread mr.freeze
Here are a couple of xml lists that may help: http://www.joegakenheimer.com/xml/State.xml http://mest.ivec.org/geonetwork/loc/en/xml/countries.xml On Aug 21, 2:50 pm, jayvandal jayvan...@gmail.com wrote: I will just create a state table and add the states in to it. Most other systems offer

[web2py:29109] Re: Routes in GAE

2009-08-21 Thread Victor
I think the routes in should be like a tuple like so (('.*:/ favicon.ico', '/examples/static/favicon.ico')) the ':' separates the host from the rest of the URL .* means from all hosts. So all requests will be considered when re-routing. I might be wrong but hope I helped. I think the problem's

[web2py:29110] Re: Routes in GAE

2009-08-21 Thread Victor
your line should be routes_in = (('.*:/testme','/myapp/default/ index')) dont forget to add an $ at the end if all you want is / testme On Aug 21, 10:41 pm, Prabhu prabhu.sen...@gmail.com wrote: Hi, Newbie to web2py here. My routes.py reads, #!/usr/bin/env python # -*- coding: utf-8 -*-

[web2py:29111] Re: Routes in GAE

2009-08-21 Thread Yarko Tymciurak
you might find this discussiont helpful: http://groups.google.com/group/web2py/msg/abb56704cda162a0 On Fri, Aug 21, 2009 at 5:17 PM, Victor victor.akuj...@gmail.com wrote: your line should be routes_in = (('.*:/testme','/myapp/default/ index')) dont forget to add an $ at the end if all you

[web2py:29112] Re: Displaying variable in drop-down menu

2009-08-21 Thread Iceberg
On Aug21, 7:58pm, newbie_web2py varunk.ap...@gmail.com wrote: db.table_name.field1.requires= IS_IN_DB(db,'table_name.field2_name','% (name)s') Can we extend the above syntax so that we can select field1 from field2 or field3 ( with or without the drop-down menu ) ?? Don't know whether you

[web2py:29114] Re: web2py 1.66.1 (win) zipimport.ZipImportError

2009-08-21 Thread Iceberg
On Aug22, 1:11am, mdipierro mdipie...@cs.depaul.edu wrote: Note to self... never release new version before going hiking. Massimo Or you can release it in a name 1.x.x hiking version, hiking here means beta. :-P PS: This post is of course a joking version. :-) Regards, Iceberg

[web2py:29115] Problem with mysql setup in web2py with dreamhost hosting.

2009-08-21 Thread Jason Brower
Can't seem to get this to work. Keep's telling me I have an invlaid URI or something similar. I think it would tell me if the port or something was wrong. Could it be that? (Dreamhost server never specified, and I have tried with and without.) Obviously password is not may password. But it is

[web2py:29117] Re: stackless python

2009-08-21 Thread Bottiger
Stackless does not scale for multiple CPUs. It is only for cooperative multitasking. Stackless is meant to solve massive context switching costs, which I think Web2Py has very little of. On Aug 17, 7:47 am, mdipierro mdipie...@cs.depaul.edu wrote: Just for fun I tried the following: 1)