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
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
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
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
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
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:
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
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')],
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.
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(){
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
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
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
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
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,
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
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 !)
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
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
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
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)
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:
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
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
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
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,
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,
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 =
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
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
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
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.
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):
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
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:
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
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
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
--~--~-~--~~~---~--~~
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
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
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,
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.
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
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
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.
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
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
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
--~--~-~--~~~---~--~~
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|
49 matches
Mail list logo