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

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

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

2011-01-11 Thread cjrh
On Jan 12, 12:23 am, Christopher Steel 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 initial setup). Everythin

[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: (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 wrote: > SproutCore, JavaScripMVC and TrimPath come up a lot.

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 ('somet

[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 wrote: > I think you want the LOAD helper. > > On Jan 11, 3:42 pm, ivytony wrote: > > > > > > > > > I'm a newb to web2py and have been reading the Web2py book freely > > online. I am wondering whether it is p

[web2py] Re: SCRIPT tag

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

[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 Mac

[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 exp

[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.

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] 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 wrote: > If anyone else is working on a fabric deployment setup for web2py I > would be interested in taking a look at it. > > I have

[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 b

[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 virtu

[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 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 tried the "[" "|" an

[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 f

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

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

[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 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 this is I can o

[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. http://localhost/web2py/app/control

[web2py] Re: good news...

2011-01-11 Thread Massimo Di Pierro
http://web2py.googlegroups.com/attach/fc3a3b8661cf3ad5/web2py_users.png?view=1&part=2 On Jan 11, 2:53 pm, Anthony 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 indication that

[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
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 06/Jan/20

[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 wrote: > 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. > > Ken

[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 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 Jan 11, 8:54

[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 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.com visits or > a

[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, mdipierro

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

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

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] 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

[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 wrote: > I agree that the documentation is broken. > > On Jan 10,

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.

[web2py] Re: good news...

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

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? > >

[web2py] Re: SQLFORM and read-only references

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

[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 (8.6.3

Re: [web2py] good news...

2011-01-11 Thread Bruno Rocha
2011/1/11 Massimo Di Pierro > 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 (http://gettingrea

[web2py] good news...

2011-01-11 Thread Massimo Di Pierro
We are still growing exponentially! <>

[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 does

[web2py] Re: query performance

2011-01-11 Thread LightOfMooN
Yes, it's so Thx, Massimo! On 11 янв, 18:59, Massimo Di Pierro 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 accessing > the app from a

[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 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 > debian lenny,

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

2011-01-11 Thread Kuba Kucharski
nope, afaik

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] 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 > If I remember correctly the Id field h

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 wrote: > > I have the following model: > >     db.define_table('ciudadanos', Field('tipo'), > > Field('nro_documento'), Field('valor')) >

[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 anyth

[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] 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 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): >     {{=plugin_wiki.w

[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 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 > wrote: > > > > > > > > > No because the ajax part (web2py_ajax.html) stays with the app.It

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 > Well, RockMelt in Linux Obviously... JK... I will vote. > > 2011/1/11 > > Si tienes problemas para visualizar o enviar este formulario, puedes >> rellenarlo online: >> >> https://spreadsheets.google.com/viewform?formkey=dEZVOU16eE

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 > 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 kno

[web2py] Re: query performance

2011-01-11 Thread LightOfMooN
no, PostgreeSQL On 11 янв, 17:26, cjrh wrote: > On Jan 11, 1:47 pm, LightOfMooN wrote: > > > Is the problem in a big count of queries, or something else? > > Sqlite?

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 > On

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 > 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 > wrote: > > I made a slice: > > > > http://web2pyslices.com/main/slice

[web2py] Re: query performance

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

[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 wrote: > I made a slice: > > http://web2pyslices.com/main/slices/take_slice/114 > > mic > > 2011/1/10 K.R.Arun : > > > > > Can you show me an example w

[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] 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: 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 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 Jan 10, 3:42 pm, Light

[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] [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 us

[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 Field(...,uploadfolder

[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 wrote: > Il 11/01/2011 10:05, dederocks ha scritto:> Manuele, > > > May I ask you how y

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 th

[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') db.Materiau.MType.requires=IS_IN_SET(('Tête','Armoire',

[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.

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 jquery.t