[web2py] Re: language file problem

2010-04-03 Thread Iceberg
On Mar31, 10:10pm, "hamdy.a.farag" wrote: > Hi > > I'm having a problem that was repeated too much > sometimes the translation file , got messy while updating it with new > translations > translations are shifted from their proper place and thus you got un > proper translations > This also may hav

[web2py] Re: layout.html

2010-04-03 Thread mdipierro
> Anyway, in practice this may prove unnecessary, but I would be more > comfortable if we start out with that concept:  fundamentals that are > always there (you can override them but the classes / ID's there > should be guaranteed to be defined;  and other stuff you can replace > if you want for

[web2py] Re: web2py production deployment on vps.net (VIDEO)

2010-04-03 Thread Christopher Steel
With 8.04 64 I am unable to create new applications via the web2py interface, get the message "unable to create application" Smells like a permissions issue. Do we have any logging of the application creation process I could check out? FYI You can use hg or other file system based methods to crea

[web2py] Re: layout.html

2010-04-03 Thread Christopher Steel
On CSS and Layout stuff, it sounds like Yarko is picking this up, this is fine with me I am super busy, our access non-profit is officially in startup mode and I need to shift into fund raising mode big time. Cheers, Chris On Apr 3, 3:15 am, mdipierro wrote: > > Anyway, in practice this may pro

[web2py] Re: Fetching a single field from multiple rows in gluon.sql.Rows as a tuple/list?

2010-04-03 Thread Magnitus
Haha, thats funny :). I jumped on the 'NOT %s' alternative (but I nevertheless applied all the brackets to be extra careful on the 'NOT %s'). Then, it magically worked and I was assuming that it was the 'NOT %s'... Then, I found the problem you are describing in other subsequent queries and cor

[web2py] Re: concurrency problem

2010-04-03 Thread Iceberg
I also use web2py and sqlite in my low traffic website, serving for less than 10 people. In most cases it works great. But when a user wants to open a statistics page which generated by a query of thousands of records (and then rendered as 7 flash charts), there is a 5%~10% chance that the browser

[web2py] Local module problem

2010-04-03 Thread Johann Spies
I have this in my modules-file: def howmanyPages(total_found, items_per_page): if (total_found % items_per_page): pages = total_found / items_per_page else: pages = total_found / items_per_page -1 return(pages) def is_empty(u): if not u or u == "": return(N

[web2py] Re: concurrency problem

2010-04-03 Thread Iceberg
Yarko, you also raise a very good point. And this makes me feel nervous, because all my previous web app are vulnerable to this "overwrite" issue. :-/ Besides the "locking" plugin, which is optional and not aware by everyone, do you think we can add some built-in, anti-overwrite protection inside

[web2py] Re: response.headers web2py-component-command is being cut short

2010-04-03 Thread DenesL
Still trying out things and documenting them but I already have a few suggestions. Regarding 'success' and 'complete' I just wanted to know if knowing 'success' runs first is in line with the way you thought it should work. The order in which they appear in the code is reversed, which does not aff

[web2py] Re: New Python IDE for Windows/Mac/Linux

2010-04-03 Thread Joschua
yep, also Eclipse with PyDev is very good and btw. there is a free but not opensourced version for non-commercial use of WingIDE: http://www.wingware.com/products (at the bottom) called 101. On 2 Apr., 22:47, Yarko Tymciurak wrote: > Don't forget that idle  has a file window, with a useful class

[web2py] Re: Debian / Ubuntu packager needed!

2010-04-03 Thread Mark Breedveld
Hi Dima, I have to plan my work for the coming weeks. Because I was wondering when you could need some help. Because when there is a concrete plan, I could try to start a project at my school. Which could give this project a development boost. We could also start a document on google docs. To ma

[web2py] Re: web2py production deployment on vps.net (VIDEO)

2010-04-03 Thread mdipierro
No, but it would be a good idea to create such log. I willl it to trunk. On Apr 3, 4:28 am, Christopher Steel wrote: > With 8.04 64 I am unable to create new applications via the web2py > interface, get the message "unable to create application" > > Smells like a permissions issue. Do we have any

[web2py] Re: layout.html

2010-04-03 Thread mdipierro
I think the more people work on it nd provide input, the better. On Apr 3, 4:41 am, Christopher Steel wrote: > On CSS and Layout stuff, it sounds like Yarko is picking this up, this > is fine with me I am super busy, our access non-profit is officially > in startup mode and I need to shift into f

[web2py] Re: Local module problem

2010-04-03 Thread mdipierro
Because in the lambda is call somewhere inside web2py whete is_empty is not in the scope. db.policies_and_strategies.url.represent = lambda value: local.is_empty(value) == None or A('url',_href=value) it is a python weirdness. You can fix it like this: db.policies_and_strategies.url.represent =

[web2py] Re: concurrency problem

2010-04-03 Thread mdipierro
> Further more, at the end of this post (http://www.sqlite.org/ > whentouse.html), it mentions sqlite uses reader/writer lock. So here > comes my first question, perhaps mainly for Massimo: When a user click > on our web2py app which contains a db=SQLDB("sqlite://mydb.sqlite"), > does that mean we

[web2py] Re: layout.html

2010-04-03 Thread Yarko Tymciurak
On Apr 3, 10:06 am, mdipierro wrote: > I think the more people work on it nd provide input, the better. I absolutely agree - I have more interest than attention I am able to give this (some, but not much). > > On Apr 3, 4:41 am, Christopher Steel wrote: > > > On CSS and Layout stuff, it sounds

[web2py] Re: layout.html

2010-04-03 Thread Yarko Tymciurak
On Apr 3, 12:23 am, Yarko Tymciurak wrote: > On Apr 2, 11:31 pm, Massimo Di Pierro wrote: > > > Hi Yarko, > . > > 4) one file with everything else (base.css) to be replaced is a custom   > > layout.html is used. > > If you mean for base.css to not be "replaced", but possibly be > inherited

[web2py] Re: crud update with represent

2010-04-03 Thread Avik Basu
Thanks, that works great. I have an additional question: Is there a represent argument for in define_table which would allow for a formatting of an entire row, based on the fields which were selected in the query of crud.select(...)? Avik On Apr 2, 8:36 pm, mdipierro wrote: > You just need to

[web2py] Re: crud update with represent

2010-04-03 Thread mdipierro
No. On Apr 3, 10:49 am, Avik Basu wrote: > Thanks, that works great.  I have an additional question:  Is there a > represent argument for in define_table which would allow for a > formatting of an entire row, based on the fields which were selected > in the query of crud.select(...)? > > Avik > >

[web2py] Re: best jquery plugin ever

2010-04-03 Thread Magnitus
I guess thats true. My previous employer was using VS 2003 and python 2.4, which I felt were pretty old (then again, they needed to maintain compatibility with like 10 different consoles or so and some of them were aging). As web apps become more common as an internal tool, the same would hold tr

[web2py] Re: problems using web2py ajax function

2010-04-03 Thread ciastek
Thank you Russell, your suggestion works great. I use hello! On Mar 29, 3:46 am, mdipierro wrote: > I think you can. I have not tried it. Mind that you have to ecape the > args. > > On Mar 28, 7:56 pm, Russell wrote: > > > Is there a reason not to simply place the constant in the args? > >ajax('

Re: [web2py] Re: Local module problem

2010-04-03 Thread Johann Spies
On 3 April 2010 17:10, mdipierro wrote: > Because in the lambda is call somewhere inside web2py whete is_empty > is not in the scope. > > db.policies_and_strategies.url.represent = lambda value: > local.is_empty(value) == None  or A('url',_href=value) > > it is a python weirdness. You can fix it l

Re: [web2py] Re: Local module problem

2010-04-03 Thread Johann Spies
> On 3 April 2010 17:10, mdipierro wrote: >> Because in the lambda is call somewhere inside web2py whete is_empty >> is not in the scope. >> >> db.policies_and_strategies.url.represent = lambda value: >> local.is_empty(value) == None  or A('url',_href=value) >> >> it is a python weirdness. You can

[web2py] Re: Cache - how to prevent session object to be cached?

2010-04-03 Thread David Zejda
Hmm.. I had to cut my objects into parts, those which hold data are being cached while those with logic are not... kind of hack, but I'm no more directly affected by the bug. D. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this gr

[web2py] Re: Cache - how to prevent session object to be cached?

2010-04-03 Thread mdipierro
The fact is I am not convinced it is web2py bug. It is a weird behavior but I think it is more of a python issue than a web2py issue. On Apr 3, 5:59 pm, David Zejda wrote: > Hmm.. I had to cut my objects into parts, those which hold data are > being cached while those with logic are not... kind

[web2py] Re: layout.html

2010-04-03 Thread mdipierro
This is all I could think of so far: // EZ.css 2009 -2010 (c) | ez-css.org ez-plug-min.css :: version 1.1 :: 01182010 .ez-wr:after,.ez-box:after{content:".";display:block;height: 0;clear:both;visibility:hidden}.ez-wr,.ez-box,.ez-last{display:inline- block;min-height:0}/* \*/ * html .ez-wr,* html

[web2py] Using jquery datatable

2010-04-03 Thread Kenneth
Hello, I´m thinking about using a jquery datatable to show data. I´ve succeed in getting the datatable to show me data but now I would like to do some magic with the data. Does anyone have any examples of 1) hiding part of the data, some rows. How do you activate the hiding. I´d like to have lik

[web2py] Re: Using jquery datatable

2010-04-03 Thread mdipierro
this is all I've got. anyway, I recommend jqGrid or better sllickgrid but no plugin yet for the latter. I will make one soon. Massimo On Apr 3, 6:27 pm, Kenneth wrote: > Hello, > > I´m thinking about using a jquery datatable to show data. > > I´ve succeed in getting the datatable to show me dat

[web2py] Re: Translate change password

2010-04-03 Thread Kenneth
Thank you Yarko, the tools.py works like a charm, and with the littte T(... tweak even the string "Change password" is translated now. Kenneth On Apr 3, 1:23 am, Yarko Tymciurak wrote: > Hi Kenneth - > > Separately, I'm sending Massimo a patch which I think fixes this. > > Either wait for the

[web2py] Errors with the new version

2010-04-03 Thread Kenneth
Last summer I started on an application that has been in use so far. I havn´t upgraded it because there was no need for it. Last month I started to do some serious updating of the code and the first thing I did was upgrading web2py. Everything has been working great so far, but two days ago I noti

[web2py] how can I import a model ?

2010-04-03 Thread hywang
There are 2 applications: a-app and b-app. I want to import a model in a-app into b-app, is there a easy and safe way to do it ? thank you ! -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroup

[web2py] Re: Errors with the new version

2010-04-03 Thread mdipierro
I need the complete traceback. On Apr 3, 7:44 pm, Kenneth wrote: > Last summer I started on an application that has been in use so far. I > havn´t upgraded it because there was no need for it. > > Last month I started to do some serious updating of the code and the > first thing I did was upgradi

Re: [web2py] Re: Errors with the new version

2010-04-03 Thread Kenneth Lundström
Traceback (most recent call last): File "gluon/restricted.py", line 173, in restricted exec ccode in environment File "/data/domains/live-kal.nudata.fi/applications/init/views/district/campaign.html", line 187, in {{=A(XML('+ '), T('Add new personal reward'), XML(' »'), _href=URL(r=re

[web2py] Re: how can I import a model ?

2010-04-03 Thread mdipierro
This is a philosophical issue before a technical one. if b-app needs a- app than b-app is not an app because it is not autonomous entity you can pack and distribute individually. If this is the case, b-app should be a controller inside a-app or it should app the data of a-app as a service and not b

[web2py] Re: Errors with the new version

2010-04-03 Thread mdipierro
the problem is that eaither district or campaign is a reference value a record that does not exist. Can you show us how they are defined? On Apr 3, 8:49 pm, Kenneth Lundström wrote: > Traceback (most recent call last): >   File "gluon/restricted.py", line 173, in restricted >     exec ccode in en