[web2py] Re: BestWay to call controller function

2010-02-28 Thread winti
Thanks for that. i will use a module. Stefan On Feb 28, 4:45 pm, mdipierro wrote: > redirect(URL()) does not call another controller. sends > instructions to the client to call another controller action. > > If you really need to call another controller you can do what > described here:http:

[web2py] Re: translation of the online book

2010-02-28 Thread Vidul Petrov
Probably just "applications/%s/init/languages/%s" repository? I guess that the best way for evaluation of the translation is a rating, based on many reviews. (However the rating won't work for small countries which contain less than 100 professional Python developers.) On Feb 28, 5:47 pm, mdipie

[web2py] Re: jQuery autocomplete -- need simple example using url [CLOSED]

2010-02-28 Thread weheh
It's awesome. Thanks. Only criticism is that slice is so sparse in terms of toppings. A few more details might be needed for the real newbies out there. Adding a controller and view would make it complete. I could say the same about some other slices, I imagine. Anyway, I managed to plow through it

Re: [web2py] Re: Is the web2py site down?

2010-02-28 Thread Álvaro Justen [Turicas]
I think adding a monitor to HTTP port of web2py.com's server (using a free service like Hyperspgin[1]) could help. [1] http://www.hyperspin.com/en/ On Sun, Feb 28, 2010 at 10:01, mdipierro wrote: > This is what the vps.ner logs show: > > http://groups.google.com/group/web2py/web/network_graph.pn

[web2py] Re: cron warning...

2010-02-28 Thread mdipierro
follow up... one thing is not clear to me. Say a cron job should start every 10 minutes. If the actual execution of the job takes longer (say 15 minutes) what is the right thing to do? 1) Queue them (thus running every 15 minutes but the size of the queue gets longer and longer)? 2) Skip an extra

[web2py] cron warning...

2010-02-28 Thread mdipierro
I discovered a race condition problem in web2py cron. This may cause spikes in the number of web2py processes and eat lots of memory on your system when running multiple processes. Some of you have reported the problem. I changed wsgihandler in trunk and replaced from gluon.contrib.wsgihooks i

[web2py] Re: jQuery autocomplete -- need simple example using url

2010-02-28 Thread mr.freeze
Here's a slice that may work for you (this isn't the pengoworks plugin): http://www.web2pyslices.com/main/slices/take_slice/66 On Feb 28, 8:47 pm, weheh wrote: > Anybody used jQuery autocomplete plugin with web2py? I am trying to > get it to work with a url (localhost first, then my server), but

[web2py] jQuery autocomplete -- need simple example using url

2010-02-28 Thread weheh
Anybody used jQuery autocomplete plugin with web2py? I am trying to get it to work with a url (localhost first, then my server), but can't seem to get it to run. If you wouldn't mind sharing a simple example it would be appreciated. Thanks. -- You received this message because you are subscribed

[web2py] web2py on hostmonster

2010-02-28 Thread elffikk
hi, I am trying to install web2py on hostmonster (fcgid) using this (how to install django) http://www.hostmonsterforum.com/showthread.php?t=3100 but ... :( fcgi scripts are running only from cgi-bin/ directory, tried to install just cherrypy and it seems not finding a free port, logs says that

[web2py] Re: Recaptcha doesn't play nice with crud

2010-02-28 Thread mr.freeze
Patch submitted. It adds crud.settings.create_captcha and crud.settings.update_captcha. On Feb 27, 12:50 am, "hamdy.a.farag" wrote: > Hi > > The reason for this is that any field added to a form needs to be > added b4 if form.accepts() so that validation can work , otherwise > validation will no

Re: [web2py] Re: web2py on EC2

2010-02-28 Thread Álvaro Justen [Turicas]
On Sun, Feb 28, 2010 at 11:54, Thadeus Burgess wrote: > Most have no use for emacs its not necessary to having a running > web2py server. Emacs is a preference, just as others prefer VIM, and > other prefer simple nano. +1 As emcas is not a dependency for web2py I think the script don't need

[web2py] A patch to html.py

2010-02-28 Thread Iceberg
Hi Massimo, Probably (and probably not) because I manually delete applications/ myapp/uploads/*.jpg, somehow I encounter an exception when gonna display a crud.update(...) form. The error traceback: .. File "C:\DOWNLOAD\google_appengine\web2py\gluon\html.py", line 452, in _traverse ne

[web2py] Re: New Code-Editor

2010-02-28 Thread mdipierro
About CodeMirror I am told by one of the authors that: - lines that are not militantly aligned to 4-space increments are flagged as errors. - Codemirror has no regexp searching - Codemirror is slower than Editarea Bespin requires HTML5 and therefore is not really compatible with many browser. I'

[web2py] New Code-Editor

2010-02-28 Thread Joschua
Hello (I'm new here :), the code-editor of web2py often has display errors (on SRWare Iron (a better Chrome) even more) and is sometimes slow. There are also some good alternatives to the actually used "EditArea": http://stackoverflow.com/questions/198271/is-there-a-good-in-browser-code-editor C

[web2py] Re: strange traceback from db select's cache.disk with apache2 and wsgi

2010-02-28 Thread mdipierro
I need to run some tests about this... will let you know soon. On Feb 28, 12:34 pm, szimszon wrote: > What does it mean? Is there a thread about it somewhere? > > Sorry I don't understand this session thing :( I already use > cache.disk instead cache.ram... > > http://groups.google.com/group/web2

[web2py] Re: unfair trolling

2010-02-28 Thread mdipierro
I moved because vps.net was cheaper and had automatic daily weakly and monthly backup. Except for the fact that vps.net seems to be down on Saturdays I am very happy with their support. They answer emails immediately and are helpful. They also provide ready made VMs from TurnKey Linux and was wor

Re: [web2py] Re: unfair trolling

2010-02-28 Thread Jonathan Lundell
On Feb 28, 2010, at 11:53 AM, Kevin Bowling wrote: > Linode is faster and more friendly. They aren't owned by a big > conglomerate like rackspace so you will get personal support and they > will take a vested interest in keeping the web2py site up. You should > consider emailing them, they may e

[web2py] Re: unfair trolling

2010-02-28 Thread Kevin Bowling
Linode is faster and more friendly. They aren't owned by a big conglomerate like rackspace so you will get personal support and they will take a vested interest in keeping the web2py site up. You should consider emailing them, they may even give you a free instance if you recommend Linode for web

[web2py] Re: webform actions

2010-02-28 Thread mr.freeze
Here's an even better solution :) if 'MSIE' in request.env.http_user_agent: redirect('http:/getfirefox.com/') But seriously, I see your point. It's a bit of a catch 22 as you are either coding around browser quirks or relying on javascript. On Feb 27, 8:42 pm, Jonathan Lundell wrote: > On

[web2py] Re: unfair trolling

2010-02-28 Thread mr.freeze
This is obvious but also don't turn the old server off until dns has fully propagated and users shouldn't notice the transition. 48hrs usually but 72 to be sure. On Feb 28, 11:29 am, Jonathan Lundell wrote: > On Feb 28, 2010, at 7:18 AM, mr.freeze wrote: > > > +1 for slicehost and +1 for putting

[web2py] Re: strange traceback from db select's cache.disk with apache2 and wsgi

2010-02-28 Thread szimszon
What does it mean? Is there a thread about it somewhere? Sorry I don't understand this session thing :( I already use cache.disk instead cache.ram... http://groups.google.com/group/web2py/browse_frm/thread/9993d61782c9b11d/489ca6f2b2b018e0?lnk=gst&q=cache.ram+clear#489ca6f2b2b018e0 What is that

Re: [web2py] Re: unfair trolling

2010-02-28 Thread Jonathan Lundell
On Feb 28, 2010, at 7:18 AM, mr.freeze wrote: > +1 for slicehost and +1 for putting a message on web2py.com. Something > like: "We've been growing! As a result, we have had to move this site > to another host. Please excuse any recent downtime." I don't have a useful opinion on hosting (I can't r

Re: [web2py] Re: strange traceback from db select's cache.disk with apache2 and wsgi

2010-02-28 Thread Jonathan Lundell
On Feb 28, 2010, at 4:45 AM, mdipierro wrote: > You cannot store in a session the result of a select(). This seems to come up a lot. Would it be practical to have Session catch the exception and raise a more helpful (higher-level) one? > > On Feb 26, 2:39 pm, szimszon wrote: >> The table has

[web2py] Re: Iterate through form input

2010-02-28 Thread mr.freeze
Whoops, that's response.flash :) On Feb 28, 12:39 am, "mr.freeze" wrote: > Try this. It builds the form dynamically on the client and server so > you get to keep the benefits of SQLFORM (validation, etc): > > def invite(): >     fields = [Field('email',requires=IS_EMAIL())] >     for r in range(1

[web2py] Re: strange traceback from db select's cache.disk with apache2 and wsgi

2010-02-28 Thread szimszon
Sorry my English isn't the best :-o You mean that I can't cache select with uploaded files? And it seems to me that the trouble is only with one particular select result... This is my actual code: cut --- db.define_table( 'invoice', Field( 'seller_id'

[web2py] Re: translation of the online book

2010-02-28 Thread mdipierro
We already have revision built into the system but each page has its own revision history, not the entire document. On Feb 28, 8:37 am, Mengu wrote: > revisions? > > On 28 Şubat, 15:07, mdipierro wrote: > > > I am thinking about adding miltilingual support directly into the book > > app. The pro

[web2py] Re: BestWay to call controller function

2010-02-28 Thread mdipierro
redirect(URL()) does not call another controller. sends instructions to the client to call another controller action. If you really need to call another controller you can do what described here: http://web2py.com/book/default/section/4/19 But I'd recommend do not do it. Instead, encapsulate

[web2py] Re: unfair trolling

2010-02-28 Thread mdipierro
I followed your advice and for now I a message. I could move to slice host but not today. I will try later tonight or tomorrow. I just landed from India and still need some time to shower, unpack, rest. Massimo On Feb 28, 9:18 am, "mr.freeze" wrote: > +1 for slicehost and +1 for putting a messag

[web2py] Possibly a bug in coding against an existing form

2010-02-28 Thread hamdy.a.farag
Hi Looking into this thread http://groups.google.com/group/web2py/browse_thread/thread/8c0479e1df9df3e3/be160c757aa666b8?lnk=gst&q=code+against+existing+form#be160c757aa666b8 I had the same problem: I had in my view a form : - f

[web2py] BestWay to call controller function

2010-02-28 Thread winti
Hello, what's the best/easiest way to call a existing controller function from another controller in the same app? Until now i used: redirect(URL(r=request,c=..,f=...,args=.)) In this particular case, the calling controller function is not associated with a form, i just like to get the return

[web2py] Re: unfair trolling

2010-02-28 Thread mr.freeze
+1 for slicehost and +1 for putting a message on web2py.com. Something like: "We've been growing! As a result, we have had to move this site to another host. Please excuse any recent downtime." On Feb 28, 9:03 am, Thadeus Burgess wrote: > Massimo, you should consider moving to slicehost, I have b

Re: [web2py] Re: unfair trolling

2010-02-28 Thread Kuba Kucharski
"First they ignore you, then they laugh at you, then they fight you, then you win" -- Kuba -- 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 email

[web2py] Re: Web2py Scalability and demos

2010-02-28 Thread Mengu
If I were you, I'd run a benchmark test with the current system and the same application with web2py. But of course this means time. :) On 26 Şubat, 04:42, Alfonso de la Guarda wrote: > Hello, > > Right now, i have a costumer in the news business in my country which > expect, at least, 50 hit

Re: [web2py] Re: unfair trolling

2010-02-28 Thread Thadeus Burgess
Massimo, you should consider moving to slicehost, I have been running 3 separate slicehost servers for web2py, none of them have ever been down since I purchased the services. Alternatively, if you want cloud hosting, rackspace provides excellent cloud servers in the same datacenters as slicehost.

[web2py] Re: unfair trolling

2010-02-28 Thread mdipierro
You are right. We may need a community solution. I could give root privileges to a couple of people on this list although the problem is never with the server itself. We have had problems with the DNS when we migrated and we have had problems with the hosting provider. In all of these cases there

Re: [web2py] One settings file. Best practise?

2010-02-28 Thread Thadeus Burgess
I do A_settings.py # global settings and flags B_w2p.py # web2py related things, auth/crud/service declarations C_modelA.py D_modelB.py #relies on model a so it executes after -Thadeus On Sun, Feb 28, 2010 at 5:19 AM, Guido Kollerie wrote: > I'd like to have one file with configurable setti

Re: [web2py] Re: web2py on EC2

2010-02-28 Thread Thadeus Burgess
Most have no use for emacs its not necessary to having a running web2py server. Emacs is a preference, just as others prefer VIM, and other prefer simple nano. Of course, we should all read the script, and comment out anything we don't like before execution :) -Thadeus On Sun, Feb 28, 20

[web2py] Re: unfair trolling

2010-02-28 Thread Mengu
trolls are everywhere and yes, this is unfair because this is not web2py's fault. however web2py.com being down for hours? this is not fair too. i remember someone suggesting the community should also run the web site. i suggest instead of the community you can also share the information with one o

[web2py] Re: translation of the online book

2010-02-28 Thread Mengu
revisions? On 28 Şubat, 15:07, mdipierro wrote: > I am thinking about adding miltilingual support directly into the book > app. The problem is that adding pages is easy, keeping track of what > has been translated and what no may be a mess. Any advice? > > On Feb 27, 7:50 pm, Vidul Petrov wrote:

[web2py] Re: GAE delete() has subtle difference compared to native Web2Py

2010-02-28 Thread mdipierro
they should be quivalent On Feb 23, 10:11 pm, Richard wrote: > I sometimes get that ID error on both GAE and the development server, > and for non-delete operations such as: > > db(db.client.id > 0).select() > > so to be more robust I have replaced ID calls with: > > db().select(db.client.ALL) >

[web2py] Re: translation of the online book

2010-02-28 Thread mdipierro
I am thinking about adding miltilingual support directly into the book app. The problem is that adding pages is easy, keeping track of what has been translated and what no may be a mess. Any advice? On Feb 27, 7:50 pm, Vidul Petrov wrote: > Hi all, > > Some days ago I was happy to found out the o

[web2py] Re: Web2py Scalability and demos

2010-02-28 Thread mdipierro
I do not know. People do not tell me how big theirs sites are. Perhaps people could give us more information in this thread. My site gets about 4requests/day. Massimo On Feb 26, 5:10 pm, Alfonso de la Guarda wrote: > Massimo, > > I will try to make some tests about performance, however: what

[web2py] Re: Limitby not working with Oracle with joins

2010-02-28 Thread mdipierro
No limitby is not working on Oracle with Joins. This is because Oracle does not support pagination. We do it anyway using a trick (three nested select as suggested by the oracle docs) but the trick breaks down with joins. On Feb 27, 11:50 am, SergeyPo wrote: > If you remove limitby it works. I re

[web2py] Re: Is the web2py site down?

2010-02-28 Thread mdipierro
This is what the vps.ner logs show: http://groups.google.com/group/web2py/web/network_graph.png The vps received no requests in between 6am and 12pm. vps.net had problems last saturday as well. Time to switch again? I hate this. Massimo On Feb 27, 11:00 am, Brian M wrote: > Yep, down - notice

[web2py] Re: Ladies and Gentelmen... the web2py book is online

2010-02-28 Thread mdipierro
sorry. The postfix daemon was down. Now sure why. Massimo On Feb 27, 5:58 am, mdmcginn wrote: > When I try to register, I get a flash "Unable to send email" > > On Feb 15, 9:20 am, mdipierro wrote: > > > Create a wiki page under preface callederrata. It would be nice if > > somebody where to mo

[web2py] unfair trolling

2010-02-28 Thread mdipierro
http://www.reddit.com/r/Python/comments/b792t/why_is_web2pycom_often_down/ -- 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 email to web2py+unsubs

[web2py] Re: web2py on EC2

2010-02-28 Thread mdipierro
I'll remove upgrade but not emacs. ;-) On Feb 26, 2:57 pm, Thadeus Burgess wrote: > Agreed, this is why I do not recommend the script, it does alot of > things that don't seem necessary to me. > > -Thadeus > > On Fri, Feb 26, 2010 at 2:14 PM, Kuba Kucharski > > wrote: > > although the script sho

[web2py] Re: strange traceback from db select's cache.disk with apache2 and wsgi

2010-02-28 Thread mdipierro
You cannot store in a session the result of a select(). On Feb 26, 2:39 pm, szimszon wrote: > The table has upload field and blob to hold file. Can it cause the > problem? > > On febr. 26, 21:22, szimszon wrote: > > > This is the cached select which caused the trouble: > > > SELECT invoice.id, i

[web2py] Re: zen html

2010-02-28 Thread mdipierro
Can you explain a little bit about what this does? On Feb 26, 10:27 am, Dragonfyre13 wrote: > Even better! > > http://zen-coding.ru/demo/ > > That is a demo of zenhtml running against editarea, the default editor > in web2py. Putting zenhtml with our editarea would be pure awesome. > > I'd love t

[web2py] Re: importing local modules

2010-02-28 Thread mdipierro
I did not express myself properly. They could be added but, in import, python would search the paths in the order they where appended in sys.path. Therefore you may be importing a module from a different app instead of the one you want. It would cause confusion. On Feb 26, 10:32 am, Jonathan Lund

Re: [web2py] Re: sql between function

2010-02-28 Thread Stelios Koroneos
On Sat, 2010-02-27 at 19:13 -0800, mr.freeze wrote: > def datesearch(): > matches=None > form = > SQLFORM.factory(Field('start_date','date',requires=IS_NOT_EMPTY()), > > Field('end_date','date',requires=IS_NOT_EMPTY())) > if form.accepts(request.vars,session): > (sy,sm,sd) = (

[web2py] One settings file. Best practise?

2010-02-28 Thread Guido Kollerie
I'd like to have one file with configurable settings instead of having these settings spread out over mulitple models and controllers. What's the best practise for this? My solution is to create a '_settings.py' model. I prepended it with an underscore to ensure it is the first excuted model file