[web2py] Re: web2py on twisted

2010-04-29 Thread Joe Barnhart
It seems like you could run twisted as a WSGI server and let it serve for web2py. I have not tried this, mind you, but here's a short message about twisted.web and WSGI. http://jcalderone.livejournal.com/51888.html On Apr 28, 2:52 am, José L. jredr...@gmail.com wrote: Hi, I'm using an

[web2py] Re: web2py paypal integration

2010-04-29 Thread Mengu
excellent article! i needed it for my e-commerce software that i'm developing with web2py.

[web2py] app admin's i18n translation quality deteriorates

2010-04-29 Thread Iceberg
Hi Massimo and all those who concern about app admin's i18n, App admin's i18n translation quality deteriorates from time to time. Problems are: P1: Volunteer translators somehow forgot to translate a sentence. This results in the original english sentense displaying as empty in the target

[web2py] Re: Webfaction rocks

2010-04-29 Thread aure
Oh... Great! Thank you for the information, Yarko! (I really have a lot to learn...) Regards, Aurelien On 28 avr, 10:59, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: You are using a shared SSL certificate (courtesy of webfaction); That is, the SSL certificate is issued to a URI other

Re: [web2py] Re: Custom validators and SQLForm - apology

2010-04-29 Thread Johann Spies
Working with winpdb was a good learning exercise which helped me to understand more about the way web2py does things. However, it did not help me to get an answer to my question about custom validators. I could not determine where and how the builtin validators come into play and how to add to

[web2py] Re: Web2py Utilities

2010-04-29 Thread Leandro - ProfessionalIT
Thadeus, Sorry by my dummie question...but how to use your librarie in my apps deployed in GAE ? Thanks, Leandro.

[web2py] Re: Menu Selected option

2010-04-29 Thread yamandu
Well, in my app I am using accordion from jQuery plus a session var to indicate active item and som jQuery code to do the thing in the template. It worked fine to my case. I tried to figure out the web2py way to do this thought better to do my way. Altough would be better do it simply. On 28 abr,

[web2py] how to use sql functions in dal expressions

2010-04-29 Thread elffikk
hi, how to use sql functions in dal expressions ? particularly I am interested in mod operator (%) for using on updates need somethings like that db.table.update( (db.table.field+n) % db.table.count() )

Re: [web2py] Re: Rocket issues

2010-04-29 Thread Timothy Farrell
Thanks. I'll look into these today. On 4/28/2010 9:10 AM, mdipierro wrote: I am sure Tim is on the case. On Apr 28, 8:56 am, Jonathan Lundelljlund...@pobox.com wrote: Our engineering folks have started looking at the new release, with attention to Rocket, and have reported a couple of

Re: [web2py] Rocket issues

2010-04-29 Thread Timothy Farrell
It sounds to me like these two issues are really one. Basically, Rocket is not sending an HTTP response when in HTTPS mode. It closes the socket but (for some reason) Python doesn't close it immediately. This causes a client to hang for a while. Thanks for the clarification. Jon, if it's

[web2py] Re: web2py paypal integration

2010-04-29 Thread mr.freeze
The author also posted a slice here: http://www.web2pyslices.com/main/slices/take_slice/9 On Apr 29, 1:55 am, Mengu whalb...@gmail.com wrote: excellent article! i needed it for my e-commerce software that i'm developing with web2py.

Re: [web2py] Re: Application logging

2010-04-29 Thread Keith Edmunds
Hi Iceberg But I would recommend you use a later version, quoted already in Omicron's post. It uses RotatingFileHandler to avoid unstoppable log file size Thanks for providing it. I can see the sense of your suggestion; however, I want the logging to be to the standard syslog files (which are

[web2py] Re: Web2py Utilities

2010-04-29 Thread Patrick
On Apr 28, 8:02 pm, Thadeus Burgess thade...@thadeusb.com wrote: I have decided to share some of the libraries that I have found useful when creating web2py apps. This contains lots of goodies, and some nice shortcuts.     * Common shortcuts     * Widgets     * py2jquery module     *

Re: [web2py] Rocket issues

2010-04-29 Thread Jonathan Lundell
On Apr 29, 2010, at 5:58 AM, Timothy Farrell wrote: It sounds to me like these two issues are really one. Basically, Rocket is not sending an HTTP response when in HTTPS mode. It closes the socket but (for some reason) Python doesn't close it immediately. This causes a client to hang

[web2py] Re: Web2py Utilities

2010-04-29 Thread DenesL
Thanks for sharing. On Apr 28, 9:02 pm, Thadeus Burgess thade...@thadeusb.com wrote: I have decided to share some of the libraries that I have found useful when creating web2py apps. This contains lots of goodies, and some nice shortcuts.     * Common shortcuts     * Widgets     *

[web2py] Re: how to use sql functions in dal expressions

2010-04-29 Thread mdipierro
There is no API. You may be able to do from gluon.sql import Expression db(query).update(field=Expression('table.field % 100','integer',db)) this will break with the new DAL. On Apr 29, 7:47 am, elffikk elff...@gmail.com wrote: hi, how to use sql functions in dal expressions ? particularly

[web2py] Re: Application logging

2010-04-29 Thread mdipierro
It may go in tools. What do other people think? On Apr 29, 8:37 am, Keith Edmunds k...@midnighthax.com wrote: Hi Iceberg But I would recommend you use a later version, quoted already in Omicron's post. It uses RotatingFileHandler to avoid unstoppable log file size Thanks for providing

[web2py] web2py stats

2010-04-29 Thread mdipierro
web2py.com visitors have gone up (about +30% since two weeks ago). Unique visitors (by IP) 22/Apr/2010 1449 23/Apr/2010 1464 24/Apr/2010 1138 25/Apr/2010 1124 26/Apr/2010 1635 27/Apr/2010 1505 28/Apr/2010 1653 This number used to be around 1000-1200 Total HTTP requests 22/Apr/2010 41746

Re: [web2py] Re: Application logging

2010-04-29 Thread Jonathan Lundell
On Apr 29, 2010, at 7:22 AM, mdipierro wrote: It may go in tools. What do other people think? Logging is important enough for that, yes. WRT Keith's comment below: Python logging offers a rich collection of logging mechanisms, one of which is syslog, which in turn offers a rich collection of

[web2py] Re: web2py stats

2010-04-29 Thread Mengu
this is great news. hope many of them convert not just stay with visiting! :) On 29 Nisan, 17:32, mdipierro mdipie...@cs.depaul.edu wrote: web2py.com visitors have gone up (about +30% since two weeks ago). Unique visitors (by IP) 22/Apr/2010 1449 23/Apr/2010 1464 24/Apr/2010 1138

[web2py] Re: Application logging

2010-04-29 Thread szimszon
I think too that logging is important. And I vote for syslogging :) On ápr. 29, 16:22, mdipierro mdipie...@cs.depaul.edu wrote: It may go in tools. What do other people think? On Apr 29, 8:37 am, Keith Edmunds k...@midnighthax.com wrote: Hi Iceberg But I would recommend you use a

[web2py] Re: app admin's i18n translation quality deteriorates

2010-04-29 Thread szimszon
I'll try Hungarian but any help is welcome... On ápr. 29, 16:18, mdipierro mdipie...@cs.depaul.edu wrote: I agree. Let's start with this. If you have submitted a language file and want to volunteer to maintain it, please volunteer in this thread. On Apr 29, 5:04 am, Iceberg

Re: [web2py] Re: Web2py Utilities

2010-04-29 Thread Thadeus Burgess
Leandro: The only dummy questions are the ones never asked! You can checkout a copy and stick it in the modules folder of your application, and instead of ``import web2py_utils`` you can do web2py_utils = local_import('web2py_utils') Mind you, I designed this so that only the code in

Re: [web2py] Re: Application logging

2010-04-29 Thread Mathieu Clabaut
The use of python logging modules inside web2py will ideally allow people to use syslog or any other logging back end provided by this module. It would be very nice if web2py integration would allow logging for GAE (into database or whatever mechanism is provided by GAE..). Perhaps we should have

Re: [web2py] web2py on twisted

2010-04-29 Thread Nicol van der Merwe
[Off topic] Hi José Your setup sounds very cool. I would be very interested to learn more on how you have all this stuff setup and what you try to do. Perhaps you could could give a more detailed explanation (maybe with a little tutorial app ;) ) on a blog or something - provided you have time

Re: [web2py] Re: Application logging

2010-04-29 Thread Thadeus Burgess
+1 for a enterprise logging system that you can configure the backend :) -- Thadeus On Thu, Apr 29, 2010 at 10:52 AM, Mathieu Clabaut mathieu.clab...@gmail.com wrote: The use of python logging modules inside web2py will ideally allow people to use syslog or any other logging back end

[web2py] restart web2py command line

2010-04-29 Thread Avik Basu
Hi, Is there a way to restart web2py from the command line in a linux environment? Avik

Re: [web2py] Rocket issues

2010-04-29 Thread Timothy Farrell
To those reading. I've submitted a fix to Massimo that Jonathan's engineers have tested (we should all have engineers =) ). There's one question that remains. Is this serious enough for an immediate web2py bugfix release? I don't think so. -tim On 4/29/2010 9:07 AM, Jonathan Lundell

[web2py] Apps that can share models

2010-04-29 Thread Thadeus Burgess
I know this has come up previously, however there is still no good solution to this problem. I have two apps that I want them to share a couple of the same database models. In import-based frameworks this is easy, you just import the database models like any other python package. So far these

Re: [web2py] restart web2py command line

2010-04-29 Thread Thadeus Burgess
How are you running web2py? If I need to kill a web2py process that I started from the command line, but lost its process id I do the following command $: ps aux | grep web2py tburgess 12854 0.0 0.5 394812 62296 ?Sl 11:24 0:04 /usr/bin/python2.6 -u

[web2py] Re: Apps that can share models

2010-04-29 Thread Iceberg
Option A2: Make the models a function placed inside of a module that lives on applications/my_lib_app/modules/my_stuff.py, then in each of your apps you write local_import('my_stuff', app='my_lib_app') It does not require extra installation on the production machines, you just need to install

[web2py] Re: restart web2py command line

2010-04-29 Thread Iceberg
FYI: Usually the process id exists in /path_of_web2py/httpserver.pid On Apr30, 2:00am, Thadeus Burgess thade...@thadeusb.com wrote: How are you running web2py? If I need to kill a web2py process that I started from the command line, but lost its process id I do the following command $: ps

[web2py] Re: restart web2py command line

2010-04-29 Thread Yarko Tymciurak
It depends - if you are running from mod_wsgi, then web2py might be a thread - there is a file to touch for mod_wsgi to restart that thread... how you are running it (how you started it) is really the critical question. On Apr 29, 1:35 pm, Iceberg iceb...@21cn.com wrote: FYI: Usually the

Re: [web2py] restart web2py command line

2010-04-29 Thread Jonathan Lundell
On Apr 29, 2010, at 10:30 AM, Avik Basu wrote: Is there a way to restart web2py from the command line in a linux environment? I adapted one of the startup scripts in scripts/ (I think I started with the Fedora one) to make a shell script that I use from the command line. It'd be easy enough

Re: [web2py] Rocket issues

2010-04-29 Thread Jonathan Lundell
On Apr 29, 2010, at 10:37 AM, Timothy Farrell wrote: To those reading. I've submitted a fix to Massimo that Jonathan's engineers have tested (we should all have engineers =) ). There's one question that remains. Is this serious enough for an immediate web2py bugfix release? I don't

[web2py] Proposed patch for SQLTABLE

2010-04-29 Thread Philip
I'm not sure the patch submittal process, nor am I confident that my solution is the best way to solve the issue, but I'd like to propose a solution. Problem: * Situation: SQLTABLE with orderby=True is used on a URL that includes any variable. For example, URL is myapp.com/init/default/invoices?

Re: [web2py] Proposed patch for SQLTABLE

2010-04-29 Thread Thadeus Burgess
There is also a bug in appadmin that when you sort you get the list sorted, but if you browse the next 100 records, the sorting reverses itself. Do you think this would fix that bug as well? -- Thadeus On Thu, Apr 29, 2010 at 3:35 PM, Philip philip.el...@gmail.com wrote: I'm not sure the

[web2py] Login without using email id

2010-04-29 Thread DJ
Dear all, I would like to set the auth method to use any username ('tom') instead of forcing an email id ('t...@something.com'). How can I do this? thanks, Sebastian

Re: [web2py] Proposed patch for SQLTABLE

2010-04-29 Thread Jonathan Lundell
On Apr 29, 2010, at 1:43 PM, Thadeus Burgess wrote: There is also a bug in appadmin that when you sort you get the list sorted, but if you browse the next 100 records, the sorting reverses itself. Do you think this would fix that bug as well? Perhaps what you want to do is to append orderby=c

[web2py] Re: Menu Selected option

2010-04-29 Thread DJ
Thanks Massimo. Yamandu, thanks for your tip. I am using the inbuilt MENU functions for now. -S On Apr 29, 8:30 am, yamandu yamandu.co...@gmail.com wrote: Well, in my app I am using accordion from jQuery plus a session var to indicate active item and som jQuery code to do the thing in the

Re: [web2py] Login without using email id

2010-04-29 Thread Jonathan Lundell
On Apr 29, 2010, at 1:49 PM, DJ wrote: I would like to set the auth method to use any username ('tom') instead of forcing an email id ('t...@something.com'). How can I do this? In the latest version, call define_tables(username=True). In earlier versions you have to create the user table

[web2py] Re: Proposed patch for SQLTABLE

2010-04-29 Thread Philip
Thadeus, I have noticed the same bug in appadmin, but unfortunately I do not believe this will help resolve that bug. -Philip On Apr 29, 4:49 pm, Jonathan Lundell jlund...@pobox.com wrote: On Apr 29, 2010, at 1:43 PM, Thadeus Burgess wrote: There is also a bug in appadmin that when you sort

[web2py] Re: Login without using email id

2010-04-29 Thread DJ
Thanks Jon. That did it! I love the quick responses on this mailing list ...and ofcourse Web2py rocks!! On Apr 29, 4:58 pm, Jonathan Lundell jlund...@pobox.com wrote: On Apr 29, 2010, at 1:49 PM, DJ wrote: I would like to set the auth method to use any username ('tom') instead of forcing

[web2py] Re: Proposed patch for SQLTABLE

2010-04-29 Thread Yarko Tymciurak
I am confused... or missing something... On Apr 29, 3:35 pm, Philip philip.el...@gmail.com wrote: I'm not sure the patch submittal process, nor am I confident that my solution is the best way to solve the issue, but I'd like to propose a solution. Problem: * Situation: SQLTABLE with

Re: [web2py] Re: Proposed patch for SQLTABLE

2010-04-29 Thread Jonathan Lundell
On Apr 29, 2010, at 2:14 PM, Yarko Tymciurak wrote: I am confused... or missing something... On Apr 29, 3:35 pm, Philip philip.el...@gmail.com wrote: I'm not sure the patch submittal process, nor am I confident that my solution is the best way to solve the issue, but I'd like to propose a

Re: [web2py] Re: Proposed patch for SQLTABLE

2010-04-29 Thread Jonathan Lundell
On Apr 29, 2010, at 2:06 PM, Philip wrote: Thadeus, I have noticed the same bug in appadmin, but unfortunately I do not believe this will help resolve that bug. If you put the orderby in request.vars, then the next-page logic will be able to use it to do the right thing (caveat: I'm not

[web2py] Re: Proposed patch for SQLTABLE

2010-04-29 Thread Yarko Tymciurak
On Apr 29, 4:37 pm, Jonathan Lundell jlund...@pobox.com wrote: On Apr 29, 2010, at 2:06 PM, Philip wrote: If you put the orderby in request.vars, then the next-page logic will be able to use it to do the right thing (caveat: I'm not looking at the code). Thanks; I guess I don't

[web2py] Re: Proposed patch for SQLTABLE

2010-04-29 Thread Philip
Yarko, let me try to explain why I view this as a bug. SQLTABLE offers the option of having the headers clickable to sort the table by any one of the columns. I don't think it is unreasonable to expect that clicking on one of the headers returns the same table with the rows resorted. In the

[web2py] Re: Proposed patch for SQLTABLE

2010-04-29 Thread mdipierro
Using the list is a good way to submit patches because other users will check it. For longer patches you also want to email me personally and submit the patch as an attachment. Massimo On Apr 29, 3:35 pm, Philip philip.el...@gmail.com wrote: I'm not sure the patch submittal process, nor am I

[web2py] Re: Proposed patch for SQLTABLE

2010-04-29 Thread Yarko Tymciurak
Phillip - Wow! Thanks! - this really clarifies for me. On Apr 29, 5:17 pm, Philip philip.el...@gmail.com wrote: Yarko,    let me try to explain why I view this as a bug.  SQLTABLE offers the option of having the headers clickable to sort the table by any one of the columns.  I don't think

Re: [web2py] Re: Proposed patch for SQLTABLE

2010-04-29 Thread Jonathan Lundell
On Apr 29, 2010, at 4:50 PM, Yarko Tymciurak wrote: I think this is about data containment. RIght now, there is coupling. That this bug took long to find suggests its at the periphery of the problem space (if it were smack-in-the-middle, lots of people would have already complained).

[web2py] Re: Web2py Utilities

2010-04-29 Thread muybay
Fantastic contribution Thadeus, I hope to contribute back a fraction of what you have already done, many thanks! On Apr 29, 10:50 am, Thadeus Burgess thade...@thadeusb.com wrote: Leandro: The only dummy questions are the ones never asked! You can checkout a copy and stick it in the modules

[web2py] Cannot compile: there are errors in your app:

2010-04-29 Thread DJ
I checked for file permissions and they look fine. No special files in my app apart from javascript files and the regular web2py files. Version: 1.77.3 running on Ubuntu 8, python 2.5.2 Any pointers? -Sebastian

[web2py] Re: Cannot compile: there are errors in your app:

2010-04-29 Thread mdipierro
the new version (coming out very soon) will show a traceback. On Apr 29, 9:41 pm, DJ sebastianjaya...@gmail.com wrote: I checked for file permissions and they look fine. No special files in my app apart from javascript files and the regular web2py files. Version: 1.77.3 running on Ubuntu 8,

Re: [web2py] Cannot compile: there are errors in your app:

2010-04-29 Thread Thadeus Burgess
Something is wrong with your syntax somewhere. You can try and temporarily patch applications/admin/compile and remove the exception catch, that way you can determine the exact line that is causing the error. -- Thadeus On Thu, Apr 29, 2010 at 9:41 PM, DJ sebastianjaya...@gmail.com wrote: