Re: [web2py] jquery.tools.min.js

2011-01-11 Thread Kenneth Lundström
Thank You Ron for your answer, it was exactly spot on, I used the jquery.tools.min.js that came with the example app and it was old. I downloaded the newest version and now I load jquery.js and jquery.tools.min.js and everything looks like its working now. Kenneth Which version of

[web2py] (OT) Choosing a javascript mvc framework

2011-01-11 Thread Luther Goh Lu Feng
Firstly, this topic is only remotely related to web2py. Being familiar with jquery and the fact that web2py uses jquery, I wonder if anyone has any recommendations for a javascript MVC framework and the reasons for doing so? Thanks in advance.

[web2py] Re: unique constraint of multiple columns (at database level)

2011-01-11 Thread dederocks
Manuele, May I ask you how you did it? This is my model: db.define_table('Materiau', Field('mindex','string', compute=lambda r: '%s%s' % (r.Nom,r.MType)), Field('MType', label='Type'), Field('Nom'), format='%(MType)s %(Nom)s')

Re: [web2py] Re: unique constraint of multiple columns (at database level)

2011-01-11 Thread Manuele Pesenti
Il 11/01/2011 10:05, dederocks ha scritto: Manuele, May I ask you how you did it? First of all consider to define a function that returns a unique result starting from your fields in the uniques list. If theese fields are all integer (such as id of external references) you can simply append

[web2py] Re: unique constraint of multiple columns (at database level)

2011-01-11 Thread dederocks
Thanks! I was actualy missing the 'unique=True' (IS_NOT_IN_DB(...) doesn't work), and then I'll need to add a 'try.. except' sequence to trap an attempt to insert a duplicate. On 11 jan, 10:32, Manuele Pesenti manuele.pese...@gmail.com wrote: Il 11/01/2011 10:05, dederocks ha scritto: Manuele,

[web2py] Upload field

2011-01-11 Thread Kenneth Lundström
I´m trying to find out how form.accepts handles the uploading of files (for my mail gateway) and made a form form=SQLFORM.factory(Field('text','string'), Field('upload','upload')) When I submit a form I get a ticket stating you must specify a

[web2py] [OT](urvey) web2py web browser

2011-01-11 Thread diazluis2007
Si tienes problemas para visualizar o enviar este formulario, puedes rellenarlo online: https://spreadsheets.google.com/viewform?formkey=dEZVOU16eE80VWdPQ0lMVWlTWl82Y2c6MQ web2py web browser the intention is to know which web browser used by users who work with web2py web browser you

[web2py] query performance

2011-01-11 Thread LightOfMooN
for i in range(1,1): print db.rolic[i] or for i in range(1,1000): rolics = db(db.rolic).select(db.rolic.ALL, orderby=~db.rolic.rate) It shuts down the server for 20 seconds Is the problem in a big count of queries, or something else?

[web2py] Re: Is it a bug in with_alias?

2011-01-11 Thread LightOfMooN
Is there an other way to query field rennamed? On 11 янв, 03:17, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Actually I am not sure why the SQL is wrong. The SQL looks correct although with_alias for a field is undocumented, except for tables, and I am not sure how well it works. On

[web2py] Problems to exclude the field id from the jqgrid (using plugin_wiki)

2011-01-11 Thread Lisandro
I have the following model: db.define_table('ciudadanos', Field('tipo'), Field('nro_documento'), Field('valor')) In the view, the following line shows the jqgrid with all the fields of the table (including id field): {{=plugin_wiki.widget('jqgrid', db.ciudadanos)}} The jqgrid shows fine.

[web2py] Re: (urvey) web2py web browser

2011-01-11 Thread cjrh
On Jan 11, 1:31 pm, diazluis2...@gmail.com wrote: Chrome Firefox Explorer Safari Otros Well, Opera, obviously ;) Although I see that Chrome is doing by far the best at html5test.com. My Opera 11 only gets 177 (which is strangely lower than Opera 10.61)

[web2py] Re: ajax upload for components

2011-01-11 Thread selecta
and just for completion my slice doing something similar http://web2pyslices.com/main/slices/take_slice/113 On Jan 10, 11:35 pm, Michele Comitini michele.comit...@gmail.com wrote: I made a slice: http://web2pyslices.com/main/slices/take_slice/114 mic 2011/1/10 K.R.Arun the1.a...@gmail.com:

[web2py] Re: query performance

2011-01-11 Thread cjrh
On Jan 11, 1:47 pm, LightOfMooN vladsale...@yandex.ru wrote: Is the problem in a big count of queries, or something else? Sqlite?

Re: [web2py] Re: ajax upload for components

2011-01-11 Thread Martín Mulone
Thanks, +1. For me I think this need to be default. 2011/1/11 selecta gr...@delarue-berlin.de and just for completion my slice doing something similar http://web2pyslices.com/main/slices/take_slice/113 On Jan 10, 11:35 pm, Michele Comitini michele.comit...@gmail.com wrote: I made a slice:

Re: [web2py] Re: (urvey) web2py web browser

2011-01-11 Thread Luis Díaz
updated, add operates on the following link. https://spreadsheets.google.com/viewform?formkey=dEZVOU16eE80VWdPQ0lMVWlTWl82Y2c6MQ I am developing an extension for chrome (very easy to do). I am evaluating the development of the same for Firefox based on the number of users 2011/1/11 cjrh

[web2py] Re: query performance

2011-01-11 Thread LightOfMooN
no, PostgreeSQL On 11 янв, 17:26, cjrh caleb.hatti...@gmail.com wrote: On Jan 11, 1:47 pm, LightOfMooN vladsale...@yandex.ru wrote: Is the problem in a big count of queries, or something else? Sqlite?

Re: [web2py] [OT](urvey) web2py web browser

2011-01-11 Thread Jason (spot) Brower
Well, RockMelt in Linux Obviously... JK... I will vote. 2011/1/11 diazluis2...@gmail.com Si tienes problemas para visualizar o enviar este formulario, puedes rellenarlo online: https://spreadsheets.google.com/viewform?formkey=dEZVOU16eE80VWdPQ0lMVWlTWl82Y2c6MQ web2py web browser the

Re: [web2py] [OT](urvey) web2py web browser

2011-01-11 Thread Bruno Rocha
Is there rockmelt for Linux yet? 2011/1/11 Jason (spot) Brower encomp...@gmail.com Well, RockMelt in Linux Obviously... JK... I will vote. 2011/1/11 diazluis2...@gmail.com Si tienes problemas para visualizar o enviar este formulario, puedes rellenarlo online:

[web2py] Re: wrong documentation on ajax api sample?

2011-01-11 Thread Massimo Di Pierro
I agree that the documentation is broken. On Jan 10, 9:14 pm, DenesL denes1...@yahoo.ca wrote: Yes, you can't upgrade... and the documentation is broken as per the first post. On Jan 10, 9:07 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: No because the ajax part

[web2py] Re: Problems to exclude the field id from the jqgrid (using plugin_wiki)

2011-01-11 Thread Massimo Di Pierro
yes On Jan 11, 6:00 am, Lisandro rostagnolisan...@gmail.com wrote: I have the following model:     db.define_table('ciudadanos', Field('tipo'), Field('nro_documento'), Field('valor')) In the view, the following line shows the jqgrid with all the fields of the table (including id field):    

[web2py] Re: query performance

2011-01-11 Thread Massimo Di Pierro
I do not think it shuts down the server. It just downs the user doing the query because session is locked for long time (lots of db io). Try session.forget() before you start querying and/or try accessing the app from a different browser ((other session). You will see it is not locked. On Jan 11,

[web2py] EAV Patterns

2011-01-11 Thread Adamski
Hi, I am really interested in EAV design patterns at the moment and I use them all the time in my php development with Zend Framework. I am new to Python and web2py but I am going to use it to develop my new personal website as I wish to learn new things. I was wondering if anybody had done

Re: [web2py] Re: Problems to exclude the field id from the jqgrid (using plugin_wiki)

2011-01-11 Thread Kenneth Lundström
If I remember correctly the Id field has to be included but you can hide it? Kenneth - Ursprungsmeddelande - yes On Jan 11, 6:00 am, Lisandro rostagnolisan...@gmail.com wrote: I have the following model:     db.define_table('ciudadanos', Field('tipo'), Field('nro_documento'),

Re: [web2py] Re: Problems to exclude the field id from the jqgrid (using plugin_wiki)

2011-01-11 Thread Richard Vézina
You can also use represent to make a link to update your record like this : In the controller : db[request.args(0)].id.represent=lambda id:\ A(T('Access'),_href=URL(r=request,f='read',args=(db[request.args(0)],id))) Richard 2011/1/11 Kenneth Lundström kenneth.t.lundst...@gmail.com If I

Re: [web2py] Upload field

2011-01-11 Thread Richard Vézina
You need a upload field to store the path and a field to store the name of the file... The book is not clear I think about upload particularly about blob storage... My model : Field('chroma','upload',uploadfield='chroma_blob'), Field('chroma_blob','blob'), You need both doen't matter if you use

Re: [web2py] [OT](urvey) web2py web browser

2011-01-11 Thread Kuba Kucharski
nope, afaik

[web2py] Re: Apache, Wsgi problem

2011-01-11 Thread Massimo Di Pierro
Can I see the error? Is there a traceback? Is the db server on the machine? Massimo On Jan 9, 11:30 am, VP vtp2...@gmail.com wrote: It is indeed the case that there was a segmentation fault, reported in apache error log. Perhaps, it's not clear, but this problem occurs under posgres under

[web2py] Re: query performance

2011-01-11 Thread LightOfMooN
Yes, it's so Thx, Massimo! On 11 янв, 18:59, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I do not think it shuts down the server. It just downs the user doing the query because session is locked for long time (lots of db io). Try session.forget() before you start querying and/or try

[web2py] Re: Problems to exclude the field id from the jqgrid (using plugin_wiki)

2011-01-11 Thread Lisandro
I'm using the represent field argument to make jqgrid show correctly the foreing key fields. For example, let's assume we have the category/product model. We want to use jqgrid with the producs table. If we include the product.category field, jqgrid shows None for that column (notice that it

Re: [web2py] good news...

2011-01-11 Thread Bruno Rocha
2011/1/11 Massimo Di Pierro mdipie...@cs.depaul.edu We are still growing exponentially! \o/ Great news! *it is like watching a kung-fu movie, where a dozen bad-ass frameworks prepare to beat up the little newcomer only to be handed their asses in a variety of imaginative ways.* quoting

[web2py] Re: Apache, Wsgi problem

2011-01-11 Thread VP
Update: + There seems to be no web2py error. Thus, no traceback. + I don't remember if I got this error Premature end of script headers: wsgihandler.py ) with sqlite, but having just tested again with sqlite, I didn't get this error. At the moment, this error only occurred with postgres

[web2py] Re: SQLFORM and read-only references

2011-01-11 Thread howesc
my own forms created with SQLFORM.

Re: [web2py] (OT) Choosing a javascript mvc framework

2011-01-11 Thread Jonathan Lundell
On Jan 11, 2011, at 12:33 AM, Luther Goh Lu Feng wrote: Firstly, this topic is only remotely related to web2py. Being familiar with jquery and the fact that web2py uses jquery, I wonder if anyone has any recommendations for a javascript MVC framework and the reasons for doing so? Thanks

[web2py] Re: good news...

2011-01-11 Thread DenesL
woohoo! On Jan 11, 10:44 am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: We are still growing exponentially!  web2py_users.png 21KViewDownload

Re: [web2py] Re: new URL router release candidate

2011-01-11 Thread Jonathan Lundell
On Jan 7, 2011, at 1:56 PM, VP wrote: Thanks. What if I have something like this: example1.com /app1/controller1 example1.net /app1/controller2 How would this translate into this new syntax? OK, I've submitted a patch that allows this. The syntax: domains = { 'example1.com' :

[web2py] Re: wrong documentation on ajax api sample?

2011-01-11 Thread DenesL
Maybe it would have been better to introduce another ajax function with a different name. BTW, are we keeping track of what is being added to web2py so we know what is missing from the book? On Jan 11, 8:54 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I agree that the documentation

Re: [web2py] Re: Apache, Wsgi problem

2011-01-11 Thread Kenneth Lundström
I'm getting the same Premature end of script on a CentOS 5.?, MySQL, WSGI and Apache. Never done any stresstests, I'll try later to day. Kenneth - Ursprungsmeddelande - Update: + There seems to be no web2py error.  Thus, no traceback. + I don't remember if I got this error

Re: [web2py] good news...

2011-01-11 Thread Jason Brower
Very happy to see this. Thanks! Jason On 01/11/2011 05:44 PM, Massimo Di Pierro wrote: We are still growing exponentially!

Re: [web2py] (OT) Choosing a javascript mvc framework

2011-01-11 Thread pbreit
SproutCore, JavaScripMVC and TrimPath come up a lot.

[web2py] Re: good news...

2011-01-11 Thread Anthony
Very cool. For some reason, the attached graph doesn't show up in the new Google Groups interface for me -- had to go to the old version. Do you keep any stats on number of downloads or web2py.com visits or anything like that? Anthony On Tuesday, January 11, 2011 10:44:28 AM UTC-5,

[web2py] Re: good news...

2011-01-11 Thread Marin Pranjic
I think it's number of users in this group. On Jan 11, 9:15 pm, Anthony abasta...@gmail.com wrote: Very cool. For some reason, the attached graph doesn't show up in the new Google Groups interface for me -- had to go to the old version. Do you keep any stats on number of downloads or

[web2py] Re: wrong documentation on ajax api sample?

2011-01-11 Thread Massimo Di Pierro
I have the README file and the hg/bzr logs. On Jan 11, 10:46 am, DenesL denes1...@yahoo.ca wrote: Maybe it would have been better to introduce another ajax function with a different name. BTW, are we keeping track of what is being added to web2py so we know what is missing from the book? On

[web2py] Re: Apache, Wsgi problem

2011-01-11 Thread Massimo Di Pierro
could this be a timeout issue? Could it be the app causes a deadlock in the db? What app is this? On Jan 11, 10:58 am, Kenneth Lundström kenneth.t.lundst...@gmail.com wrote: I'm getting the same Premature end of script on a CentOS 5.?, MySQL, WSGI and Apache. Never done any stresstests, I'll

[web2py] Re: good news...

2011-01-11 Thread Massimo Di Pierro
Distinct visitors, tracked by IP: 02/Jan/2011 1065 03/Jan/2011 1752 04/Jan/2011 1854 05/Jan/2011 1942 06/Jan/2011 2065 07/Jan/2011 1974 08/Jan/2011 1514 09/Jan/2011 1470 10/Jan/2011 1933 11/Jan/2011 1758 Distinct downloads: 02/Jan/2011 78 03/Jan/2011 173 04/Jan/2011 183 05/Jan/2011 177

[web2py] Re: good news...

2011-01-11 Thread Anthony
From some other Google Groups user complaints, it looks like maybe attachments sent in via email do not show up in the new interface (there's not even any indication that there is an attachment). However, if you post a message using the new Google Groups interface, there is an Attach a file

[web2py] Re: good news...

2011-01-11 Thread Massimo Di Pierro
http://web2py.googlegroups.com/attach/fc3a3b8661cf3ad5/web2py_users.png?view=1part=2 On Jan 11, 2:53 pm, Anthony abasta...@gmail.com wrote: From some other Google Groups user complaints, it looks like maybe attachments sent in via email do not show up in the new interface (there's not even any

[web2py] how to show multiple controller's views on the same page?

2011-01-11 Thread ivytony
I'm a newb to web2py and have been reading the Web2py book freely online. I am wondering whether it is possible to show multiple controller's views on the same page (say index page), the reason I'm asking this is I can only have one view for each controller (e.g.

[web2py] Re: how to show multiple controller's views on the same page?

2011-01-11 Thread Massimo Di Pierro
I think you want the LOAD helper. On Jan 11, 3:42 pm, ivytony ivyt...@gmail.com wrote: I'm a newb to web2py and have been reading the Web2py book freely online. I am wondering whether it is possible to show multiple controller's views on the same page (say index page), the reason I'm asking

Re: [web2py] Gzip compression of javascript to speed up website

2011-01-11 Thread DJ
Thank you all for your suggestions.

[web2py] make a menu like the login menu

2011-01-11 Thread Christopher Steel
Perhaps a silly question. I am trying to format a menu the same way the login menu is formatted using menu.py. Is their an easy way to do this? The last time I tried the [ | and ] ended up being the same color as the rest of the menu. I ended up doing it by hand which is not very convenient for

[web2py] Re: make a menu like the login menu

2011-01-11 Thread Massimo Di Pierro
[{{='|'.join(A(_[0],_href=_[2]).xml() for _ in response.menu):}}] On Jan 11, 4:09 pm, Christopher Steel chris.st...@gmail.com wrote: Perhaps a silly question. I am trying to format a menu the same way the login menu is formatted using menu.py. Is their an easy way to do this? The last time I

[web2py] web2py fabric, pip, virtualenv, virtualenvwrappers deployment scripts

2011-01-11 Thread Christopher Steel
If anyone else is working on a fabric deployment setup for web2py I would be interested in taking a look at it. I have the beginnings on one that with the following features: installs virtualenv virtualenvwrapper creates a project using virtualenvwrapper installs mercurial and web2py to the

[web2py] Re: BETA: new URL routing facility

2011-01-11 Thread Wikus van de Merwe
I meant global by default. I was aware of the existence of the routes_app parameter. But my point here was more specifically about this mechanism not being used for welcome and example apps by default. This and lack of documentation in book makes it almost non-existing for users. It would be

[web2py] Re: web2py fabric, pip, virtualenv, virtualenvwrappers deployment scripts

2011-01-11 Thread Massimo Di Pierro
Please do so. This is all we have to my knowledge so far and it is not that good: web2py/scripts/setup-virtualenv-web2py.sh On Jan 11, 4:23 pm, Christopher Steel chris.st...@gmail.com wrote: If anyone else is working on a fabric deployment setup for web2py I would be interested in taking a

Re: [web2py] Re: BETA: new URL routing facility

2011-01-11 Thread Jonathan Lundell
On Jan 11, 2011, at 2:39 PM, Wikus van de Merwe wrote: To visualise that better let me specify some examples from my own routes which are already covered: (.*:/favicon.ico, /init/static/favicon.ico) - covered by default (root_static key) (.*:/robots.txt, /init/static/robots.txt) -

[web2py] web2py fabric, pip, virtualenv, virtualenvwrappers deployment scripts

2011-01-11 Thread pbreit
Very interested but don't have anything to contribute yet. Currently using Cherokee server, FWIW. However Cherokee doesn't seem well-suited to automated deployment.

[web2py] Re: undefined record error in appadmin on GAE

2011-01-11 Thread Wikus van de Merwe
To get your data as CSV from a GAE app you need to: 1) enable remote api in app.yaml 2) create bulkloader config file: $GAE_DIR/appcfg.py create_bulkloader_config --filename=config.yaml -e $EMAIL --url=https://$APP.appspot.com/remote_api rm bulkloader* 3) edit config.yaml as needed (mainly

[web2py] Re: web2py fabric, pip, virtualenv, virtualenvwrappers deployment scripts

2011-01-11 Thread mart
I hav been working on a bootstrapper for work (just a few hours here and there so far) which needs to include web2py (and other stuff probably irrelevant here) but will be happy to share when successful. I am looking to support Linux , macos and windows if time permits - but linux on Ubuntu and

[web2py] Re: SCRIPT tag

2011-01-11 Thread Martin.Mulone
my mistake this code in view view {{=XML(myscript)}} /view

[web2py] Re: how to show multiple controller's views on the same page?

2011-01-11 Thread Luther Goh Lu Feng
You will want to look at components in Chapter 13 On Jan 12, 5:44 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I think you want the LOAD helper. On Jan 11, 3:42 pm, ivytony ivyt...@gmail.com wrote: I'm a newb to web2py and have been reading the Web2py book freely online.

Re: [web2py] Re: SCRIPT tag

2011-01-11 Thread Jonathan Lundell
On Jan 11, 2011, at 5:04 PM, Martin.Mulone wrote: Perhaps I miss something but did you render in a view with {{=XML(SCRIPT(alert(hi);))}} , and if you want to execute when the page is loaded you have to put the code in No need for XML(SCRIPT(xxx)), I don't think. Either XML

[web2py] Re: (OT) Choosing a javascript mvc framework

2011-01-11 Thread Luther Goh Lu Feng
Tks for the suggestions. I should be going with angularjs http://misko.hevery.com/2010/07/29/a-radically-different-way-of-building-ajax-apps/ http://angularjs.org/ On Jan 12, 2:12 am, pbreit pbreitenb...@gmail.com wrote: SproutCore, JavaScripMVC and TrimPath come up a lot.

[web2py] testimonials on web2py.com

2011-01-11 Thread weheh
I suggest that we add a testimonials page to web2py.com so that satisfied users can post their comments.

[web2py] Re: web2py fabric, pip, virtualenv, virtualenvwrappers deployment scripts

2011-01-11 Thread cjrh
On Jan 12, 12:23 am, Christopher Steel chris.st...@gmail.com wrote: If people are interested I will clean mine up a bit and post a link to the code. I rolled out another site yesterday (manually, no script---we use fabric for successive deployments of the web2py applications, but not for

[web2py] Re: wrong documentation on ajax api sample?

2011-01-11 Thread cjrh
On Jan 11, 3:54 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I agree that the documentation is broken. The documentation (online book) appears to be fixed now, unless I missed the specific one.