Re: [web2py] Re: Aligning subject fields using CRUD-display

2010-03-18 Thread Johann Spies
Thanks! Regards Johann -- "Blessed are the poor in spirit: for theirs is the kingdom of heaven...Blessed are they which do hunger and thirst after righteousness: for they shall be filled...Blessed are the pure in heart: for they shall see God." Matthe

[web2py] Re: web2py beautification

2010-03-18 Thread Yarko Tymciurak
On Mar 18, 10:31 pm, mdipierro wrote: > The problem I see is that it is too simple. > sizeXofY does not seem to guarantee that all columns have the same > lenght (ez-css does it). > I like to have the menu column fixed width and the main column elastic > and it does not do that (not sure if ez-cs

[web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-18 Thread mdipierro
Are these numbers consistent with Tim numbers? Could this be dues to a different memory usage? On Mar 18, 8:51 pm, Kuba Kucharski wrote: > I've changed methodics a bit so I repeat my measurments for ROCKET at > the end of the file. > > Methodics: Increase rate till errors show > > @Massimo > as y

[web2py] Re: web2py beautification

2010-03-18 Thread mdipierro
The problem I see is that it is too simple. sizeXofY does not seem to guarantee that all columns have the same lenght (ez-css does it). I like to have the menu column fixed width and the main column elastic and it does not do that (not sure if ez-css does). On Mar 18, 8:59 pm, villas wrote: > Ez-

Re: [web2py] Re: web2py beautification

2010-03-18 Thread Alex Fanjul
In deed I dont like grid css systems too much, because tends to slower my computer due to the use of zoom plugin in firefox (a must for my f*** 1920x1200px resolution in my 15" notebook)... in other words, the html rendering of miles of nested divs size-recalculated are a hungry cpu hole... ale

[web2py] Re: web2py beautification

2010-03-18 Thread villas
Ez-css seems like a good enough option, but before making your mind up, have a look at the simplicity of oocss.org/grids_docs.html (with Firebug). Oocss might give more possibilities, but admittedly, is heavier. -- You received this message because you are subscribed to the Google Groups "web

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-18 Thread Kuba Kucharski
the last one is doubled rocket solo w/o a header.. -- Kuba -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegro

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-18 Thread Kuba Kucharski
I've changed methodics a bit so I repeat my measurments for ROCKET at the end of the file. Methodics: Increase rate till errors show @Massimo as you can see quad cherrypy is faster than quad rocket. but when you look closer to "SOLO" comparision you can see that both servers are hitting SAME WALL

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-18 Thread Kuba Kucharski
I've changed methodics a bit so I repeat my measurments for ROCKET at the end of the file. Methodics: Increase rate till errors show @Massimo as you can see quad cherrypy is faster than quad rocket. but when you look closer to "SOLO" comparision you can see that both servers are hitting SAME WALL

[web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-18 Thread mdipierro
Because they are not pure python. On Mar 18, 7:51 pm, Vasile Ermicioi wrote: > just curious: why not using an existing (and fast) python web server like > tornado or fapws ? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-18 Thread Vasile Ermicioi
just curious: why not using an existing (and fast) python web server like tornado or fapws ? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email

[web2py] Re: URL structure for multilanguage site

2010-03-18 Thread Christopher Steel
Hi Aurelien, On Mar 18, 7:22 am, aure wrote: > So here is the full procedure I have been using. > > 1. As explained by Massimo and Wikus, in order to use two languages > (here French -fr- and English -en-) I wrote the following code in file > "routes.py" found in the "web2py" folder: > > #---ro

[web2py] Re: Recording voice samples from a web2py app

2010-03-18 Thread dspiteself
There are several options most cost money and require a flash media server. Here is a freeish solution http://fms.denniehoopingarner.com/ if you can compile the flex to an swf and run your own red 5 server you are good to go. On Mar 18, 8:05 am, aure wrote: > Hi everyone, > > I would like to le

[web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-18 Thread mdipierro
Did you try cherrypy? I think I have had this problem with it before but never quantified. On Mar 18, 6:03 pm, Kuba Kucharski wrote: > with 4x Rocket via Pound all is ok, with Rocket Solo I get 4703 > addrunavail errors(in httperf this should never happened and it > renders this benchmarks useles

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-18 Thread Kuba Kucharski
with 4x Rocket via Pound all is ok, with Rocket Solo I get 4703 addrunavail errors(in httperf this should never happened and it renders this benchmarks useless) per 1 connections. I think this might be about linux tweaking. Do ANYONE have some more experience with setting sysctl environment for

[web2py] Re: auth_group

2010-03-18 Thread mdipierro
I do not think you need multiple group tables. You just need your own "other" table to reference a group table. If I am not mistaken. On Mar 18, 3:52 pm, weheh wrote: > So then the question is whether the has_membership(...), > add_group(...) etc. functionality can be extended to support multiple

[web2py] Re: removing admin vs cron

2010-03-18 Thread mdipierro
It is a bug. Massimo On Mar 18, 3:07 pm, Jonathan Lundell wrote: > When I completely remove admin, cron crashes: > > > >>>  File "/opt/vtc/vpepmanage/web2py/web2py.py", line 20, in > > >>>    gluon.widget.start(cron=True) > > >>>  File "/opt/vtc/vpepmanage/web2py/gluon/widget.py", l

[web2py] Re: auth_group

2010-03-18 Thread weheh
So then the question is whether the has_membership(...), add_group(...) etc. functionality can be extended to support multiple group tables, since such built-in functionality is so darn useful? On Mar 18, 10:54 am, mdipierro wrote: > I see. than you probably want two tables. > > On Mar 18, 9:48 a

[web2py] administratively adding a user

2010-03-18 Thread Jonathan Lundell
I have an app in which a (prepopulated) administrative user adds other users, and assigned them one of three predefined roles. So is the right thing to do to bypass SQLFORM, use my own Form, and call Auth to do the housekeeping? Likewise updating a user (name/email/password changes, role change

[web2py] removing admin vs cron

2010-03-18 Thread Jonathan Lundell
When I completely remove admin, cron crashes: > >>> File "/opt/vtc/vpepmanage/web2py/web2py.py", line 20, in > >>>gluon.widget.start(cron=True) > >>> File "/opt/vtc/vpepmanage/web2py/gluon/widget.py", line 732, in start > >>>cron = contrib.cron.hardcron() > >>> File

Re: [web2py] Re: web2py beautification

2010-03-18 Thread Thadeus Burgess
ez-css + jquery-ui It is the only proposed option I actually like. -Thadeus On Thu, Mar 18, 2010 at 1:54 PM, Mengu wrote: > i agree. i actually don't have any problem with jquery-ui since i'm > doing all my js work with jquery. ez-css seems cool yet it's hard to > implement so i'm still for

Re: [web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-18 Thread Timothy Farrell
1.0.2 is out. Go get it! On 3/18/2010 11:57 AM, mdipierro wrote: from https://launchpad.net/rocket the second gree button on the right is Rocket-mono-xxx.zip Unzip it. You get rocket.py. Move it into web2py/gluon/ web2py trunk already uses 1.0.1 so we have wait for Tim to post the new one. Ma

[web2py] routes.py not working

2010-03-18 Thread Francisco Costa
Hello I have step up an web2py project on http://bondiu.info I've started to edit the welcome application and I've made an init symbolic link to the welcome application. Now I pretend to remove the /init/ from the urls. This way I renamed routes.example.py to routes.py and made this changes route

[web2py] Re: web2py beautification

2010-03-18 Thread Mengu
i agree. i actually don't have any problem with jquery-ui since i'm doing all my js work with jquery. ez-css seems cool yet it's hard to implement so i'm still for oo-css. :) On 15 Mart, 01:16, mdipierro wrote: > I think we should distinguish between a layout css framework (oocss, > 960, etc. inc

[web2py] support

2010-03-18 Thread mdipierro
I remind you that you have a company that does web2py development or support and mentions web2py on the web site, you can ask to be listed on the web2py support page: http://web2py.com/examples/default/support.html Massimo -- You received this message because you are subscribed to the Google Gr

Re: [web2py] Re: URL structure for multilanguage site

2010-03-18 Thread Chris Steel
I will add stuff as we get answers and build a little collection of internationalization stuff in one location. I am trying to work out a way to deal with the regional/dialect issue as well (fr-fr, fr-ca) etc. I for one have never messed with routes_in and routes_out but I think Jiri is right, thi

[web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-18 Thread mdipierro
from https://launchpad.net/rocket the second gree button on the right is Rocket-mono-xxx.zip Unzip it. You get rocket.py. Move it into web2py/gluon/ web2py trunk already uses 1.0.1 so we have wait for Tim to post the new one. Massimo On Mar 18, 10:51 am, Kuba Kucharski wrote: > @Tim > > do you

[web2py] Re: Bulk inserts in Google App Engine

2010-03-18 Thread Jon Romero
It works!!! Thanks! On Mar 18, 6:37 pm, mdipierro wrote: > It is a bug. Thanks for checking it. > Please help me test the fix. > > In gluon/contrib/gae.py replace line 277 > > parsed_items.append(fields) > with: >             parsed_items.append(self._tableobj(**fields)) > > Does it work now? > >

[web2py] Re: Bulk inserts in Google App Engine

2010-03-18 Thread mdipierro
It is a bug. Thanks for checking it. Please help me test the fix. In gluon/contrib/gae.py replace line 277 parsed_items.append(fields) with: parsed_items.append(self._tableobj(**fields)) Does it work now? Massimo On Mar 18, 11:04 am, Jon Romero wrote: > Yeap it works now for MySQ

[web2py] Re: web2py beautification

2010-03-18 Thread mdipierro
This seems nice and small: http://www.ez-css.org/screencast -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegr

[web2py] Re: Bulk inserts in Google App Engine

2010-03-18 Thread Jon Romero
Yeap it works now for MySQL but not for GAE. Expected one of (,); Got a dict() On Mar 18, 4:51 pm, mdipierro wrote: > Should be > >         db.table_name.bulk_insert( >                 *[{ >                 'name': data['name'], >                 'surname': data['surname'], >                 're

Re: [web2py] benchmarking: rocket vs pound with four rockets

2010-03-18 Thread Kuba Kucharski
@Tim do you have the fix already in launchpad? if yes can you tell me how to replace rocket with the newest one inside web2py? -- Kuba -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.co

[web2py] Re: Recording voice samples from a web2py app

2010-03-18 Thread Yarko Tymciurak
This is not really an answer, rather an observation: At one end of the spectrum of possible ways to do this: record on the client machine with whatever local app there is, and save (upload) the recorded file (i.e., a podcast).This could potentially get big, so there are other issues you may

[web2py] Re: Using the Template System to Generate Emails

2010-03-18 Thread annet
Hi Denes, > because you have for nfa in nfas: so each nfa is a record > (from the group of records or 'Rows' object called nfas) This is what caused my confusion, in my cms app I had the following lines of code: record=db(db.betalingsgegevens.bedrijf==auth.user.bedrijf).select() record_id=re

[web2py] Re: auth_group

2010-03-18 Thread mdipierro
I see. than you probably want two tables. On Mar 18, 9:48 am, weheh wrote: > OK. As a matter of fact, I've already done that, Massimo. The issue > that I'm facing is a semantic one. > > auth_group now stands for 2 things. In one case, it's roles for > administrators and other users. In another ca

[web2py] Re: how to import a python library (not single file) from modules

2010-03-18 Thread mdipierro
You should put them in web2py/site-packages On Mar 18, 9:35 am, PanosJee wrote: > Never mind i just put the folder in /web2py and smiled > But i am not sure if it s good way to do it > > On Mar 18, 4:11 pm, PanosJee wrote: > > > Hey guys there were some posts regarding this issue but i could not

[web2py] Re: gae appadmin

2010-03-18 Thread mdipierro
wsgiserver is not used and not relavent when using GAE. GAE does not use that module. Please try again and give a complete traceback. On Mar 18, 9:20 am, Matt Murphy Garmur wrote: > sorry for the mistyping -- it is with "appadmin" that i get the error. > > i believe i've been using python 2.5 --

[web2py] Re: Bulk inserts in Google App Engine

2010-03-18 Thread mdipierro
Should be db.table_name.bulk_insert( *[{ 'name': data['name'], 'surname': data['surname'], 'registered': False} for data in some_data]) The star was missing. On Mar 18, 9:19 am, Jon Romero wrote: > It doesn't seem to work.

[web2py] Re: auth_group

2010-03-18 Thread weheh
OK. As a matter of fact, I've already done that, Massimo. The issue that I'm facing is a semantic one. auth_group now stands for 2 things. In one case, it's roles for administrators and other users. In another case, it stands for a CIG. So let's say a CIG has a physical address and telephone numbe

[web2py] Re: how to import a python library (not single file) from modules

2010-03-18 Thread PanosJee
Never mind i just put the folder in /web2py and smiled But i am not sure if it s good way to do it On Mar 18, 4:11 pm, PanosJee wrote: > Hey guys there were some posts regarding this issue but i could not > figure out what to do > I want to use some python libraries but i cannot install them in s

[web2py] how to import a python library (not single file) from modules

2010-03-18 Thread PanosJee
Hey guys there were some posts regarding this issue but i could not figure out what to do I want to use some python libraries but i cannot install them in site- packages or pymodules so i have to add them in the modules folder. Let s say i want to use gdata There are tons of files and in most of t

Re: [web2py] Re: gae appadmin

2010-03-18 Thread Matt Murphy Garmur
sorry for the mistyping -- it is with "appadmin" that i get the error. i believe i've been using python 2.5 -- everything has been working for me for a year. i'll double check back at home. the error in the launcher (with 1.76.5) was about file locking and wsgiserver. i followed another thread th

[web2py] Re: Bulk inserts in Google App Engine

2010-03-18 Thread Jon Romero
It doesn't seem to work. This is my code db.table_name.bulk_insert( [{ 'name': data['name'], 'surname': data['surname'], 'registered': False} for data in some_data]) Problems: On not GAE, I have this problem: Expected one of (

[web2py] Re: custom validation problem

2010-03-18 Thread mdipierro
Hamdy is right: dt=db(db.reservation.Date==form.vars.Date).select() is out of the scope of the if statement and thus form.vars has no values this may be your problem Massimo On Mar 18, 4:00 am, mohammed al-moustady wrote: > thank you all > > I will try me best > I hope I can fix it > > Ki

[web2py] Re: gae appadmin

2010-03-18 Thread mdipierro
"appadmin" (not "admin") is supposed to work out of the box since before 1.74. Make sure that you use Python 2.5. Do you see any error in the Launcher console? On Mar 18, 8:56 am, Matt Murphy Garmur wrote: > i know that it should work out of the box, which is my problem. did it work > out of th

[web2py] Re: sqlite timeout setting?

2010-03-18 Thread mdipierro
I do not know what is causing this. Is it possible you were using the shell at the same time? That could have locked the db for long time. Massimo On Mar 17, 11:03 pm, vince wrote: > no, and it rarely happens. i just found it on errorlog maybe once per > week. is the current dal return error rig

Re: [web2py] Re: gae appadmin

2010-03-18 Thread Matt Murphy Garmur
i know that it should work out of the box, which is my problem. did it work out of the box on 1.74.11, or is it more recent? because when i look at it over https on my current version, i get the 400 bad request error. and trying to upgrade to 1.76.5 makes the gae launcher not work on my mac. so i

[web2py] Re: auth_group

2010-03-18 Thread mdipierro
I would extend auth_group with the additional fields you require. You can extend any table without modifiying web2py source in the same way you can extend auth_user. Just define the table before calling auth.define_tables() and make sure the current fields and validators are in there. If you define

[web2py] Re: benchmarking: rocket vs pound with four rockets

2010-03-18 Thread mdipierro
Yes. We already have it in trunk and you can try it here: http://web2py.com/examples/static/1.76.5.2.b/web2py_src.zip http://web2py.com/examples/static/1.76.5.2.b/web2py_win.zip http://web2py.com/examples/static/1.76.5.2.b/web2py_osx.zip Massimo On Mar 18, 8:43 am, Vasile Ermicioi wrote: > Wh

[web2py] Re: Migrating web2py to GAE

2010-03-18 Thread mdipierro
I think I misunderstood what you tried to do: If you run locally with dev_appserver you can only connect to web2py from localhost and you can use appadmin over http. You do not need https If you deply your apps on GAE you need to use https to access appadmin. The fact you run locally and need ht

Re: [web2py] benchmarking: rocket vs pound with four rockets

2010-03-18 Thread Vasile Ermicioi
What this thread means: will we have a new wsgi server for web2py (instead of cherrypy) ? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

[web2py] Re: Migrating web2py to GAE

2010-03-18 Thread Al
Sorry I forgot to post the console error for the previous message: *** Running dev_appserver with the following flags: --admin_console_server= --port=8012 Python command: /usr/bin/python2.5 INFO 2010-03-18 13:30:11,558 dev_appserver_main.py:399] Running application myownapp on port 8012: h

[web2py] Re: Migrating web2py to GAE

2010-03-18 Thread Al
Change the port does get me to the welcome screen on the local GAE, click into admin interface gives "admin is disabled because insecure channel"; if I change http to https then it gives me "Secure Connection Failed: SSL received a record that exceed the max possible length: Could some one share w

[web2py] Re: URL structure for multilanguage site

2010-03-18 Thread mdipierro
Mind you can also do #---routes.py---# routes_in = ( ('/app/static/$anything','/app/static/$anything'), ('/app/$language/$anything',r'/app/default/$anything/$language? _language=$language') ) routes_out = ( ('/app/static/$anything','/app/static/$anything'), ('/app/default/$anything/$language',r'/

[web2py] Re: create index on postgres

2010-03-18 Thread mdipierro
Yes. This normal behavior in all relational databases. You have to commit the change to unlock the database >> db.executesql('create index bq_index on bonus_queue (hitid);') >> db.commit() On Mar 18, 1:51 am, Michael Toomim wrote: > I can't create an index on postgresql using executesql. Her

Re: [web2py] benchmarking: rocket vs pound with four rockets

2010-03-18 Thread Timothy Farrell
Kuba, Thanks for taking the time to test this. I've found a bug in the Linux version that hinders performance. I think you'll see things improve a great deal with this next minor version. Thanks, -tim On 3/17/2010 8:20 PM, Kuba Kucharski wrote: This is probably obvious but I decided to tr

[web2py] Recording voice samples from a web2py app

2010-03-18 Thread aure
Hi everyone, I would like to let some users record voice samples (read bits of text) from a web2py application. I imagine the user just clicks on a button to start the recording process, reads the text, clicks to stop the recording. Listens to it. And saves it if they are happy with it. Otherwise

[web2py] Re: URL structure for multilanguage site

2010-03-18 Thread aure
Hi Chris, I don't know. There still are a few things I do not really understand. I would be happy if some people can answer my questions before... But if you understand these things better than I do, do put it up on web2pyslices! Aurelien On 18 mar, 12:49, Christopher Steel wrote: > Wow, I swe

[web2py] Re: URL structure for multilanguage site

2010-03-18 Thread Christopher Steel
Wow, I swear people using web2py can read minds. 14 minutes before my above post aure posts a solution... aure, do you want to put that up on web2pyslices or I could do it for you. Thank you! Chris On Mar 18, 7:36 am, Christopher Steel wrote: > Jiri, Aure and Wikus, > > I am also working on

[web2py] Re: URL structure for multilanguage site

2010-03-18 Thread Christopher Steel
Jiri, Aure and Wikus, I am also working on a multilingual project and I am sure some other folks are as well. We could really use some working examples of internationalization, especially using URL's and routes_in and routes_out and table setups. If you all are up to doing short "slice" you can v

[web2py] Re: URL structure for multilanguage site

2010-03-18 Thread aure
So here is the full procedure I have been using. 1. As explained by Massimo and Wikus, in order to use two languages (here French -fr- and English -en-) I wrote the following code in file "routes.py" found in the "web2py" folder: #---routes.py---# routes_in = ( ('/app/static/(?P.*)','/app/static/

[web2py] Re: custom validation problem

2010-03-18 Thread mohammed al-moustady
thank you all I will try me best I hope I can fix it Kind Regards On Mar 17, 2:52 pm, Mengu wrote: > to your console. > > On 17 Mart, 13:41, mohammed al-moustady > wrote: > > > > > thank you hamdy but it is irrelevant to the code. > > > BTW > > mdipierro > > > do you mean print statement in th