[web2py] web2py on Kodingen?

2010-03-20 Thread mr.freeze
It appears that Kodingen can run Django and Ruby apps. Someone with strong Apache-fu should try to get web2py working :) http://kodingen.com/?2010/01/27/get-ruby-working/ http://kodingen.com/?groups/django-on-kodingen -- You received this message because you are subscribed to the Google Groups

[web2py] User Authorization + Download management

2010-03-20 Thread Matthew McNaughton
Greetings all, I've read the access control section in book a couple times over, and I still can't completely figure out authorization. I want to do the following: I want to add all newly registered users to a specific group called users, which I have already created in auth_groups I have another

[web2py] Re: PyPy 1.2 released!

2010-03-20 Thread Joe Barnhart
I installed PyPy on a Mac. I discovered it needs openssl to run, so I used MacPorts to install openssl and everything ran as expected. I was able to run web2py.py under PyPy and the management interface works perfectly! BUT... I'm gettng a Sqlite3 error whenever I try to run a site: Traceback

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

2010-03-20 Thread annet
Denes and Alexandre, Your replies were very helpful and helped me understand and solve the problem, thanks. Thadeus, Use the following class lined out in the wiki, works like a charm. I will, in one of the next iterations. At the moment I am not yet proficient enough in Python to completely

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

2010-03-20 Thread annet
I have another question: In case the user would like to view the html mail in his browser, I have got the following line of code: td class=browser align=left {{if not request.function=='browser_version':}} pHaving trouble viewing this email? a

[web2py] Re: User Authorization + Download management

2010-03-20 Thread mdipierro
Good questions: 1) if not db(db.auth_group.role=='users').count(): db.auth_group.insert(role='users') auth.settings.register_onaccept=lambda form: auth.add_membership(auth.id_group('users'),form.vars.id) 2) Not sure what you mean by file renaming. Can you explain more? To keep track of

[web2py] Re: trunkeylinux help

2010-03-20 Thread Mark Breedveld
Hello, I'll have tried it again on a turnkey machine on a ESXi 3.5 machine. But it returns the same error. rm cannot remove 'web2py_src.zip* This ain't strange, because you want to remove a file in an folder you just created. My suggestions are as following. place the rm web2py_src.zip after

[web2py] Re: joins, geraldo and possible alias

2010-03-20 Thread mdipierro
created_by=db.Users.with_alias('created_by') handled_by=db.Users.with_alias('handled_by') rows = db(db.Calls.id0).select(db.Calls.ALL,db.created_by.name,db.handled_by.name, left=[created_by.on(created_by.id==db.Calls.CreatedBy), handled_by.on(handled_by.id==db.Calls.HandledBy)])

[web2py] Re: trunkeylinux help

2010-03-20 Thread Mark Breedveld
I also have an other suggestion. Is it nog possible to search a community member to make a debian package of web2py. My suggestions are to make the following package structure. - web2py_core.deb //Just web2py - web2py_app_name.deb // A web2py app package example (web2py_cookbook.deb) -

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

2010-03-20 Thread Timothy Farrell
Summary: First, I'll speak in the context of a single instance of Rocket. I'll talk about pound in a bit. ApacheBench, which I used to test Rocket, unfairly accentuates the benefits of Rocket. httperf allows for a much fairer test. The httperf configuration that Kuba used tested a

[web2py] Debian / Ubuntu packager needed!

2010-03-20 Thread Mark Breedveld
The web2py community is searching help on debian / ubuntu packaging. The are concrete plans to deploy web2py as Turnkey Appliance. http://groups.google.com/group/web2py/browse_thread/thread/7a90b25eef35660e/215e9080c73c8049?hl=enlnk=gstq=turnkey#215e9080c73c8049 But in order to do this in a

Re: [web2py] web2py on Kodingen?

2010-03-20 Thread Alex Fanjul
Incredible!! i didnt know kodingen... El 20/03/2010 7:19, mr.freeze escribió: It appears that Kodingen can run Django and Ruby apps. Someone with strong Apache-fu should try to get web2py working :) http://kodingen.com/?2010/01/27/get-ruby-working/

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

2010-03-20 Thread Thadeus Burgess
cache the mail and only access it if its no longer cached? Or have a table that stores all sent mailings sent_mail - bedrijf - message You still query the database, but you have to store the info somewhere at some point in time if it is to be accessed later. -Thadeus On Sat, Mar 20,

[web2py] Mailing list.

2010-03-20 Thread annet
In my application I have a table npa which contains non-physical addresses, i.e. telephone numbers, fax numbers, e-mail addresses etc. that are displayed on business cards. This table has a field company which references a table company. Initially I inserted addresses into these tables which I got

Re: [web2py] Re: User Authorization + Download management

2010-03-20 Thread Matthew McNaughton
DO the commands in 1) go into the db.py after auth=Auth(globals(),db) or in a new controller that is created for user registration? On Sat, 2010-03-20 at 08:03 -0700, mdipierro wrote: Good questions: 1) if not db(db.auth_group.role=='users').count():

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

2010-03-20 Thread mdipierro
Thanks this is clear. I should clarify my position on this. I always liked cherrypy because it is known to be fast and because many use it to it has been tested. The problem with cherrypy is that the code is not as clean as Rocket's. I also like Rocket because its code is very clean and readable

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

2010-03-20 Thread Jonathan Lundell
On Mar 20, 2010, at 9:58 AM, Timothy Farrell wrote: Vasile Ermicioi, put in a vote for Rocket to be included in web2py because I'm in the web2py community and there is still plenty of room for Rocket to be optimized (which I noted). I like the idea of built-in servers as plugins (not

[web2py] Re: User Authorization + Download management

2010-03-20 Thread mdipierro
You can put them in db.py after auth=..., or in a registration controller or simply in the user() action. As long as they are executed before the registration form runs. Massimo On Mar 20, 12:30 pm, Matthew McNaughton mamcnaugh...@gmail.com wrote: DO the commands in 1) go into the db.py after

[web2py] problema con la BD

2010-03-20 Thread kike
tengo dos bases de datos distintas, la primera es la que se basa mi aplicacion, y la segunda es la que crea auth, el problema es que cuando le digo a auth que coja la informacion de un campo de la primera base de datos, me dice que no conoce el nombre, aqui les pongo el codigo y el error:

[web2py] widgets in db.py

2010-03-20 Thread Avik Basu
Hi, I have a several widgets in a file called widgets.py and would like to use those widgets in db.py. Both db.py and widgets.py exist in the models directory. However, when I use the widgets in defining table fields in db.py, it does not recognize the widgets. How can I include the widgets.py

[web2py] Re: problema con la BD

2010-03-20 Thread kike
disculpenme en donde dice: auth_table.preference.requires=IS_NOT_EMPTY() auth_table.second_preference=IS_NOT_EMPTY() realmente dice: auth_table.preference.requires=IS_IN_DB(vul,'object_vendors.id','object_vendors.name')

[web2py] Re: widgets in db.py

2010-03-20 Thread mdipierro
models are executed alphabetically. You have two options: 1) rename one of the files: 2) move the widgets to a module and import the module from db.py On Mar 20, 12:56 pm, Avik Basu avikb...@gmail.com wrote: Hi, I have a several widgets in a file called widgets.py and would like to use those

Re: [web2py] Re: problema con la BD

2010-03-20 Thread Mariano Reingart
kike: Antes que nada, hay un grupo de usuarios en español: http://groups.google.com/group/web2py-usuarios (web2py-users es para consultas en inglés) Respecto a tu problema, ¿donde estas definiendo la tabla object_vendors? En el grupo en español se trato algo similar sobre como usar varias bases

[web2py] zengarden anybody?

2010-03-20 Thread mdipierro
I just came across this: http://www.csszengarden.com/ It is one simple html layout (only divs) with 210 PURE CSS skins: http://www.mezzoblue.com/zengarden/alldesigns/ This could be an option for the welcome app. If we use their html, it would be trivial to add a small admin option that

[web2py] Re: problema con la BD

2010-03-20 Thread kike
gracias nuevamente por la sugerencia, espero hacerlo bien esta vez, sobre el problema con la BD, la BD sbdv vul=DAL('mysql:// root:r...@localhost/sbdv',pool_size=20), es una base de datos que ya existe con anterioridad y la cual tiene 14 tablas, una de ellas es object_vendors On 20 mar, 13:19,

Re: [web2py] Re: ajax

2010-03-20 Thread Tito Garrido
I could add the form on the modal window but the date widget and time widget is appearing out of the modal window... it's under the window. Is there a way to put it to appear on the modal window? Regards, Tito On Sun, Feb 21, 2010 at 11:29 AM, DenesL denes1...@yahoo.ca wrote: Adding person

[web2py] Re: web2py on Kodingen?

2010-03-20 Thread mr.freeze
It's the former. Once you get an account, you can create and edit projects and manage your web servers/databases/domains/etc. It looks like it is mainly centered around php but there are options to enable python. I tried using fastcgi but my Apache skills are weak. On Mar 20, 12:39 pm,

[web2py] Re: zengarden anybody?

2010-03-20 Thread mdipierro
Here they have a longer list of 1000 designs: http://www.mezzoblue.com/zengarden/alldesigns/others/ massimo On Mar 20, 1:32 pm, mdipierro mdipie...@cs.depaul.edu wrote: I just came across this:    http://www.csszengarden.com/ It is one simple html layout (only divs) with 210 PURE CSS skins:

[web2py] Re: zengarden anybody?

2010-03-20 Thread mr.freeze
I think the ability to select a skin when creating an app would be a major plus and help kick-start development for the design-impaired such as myself. On Mar 20, 1:32 pm, mdipierro mdipie...@cs.depaul.edu wrote: I just came across this:    http://www.csszengarden.com/ It is one simple html

Re: [web2py] Re: web2py on Kodingen?

2010-03-20 Thread Thadeus Burgess
Its based off of bespin -Thadeus On Sat, Mar 20, 2010 at 1:39 PM, mr.freeze nat...@freezable.com wrote: It's the former.  Once you get an account, you can create and edit projects and manage your web servers/databases/domains/etc. It looks like it is mainly centered around php but there

Re: [web2py] Re: zengarden anybody?

2010-03-20 Thread Thadeus Burgess
I envision having an app create wizard, you select a layout (based on ez-css), and then select a skin for the layout. :) -Thadeus On Sat, Mar 20, 2010 at 1:50 PM, mr.freeze nat...@freezable.com wrote: I think the ability to select a skin when creating an app would be a major plus and help

Re: [web2py] Re: web2py on Kodingen?

2010-03-20 Thread Tito Garrido
Very interesting! but my apache skills are weak too :( On Sat, Mar 20, 2010 at 3:52 PM, Thadeus Burgess thade...@thadeusb.comwrote: Its based off of bespin -Thadeus On Sat, Mar 20, 2010 at 1:39 PM, mr.freeze nat...@freezable.com wrote: It's the former. Once you get an account, you

[web2py] Re: PyPy 1.2 released!

2010-03-20 Thread Joe Barnhart
OK -- more info. I discovered that sqlite3 was not being loaded by sql.py in gluon. The library must be structured oddly because it wants something like: from sqlite3 import dbapi2 as sqlite3 After hacking sql.py in this fashion, pypy ran perfectly! ...for about 30 seconds! After that time,

[web2py] The quest for fastest WSGI...

2010-03-20 Thread Joe Barnhart
Has anyone here heard of or used gevent? It is a co-routine based Python network library that exposes a lean interface to the libevent library. Based on the small amount of reading I have done so far, it kicks major @ss on other WSGI implementations. Blog for gevent: http://blog.gevent.org/

[web2py] Re: substring comparison in GAE query

2010-03-20 Thread mr.freeze
Are you thinking about this post?: http://groups.google.com/group/web2py/browse_frm/thread/4aaa3846a2e5e68a/ Does GAE support 'substring'? A bug in Field.__getslice__ was recently fixed so you may want to try the latest from mercurial. I think you want: query = db(db.table.string_field[-4:] ==

[web2py] Re: web2py beautification

2010-03-20 Thread Yarko Tymciurak
On Mar 20, 12:25 pm, mdipierro mdipie...@cs.depaul.edu wrote: Yarko did it! The new welcome with ez.css is in trunk. We still need do add something to allow skinning and rearrange the css (right now we have: applications/welcome/static/base.css applications/welcome/static/calendar.css

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

2010-03-20 Thread Kuba Kucharski
ALL POWER I CAN GET FROM quad core Xeon @ 2.33GHz ONLY SOME STABLE RECORDS HERE: Request rate: 929.0 req/s (1.1 ms/req) QUAD CHERRYPY Request rate: 877.6 req/s (1.1 ms/req) QUAD ROCKET Request rate: 1478.0 req/s (0.7 ms/req) CHERRYPY SOLO Request rate: 1544.2 req/s (0.6 ms/req) ROCKET SOLO

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

2010-03-20 Thread Yarko Tymciurak
On Mar 20, 12:36 pm, mdipierro mdipie...@cs.depaul.edu wrote: Thanks this is clear. I should clarify my position on this. I always liked cherrypy because it is known to be fast and because many use it to it has been tested. The problem with cherrypy is that the code is not as clean as

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

2010-03-20 Thread Yarko Tymciurak
On Mar 20, 4:50 pm, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Mar 20, 12:36 pm, mdipierro mdipie...@cs.depaul.edu wrote: Thanks this is clear. I should clarify my position on this. I always liked cherrypy because it is known to be fast and because many use it to it has been

[web2py] Re: zengarden anybody?

2010-03-20 Thread Yarko Tymciurak
On Mar 20, 1:53 pm, Thadeus Burgess thade...@thadeusb.com wrote: I envision having an app create wizard, you select a layout (based on ez-css), and then select a skin for the layout. :) Well - aside from ez-css using classes, and the things I've looked at @ zengarden seem to use id's (so

[web2py] Re: zengarden anybody?

2010-03-20 Thread Yarko Tymciurak
Having said this, the zengarden shows how to accomplish some standard naming, and now to switch css to affect things That by itself is quite useful - and worth (for me at least) more closely... On Mar 20, 1:53 pm, Thadeus Burgess thade...@thadeusb.com wrote: I envision having an app create

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

2010-03-20 Thread Kuba Kucharski
ach! I meant to say:  web2py.com nice one. yes. stability and funcionality over speed. I just wanted to learn where are the borders(and how to benchmark properly). -- Kuba -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to

[web2py] Re: web2py beautification

2010-03-20 Thread Pepe
Hello, i'm designer and before of that a human being, so i wonder: why make web2py less human readable? what's ez-negmr ez-50?? the semantic of the most css framework is a problem, because they haven't. ...On the other hand: To have fewer elements is simpler to understand when you start to

Re: [web2py] Re: web2py on Kodingen?

2010-03-20 Thread Alex Fanjul
Massimo, for what I could figure out it's an IDE on the Cloud, where you can also Install open source web applications/solutions with the easiness of one click... I tend to be very skeptic with this things, but anyway it's impressive!! alex El 20/03/2010 18:39, mdipierro escribió: I am

Re: [web2py] Re: problema con la BD

2010-03-20 Thread Alex Fanjul
Gracias Mariano, no conocía la existencia del grupo en español... alex El 20/03/2010 19:19, Mariano Reingart escribió: kike: Antes que nada, hay un grupo de usuarios en español: http://groups.google.com/group/web2py-usuarios (web2py-users es para consultas en inglés) Respecto a tu problema,

Re: [web2py] Re: web2py beautification

2010-03-20 Thread Thadeus Burgess
easy negative margin ?? easy 50 % width ?? I agree, I wish the class names were more human, OTOH, with only a handful of classes it is not much to learn. -Thadeus On Sat, Mar 20, 2010 at 6:57 PM, Pepe pepea...@gmail.com wrote: i'm designer and before of that a human being, so i wonder:

Re: [web2py] Re: zengarden anybody?

2010-03-20 Thread Thadeus Burgess
Well... the quickest way to change layouts is to store the configuration in the database... So have a table for web2py meta information, that contains current_layout which is value is layout.html or mynewlayout.html etc etc. In all views instead of {{ extend layout.html }} it will be {{ extend

[web2py] web2py book trivia

2010-03-20 Thread Joschua
the web2py-book registration mail was sorted in the spam folder, because the mail was not send from the real mailserver of the sender. (real: web2py.com, sendfrom: ..depaul.edu) at http://web2py.com/book/default/section/3/10 the category must be called versioning and not mercurial, because that

[web2py] Re: Bug in DocTests?

2010-03-20 Thread Joschua
thank you too ( for web2py :) On 14 Mrz., 21:14, mdipierro mdipie...@cs.depaul.edu wrote: fantastic. I am uploading the solution to trunk. Thank you. On Mar 14, 11:44 am, Joschua cit_corperat...@gmx.net wrote: I looked into the python documentation and find DocTestFinder:

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

2010-03-20 Thread mdipierro
I am assuming that in all your tests you did not use web2py. I am assuming you just tested some hello word wsgi application. You can find gluon/sneaky.py in the web2py source and there is a wsgi hello world example in there. Massimo On Mar 20, 4:07 pm, Kuba Kucharski kuba.kuchar...@gmail.com

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

2010-03-20 Thread mdipierro
oops. Sorry. It would be interesting to know how much overhead does web2py add. On Mar 20, 7:44 pm, Kuba Kucharski kuba.kuchar...@gmail.com wrote: I am assuming that in all your tests you did not use web2py. I wrong assumption. I even published my modelcontroller at the beginning of this

[web2py] problem to use database

2010-03-20 Thread kike
I have two databases, the first was created by auth, and the second is a database with 14 tables, created previusly. Traceback (most recent call last): File /home/kike/sbdv/web2py/gluon/restricted.py, line 173, in restricted File /home/kike/Desktop/web2py/applications/SBDV/models/db.py, line

[web2py] problem to use database

2010-03-20 Thread kike
I have two databases, the first was created by auth, and the second is a database with 14 tables, created previusly. Traceback (most recent call last): File /home/kike/sbdv/web2py/gluon/restricted.py, line 173, in restricted File /home/kike/Desktop/web2py/applications/SBDV/models/db.py, line

[web2py] AutocompleteWidget on multiple forms on the same page

2010-03-20 Thread Tito Garrido
Hi, I've created several forms using LOAD function... These forms has 1 field using AutocompleteWidget but this widget only works if there is just 1 form on the page... Is that expected? Regards, Tito -- Linux User #387870 . _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__(

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

2010-03-20 Thread Kuba Kucharski
you expect overhead from this? ;) def benchmark2(): return dict(data=test) -- 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: benchmarking: rocket vs pound with four rockets

2010-03-20 Thread mdipierro
There may be because of the extra logic for parsing http headers, looking for models, controllers, views etc. I do not know. It would be nice to quantify the web2py overhead. Massimo On Mar 20, 8:57 pm, Kuba Kucharski kuba.kuchar...@gmail.com wrote: you expect overhead from this? ;) def

[web2py] Re: Joomla Templates

2010-03-20 Thread mdipierro
That appliance is very old and turned out not to be very popular. It can only partially convert joomla templates. You still need to work on them manually. It only works on some templates. On Mar 20, 8:53 pm, Al albertsec...@gmail.com wrote: I have tried to beautify my application with some

[web2py] Re: AutocompleteWidget on multiple forms on the same page

2010-03-20 Thread mdipierro
It should work with multiple fields as long they have different names. On Mar 20, 8:41 pm, Tito Garrido titogarr...@gmail.com wrote: Hi, I've created several forms using LOAD function... These forms has 1 field using AutocompleteWidget but this widget only works if there is just 1 form on

[web2py] Re: problem to use database

2010-03-20 Thread mdipierro
I do not understand. db and vui connect to the same database. why not vui=db? Are they defined in two different applications? If they are defined in the same applications db and vui should be the same connections else they will not see each other tables. On Mar 20, 8:38 pm, kike

[web2py] Re: web2py beautification

2010-03-20 Thread Yarko Tymciurak
On Mar 20, 6:57 pm, Pepe pepea...@gmail.com wrote: Hello, i'm designer and before of that a human being, so i wonder: why make web2py less human readable? what's ez-negmr ez-50?? ez: the prefix that identifies it as ez-css; negmr, as Thadeus correctly pouinted out, is negative

[web2py] Re: problem to use database

2010-03-20 Thread mr.freeze
db = DAL('mysql://root:r...@localhost/usbdv',pool_size=20) vul=DAL('mysql://root:r...@localhost/sbdv',pool_size=20) They're different. Does he need to do fake_migrate to make the .table files? On Mar 20, 10:23 pm, mdipierro mdipie...@cs.depaul.edu wrote: I do not understand. db and vui connect

[web2py] Re: zengarden anybody?

2010-03-20 Thread Yarko Tymciurak
On Mar 20, 8:27 pm, mdipierro mdipie...@cs.depaul.edu wrote: Just for fun:    http://web2py.com/zengarden then click on the [zengarden] link under the menu, under the index link. You can change the skin per user, per session. This is a bare bone welcome app with the layout :-)