[web2py:22008] Re: w2p is here

2009-05-17 Thread Álvaro Justen [Turicas]
On Sat, May 16, 2009 at 1:53 PM, Iceberg iceb...@21cn.com wrote: In my Chrome 1.0.154.65, the downloaded pack all file has an unwanted extend name, such as web2py.app.blah.w2p.gz. This of course chokes the upload app function later. But when I try IE7 and Firefox3, the downloaded app ends

[web2py:22009] Re: form[][][].append()

2009-05-17 Thread annet . vermeer
Massimo, Yesterday I tested the new register() function in version 1.61.4. This morning I wasn't able to expose the new r941 register() function in version 1.61.4, so I downloaded web2py 1.62 rc2 and replaced the tools.py file with the one in trunk. I then created two applications one with the

[web2py:22010] Re: open issues?

2009-05-17 Thread Bernd das Brot
Hello, I checked web2py Version 1.62 rc4 (2009-05-15 15:41:03) for my issue web2py alongside other applications, mod_proxy http://groups.google.at/group/web2py/browse_thread/thread/c49124199d820fca/8120f6d0022273c9 to find it fixed (big thank you !) EXCEPT in the (new and cool) welcome

[web2py:22011] Auth, Crud and Service in 1.62rc2

2009-05-17 Thread annet
I explored web2py version 1.62rc2 and wonder why Auth, Crud and Service are instantiated by default and why the needed table are created by default. I have a separate database application in which I define the none web2py tables, in this application I do not need instances of Auth, Crud and

[web2py:22012] Re: Feature Request: Pagination

2009-05-17 Thread SergeyPo
I am using a pagination of 1 | 2 | 3 style in mysql and Oracle. I agree that OFFSET slows down in MySQL after 20,000 records, that's why I suggest my clients to use Oracle after their database grows. If you are interested in my pager code I can post it here, although it might be written

[web2py:22013] lighttpd and trunk

2009-05-17 Thread Kacper Krupa
Hi, Previous versions works well on lighttpd, but when i'm trying to start app on trunk /latest version i've got strange errors. First: AttributeError: 'translator' object has no attribute 'accepted_language' So i removed T.accepted_language from header from layout.html - it works. Next i've:

[web2py:22015] Fesature/Bug request-

2009-05-17 Thread Jason Brower
Is it down on purpose when I try to go to a page that requires login and when I enter the proper data it jumps me back a page? Shouldn't I be able to go to some page and if I don't have the rights ask for them, after which I am back to the page I was trying to get to? Regards, Jason

[web2py:22016] Menu not always showing up...

2009-05-17 Thread Jason Brower
It seems the menu at the top of the page that I am making as follows in default.py if auth.is_logged_in(): response.menu = [ [T('Home'), False, URL(r=request, f='index')], [T('Profile'), False, URL(r=request, f='profile')],

[web2py:22017] Re: Items don't update quick enough...

2009-05-17 Thread carlo
I would suggest you to have a look at the form.serialize() jquery function , very handy for getting every form control serialized in one shot. carlo On 16 Mag, 18:13, Jason Brower encomp...@gmail.com wrote: Yeah, that was my thought, use jquery.form.js and and a method to reload the list.  

[web2py:22018] Re: Custom forms in user management

2009-05-17 Thread Cristian Andrei
Hi Massimo, Thanks for your quick repsonse but I still haven't managed to get the tooltip visible. I tried pretty much every possible combination that I could think of with no success. Now my code looks this : {{if request.args[0]=='login':}} p login page/p script $(document).ready(function(){

[web2py:22019] Re: Feature Request: Pagination

2009-05-17 Thread TheDude
Another alternative would be pgsql, oracle might be like killing a fly with a bazooka rather than a fly swatter ;) On May 17, 4:03 am, SergeyPo ser...@zarealye.com wrote: I am using a pagination of  1 | 2 | 3 style in mysql and Oracle. I agree that OFFSET slows down in MySQL after 20,000

[web2py:22020] Re: Feature Request: Pagination

2009-05-17 Thread Jason Brower
I doubt I will have more than 100 records for now. I will stick with the example as it's a prototyped project anyway. Regards, Jason Brower On Sun, 2009-05-17 at 07:29 -0700, TheDude wrote: Another alternative would be pgsql, oracle might be like killing a fly with a bazooka rather than a

[web2py:22021] Custom validators text

2009-05-17 Thread Alexey Nezhdanov
Hello again. When I do form=SQLFORM(db.table) form.accepts(request.post_vars) it displays 'too small or too large' for the 'integer' and 'double' required fields. There are two problems with it: 1) these strings are not translateable by default 2) It is not exactly the proper message to

[web2py:22022] Re: Can't get web2py to run as Windows service

2009-05-17 Thread mdipierro
What is your full name? I will add your name to developers as expert on py2exe. Massimo On May 17, 12:00 am, Iceberg iceb...@21cn.com wrote: Hi Massimo, Some issues and fixes. 1. We still need to change web2py.py to get rid of the __file__ (at least when using py2exe), otherwise a

[web2py:22023] Re: Menu not always showing up...

2009-05-17 Thread annet . vermeer
Jason, The first thing I noticed is that both menus are the same. the else part should read something like: response.menu = [ [T('Login'), False, URL(r=request, f='login')], [T('Register'), False, URL(r=request, f='register')], [T('Retrieve username'), False, URL(r=request,

[web2py:22024] Re: form[][][].append()

2009-05-17 Thread mdipierro
Try trunk again please and let me know. On May 17, 2:28 am, annet.verm...@gmail.com wrote: Massimo, Yesterday I tested the new register() function in version 1.61.4. This morning I wasn't able to expose the new r941 register() function in version 1.61.4, so I downloaded web2py 1.62 rc2 and

[web2py:22025] Re: open issues?

2009-05-17 Thread mdipierro
On May 17, 2:39 am, Bernd das Brot b.b...@gmx.at wrote: Hello, I checked web2py Version 1.62 rc4 (2009-05-15 15:41:03) for my issue web2py alongside other applications, mod_proxyhttp://groups.google.at/group/web2py/browse_thread/thread/c49124199d8... to find it fixed (big thank you !)

[web2py:22026] Re: Custom validators text

2009-05-17 Thread Iceberg
The message can be customized by an error_message argument. db.Field('foo', 'integer', requires=IS_INT_IN_RANGE (0,5,error_message='oops')) But I havn't tested whether it can be: ..., error_message=T('oops') ... Maybe you can try and tell us. On May17, 3:38pm, Alexey Nezhdanov

[web2py:22027] Re: form[][][].append()

2009-05-17 Thread annet . vermeer
Massimo, I just tested the new r945 register function, both using the default auth_user table and a custom auth_user table and they are working alright. Thanks for fixing this issue. Kind regards, Annet. --~--~-~--~~~---~--~~ You received this message because

[web2py:22028] Re: Can't get web2py to run as Windows service

2009-05-17 Thread Iceberg
Thanks for the honor. It is my pleasure to help web2py become better. Sincerely, Ruijun Luo, a.k.a. Iceberg On May17, 11:36pm, mdipierro mdipie...@cs.depaul.edu wrote: What is your full name? I will add your name to developers as expert on py2exe. Massimo On May 17, 12:00 am, Iceberg

[web2py:22029] many 2 many widget for crud?

2009-05-17 Thread Jurgis Pralgauskis
Hello, I'm making an app, where many 2 many happens quite often: It's a list of programs (similar to apt database, but also for windows), and there fields: depends (on a set of other programs) env (some set of win/linux/mac) used_for (tags: math, education, geometry) tutorials (set of links)

[web2py:22030] Re: lighttpd and trunk

2009-05-17 Thread mdipierro
It looks like you updated the applications but not the gluon folder. Massimo On May 17, 3:54 am, Kacper Krupa pageno...@gmail.com wrote: Hi, Previous versions works well on lighttpd, but when i'm trying to start app on trunk /latest version i've got strange errors. First: AttributeError:

[web2py:22031] Defaulting to current user...

2009-05-17 Thread Jason Brower
I have a table that needs to have a default to the current user in one of the fields. I am using auth() and just put default=auth.user.id and it didn't seem to help. Any ideas? Regards, Jason --~--~-~--~~~---~--~~ You received this message because you are

[web2py:22032] Jquery question:

2009-05-17 Thread Jason Brower
I am using ui.jquery and have some nice tabs that pull data with ajax. Can I have it so that when I button is pressed, not only does it submit the data with ajax, but reloads the data(as if I clicked on one of the tabs) Hope that makes sense. Jason

[web2py:22033] Re: Custom validators text

2009-05-17 Thread Alexey Nezhdanov
On Sunday 17 May 2009 20:36:03 Iceberg wrote: The message can be customized by an error_message argument. db.Field('foo', 'integer', requires=IS_INT_IN_RANGE (0,5,error_message='oops')) I know that. But that's well,... a bit too large for me. I prefer dedicating just a single line for a

[web2py:22034] Re: lighttpd and trunk

2009-05-17 Thread Kacper Krupa
Wrr, i had to remove sock. I thought it was done when i restart lighty. Thanks. On 17 Maj, 19:15, mdipierro mdipie...@cs.depaul.edu wrote: It looks like you updated the applications but not the gluon folder. Massimo On May 17, 3:54 am, Kacper Krupa pageno...@gmail.com wrote: Hi,

[web2py:22035] Importing a controller

2009-05-17 Thread Jose
Hello I have followed the threads: [1] [2] [3] I have four controllers, one of them is identidad.py, who defines the decorator: def requiere_login(fn): def inner(*a,**b): if session.authorized: return fn(*a,**b) else: redirect(URL(r=request,

[web2py:22036] tools.py does not use rewrite.py wrapped URL()

2009-05-17 Thread Guido Kollerie
In main.py the line: (wsgibase, html.URL) = rewrite(wsgibase, html.URL) wraps the URL() function with one that rewrites the URLs based on routes.py. However the URL() function referenced in tools.py, when indirectly used in a model db.py as: from gluon.tools import Crud crud =

[web2py:22037] Re: many 2 many widget for crud?

2009-05-17 Thread mdipierro
Not sure if this helps but have you seen this? http://www.vimeo.com/2720410 On May 17, 11:51 am, Jurgis Pralgauskis jurgis.pralgaus...@gmail.com wrote: Hello, I'm making an app, where many 2 many happens quite often: It's a list of programs (similar to apt database, but also for

[web2py:22038] Re: Defaulting to current user...

2009-05-17 Thread mdipierro
Try if auth.user: user_id=auth.user_id else: user_id=0 then db.table.field.default=user_id it should work On May 17, 12:36 pm, Jason Brower encomp...@gmail.com wrote: I have a table that needs to have a default to the current user in one of the fields. I am using auth() and just put

[web2py:22039] Re: Jquery question:

2009-05-17 Thread mdipierro
yes. details depend on the implementation and the jquery plugin you are using. On May 17, 12:37 pm, Jason Brower encomp...@gmail.com wrote: I am using ui.jquery and have some nice tabs that pull data with ajax. Can I have it so that when I button is pressed, not only does it submit the data

[web2py:22040] Re: Custom validators text

2009-05-17 Thread mdipierro
For 'integer' and 'double' you can do db.table.field.requires.error_message=T('message') or db.table.field.requires=IS_INT_IN_RANGE(0,10,error_message=T ('message')) On May 17, 11:36 am, Iceberg iceb...@21cn.com wrote: The message can be customized by an error_message argument.  

[web2py:22041] Re: Importing a controller

2009-05-17 Thread mdipierro
This is already in trunk @auth.requires_login() Massimo On May 17, 1:56 pm, Jose jjac...@gmail.com wrote: Hello I have followed the threads: [1] [2] [3] I have four controllers, one of them is identidad.py, who defines the decorator: def requiere_login(fn):     def inner(*a,**b):    

[web2py:22042] Re: tools.py does not use rewrite.py wrapped URL()

2009-05-17 Thread mdipierro
Auch! I know what is wrong. I just never noticed. I can fix it later today. Massimo On May 17, 2:32 pm, Guido Kollerie gu...@kollerie.com wrote: In main.py the line:     (wsgibase, html.URL) = rewrite(wsgibase, html.URL) wraps the URL() function with one that rewrites the URLs based on

[web2py:22043] Re: tools.py does not use rewrite.py wrapped URL()

2009-05-17 Thread mdipierro
fixed. please check trunk and let me know. Massimo On May 17, 2:44 pm, mdipierro mdipie...@cs.depaul.edu wrote: Auch! I know what is wrong. I just never noticed. I can fix it later today. Massimo On May 17, 2:32 pm, Guido Kollerie gu...@kollerie.com wrote: In main.py the line:    

[web2py:22044] Re: open issues?

2009-05-17 Thread Bernd das Brot
applications/welcome/views/default/index.html: a href='/admin'{{=T(click here for the administrative interface)}} br / a href='/examples'{{=T(click here for online examples)}} is definitly a bug. But applications/welcome/views/default/users.html or welcome/views/web2py_ajax.html look ok on the

[web2py:22045] Re: open issues?

2009-05-17 Thread mdipierro
thanks for reporting this. I fixed it. The problem was indeed from gluon.tools import * was reimporting the wrong URL. It is fixed in google.code abd I am trying to upload the fix on launchpad. I seem to have a problem logging it today. Must be a problem on their side. Massimo On May 17, 5:38 

[web2py:22046] DB information on menu

2009-05-17 Thread Tito Garrido
Hi... How can I use DB data on menu? I'd like to use db data to build a submenu on menu.py... Thanks! Tito -- Linux User #387870 . _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:___ Sent from Salvador, BA, Brazil --~--~-~--~~~---~--~~

[web2py:22049] Re: DB information on menu

2009-05-17 Thread Jason Brower
Hi tito, Doubt this works, but it should give you an idea: Create your db in your model Then in your conroller select your db and make it itterable... menu = db(db.menu).select() Then you can go over it and select all the items in the list. {{for item in menu:}} a

[web2py:22052] Re: Authentication for services

2009-05-17 Thread mdipierro
I need to look into this. I do not think there can be a generic approach. Each protocol has its own quirks and some do not handle session or authenication. Massimo On May 17, 8:14 pm, jcorbett jasoncorb...@gmail.com wrote: I love the service framework, however I am interested in being able to

[web2py:22053] Re: Menu not always showing up...

2009-05-17 Thread Jason Brower
The weird thing is that this information is loaded in the layout.html file which all my pages are using. And some pages it loads some it doesn't. I don't know why. Fixed the same issue: if auth.is_logged_in(): response.menu = [ [T('Home'), False, URL(r=request,

[web2py:22054] Hoping to increase my connections to web2py people on linkedIn

2009-05-17 Thread Jason Brower
Could we have a web2py linkedIn group? I think it would be nice to have a network on linkedIn loving people there. Regards, Jason Brower --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group.

[web2py:22050] Re: DB information on menu

2009-05-17 Thread Jason Brower
Shucks, you beat me to it! On Sun, 2009-05-17 at 19:32 -0700, mdipierro wrote: Yes, I think some like this should do it. db.define_table('menu_item', SQLField('name'), SQLField('link'), SQLField('position','integer'), SQLField('parent','integer',default=0)) def

[web2py:22051] Authentication for services

2009-05-17 Thread jcorbett
I love the service framework, however I am interested in being able to authenticate users. With json/jsonrpc this shouldn't be too hard as the browser that the ajax request would come from would have the same session. Particularly I am concerned with writing an xmlrpc service that requires

[web2py:22055] Re: Menu not always showing up...

2009-05-17 Thread mdipierro
I am sure there is nothing wrong here. Something else is affecting this and it is hard to say without the entire code. Massimo On May 17, 10:35 pm, Jason Brower encomp...@gmail.com wrote: The weird thing is that this information is loaded in the layout.html file which all my pages are using.

[web2py:22048] Re: Jquery question:

2009-05-17 Thread Jason Brower
Submit button with ui.jquery's tab feature. http://jqueryui.com/demos/tabs/#ajax Each tab, including the first one is an ajax call. I just want the first tab to run it's ajax call and refill the data. Regards, Jason On Sun, 2009-05-17 at 12:40 -0700, mdipierro wrote: yes. details depend on the

[web2py:22056] Re: Hoping to increase my connections to web2py people on linkedIn

2009-05-17 Thread mdipierro
I have a better idea. A web2py app that provides: - web pages for developers/contributors/users - a database of projects (could replace appliances) - a database of code snippets (could replace AlterEgo) - a wiki - forums I think we could just build this by integrating existing components. Any

[web2py:22057] Re: Lighttpd streaming limitations?

2009-05-17 Thread Richard
On May 15, 4:06 pm, mdipierro mdipie...@cs.depaul.edu wrote: Can you also try using the provided wsgiserver? I am using the builtin cherrypy wsgiserver (see my second post) - is there another one? Which python version are you using? 2.5 --~--~-~--~~~---~--~~

[web2py:22047] Re: DB information on menu

2009-05-17 Thread mdipierro
Yes, I think some like this should do it. db.define_table('menu_item', SQLField('name'), SQLField('link'), SQLField('position','integer'), SQLField('parent','integer',default=0)) def menu(table=db.menu_item): items=table._db(table.id0).select(orderby=table.parent|