[web2py] Re: recommendations for production system?

2011-05-17 Thread luckysmack
I have never used VPS.net so im not sure about them. Like pbreit I use rackspace(cloud) as well and the service is top notch and you get full root access. which for a vps im sure vps.net does as well. For the actual setup itself, for a small server I just moved away from apache and will never move

[web2py] Post Data Obfuscation

2011-05-17 Thread luckysmack
I recently listened to a podcast from a HOPE conference last year, and the podcast talked about post data obfuscation. Where when the post data is submitted it is obfuscated by javascript and a false copy is passed through POST and a real copy is sent to the server. it also send a special key that

[web2py] Re: Need advice on Cron in production

2011-05-17 Thread Russell
Yes, I have two lines in the crontab. A five minute one, and a daily one... */5 * * * * python /home/www-data/web2py/web2py.py -S init -M -N -R / home/www-data/web2py/applications/init/modules/scripts/cron_fivemin.py 1 22 * * 1-5 python /home/www-data/web2py/web2py.py -S init -M -N -R / home/www

[web2py] Re: Better language support

2011-05-17 Thread pierreth
On 17 mai, 23:46, Massimo Di Pierro wrote: > +1 for this. I would take a patch. ;-) > +1 for this one too? : > The second thing that I propose is that web2py put the term is unable > to translate in other files like "missing-translations-fr.py". Right > now, web2py adds these translation automat

Re: [web2py] blog app

2011-05-17 Thread Richard Baron Penman
the problem is app engine needs to start a new instance after inactivity: http://code.google.com/appengine/docs/adminconsole/instances.html#Loading_Requests So for a fast initial response you need lots of traffic,

[web2py] Re: Better language support

2011-05-17 Thread Massimo Di Pierro
+1 for this. I would take a patch. ;-) On May 17, 8:09 pm, pierreth wrote: > On 17 mai, 13:54, pierreth wrote: > > > - T.accepted_language would stay the same. > > - A new T.accepted_languages, with an 's', would be created to list > > all the languages accepted by the users. > > - When searchin

Re: [web2py] Re: Better language support

2011-05-17 Thread Jonathan Lundell
On May 17, 2011, at 5:35 PM, pierreth wrote: > > Any other ideas? One. Now that we can have translations in gluon, it'd be nice to have global (that is, not app-specific) translation files. My thought was that the translator would look first in the current app's translations, and if it's not f

[web2py] Re: checkboxes widget error

2011-05-17 Thread Anthony
On Tuesday, May 17, 2011 9:48:32 PM UTC-4, luis diaz wrote: > > well I can tell you in > http://www.web2py.com/examples/static/web2py_src.zip > not corrected > That's the current stable release. To get trunk, you have to pull it directly from the Google Code repository: http://code.google.com

[web2py] Re: Cubrid?

2011-05-17 Thread CUBRID RDBMS
The night passes by, and you are already active. Massimo, you are quick, man! Thanks for your efforts. And here are a few thing I would like to comment on. 1) As you have already noticed, you MUST start the db before connecting to or using it. Thus, you can control yourself which databases are ON

[web2py] Re: checkboxes widget error

2011-05-17 Thread luis diaz
well I can tell you in http://www.web2py.com/examples/static/web2py_src.zip not corrected

[web2py] Re: Better language support

2011-05-17 Thread pierreth
On 17 mai, 13:54, pierreth wrote: > - T.accepted_language would stay the same. > - A new T.accepted_languages, with an 's', would be created to list > all the languages accepted by the users. > - When searching for a translation, web2py will go through all the > files for T.accepted_languages to f

Re: [web2py] blog app

2011-05-17 Thread Bruno Rocha
I am using Bloog in my personal blog www.rochacbruno.com.br (it is not finished yet) I guess that is a GAE indexes problem, my is running on webfaction which is faster at this point. On Tue, May 17, 2011 at 9:15 PM, Richard Baron Penman wrote: > nice - I didn't know about bloog. > > I tried acces

[web2py] Re: recommendations for production system?

2011-05-17 Thread pbreit
If you are comfortable with Apache, it's difficult to advise going with Nginx, but with a small node like that, you would probably be better off memory wise with Nginx. For pricetack.com, I currently use Ubuntu 10.04 + Nginx (uWSGI) + Postgres on RacksSpace Cloud 512mb ( I don't have much traff

Re: [web2py] blog app

2011-05-17 Thread Richard Baron Penman
nice - I didn't know about bloog. I tried accessing that GAE app at http://blog.lucasdavi.la and the first request took almost 10 seconds - terrible! On Wed, May 18, 2011 at 9:09 AM, Bruno Rocha wrote: > Instant Press > http://code.google.com/p/instant-press/ > > Blo

[web2py] Re: Need advice on Cron in production

2011-05-17 Thread pbreit
Cool, thanks or the examples. So do you have one line in our system crontab for each job? And then one cronXX.py file on modules for each task? I have some tasks that go every minute and some that go daily. There's no way to specify a function through the command line, correct?

[web2py] Re: Need advice on Cron in production

2011-05-17 Thread Russell
This works for me. I have a system crontab like this... */5 * * * * python /home/www-data/web2py/web2py.py -S init -M -N -R / home/www-data/web2py/applications/init/modules/cron.py And cron.py runs just like it should. Here's a basic layout that you can use to test it's working... ==modules/cr

[web2py] Re: Better language support

2011-05-17 Thread pierreth
On 17 mai, 13:54, pierreth wrote: > It seems that web2py takes care of only the first language listed in > the browser request. The other languages are not taken into account. I made some tests and web2py choose the T.accepted_language as the first language listed in the request for which there i

Re: [web2py] blog app

2011-05-17 Thread Bruno Rocha
Instant Press http://code.google.com/p/instant-press/ Bloog https://github.com/lucasdavila/blog.lucasdavi.la Powerpack http://martin.tecnodoc.com.ar/default/post/2011/04/21/14_installing-powerpack-from-zero -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] On Tue, May 17, 2011 at 7:46 P

[web2py] recommendations for production system?

2011-05-17 Thread Carlos
Hi all, In order to prepare my web2py production system, I would really welcome all your advice. I will get one node from vps.net: http://vps.net/product/cloud-servers dedicated cpu = 0.6 GHz dedicated ram = 376 MB disk space = 10 GB network transfer = 250 GB I am planning to in

[web2py] blog app

2011-05-17 Thread Plumo
I like this wordpress blog: http://blog.alwaysdata.com Is there an existing web2py app I could use to replicate it?

[web2py] Re: Better language support

2011-05-17 Thread pierreth
I would like to further express why this feature would be a great benefit. People doing translation are having a hard time the way web2ppy is working now. I will take the example of translating in French but it seems to be the same for about any languages. One of the problem we have to deal with a

[web2py] GAE caching

2011-05-17 Thread Plumo
I just noticed the flag KEEP_CACHED in gaehandler to keep the app warm: http://web2py.com/book/default/chapter/11#Configuring-the-Handler Can this be set from a model? Or need to modify in file?

[web2py] Re: New importer in trunk

2011-05-17 Thread pierreth
On 17 mai, 14:36, Martín Mulone wrote: > Pierreth I'm testing this, and it all seem to work very well, nice feature > indeed!. :-) >I'm looking for memory leak but it's seem stable in my notebook. I > already rewrite powerpack, to support this, at first sigth it's double the > speed from the old

[web2py] Logging of user actions

2011-05-17 Thread Joseph.Piron
Hi all, I was wondering what would be the best way to log actions with the username of the logger user. I found several leads but none very conclusive. For example, define a filter in my model: import logging class ContextFilter(logging.Filter): def filter(self, record): record.user

[web2py] Re: little bug ldap_auth

2011-05-17 Thread Joseph.Piron
Yes it works (MS2003 AD server). On May 17, 3:54 pm, Massimo Di Pierro wrote: > It is possible that some system are more picky than others > does it work if you replace (in line 10) > > '(objectClass=*)' > > with > > 'objectClass=*' > > If it does, it should be changed. > > On May 17, 6:51 am, Jo

[web2py] Re: checkboxes widget error

2011-05-17 Thread Massimo Di Pierro
I believe it is fixed in trunk. Is it not? On May 17, 3:38 pm, Luis Díaz wrote: > Greetings! > I write to ask what happened > with checkboxes widget error > > reference to the report is as > follows:http://code.google.com/p/web2py/issues/detail?id=221&can=1&q=checkbox > > in my case I tested usi

[web2py] Re: New importer in trunk

2011-05-17 Thread Massimo Di Pierro
What do you want to do exactly with LOAD in modules? On May 17, 1:36 pm, Martín Mulone wrote: > Pierreth I'm testing this, and it all seem to work very well, nice feature > indeed!. I'm looking for memory leak but it's seem stable in my notebook. I > already rewrite powerpack, to support this, at

[web2py] Re: Cubrid?

2011-05-17 Thread DenesL
LAST_INSERT_ID seems to be available only in Cubrid 8.4.0 (beta). But after reinstalling version 8.4.0 I can not connect to it (worked in 8.3.1) even after: C:\CUBRID\bin>cubrid server start demodb ++ cubrid server start: success On May 17, 2:39 pm, DenesL wrote: > Connect working after issui

[web2py] Re: plugins

2011-05-17 Thread luis diaz
+1 Congratulations! excellent work

[web2py] checkboxes widget error

2011-05-17 Thread Luis Díaz
Greetings! I write to ask what happened with checkboxes widget error reference to the report is as follows: http://code.google.com/p/web2py/issues/detail?id=221&can=1&q=checkbox in my case I tested using 'list:string' the error persists Díaz Luis http://www.facebook.com/diazluis2007 User Linux

[web2py] Re: Cubrid?

2011-05-17 Thread Massimo Di Pierro
before we advertise: - make sure it works - we should decide how to deal with 'list:*' types. right now it handles them like in mysql and does not uses the build-in list type of cubrid. On May 17, 2:43 pm, mikech wrote: > Essen:  Thank-you for the quick response.  And Massimo that was real quick

[web2py] Re: Cubrid?

2011-05-17 Thread mikech
Essen: Thank-you for the quick response. And Massimo that was real quick - talk about Agile! Is anyone going to write this up on the CUBRID site like Essen mentioned above? Mike

[web2py] Re: Cubrid?

2011-05-17 Thread DenesL
Connect working after issuing cubrid server start demodb Testing... On May 17, 10:58 am, DenesL wrote: > I mean that I patched the dal myself ;) > > Anyways, I have trouble connecting even from outside web2py. > Tried with 8.4.0 beta and 8.3.1 but I keep getting an error with the > demodb cre

Re: [web2py] Re: New importer in trunk

2011-05-17 Thread Martín Mulone
Pierreth I'm testing this, and it all seem to work very well, nice feature indeed!. I'm looking for memory leak but it's seem stable in my notebook. I already rewrite powerpack, to support this, at first sigth it's double the speed from the old way putting all in models (I have many models). So I'm

[web2py] Better language support

2011-05-17 Thread pierreth
Hello, It seems that web2py takes care of only the first language listed in the browser request. The other languages are not taken into account. For example, in my browser preferences, I have: fr-ca fr fr-fr en en-us But there is only one value for T.accepted_language and in my case I have fr-c

[web2py] Re: New importer in trunk

2011-05-17 Thread pierreth
It would be nice to have feedback to know if the new feature is working well for you. Tell me if everything is OK or not.

[web2py] Re: Multiple tables: update/insert/delete: in one form

2011-05-17 Thread Vineet
Let me now try to build the logic using some of the tips given by community. Then perhaps I can see which one can be used. Till then, pl. do NOT consider this thread as closed. Thanks, Vineet

[web2py] Re: Help wanted for UK postcode validator which updates form field

2011-05-17 Thread jc
Thank you very much. This worked: elif form.errors: form.element('#person_postcode')['_value'] = form.vars.postcode

[web2py] Re: Help wanted for UK postcode validator which updates form field

2011-05-17 Thread DenesL
My bad, the form is already created so you have to change it on the fly: form.element('#yourtable_postcode')['_value'] = db.yourtable.postcode.requires(form.vars.postcode)[0] On May 17, 10:00 am, jc wrote: > Thanks for the suggestion. Does not change the behaviour.

[web2py] Re: Help wanted for UK postcode validator which updates form field

2011-05-17 Thread DenesL
My bad, the form is already created so you have to change it on the fly: form.element('#yourtable_postcode')['_value'] = db.yourtable.postcode.requires(form.vars.postcode)[0] On May 17, 10:00 am, jc wrote: > Thanks for the suggestion. Does not change the behaviour.

[web2py] Re: Two questions: one about markmin and one about SQLFORM

2011-05-17 Thread JayShaffstall
Hi Martín, It sounds like you're talking about some sort of visual editor...I'm talking about markmin syntax, with the markmin being created inside a simple TEXTAREA, no visual editing involved. Shift-Enter doesn't do anything in that context. I'm also not talking about changing the spacing betw

Re: [web2py] Re: Two questions: one about markmin and one about SQLFORM

2011-05-17 Thread Martín Mulone
1. Paragraphs were invented for a reason. Try modifying paragraph margins using CSS without using paragraph tags and you see what we mean. 2. The IE WYSIWYG environment is built on handling paragraphs when it comes to alignment/list management and much more. TinyMCE and other editors

[web2py] Re: Two questions: one about markmin and one about SQLFORM

2011-05-17 Thread JayShaffstall
On May 16, 4:30 pm, Massimo Di Pierro wrote: > form=SQLFORM(...) > form.element('textarea')['_rows'] = random.randint(10,20) This works, in that the attributes are passed through to the HTML page. It doesn't work, in that the cols attribute seems to be ignored. When I change rows, the number of

[web2py] Re: Cubrid?

2011-05-17 Thread DenesL
I mean that I patched the dal myself ;) Anyways, I have trouble connecting even from outside web2py. Tried with 8.4.0 beta and 8.3.1 but I keep getting an error with the demodb created during install: >>> conn = cubriddb.connect('localhost', 3, 'demodb', 'dba', '') Traceback (most recent ca

[web2py] Re: Two questions: one about markmin and one about SQLFORM

2011-05-17 Thread JayShaffstall
On May 17, 9:21 am, Massimo Di Pierro wrote: > Why? I think using whitespaces in wiki syntax is bad because they are > invisible. > > On May 17, 1:34 am, Tom Atkins wrote: > > Two spaces at the end of a line makes a new line in Markdown... would it be > > possible to have the same behavior in Mar

[web2py] Re: Help wanted for UK postcode validator which updates form field

2011-05-17 Thread jc
Thanks for the suggestion. Does not change the behaviour.

[web2py] Re: little bug ldap_auth

2011-05-17 Thread Massimo Di Pierro
It is possible that some system are more picky than others does it work if you replace (in line 10) '(objectClass=*)' with 'objectClass=*' If it does, it should be changed. On May 17, 6:51 am, José Luis Redrejo wrote: > 2011/5/17 Joseph.Piron : > > > Hi all, > > > I think there's a little bug

Re: [web2py] Re: Two questions: one about markmin and one about SQLFORM

2011-05-17 Thread Martín Mulone
There are a minor issue with markmin in welcome, when you mix order list and paragraph, there are no separation because the css definition: p, blockquote { margin-bottom: 10px; } I use: p, blockquote, ul, ol, code, table { margin-top: 15px; margin-bottom: 15px; } 2011/5/17 Tom Atkin

[web2py] Re: Application design RDBMS vs GAE, future migrations

2011-05-17 Thread Massimo Di Pierro
Anthony is right. This feature (SQL on GAE) will soon be opened up to the public (was announced one year ago) and web2py will work out of the box on it, without need to rewrite code. Massimo On May 16, 6:44 pm, Anthony wrote: > Also, I think at some point in the near future, GAE is supposed to

[web2py] Re: Cubrid?

2011-05-17 Thread Massimo Di Pierro
:-) Of course! It is in trunk. I have not tested it and I am not (yet) taking advantage of the sequence type and the full-text support (we need a more global strategy for that). If anybody wants to try it: 1) install cubriddb 2) use db = DAL('cubrid://username:password@hostname:port/dbname') L

Re: [web2py] Re: Two questions: one about markmin and one about SQLFORM

2011-05-17 Thread Tom Atkins
OK - agreed. On 17 May 2011 14:21, Massimo Di Pierro wrote: > Why? I think using whitespaces in wiki syntax is bad because they are > invisible. > > On May 17, 1:34 am, Tom Atkins wrote: > > Two spaces at the end of a line makes a new line in Markdown... would it > be > > possible to have the s

[web2py] Re: Cubrid?

2011-05-17 Thread DenesL
dal patched, testing... On May 16, 11:11 pm, Massimo Di Pierro wrote: > Hello Esen, > > it should be very easy for us to suport cubrid and I like the support > for sequence types. But we need some information that is not in the > online manual (at least I could not find it). > > How do I define

[web2py] Re: Two questions: one about markmin and one about SQLFORM

2011-05-17 Thread Massimo Di Pierro
Why? I think using whitespaces in wiki syntax is bad because they are invisible. On May 17, 1:34 am, Tom Atkins wrote: > Two spaces at the end of a line makes a new line in Markdown... would it be > possible to have the same behavior in Markmin? > > On 17 May 2011 04:09, Bruno Rocha wrote: > > >

[web2py] Re: HELP: how do I subclass the Auth class and add additional fields to the login form?

2011-05-17 Thread Massimo Di Pierro
I always do def HiddenField(*a,**b): b['readable']=b['writable']=False return Field(*a,**b) In trunk you can also do Field(':name') instead of Field('name') but it not clear if that feature (':') should stay or not. Massimo On May 17, 12:03 am, pbreit wrote: > You could make them read

[web2py] Re: Help wanted for UK postcode validator which updates form field

2011-05-17 Thread DenesL
Try setting db.yourtable.postcode.default to the value returned by the validator under the elif form.errors part of the code. On May 17, 4:58 am, jc wrote: > Hello, > > I want a custom validator which, amongst other things, translates > alpha characters to upper case. I want a partly validated

[web2py] Help wanted for UK postcode validator which updates form field

2011-05-17 Thread jc
Hello, I want a custom validator which, amongst other things, translates alpha characters to upper case. I want a partly validated value to be displayed back in the form, but in its uppercased form, when validation fails. I am using the usual: if form.accepts(request.vars, session): r

Re: [web2py] little bug ldap_auth

2011-05-17 Thread José Luis Redrejo
2011/5/17 Joseph.Piron : > Hi all, > > I think there's a little bug in ldap_auth.py, indeed for the parameter > filterstr of ldap_auth(..) (line 10), the default value is set to > (objectClass=*) and during the call of search_ext_s (line 97), the > filter argument is constructed with > "(&(sAMAccou

[web2py] little bug ldap_auth

2011-05-17 Thread Joseph.Piron
Hi all, I think there's a little bug in ldap_auth.py, indeed for the parameter filterstr of ldap_auth(..) (line 10), the default value is set to (objectClass=*) and during the call of search_ext_s (line 97), the filter argument is constructed with "(&(sAMAccountName=%s)(%s))" % (username_bare, fil

[web2py] Re: Application design RDBMS vs GAE, future migrations

2011-05-17 Thread villas
You're not wrong, as they say, it's 'horses for courses'. On May 17, 9:55 am, Marek Mollin wrote: > I feel google app engine superior to any hosting dedicated or vps > which I will receive for even twice the price. GAE is great for many > reasons dont need to list them here. They have one of th

[web2py] Re: Application design RDBMS vs GAE, future migrations

2011-05-17 Thread Marek Mollin
I feel google app engine superior to any hosting dedicated or vps which I will receive for even twice the price. GAE is great for many reasons dont need to list them here. They have one of the best hosting panels, deployment is ultrabrief, versioning etc. Its out-of-thebox first time I opened panel

[web2py] Re: Cubrid?

2011-05-17 Thread CUBRID RDBMS
You can use the famous full-text search engine nLucene natively with CUBRID Manager. The new CM 8.4.0 has a plugin for nLucene which allows users to create, configure and manager nLucene instances right in the CUBRID Manager. In fact, we do this for our cubrid.org. Actually this request (nLucene in

[web2py] Re: Memory error with numpy large array

2011-05-17 Thread Kostas M
I tried the same application in a Linux (Ubuntu) machine, after the installation of the latest numpy version (1.6.0). No MemoryError ticket occured in web2py...

[web2py] Re: Cubrid?

2011-05-17 Thread CUBRID RDBMS
Oh, one more thing which worths mentioning. If there is any official support of CUBRID in web2py, you can always submit it to CUBRID Projects site (http://www.cubrid.org/projects) (let me know by email to create an account for you). The users can learn about the new projects directly from cubrid.o

[web2py] Re: Cubrid?

2011-05-17 Thread Anthony
Does CUBRID have any full-text search capabilities? On Tuesday, May 17, 2011 3:00:30 AM UTC-4, CUBRID RDBMS wrote: > Well, it's at the same time very detailed question and very broad. > It's like why Hyundai created a new car, there is Rolls Roys already > here (200K). Or like why CUBRID, NoSQL

[web2py] Re: Cubrid?

2011-05-17 Thread pbreit
If it's pretty much compatible with MySQL, I'm guessing Massimo will have it supported in DAL by the time we wake up tomorrow! http://code.google.com/p/web2py/source/browse/gluon/dal.py The performance and scalability features do sound attractive. I'm not sure I'd switch off of Postgres at this

[web2py] Re: Cubrid?

2011-05-17 Thread CUBRID RDBMS
Well, it's at the same time very detailed question and very broad. It's like why Hyundai created a new car, there is Rolls Roys already here (200K). Or like why CUBRID, NoSQL, etc. when there is Oracle Enterprise for 10K (Oracle was one of the first DBs in this nice world). It's all about the dive