[web2py:36496] Cron and Windows service

2009-12-04 Thread SergeyPo
Hello, I am having problem with cron. My crontable: */5 * * * * root *default/getcaptypes Controller method 'default/getcaptypes' works fine when you call it directly. It works fine when called by cron when web2py is running as console. But it is not working when I start web2py as windo

[web2py:36497] Re: getting stable version equivalent from SVN

2009-12-04 Thread Fred
On Dec 3, 3:42 pm, Jonathan Lundell wrote: > Massimo is pretty good about announcing release versions in svn comments. I see now that there are quite a few SVN log entries with release version numbers. 1.71.3 wasn't there though and so I went with the process that I outlined above. But my proce

[web2py:36498] Re: getting stable version equivalent from SVN

2009-12-04 Thread mdipierro
It is not a show stopper and yes web2py creates the missing folders but it needs to be tested more. I will do so. This is in fact a better solution than storing dummy files in empty folders. What do you mean by "I would much prefer tagging releases as a distinct copies in SVN. "? Massimo On Dec

[web2py:36499] Re: Sphinx

2009-12-04 Thread Dmitri Zagidulin
Just to clarify - is the conversation here about moving the main manual (http://www.web2py.com/examples/default/docs ) to Sphinx? Or a different set of docs, auto-generated from the code comments or something like? In any case, I'd be willing to help work on it. On Nov 23, 10:28 am, mdipierro wr

[web2py:36500] Re: Python 2.6 Errata

2009-12-04 Thread Timbo
@Alexandre: I understand that you're trying to help. It's much better to actually fix the broken code than to "fix" the applications. @Massimo: This is very doable. I'll prepare a patch and email it to you. On Dec 3, 5:58 pm, mdipierro wrote: > I am aware of this problem. > > This is a differ

[web2py:36501] Re: Sphinx

2009-12-04 Thread mdipierro
Hi Dimitri, A few months back, Hans, Tim, Jonathan helped port most (if not all) the docstrings to Sphinx. Tim also wrote a script to generate Sphinx documentation from the docstrings (which in web2py/doc/ Than this effort stopped. The goal should be that of improving the docstrings and add refer

[web2py:36502] Re: Python 2.6 Errata

2009-12-04 Thread mdipierro
Thank you! On Dec 4, 9:13 am, Timbo wrote: > @Alexandre: I understand that you're trying to help.  It's much better > to actually fix the broken code than to "fix" the applications. > > @Massimo:  This is very doable.  I'll prepare a patch and email it to > you. > > On Dec 3, 5:58 pm, mdipierro

[web2py:36503] Re: Cron and Windows service

2009-12-04 Thread mdipierro
There is a logical problem. the web server and cron are two processes and therefore they should be threated as two different services or there should be a mechanism to start and stop them both. Right now the windows service only handles the web service. The cron code needs some cleanup because rig

Re: [web2py:36504] Re: Someone have examples using mongodb

2009-12-04 Thread Alex Fanjul
+1 Im also pretty interested in have a key-value document oriented database implemented in web2py to do "real-time" services like twitter, bitly, etc. I've heard about couchdb but not this one (mongDB), any major differences? Alex F El 04/12/2009 4:10, mdipierro escribió: > It should be easy to

Re: [web2py:36505] Re: Someone have examples using mongodb

2009-12-04 Thread Massimo Di Pierro
They are very similar but MongoDB has commercial support, is faster and the only one actually used in serious production environments. CouchDB is more popular because ships with ubuntu. Massimo On Dec 4, 2009, at 10:00 AM, Alex Fanjul wrote: > +1 Im also pretty interested in have a key-value

[web2py:36506] Finding the Sum for a Specific Field in a Query

2009-12-04 Thread johntynan
I have a question about finding the sum of a specific field across the results of an entire query While this statement will return the total number (len) of records returned in a query: pledgedrive_total_pledges = len(db (db.pledge.pledgedrive==pledgedrive_id).select()) I would like to get the to

[web2py:36507] Re: upgrade app

2009-12-04 Thread Yarko Tymciurak
On Dec 3, 11:39 pm, mdipierro wrote: > > > There are two problems. Consider the errors folder. README.txt would > > > show up in the admin error page. > > > Then find a way to do it - change so that errors does not show either > > README or anything that has the pattern '__.*__'; > > I do not like

[web2py:36508] Re: Finding the Sum for a Specific Field in a Query

2009-12-04 Thread mdipierro
I think this should do it: r = db(db.pledge.pledgedrive==pledgedrive_id).select (db.pledge.amount.sum()) total=r[0]._extra[db.pledge.amount.sum()] It will not work on GAE. On Dec 4, 10:58 am, johntynan wrote: > I have a question about finding the sum of a specific field across the > results of

[web2py:36509] Re: upgrade app

2009-12-04 Thread mdipierro
> I suggest that web2py will improve by updating it to create missing > empty application directories. It does that already. It just needs testing (check in everything with hg, delete everything, checkout everything. Does it work?) > You are correct - I guessed; here is what DOES work: > >    syn

[web2py:36510] Re: Finding the Sum for a Specific Field in a Query

2009-12-04 Thread Yarko Tymciurak
On Dec 4, 10:58 am, johntynan wrote: > I have a question about finding the sum of a specific field across the > results of an entire query > > While this statement will return the total number (len) of records > returned in a query: > pledgedrive_total_pledges = len(db > (db.pledge.pledgedrive==pl

[web2py:36511] Re: web2py users growth

2009-12-04 Thread Joe Barnhart
Always the contrarian, I have a completely different view on comments... Comments are the things programmers write intending to make the code clearer, but they wind up being WRONG most of the time. Why? Because the code changes and the comments don't. Many studies support this. Comments that a

[web2py:36512] webfaction domain redirection with wsgi applications

2009-12-04 Thread blackthorne
I have a apachewsgi webfaction application which is holding a web2py that keeps multiple web applications. If I map the domain www.y.org to it, I am able to access its web applications using www.y.org/application1 , www.y.org/application2 , www.y.org/application3. Well, you know that... Now, I got

[web2py:36513] Re: webfaction domain redirection with wsgi applications

2009-12-04 Thread mdipierro
Ideally you would apache to do the rewriting but I am not if webfaction allows that. You can use routes to map domainnames into apps. See if you can figure out the syntax form the book or I will try come up with an example. Massimo On Dec 4, 11:27 am, blackthorne wrote: > I have a apachewsgi w

Re: [web2py:36514] Re: getting stable version equivalent from SVN

2009-12-04 Thread Jonathan Lundell
On Dec 4, 2009, at 6:08 AM, Fred wrote: > On Dec 3, 3:42 pm, Jonathan Lundell wrote: >> Massimo is pretty good about announcing release versions in svn comments. > > I see now that there are quite a few SVN log entries with release > version numbers. 1.71.3 wasn't there though and so I went wit

Re: [web2py:36515] Re: upgrade app

2009-12-04 Thread Thadeus Burgess
As long as this community is growing, we really need to move to a DVCS. Instead of contributors having to mail you diffs, you could just choose to "pull" from our cloned repositories, and pick out what you want... At any time. -Thadeus On Fri, Dec 4, 2009 at 11:16 AM, mdipierro wrote: >> I s

Re: [web2py:36516] Re: web2py users growth

2009-12-04 Thread Thadeus Burgess
There are many parts of gluon that I look at and go... wtf. And read it again, and go... wtf. Only to find out the wtf comes from another module that has another wtf in it that comes from another module.. If the chain of cohesion was commented, gluon would be much much easier to learn. -Thadeus

[web2py:36517] Data for GAE

2009-12-04 Thread Gary
I've been trying to deploy an application to GAE and I'm confused by the fact that it created the 'administration' files like auth_user, but didn't create the files for the application. I've even taken the prime number paging program from the web2py manual and, although it works on localhost, it f

Re: [web2py:36518] Re: Finding the Sum for a Specific Field in a Query

2009-12-04 Thread Thadeus Burgess
virtualfields? http://groups.google.com/group/web2py/browse_thread/thread/c684346f13773f93/5f10ac526197557a?lnk=gst&q=virtual+field#5f10ac526197557a -Thadeus On Fri, Dec 4, 2009 at 11:17 AM, Yarko Tymciurak wrote: > On Dec 4, 10:58 am, johntynan wrote: >> I have a question about finding th

[web2py:36519] Re: Someone have examples using mongodb

2009-12-04 Thread Yarko Tymciurak
On Dec 4, 10:08 am, Massimo Di Pierro wrote: > They are very similar but  MongoDB has commercial support, is faster   > and the only one actually used in serious production environments. > CouchDB is more popular because ships with ubuntu. Mongo uses a binary JSON; See http://www.mongodb.org/dis

Re: [web2py:36520] Re: web2py users growth

2009-12-04 Thread Jonathan Lundell
On Dec 4, 2009, at 9:45 AM, Thadeus Burgess wrote: > There are many parts of gluon that I look at and go... wtf. > > And read it again, and go... wtf. > > Only to find out the wtf comes from another module that has another > wtf in it that comes from another module.. > > If the chain of cohesio

[web2py:36521] Re: upgrade app

2009-12-04 Thread mdipierro
While I not against the move. Actually I like the current mechanism for people emailing me patches. Using a web based system will actually turn out to be more work. Massimo On Dec 4, 11:42 am, Thadeus Burgess wrote: > As long as this community is growing, we really need to move to a > DVCS. Inst

[web2py:36522] Re: Data for GAE

2009-12-04 Thread mdipierro
Please change db().select(db.prime.id) with db(db.prime.id>0).select() On Dec 4, 11:48 am, Gary wrote: > I've been trying to deploy an application to GAE and I'm confused by > the fact that it created the 'administration' files like auth_user, > but didn't create the files for the appl

[web2py:36523] Re: webfaction domain redirection with wsgi applications

2009-12-04 Thread blackthorne
Problem with routes is that I can't differenciate the traffic by its source (I think). Then, all other applications powered by web2py wouldn't become acessible e.g.: Client (browser) -> HTTPD (nginx) --> Apache (wsgi) -> web2py (wsgihandler) -> my_web2py_application1 (routes)

[web2py:36524] Re: web2py users growth

2009-12-04 Thread mdipierro
LOL next time bring it up on the developers list. I do not mind explaining how things work inside and perhaps we will find out there is a better way to implement it. ;-) Massimo On Dec 4, 11:45 am, Thadeus Burgess wrote: > There are many parts of gluon that I look at and go... wtf. > > And r

[web2py:36525] Re: webfaction domain redirection with wsgi applications

2009-12-04 Thread blackthorne
Problem with routes is that I can't differenciate the traffic by its source (I think). Then, all other applications powered by web2py wouldn't become acessible e.g.: Client (browser) -> HTTPD (nginx) --> Apache (wsgi) -> web2py (wsgihandler) -> my_web2py_application1 (routes) all traffic gets re

[web2py:36526] Re: webfaction domain redirection with wsgi applications

2009-12-04 Thread mdipierro
The proxing should not change the HTTP_HOST in the header. On Dec 4, 12:09 pm, blackthorne wrote: > Problem with routes is that I can't differenciate the traffic by its > source (I think). > Then, all other applications powered by web2py wouldn't become > acessible > > e.g.: > Client (browser) -

[web2py:36527] Re: Someone have examples using mongodb

2009-12-04 Thread Yarko Tymciurak
On Dec 4, 10:08 am, Massimo Di Pierro wrote: > They are very similar but  MongoDB has commercial support, is faster   > and the only one actually used in serious production environments. > CouchDB is more popular because ships with ubuntu. Looking at my 2 Ubuntu installs, CouchDB is not distribut

[web2py:36528] Re: upgrade app

2009-12-04 Thread Yarko Tymciurak
On Dec 4, 11:56 am, mdipierro wrote: > While I not against the move. > Actually I like the current mechanism for people emailing me patches. > Using a web based system will actually turn out to be more work. That doesn't need to be true; for example, Chromium (open source Chrome) project uses thi

[web2py:36529] Re: web2py users growth

2009-12-04 Thread Yarko Tymciurak
On Dec 4, 11:45 am, Thadeus Burgess wrote: > There are many parts of gluon that I look at and go... wtf. > > And read it again, and go... wtf. > > Only to find out the wtf comes from another module that has another > wtf in it that comes from another module.. > > If the chain of cohesion was comme

[web2py:36530] Re: Data for GAE

2009-12-04 Thread Gary
Tracked it down. It seems obvious now, but GAE doesn't seem to create the table until it has to. I added this line: db.define_table('prime1',Field('value','integer')) and re-ran the application on both web2py and GAE. In web2py, it created the file while in GAE it required the following db ins

[web2py:36531] Re: web2py users growth

2009-12-04 Thread Yarko Tymciurak
On Dec 4, 11:52 am, Jonathan Lundell wrote: > On Dec 4, 2009, at 9:45 AM, Thadeus Burgess wrote: > > > There are many parts of gluon that I look at and go... wtf. > > > And read it again, and go... wtf. > > > Only to find out the wtf comes from another module that has another > > wtf in it that co

[web2py:36532] Re: webfaction domain redirection with wsgi applications

2009-12-04 Thread blackthorne
Got into a clean version but still can't made it work: routes_in = (('.*:/favicon.ico', '/examples/static/favicon.ico'), ('.*:/robots.txt', '/examples/static/robots.txt'), -> ('.*:http://casasdocastro.com:POST /(?P.*)','/ casasdocastro/\g'), ) maybe I should be heading to

[web2py:36533] Re: getting stable version equivalent from SVN

2009-12-04 Thread Fred
On Dec 4, 11:36 am, Jonathan Lundell wrote: > 1.71.3 never got released, but it does show up in the svn log at r1462 & > r1463, both 11/26. I meant to say 1.72.3. > Massimo: when you create a tag in svn, svn creates a snapshot of the tree at > the point of the tag. > > http://svnbook.red-bean.

[web2py:36534] Re: web2py users growth

2009-12-04 Thread Yarko Tymciurak
On Dec 4, 12:07 pm, mdipierro wrote: > LOL > > next time bring it up on the developers list. > > I do not mind explaining how things work inside and perhaps we will > find out there is a better way to implement it. ;-) This is not a joke; not funny - comments will serve _you_ as well as others.

[web2py:36535] about web2py and this mailing list

2009-12-04 Thread mdipierro
I have thought for a while on whether we needed rules of conduct about this mailing list. So far I thought we did not and it has worked out pretty well. Nevertheless, I should clarify what I think this list has done for us, and what to do to continue work. 1) This is the place where some people as

[web2py:36536] new on web2pyslices.com: WebGrid

2009-12-04 Thread mr.freeze
This is a module I wrote to generate a grid that supports paging, sorting, crud links, totals and a few other things. It's still a work in progress but seems to be functioning nicely: http://www.web2pyslices.com/main/slices/take_slice/39 Enjoy! -- You received this message because you are subs

[web2py:36537] Re: Cron and Windows service

2009-12-04 Thread SergeyPo
What is the best way to run controller code periodicaly (GET request)? I need to run it daily, so windows scheduler would be fine, but what to schedule? Some BAT file or what? On Dec 4, 6:52 pm, mdipierro wrote: > There is a logical problem. the web server and cron are two processes > and therefo

[web2py:36538] Re: Cron and Windows service

2009-12-04 Thread mdipierro
Yes. You can make a bat that runs python.exe web2py.py -S appname -M -R somescript.py On Dec 4, 2:52 pm, SergeyPo wrote: > What is the best way to run controller code periodicaly (GET request)? > I need to run it daily, so windows scheduler would be fine, but what > to schedule? Some BAT file or

[web2py:36539] /views/default\index.html

2009-12-04 Thread haftish21
I'm using latest version of apache ... Everything is going fine except I can't tell what is creating this error 404? Not Found The requested URL /admin/default/edit/myApp/views/default\index.html was not found on this server -- You received this message because you are subscribed to the Google

[web2py:36540] Re: /views/default\index.html

2009-12-04 Thread mdipierro
Should be /admin/default/edit/myApp/views/default/index.html not /admin/default/edit/myApp/views/default\index.html You may had and old admin version. I thought this problem was fixed long ago Did you --upgrade=yes? On Dec 4, 3:32 pm, haftish21 wrote: > I'm using latest version of apache ... E

[web2py:36541] Error retrieving data from legacy table, mysql. Python2.6 x64 MySQL

2009-12-04 Thread Benigno
Hello, After quite a lot of pain, I finally managed to install python- mysqldb on my mac snow-leopard. At any rate it imports ok, and seems to be working fine otherwise. Yet, something funny is going on, when I try to get a specific record it seems to work fine: (as you can see legacy tabl

[web2py:36542] Re: upgrade app

2009-12-04 Thread mdipierro
I did the following test: check in web2py in mercurial clone run web2py it works out of the box. No need to modify source. The missing folders are re-created without need to put junk in them. This is very promising. Now I need to understand how to have google code to work with both hg and svn.

[web2py:36543] Re: Error retrieving data from legacy table, mysql. Python2.6 x64 MySQL

2009-12-04 Thread mdipierro
haha. web2py stores blobs base64 encoded. Your legacy database table has a blob (called 'data') and the data in there is not encoded. It happens that when you only extract record id=201326 this is not a problem because the blob field is empty. This is another example of very new feature (support f

[web2py:36544] Re: Error retrieving data from legacy table, mysql. Python2.6 x64 MySQL

2009-12-04 Thread Benigno
Thank you Massimo, You are absolutelly right, it is the blob. I can live with making some DB triggers to copy the data I need from the blob to other fields in a different table. What I mean is, you can put that way down on your list, there is no urgency from my side, and this is prob

[web2py:36545] google code svn > mercurial (done!?)

2009-12-04 Thread mdipierro
I have migrated the google code repository from svn to mercurial. http://code.google.com/p/web2py/source/browse/#hg Thanks to Yarko for being pushy in this direction. It works for me but please check if it works for you too. If you do check it, please post a message. I need with one thing:

[web2py:36546] Re: google code svn > mercurial (done!?)

2009-12-04 Thread mdipierro
Is it possible to configure hg so that it does *NOT* ask every time, or pass it as command line argument? On Dec 4, 4:43 pm, mdipierro wrote: > I have migrated the google code repository from svn to mercurial. > >    http://code.google.com/p/web2py/source/browse/#hg > > Thanks to Yarko for being

Re: [web2py:36547] Re: upgrade app

2009-12-04 Thread Thadeus Burgess
I know there are some hg tools to synchronize your hg repository with an svn repository (history and tags etc). I have done this when I first converted my SVN repo's to mercurial, however it was a tedious and manual process, and it was only one-way at the time I'm sure you have seen this link ht

Re: [web2py:36548] Re: google code svn > mercurial (done!?)

2009-12-04 Thread Thadeus Burgess
Here you go, http://mercurial.selenic.com/wiki/FAQ#FAQ.2BAC8-CommonProblems.How_can_I_store_my_HTTP_login_once_and_for_all_.3F -Thadeus On Fri, Dec 4, 2009 at 4:57 PM, mdipierro wrote: > Is it possible to configure hg so that it does *NOT* ask every time, > or pass it as command line argum

[web2py:36549] Re: upgrade app

2009-12-04 Thread mdipierro
The fact is google code continues to hold the old svn. A number have complained about the web2py history being big and making the pull too long. I thought it was good to start from scratch. Was I wrong? Massimo On Dec 4, 6:22 pm, Thadeus Burgess wrote: > I know there are some hg tools to synchro

[web2py:36550] Re: google code svn > mercurial (done!?)

2009-12-04 Thread mdipierro
Thank you. This is exactly what I needed. Let's kwwp both mercur...@googlecode and baz...@launchpad for a little while, then we kill the latter. Massimo On Dec 4, 6:29 pm, Thadeus Burgess wrote: > Here you go, > > http://mercurial.selenic.com/wiki/FAQ#FAQ.2BAC8-CommonProblems.How_ca... > > -Thad

Re: [web2py:36551] Re: upgrade app

2009-12-04 Thread Thadeus Burgess
In that case, perfect. I think at this point, a fresh start would be nice. -Thadeus On Fri, Dec 4, 2009 at 6:41 PM, mdipierro wrote: > The fact is google code continues to hold the old svn. A number have > complained about the web2py history being big and making the pull too > long. I though

Re: [web2py:36552] Re: google code svn > mercurial (done!?)

2009-12-04 Thread Thadeus Burgess
Cool thing with google code, is I can now make my own clone of web2py done... :) -Thadeus On Fri, Dec 4, 2009 at 6:45 PM, mdipierro wrote: > Thank you. This is exactly what I needed. > Let's kwwp both mercur...@googlecode and baz...@launchpad for a little > while, then we kill the latter. >

Re: [web2py:36553] Re: google code svn > mercurial (done!?)

2009-12-04 Thread Jonathan Lundell
On Dec 4, 2009, at 4:45 PM, mdipierro wrote: > Let's kwwp both mercur...@googlecode and baz...@launchpad for a little > while, then we kill the latter. And svn? (I like Mercurial, but BBEdit has svn integration, not hg, and that's very handy.) -- You received this message because you are subs

[web2py:36554] Windows Icon missing from source build.

2009-12-04 Thread Delaney
I don't see the ico file use in the taskbar icon in the Source zip file. Where is it located? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send ema

[web2py:36555] Re: google code svn > mercurial (done!?)

2009-12-04 Thread mdipierro
Actually this is something I am trying to understand. Google code seems to require a choice hg or svn. I thought that google code would store the data so that one could retrieve it in both svn and hg but it seems now only the old data is available in svn and the new data only in hg. Massimo On De

[web2py:36556] Re: Windows Icon missing from source build.

2009-12-04 Thread mdipierro
There is no .ico file and no path to such file is passed to class TaskBarIcon in gluon/contrib/taskbar_widget.py. Is somebody were to make such file I will include it. Massimo -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this gro

Re: [web2py:36557] Re: google code svn > mercurial (done!?)

2009-12-04 Thread Thadeus Burgess
Here is my hgignore I use for web2py, and my other mercurial projects... syntax: regexp ^databases/ ^errors/ ^sessions/ ^cache/ ^routes.py$ syntax: glob *.pyc *~ parameters_*.py -Thadeus On Fri, Dec 4, 2009 at 7:03 PM, mdipierro wrote: > Actually this is something I am trying to unders

Re: [web2py:36558] Re: Windows Icon missing from source build.

2009-12-04 Thread Delaney Gillilan
Ah didn't realize they were embedded in __getIconRunning & __getIconStopped. Attached is a version of the icons using the logo with a stroke to denote up/down status, kinda like Apache's icon. Using actual graphics files makes it easier to change. Let me know if these work for you. Thanks. On

[web2py:36559] Re: Windows Icon missing from source build.

2009-12-04 Thread mdipierro
Thank you. Massimo On Dec 4, 7:48 pm, Delaney Gillilan wrote: > Ah didn't realize they were embedded in __getIconRunning & __getIconStopped. > > Attached is a version of the icons using the logo with a stroke to denote > up/down status, kinda like Apache's icon. > > Using actual graphics files m