[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 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 works OK, th

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

2009-08-21 Thread mdipierro
On Aug 19, 2:55 am, Carl 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 dev_appserver.py locally a

[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 wrote: > I also had a problem to download this morning, it would suddenly drop > out after 1Mb or 8Mb or 3Mb. I downloaded source

[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 wrote: > Is it possible to

[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 wrote: > On Aug 20, 4:06 am, Jonathan Benn wrote: > > > I'm curious to know the answer to this as well. Did you ever figure

[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 wrote: > On Aug 20, 2:33 pm, Peterle wrote: > > > Drupal has an impressive workflow to manage modules, included a way to > > track usage statistics and the overall status of maturation of a > > module (you know everyti

[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 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 session._unlock(respons

[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 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 has occurre

[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@googlegro

[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 wrote: > On Aug 20, 10:20 pm, Alex Fanjul 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 wrote: > Could we know the reason for the outages? Is it the hardware? Is it > the OS? I

[web2py:29072] Re: stackless python

2009-08-21 Thread mdipierro
On Aug 20, 11:21 pm, Joe Barnhart wrote: > Very cool.  Stackless also seems to run web2py just fine with the > included CherryPy server.  At least playing here on the mac it seems > like it's all working on my test sites. yes but that does not use microthreads > > This stackless Python is re

[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 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 appreciated. > JIm --~--

[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 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 after what I describe

[web2py:29075] Re: wsgi

2009-08-21 Thread Graham Dumpleton
On Aug 21, 5:55 pm, mdipierro 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, Graham Dumpleton > wro

[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 http://code.go

[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, mr.f

[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 > > I do not know. I am away

[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): File

[web2py:29081] Re: Deployment Issues on CentOS

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

[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 wrote: > works for me. are you sure it is not a download problem? > > On Aug 19, 12:55 am, Jonathan Lundell wrote: > > > On Aug 18, 2009, at 9:27 PM, Yarko Tymciurak wrote: > > > > Indeed - I get the same, although there is library/gl

[web2py:29083] Re: Deployment Issues on CentOS

2009-08-21 Thread Graham Dumpleton
On Aug 20, 5:45 pm, Graham Dumpleton wrote: > On Aug 20, 12:21 pm, Graham Dumpleton > wrote: > > > On Aug 20, 5:14 am, Don Lee wrote: > > > > I'll try that, but I got that from the web2py_manual.  The manual gives an > > > example of a virtual host configuration, so I've tried to adapt that b

[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 y

[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" wrote: > I have the same problem here :(. > > On 21 aug, 09:34, mdipierro wrote: > > > > > works for me. are you sure it is not a download problem? > > > On Aug 19, 12:55 am, Jonathan Lundell wrote: >

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

2009-08-21 Thread omar.webs...@gmail.com
:(, I don't want to be an asshole but these things don't make a good reputation for web2py :(. Hopefully someone else or Massimo can fix this :). On 21 aug, 15:11, Ahmed Soliman wrote: > same problem here on mac. source version works. > > On Aug 21, 2:13 pm, "omar.webs...@gmail.com" > wrote: >

[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. > > T

[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 wrote: > > hi, > > > > I want to leverage BigTable within my we

[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 grou

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

2009-08-21 Thread Jonathan Lundell
On Aug 21, 2009, at 12:34 AM, mdipierro wrote: > > works for me. are you sure it is not a download problem? Fairly sure, yes. Download problems have been showing up as truncated files and a failed unzip. These look good (though it'd be nice to have a hash of the download files to know for su

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

2009-08-21 Thread Yarko Tymciurak
On Fri, Aug 21, 2009 at 2:34 AM, mdipierro wrote: > > works for me. are you sure it is not a download problem? Pretty sure - have a previous *.exe; sizes are comparable; tried to compare contained files, to see if localtion was an issue (as I recall, all the files lined up)... > > > On Aug 19

[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 wrote: > Hello > > I saw the site was back up so I downloade

[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 inst

[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 co

[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 vie

[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 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 > continue with the custom

[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 wrote: > Indeed, do you mean the server is being DDosed? > > I hope we can persuade Massimo to change servers.  This one is a

[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 > > On Fri, Aug 21, 2009 at 2:34 AM, mdipierro wrote: > >> >> works for me. are you sure it is not a download problem? > > > Pretty sure - hav

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

2009-08-21 Thread Pynthon
btw enjoy your holiday. 2009/8/21 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 > > >> On Fri, Aug 21, 2009 at 2:34 AM, mdipierro wrote: >> >>> >>> works for me. are y

[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 wrote: > This is virtual machine running on my office desktop. It has only > 256MB Ram. > I will move to a better machine by the

[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 > 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. > > > O

[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: http://www.youngiprofession

[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 >

[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 wrote: > I do not remember the name but there is a service that does that from > the IP. > > On Aug 21, 12:09 am

[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: /QOpenSys

[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 rou

[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 wrote: > I will just create a state table and add the states in to it. Most > other systems offer that feature. I don'

[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 wrote: > Hi, > > Newbie to web2py here. My routes.py reads, > > #!/usr/bin/env python > # -*- coding: utf-8 -*- > > routes_in = (('

[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 wrote: > > your line should be routes_in = (('.*:/testme','/myapp/default/ > index')) dont forget to add an $ at the end if all you want is / > testme > >

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

2009-08-21 Thread Iceberg
On Aug21, 7:58pm, newbie_web2py 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 mean this: db.tabl

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

2009-08-21 Thread Iceberg
In case you don't know, you can also put functions inside model, so that they are globally available. I think this make your controller and view have less coupling. in your model: def helperFunction(a): return a*a in your controller: def index(): return {} # much cleaner than return dict(f

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

2009-08-21 Thread Iceberg
On Aug22, 1:11am, mdipierro 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 wrote: > Just for fun I tried the following: > 1) Installed Stackless Python 2.

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

2009-08-21 Thread Jason Brower
It's ok, your still awesome. :þ Besides, hiking is something I think a lot of use should be doing on a weekend like this. (But I am programming.) Regards, Jason On Fri, 2009-08-21 at 20:28 -0700, Iceberg wrote: > On Aug22, 1:11am, mdipierro wrote: > > > > Note to self... never release new versi