[web2py] batch upload of legacy files

2010-02-18 Thread Rowdy
Greetings, I am migrating a legacy application to web2py. Part of the legacy data is a large (> 50,000) collection of attachments - files of all different types, that were uploaded in various ways to the legacy application (typically as email attachments) and need to appear in the new web2py app

[web2py] Re: Difficulty with a form

2010-02-18 Thread waTR
The problem is that the controller does: if form.accepts(request.vars, session, keepvalues=True): In my case, it throws an error saying the request.vars doesn't contain a company_id for the SQLForm made using db.user. So I have to pass a hidden form.custom.widget.company_id element to the view wi

[web2py] Re: StackExchange

2010-02-18 Thread Anand Vaidya
Looks nice. Costs atleast $129 per month Regards Anand On Feb 19, 1:02 pm, minh wrote: > Just throwing this out there... > > I think StackExchange.com would make a good platform for web2py help/ > discussion. -- You received this message because you are subscribed to the Google Groups "web2

[web2py] new from the slice house: request a slice!

2010-02-18 Thread mr.freeze
You can now request a slice on web2pyslices.com. You will be notified if someone creates a slice based on your request. There will eventually be a hall of fame to honor those who have created the most slices and responded to the most requests. To view or create a request, simply click the 'Slice

[web2py] StackExchange

2010-02-18 Thread minh
Just throwing this out there... I think StackExchange.com would make a good platform for web2py help/ discussion. -- 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

Re: [web2py] Re: Difficulty with a form

2010-02-18 Thread Jonathan Lundell
On Feb 18, 2010, at 8:25 PM, waTR wrote: > The only work-around I found was to mark all the required info as > hidden html, and so it now populates the request.vars with the stuff > it needs for the form to submit. This is not good for me though, as I > would really like to have only the data I wa

[web2py] Re: Difficulty with a form

2010-02-18 Thread waTR
The only work-around I found was to mark all the required info as hidden html, and so it now populates the request.vars with the stuff it needs for the form to submit. This is not good for me though, as I would really like to have only the data I want to change be passed to the public html view. I

[web2py] Re: How much memory does web2py need on Unix

2010-02-18 Thread John Heenan
Raven $SERVER["socket"] == "0.0.0.0:80" { will allow all IP interfaces. John Heenan On Feb 19, 11:42 am, John Heenan wrote: > Raven, > > 1) Use > $SERVER["socket"]  == "100.101.102.103" { > instead of > $HTTP["host"] == "100.101.102.103" { > > 2) Did you restart lighttpd with > /etc/init.d/li

[web2py] Re: Problems with changing admin password in 1.75.4

2010-02-18 Thread mdipierro
Fixed in trunk, thanks Rowdy and Nathan. On Feb 18, 9:01 pm, "mr.freeze" wrote: > Yes, there are two bugs: > > 1) line 72 of admin/controllers/default.py should be > if not verify_password(request.vars.current_admin_password): > instead of > if verify_password(request.vars.current_admin_password)

[web2py] Re: Problems with changing admin password in 1.75.4

2010-02-18 Thread mr.freeze
Yes, there are two bugs: 1) line 72 of admin/controllers/default.py should be if not verify_password(request.vars.current_admin_password): instead of if verify_password(request.vars.current_admin_password): 2) line 54 of admin/models/access.py should be return _config['password'] == CRYPT()(passw

Re: [web2py] Re: first gae app

2010-02-18 Thread Wes James
I think this fixes it: in a form this gets entered a="[u'a',u'b',u'aa',u'bbb',u'cc']" a validation rule with this in it does the trick :) a[3:-2].split("',u'") On Thu, Feb 18, 2010 at 5:42 PM, Wes James wrote: > I finally think I'm getting there and I see that data after it is > inserted

[web2py] Re: website not working

2010-02-18 Thread Graham Dumpleton
On Feb 19, 12:44 pm, mdipierro wrote: > I did as you suggest, moved apache2-mpm-worker and run a cronjob that > will restart processes that take more 50% CPU. > Now it seems to be snappy, steady memory use and it is using less then > 1/2 of the memory I have (256MB). As a fail safe for a runawa

[web2py] Re: website not working

2010-02-18 Thread mdipierro
I did as you suggest, moved apache2-mpm-worker and run a cronjob that will restart processes that take more 50% CPU. Now it seems to be snappy, steady memory use and it is using less then 1/2 of the memory I have (256MB). Thank you again. Massimo On Feb 18, 6:56 pm, Graham Dumpleton wrote: > On

[web2py] Re: Problem with example in the book.

2010-02-18 Thread Wayne
Dang it. I re-read that so many times I don't know how it was missed. Thank you for the help and quick response. Wayne On Feb 18, 7:12 pm, Thadeus Burgess wrote: > db.define_table not db.define.table > > -Thadeus > > > > On Thu, Feb 18, 2010 at 7:01 PM, Wayne wrote: > > I have been working on

[web2py] Re: How much memory does web2py need on Unix

2010-02-18 Thread John Heenan
Raven, 1) Use $SERVER["socket"] == "100.101.102.103" { instead of $HTTP["host"] == "100.101.102.103" { 2) Did you restart lighttpd with /etc/init.d/lighttpd restart and where there any problems when restarting? 3) Is "mod_fastcgi" included with server.modules in lighttpd.conf? 4) Is web2py act

Re: [web2py] Problem with example in the book.

2010-02-18 Thread Thadeus Burgess
db.define_table not db.define.table -Thadeus On Thu, Feb 18, 2010 at 7:01 PM, Wayne wrote: > I have been working on section 3.6 of the book but cannot get past the > initial database sample.  When I enter the following into db.py and > click on 'database administration' I get an error.  The

[web2py] Problem with example in the book.

2010-02-18 Thread Wayne
I have been working on section 3.6 of the book but cannot get past the initial database sample. When I enter the following into db.py and click on 'database administration' I get an error. The code entered is: * db = DAL("sqlite://storage.db") db.define.table('image', Field('title'),

Re: [web2py] Re: they are copying us....

2010-02-18 Thread Thadeus Burgess
http://www.coderun.com/ -Thadeus On Thu, Feb 18, 2010 at 8:43 AM, Timothy Farrell wrote: > kodingen uses Bespin at its core.  Try using it in IE and you get this: > > http://kodingen.com/_browsehappy.html > > On 2/17/2010 1:07 AM, mdipierro wrote: >> >> This is a cool layout and editor. It u

[web2py] Re: website not working

2010-02-18 Thread Graham Dumpleton
On Feb 19, 11:39 am, mdipierro wrote: > You are right. I had > > Apache/2.2.8 (Ubuntu) mod_ssl/2.2.8 OpenSSL/0.9.8g mod_wsgi/1.3 Python/ > 2.5.2 configured > > Now I upgraded: > > Apache/2.2.8 (Ubuntu) mod_wsgi/4.0-TRUNK Python/2.5.2 mod_ssl/2.2.8 > OpenSSL/0.9.8g configured You probably want t

Re: [web2py] Re: first gae app

2010-02-18 Thread Wes James
I finally think I'm getting there and I see that data after it is inserted - gae is doing something to the list. After enter a value then I go back to edit it it has a u in front of every list value ['a','b'] insert then edit it now looks like [u'a',u'b'] now the IS_LIST doesn't work on gae w

[web2py] Re: website not working

2010-02-18 Thread mdipierro
You are right. I had Apache/2.2.8 (Ubuntu) mod_ssl/2.2.8 OpenSSL/0.9.8g mod_wsgi/1.3 Python/ 2.5.2 configured Now I upgraded: Apache/2.2.8 (Ubuntu) mod_wsgi/4.0-TRUNK Python/2.5.2 mod_ssl/2.2.8 OpenSSL/0.9.8g configured and now I see that the process using most of the ram is www-data 30743 1.

[web2py] Re: How much memory does web2py need on Unix

2010-02-18 Thread raven
John, Here is what I have placed in the file /etc/lighttpd/lighttpd.conf $ fastcgi.server = ( "/handler_web2py.fcgi" => ( "handler_web2py" => ( #name for logs "check-local" => "disable", "socket" => "/tmp/fcgi.sock", ) ) ) $HTTP["host"] == "100.101.102.103" {

[web2py] Problems with changing admin password in 1.75.4

2010-02-18 Thread Rowdy
Greetings, Since upgrading 1.75.2 to 1.75.4, I have noticed some oddness with changing the admin password. When I try to change the admin password, I get: Traceback (most recent call last): File "/home/rowdy/web2py/gluon/restricted.py", line 173, in restricted exec ccode in environment

Re: [web2py] Re: Long running tasks queue

2010-02-18 Thread Wayne Pierce
I have done something like this in the past with cron where the script first checked whether another instance is already running. If an instance was found to be running the new instance was halted. It may not be the cleanest way but it allowed me to use what was available on that system at the ti

Re: [web2py] Re: first gae app

2010-02-18 Thread Wes James
Thank you Massimo. http://web2pyapi.appspot.com/ide/default/models is working now! It only has one record right now, but I'm trying to figure out how to parse lines like: l="if request.env.web2py_runtime_gae:" l=l.replace('.',' ') l=l.replace('_',' ') l=l.replace(':',' ') l=l.split(' ') then w

[web2py] Re: website not working

2010-02-18 Thread Graham Dumpleton
On Feb 19, 10:36 am, mdipierro wrote: > My setup is exactly the one generated by this file > > http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ub... > > I did apt-get install mod-mpm-prefork > > I do not know which mod_wsgi I have. How how I check? Id just did apt- > get insta

[web2py] Re: Difficulty with a form

2010-02-18 Thread waTR
Also, I couldn't find a link to the epydocs ? Where did that go? It was really great! On Feb 18, 3:49 pm, waTR wrote: > I have created a form using SQLForm. I am using a db query to select a > single row from a db table, and I want to make changes to it. However, > when I submit, some of the

Re: [web2py] Re: How much memory does web2py need on Unix

2010-02-18 Thread Alex Fanjul
I was reviewing this threadand wow! very nice explanation and presentation of playing video streaming via web2py. Many thanks John, your thoughts looks like very interesting. Alex El 14/02/2010 3:12, John Heenan escribió: Thanks for your comments also. Yes .flv and other video files will p

Re: [web2py] apache prefork

2010-02-18 Thread Alex Fanjul
It comes to my mind, the Graham vs John discussion about: "How much memory does web2py need on Unix". By the way, I saw a Slice 2 days agou about using just 34MB memory for web2py in linux. Alex F El 18/02/2010 15:39, mdipierro escribió: I have been having memory issues with apache+mod_wsgi+w

[web2py] Difficulty with a form

2010-02-18 Thread waTR
I have created a form using SQLForm. I am using a db query to select a single row from a db table, and I want to make changes to it. However, when I submit, some of the data disapears in the submit. This happens to also prevent the form from submitting as that data that disapears is very important.

[web2py] Re: How much memory does web2py need on Unix

2010-02-18 Thread John Heenan
Hi Raven The name fcgihandler.py is just the name of a web2py start up file passed to Python. The name fcgihandler.py should not or need not appear anywhere in the lightttpd.conf file, since there is no need to give lighttpd the responsibility to start up web2py as an independent process. What l

[web2py] gae lib

2010-02-18 Thread Wes James
Hmm. I see: from google.appengine.ext import db as gae in gql.py but if I run python from the cli and do: from google.appengine.ext import db as gae I get Import Error. Where is web2py getting this from? I looked in web2py, /System/Library (mac) and /usr/local I'm not sure that would h

[web2py] Re: Limiting to a single process

2010-02-18 Thread Michael Toomim
Ah! That sounds great! I will try using gluon's portalocker. On Feb 18, 3:41 pm, mdipierro wrote: > I would use a file and lock the file when the process is running. You > can check if the file is locked. When the process ends the file will > be automatically unlocked. > > On Feb 18, 5:13 pm, M

[web2py] Re: first gae app

2010-02-18 Thread mdipierro
db(db.table.slp=='value').select() checks that 'value' is in the slp db(db.table.slp<'value').select() checks that at least one element is less than 'value' db(db.table.slp>'value').select() checks that at least one element if greater then 'value' slp is the name of your field of type StringList

[web2py] Re: Limiting to a single process

2010-02-18 Thread mdipierro
I would use a file and lock the file when the process is running. You can check if the file is locked. When the process ends the file will be automatically unlocked. On Feb 18, 5:13 pm, Michael Toomim wrote: > I'm running a background database processing task, and I only want to > have ONE task r

[web2py] Re: Limiting to a single process

2010-02-18 Thread mdipierro
On Feb 18, 5:13 pm, Michael Toomim wrote: > I'm running a background database processing task, and I only want to > have ONE task running so I don't have to worry about race conditions. > What is the best way to do this? > > I run this task from a cron @reboot. It runs this script: > > while Tru

Re: [web2py] Re: apache prefork

2010-02-18 Thread Alexandre Andrade
from description of apache2-mpm-worker package: The worker MPM provides the default threaded implementation. It is recommended especially for high-traffic sites because it is faster and has a smaller memory footprint than the traditional prefork MPM. 2010/2/18 Alexandre Andrade > really, your

[web2py] Re: website not working

2010-02-18 Thread mdipierro
My setup is exactly the one generated by this file http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-ubuntu.sh I did apt-get install mod-mpm-prefork I do not know which mod_wsgi I have. How how I check? Id just did apt- get install mod_wsgi on ubuntu 8.04. Now that fixed the BE

Re: [web2py] Re: apache prefork

2010-02-18 Thread Alexandre Andrade
really, your script setup-web2py-ubuntu.sh install apache2-mpm-worker. if you want change, just # apt-get install apache2-mpm-worker it will replace apache2-mpm-prefork. 2010/2/18 mdipierro > I am having a problem with apache running out of memory. Not sure if > this is a problem with web2p

[web2py] gae.StringListProperty

2010-02-18 Thread Wes James
I was looking in gql.py too see how StringListProperty is used. I didn't see it there. Where is it in web2py code? -wes -- 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 unsubscrib

Re: [web2py] Re: first gae app

2010-02-18 Thread Wes James
I can't find any examples of web2py and gae select with StringListProperty. Where did you find the example below? I've looked in the web2py list emails, but I can't see any other working examples. How do you do this with web2py pseudo code: form(_query) def aview query=request.vars._query

[web2py] Limiting to a single process

2010-02-18 Thread Michael Toomim
I'm running a background database processing task, and I only want to have ONE task running so I don't have to worry about race conditions. What is the best way to do this? I run this task from a cron @reboot. It runs this script: while True: time.sleep(10) process_queue() I'm worried th

[web2py] Re: routes for subdomain

2010-02-18 Thread Wikus van de Merwe
Jon, you right. If the example.com and all *.example.com prefixed domains are mapped to the same web2py app it shouldn't really matter if the host is rewritten. But then you have to be careful and don't use relative urls when linking between the "prefixed" and "non- prefixed" parts. The rules I pr

Re: [web2py] Re: apache prefork

2010-02-18 Thread Thadeus Burgess
actually, i am wrong, it is using mpm-prefork -Thadeus On Thu, Feb 18, 2010 at 3:55 PM, Thadeus Burgess wrote: > look at my slice on web2pyslices about this. It uses mpm-worker only. > > -Thadeus > > > > > > On Thu, Feb 18, 2010 at 10:01 AM, mdipierro wrote: >> I am having a problem with ap

[web2py] Re: website not working

2010-02-18 Thread Graham Dumpleton
On Feb 19, 6:40 am, mdipierro wrote: > Yes. > > I am running apache2 and I see this: > > www-data  6215  0.0  0.0 130400   164 ?        S    16:52   0:00 /usr/ > sbin/apache2 -k start > www-data  6250  0.0  0.2 130296   608 ?        S    16:52   0:00 /usr/ > sbin/apache2 -k start > www-data  631

Re: [web2py] Re: apache prefork

2010-02-18 Thread Thadeus Burgess
look at my slice on web2pyslices about this. It uses mpm-worker only. -Thadeus On Thu, Feb 18, 2010 at 10:01 AM, mdipierro wrote: > I am having a problem with apache running out of memory. Not sure if > this is a problem with web2py caching or web2py. Can you provide an > example of how to u

[web2py] 1.75.3 BADLY BORKEN - MUST UPGRADE TO 1.75.4

2010-02-18 Thread mdipierro
I posted 1.75.3 yesterday but I introduced a major but in BEAUTIFY (only in 1.75.3). It caused an infinite loop that consumes memory. This happens in all pages that call beautify, i.e. welcome index page and pages without an explicit view. You must upgrade to 1.75.4. Massimo -- You received thi

[web2py] Re: Long running tasks queue

2010-02-18 Thread mdipierro
I would not use cron for this. cron starts a job at reguar intervals but in background processing you do know that the previous task was completed. I would just make a loop that extract a "todo" task from database queue and sleeps if not task. You can use cron @reboot to make sure this one task s

[web2py] Re: generic views broken?

2010-02-18 Thread mr.freeze
Money. Works now. On Feb 18, 2:58 pm, mdipierro wrote: > You should find 1.75.4 in trunk. > > On Feb 18, 2:52 pm, "mr.freeze" wrote: > > > Is it still called trunk with hg? :) Let me know when to test. > > > On Feb 18, 2:30 pm, mdipierro wrote: > > > > aha this may be the problem of my memo

Re: [web2py] Re: first gae app

2010-02-18 Thread Wes James
Where does this go: Model.all().filter('ngrams >=', word).filter('ngrams <', word + > u'\ufffd') in the call. Where inside: rows=db(here??).select(here??) I've tried several things. gae keeps giving me "filter" or "all" KeyError. -wes On Sun, Feb 14, 2010 at 3:57 AM, Richard wrote: > sound

[web2py] Re: generic views broken?

2010-02-18 Thread mdipierro
You should find 1.75.4 in trunk. On Feb 18, 2:52 pm, "mr.freeze" wrote: > Is it still called trunk with hg? :) Let me know when to test. > > On Feb 18, 2:30 pm, mdipierro wrote: > > > aha this may be the problem of my memory leak! Fixing it in trunk. > > > Massimo > > > On Feb 18, 12:04 pm,

[web2py] Re: generic views broken?

2010-02-18 Thread mr.freeze
Is it still called trunk with hg? :) Let me know when to test. On Feb 18, 2:30 pm, mdipierro wrote: > aha this may be the problem of my memory leak! Fixing it in trunk. > > Massimo > > On Feb 18, 12:04 pm, "mr.freeze" wrote: > > > This line in generic.html seems to be causing the problem: >

[web2py] Re: Long running tasks queue

2010-02-18 Thread Kevin Bowling
I like this, I can simply insert sleep statements to keep it from being to aggressive with this approach. Would this be best in system cron? On Feb 18, 1:31 pm, mdipierro wrote: > I would run a separate process > > web2py.py -S yourapp -M -R yourscript.py > > On Feb 18, 1:31 pm, Kevin Bowling w

[web2py] Re: Long running tasks queue

2010-02-18 Thread mdipierro
I would run a separate process web2py.py -S yourapp -M -R yourscript.py On Feb 18, 1:31 pm, Kevin Bowling wrote: > Hello, > > I have a screen scraper that I would like to call from web2py.  I > currently have a controller method that calls it and updates data in > the DAL.  The problem is, the n

[web2py] Re: generic views broken?

2010-02-18 Thread mdipierro
aha this may be the problem of my memory leak! Fixing it in trunk. Massimo On Feb 18, 12:04 pm, "mr.freeze" wrote: > This line in generic.html seems to be causing the problem: > > response h2>{{=BEAUTIFY(response)}} > > It doesn't look like beautify can handle it properly. > > On Feb 18, 11:

Re: [web2py] Re: first gae app

2010-02-18 Thread Wes James
On Wed, Feb 17, 2010 at 8:13 PM, mdipierro wrote: > n... > > class IS_LIST(): >     def __call__(self,value): >          return ([x.strip() for x in value.split(',')],None) >     def formatter(self,value): >          return ', '.join(value) > > Field('mylist',gae.StringListProperty(),requires=

[web2py] Re: KPAX documentation

2010-02-18 Thread JorgeRpo
On Feb 18, 2:57 pm, mdipierro wrote: > kpax is soo old, it should die. There will be a replacement soon. > > On Feb 18, 10:50 am, davidjensen wrote: > > > Please put KPAX documentation on web2py.com. I think a generic CMS is > > important for non-technical users. > > > It would be useful to hav

[web2py] Re: website not working

2010-02-18 Thread Geo
I'm not very knowledgeable about apache ... so I don't know how to help on that topic. But, what do you think about a script which will monitor the processes's ram consumption and kill them once they go past a certain limit ( say 150mb ) ? -- You received this message because you are subscribed t

[web2py] Re: KPAX documentation

2010-02-18 Thread mdipierro
kpax is soo old, it should die. There will be a replacement soon. On Feb 18, 10:50 am, davidjensen wrote: > Please put KPAX documentation on web2py.com. I think a generic CMS is > important for non-technical users. > > It would be useful to have one, rather than many (mediawiki, drupal, > plone,

[web2py] Re: session.flash not displayed anymore

2010-02-18 Thread aure
Thank you Massimo, I have tried it but nothing seems to have changed. Here is what I have: - def firstpage(): return dict() def secondpage(): session.flash=response.flash session.flash=T('You cannot view the secondpage, you are back to the firstpage!') redirect(URL(r=request

[web2py] Re: website not working

2010-02-18 Thread Kevin Bowling
What OS? I'm running the old trusty prefork MPM with mod_php+mod_wsgi without trouble on a 512MB Linode Gentoo VPS and my site is getting beat up by ycombinator at the moment. Please post MPM httpd.conf data as well. Kevin On Feb 18, 12:40 pm, mdipierro wrote: > Yes. > > I am running apache2 a

[web2py] Re: website not working

2010-02-18 Thread mdipierro
Yes. I am running apache2 and I see this: www-data 6215 0.0 0.0 130400 164 ?S16:52 0:00 /usr/ sbin/apache2 -k start www-data 6250 0.0 0.2 130296 608 ?S16:52 0:00 /usr/ sbin/apache2 -k start www-data 6312 0.0 0.0 130296 128 ?S16:53 0:00 /usr

[web2py] Long running tasks queue

2010-02-18 Thread Kevin Bowling
Hello, I have a screen scraper that I would like to call from web2py. I currently have a controller method that calls it and updates data in the DAL. The problem is, the number of users of this app is growing quickly. I need to queue the updates so I don't overwhelm the server that it is scrapi

[web2py] Re: How much memory does web2py need on Unix

2010-02-18 Thread raven
Well, I gave this a try, and ended up with 404 errors. fcgihandler.py suggests adding to lighttpd.conf server.error-handler-404 = '/test.fcgi' This does not help, nor does server.error-handler-404 = "/error-handler.fcgi" ( There no files on my system named *.fcgi, so I do not see how this coul

[web2py] website not working

2010-02-18 Thread Geo
Hi guys! I've been trying to access the web2py website for the last couple of days, with very little success. Most of the time I get a "The connection was reset" message, and if somehow I get a connection, the navigation is very slow. Is there some problem on the server side? -- You received th

[web2py] Re: generic views broken?

2010-02-18 Thread mr.freeze
This line in generic.html seems to be causing the problem: response{{=BEAUTIFY(response)}} It doesn't look like beautify can handle it properly. On Feb 18, 11:16 am, "mr.freeze" wrote: > I just downloaded the latest source and now any action in my > controller that doesn't have an explicit view

[web2py] generic views broken?

2010-02-18 Thread mr.freeze
I just downloaded the latest source and now any action in my controller that doesn't have an explicit view is broken. The request just hangs and the python process goes to 100% processor usage. If I define a view for the action, then it works. I am using Windows 7 and python 2.5 with web2py_src.zip

[web2py] Re: How to deploy my first app

2010-02-18 Thread Al
Brian, Thank you for your detailed instructions. I managed to get stunnel working, though it is a lot more complicated than I thought originally. On the windows server, the stunnel.conf file is setup as server mode and redirect port 8443 to 8000. On the client side, I also have to set up another s

[web2py] KPAX documentation

2010-02-18 Thread davidjensen
Please put KPAX documentation on web2py.com. I think a generic CMS is important for non-technical users. It would be useful to have one, rather than many (mediawiki, drupal, plone, etc.). Many complaints on the web about the administrative problems of these. -- You received this message because

[web2py] Re: apache prefork

2010-02-18 Thread mdipierro
I am having a problem with apache running out of memory. Not sure if this is a problem with web2py caching or web2py. Can you provide an example of how to use ONLY apache2-mpm-worker Massimo On Feb 18, 8:59 am, Alexandre Andrade wrote: > Well, > > I use prefork (non-thread) to allow use php in

Re: [web2py] apache prefork

2010-02-18 Thread Alexandre Andrade
Well, I use prefork (non-thread) to allow use php in the same server. Sometimes my apache stop, I'm not sure why, yet. While I used only apache2-mpm-worker (and not php), it don't happens If you will use only web2py, I recomend use apache2-mpm-worker (multi-thread) 2010/2/18 mdipierro > I

Re: [web2py] Re: they are copying us....

2010-02-18 Thread Timothy Farrell
kodingen uses Bespin at its core. Try using it in IE and you get this: http://kodingen.com/_browsehappy.html On 2/17/2010 1:07 AM, mdipierro wrote: This is a cool layout and editor. It uses jquery. no syntax highlighting. On Feb 17, 12:49 am, Thadeus Burgess wrote: http://kodingen.com/

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-18 Thread ecall
The trace come from a fresh (web2py 1.75.3) install. I just add the magic. welcome/controllers/default.py : -- ### assume this action in controller default.py def launch(): db.photon_torpedo.target.represent=lambda target: target.name return dict(new_torpedo=cru

[web2py] apache prefork

2010-02-18 Thread mdipierro
I have been having memory issues with apache+mod_wsgi+web2py on the new hosting (256MB). I followed somebody instructions online and and I did: apt-get install apache2-mpm-prefork Any body has any positive or negative experience with this? -- You received this message because you are subscribed

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-18 Thread mdipierro
Can you post your code? Are you doing autocomplete for a reference field? If so, do you have the validator? On Feb 18, 2:19 am, ecall wrote: > I use your photon_torpedo/target sample in "welcome" application. > > The request ishttp://127.0.0.1:8080/welcome/default/launch(GAE > 1.3.1) > > ERROR  

[web2py] Re: Health Record demo app - source code available?

2010-02-18 Thread mdipierro
That is something I made on request of a friend. It is not open source but contact me privately and I will put you in contact with other people interested in working on it. On Feb 18, 2:28 am, BrendanC wrote: > Just started looking at web2py and it looks quite impressive. I'm > always interested

[web2py] Re: how to display date and time nicely?

2010-02-18 Thread mdipierro
the one in gluon tools does prettydate(request.now,T) On Feb 18, 7:49 am, Iceberg wrote: > IMHO, the example's code is good, but not cool enough to be put in the > book. Every programmer saw those ordinary if...elif...elif...else > cliche in their first program language book before. People can >

[web2py] Re: session.flash not displayed anymore

2010-02-18 Thread mdipierro
Usually this problem is caused by double redirect. Try add session.flash=response.flash at the top of your controller. This will carry forward the flash. You do not want this in production but will help you identify the problem. On Feb 18, 7:20 am, aure wrote: > I just figured out that it only

[web2py] Re: Combining LEFT OUTER JOIN with COUNTING

2010-02-18 Thread mdipierro
Now sure try count = db.dog.id.count() rows=db().select(db.person.id,db.person.name, count, left=db.dog.on(db.person.id==db.dog.owner),groupby=db.person.id) print row.person.name, row[count] On Feb 18, 7:03 am, aure wrote: > Hi, > > I have used the methods given in the web2py manual, in the "On

[web2py] Re: An enhanced BEAUTIFY class

2010-02-18 Thread mdipierro
Thank you John. On Feb 18, 2:12 am, John Heenan wrote: > This is a better keyfilter for the new BEAUTIFY than the one I > provided as it allows a key to be an empty string. > > keyfilter=lambda key=' '.join([x.capitalize() for x in > key[2:].split('_')]) if key[1:2]=='_' else key > > I have updat

[web2py] Health Record demo app - source code available?

2010-02-18 Thread BrendanC
Just started looking at web2py and it looks quite impressive. I'm always interested in finding existing code to review/modify when learning a new technology. The video of the Electronic Health Record app looks great and is something I might be interested in extending (I have a lot of experience wit

[web2py] Re: how to display date and time nicely?

2010-02-18 Thread Iceberg
IMHO, the example's code is good, but not cool enough to be put in the book. Every programmer saw those ordinary if...elif...elif...else cliche in their first program language book before. People can probably write their own if...elif...else in less time, than STFW or RTFM to find our prettydate().

[web2py] Re: session.flash not displayed anymore

2010-02-18 Thread aure
I just figured out that it only happens if I do a redirect to the page from which the controller was called. It happens like this: - A link on a page "home" is clicked to access a page "book" but in the "book" controller because some conditions are not met, I set a message using session.flash('mes

[web2py] Combining LEFT OUTER JOIN with COUNTING

2010-02-18 Thread aure
Hi, I have used the methods given in the web2py manual, in the "One to Many Relation" part, to try and combine a left outer join with grouping and counting. But I did not manage. The examples given are: >>> rows=db().select(db.person.ALL, db.dog.ALL, >>> left=db.dog.on(db.person.id==db.dog.own

[web2py] session.flash not displayed anymore

2010-02-18 Thread aure
Hi everyone, Does someone have an idea about why session.flash might stop to work (is not displayed) for my controllers but keeps on working for login, logout,... Thank you, Aurelien -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to t

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-18 Thread ecall
I use your photon_torpedo/target sample in "welcome" application. The request is http://127.0.0.1:8080/welcome/default/launch (GAE 1.3.1) ERROR2010-02-18 09:04:36,200 restricted.py:53] In FILE: C: \Python25\eclipse\workspace\web2py_1.75.3\applications\welcome/ controllers/default.py Tracebac

[web2py] Re: An enhanced BEAUTIFY class

2010-02-18 Thread John Heenan
This is a better keyfilter for the new BEAUTIFY than the one I provided as it allows a key to be an empty string. keyfilter=lambda key=' '.join([x.capitalize() for x in key[2:].split('_')]) if key[1:2]=='_' else key I have updated a web2py slice with information about using the new BEAUTIFY at ht