On Saturday, June 8, 2013 8:06:55 PM UTC-4, Massimo Di Pierro wrote:
This the code currently in web2py.css.
input[type=text],input[type=password],select{width:300px; margin-right:5px}
How do you propose we change it?
Discussed details here:
What does append hint at in the naming of the hooks for data base events?
I want to do something when a record is deleted from a grid.
Is there any harm if I call _before_delete.append in the controller
function, or should the callback be set in the model?
I guess it doesn't matter since both
You can set it in model or controller, doesn't matter (as long as you don't
make database queries inside models, which you probably don't do).
Yes, you can append multiple callbacks. Web2py can use these lists for
internal stuff, so you should only append to it.
Marin
On Sun, Jun 9, 2013 at
I tried the IS_LIST_OF validator and I can't get ist to work. when I have
no validator I got all names in my refrenced table. And I can select as
much as I like, but when I use any validators the list disappears and I get
an input for a string. I tried IS_LENGTH(minsize=1) as well as
Does append mean that multiple callbacks can be set up?
Yes, ._before_delete and related attributes are lists of callbacks (each
called in succession).
Anthony
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this
Use IS_IN_DB(..., multiple=(1, 1000)). The multiple argument to IS_IN_DB
can be a tuple specifying the minimum and maximum number of items to be
selected (note, you should set the maximum to a value you know will be
above the maximum number of items in the list, unless you want to restrict
it
Thanks! In trunk.
On Sunday, 9 June 2013 07:06:25 UTC-5, Anthony wrote:
On Saturday, June 8, 2013 8:06:55 PM UTC-4, Massimo Di Pierro wrote:
This the code currently in web2py.css.
input[type=text],input[type=password],select{width:300px;
margin-right:5px}
How do you propose we change it?
I built an application and uploaded the same to pythonanywhere.com using
its admin interface for web2py. I am also having the same problem.
Can someone help me. I am a newbie. Incidentally the application works fine
on my own computer.
Alok
On Sunday, May 26, 2013 3:26:23 PM UTC-7, jfinke
I built an application and uploaded the same to pythonanywhere.com using
its admin interface for web2py. I am also having the same problem.
It should be enough to upgrade your web2py version to solve this. However,
if you don't want to upgrade, open app/models/menu.py with a text editor
... I used data-toggle which means a click to expand the menu and a click
to close it again, which is ok, but different to the built-in menus which
hide when no more mouse-over.
Nice! I would also like to know if there's a simple way for swithching MENU
objects to that behavior
--
This works fine for defining another class like:
input id=test class=input-small type=text value= name=test
But not for defining size manually like:
input id=test size=30 type=text value= name=test
Anyway we can change fields using classes now!
Thanks!!!
Em domingo, 9 de junho de 2013
Hi guys new user here
I just upgraded my folder at /usr/share/web2py
to new version: Version 2.5.1-stable+timestamp.2013.06.06.15.39.19
and I'm getting this startup error
Terminal output
/usr/share/web2py $ python web2py.py
WARNING:root:Unable to import plural rules: No module named
what did you use to upgrade your installation ?
On Sunday, June 9, 2013 9:40:43 PM UTC+2, mike dawson wrote:
Hi guys new user here
I just upgraded my folder at /usr/share/web2py
to new version: Version 2.5.1-stable+timestamp.2013.06.06.15.39.19
and I'm getting this startup error
I downloaded the latest zip file from the web site and unzipped it to
/usr/share/web2py folder
(after deleting the old copy that had been there)
On Sunday, 9 June 2013 20:53:57 UTC+1, Niphlod wrote:
what did you use to upgrade your installation ?
On Sunday, June 9, 2013 9:40:43 PM UTC+2, mike
I had a similar problem when I recently did a setup with Web2py and Apache
which I did not want to dedicate to the directory root of the web server.
The part I had to modify to get it to work was:
WSGIScriptAlias / /var/www/web2py/wsgihandler.py
with:
WSGIScriptAliasMatch ^/myapp.*
Thanks Alan,
That worked. One question. When I upload my application(*.wp) file to
pythonanywhere is it my web2py version which gets used? I was under the
impression that the site runs its own web2py.
Any way, thanks for your answer again.
On Sun, Jun 9, 2013 at 9:14 AM, Alan Etkin
just a question
if I have this code:
def test(var):
if var:
redirect('x')
other code...
return
if I do test(true) will other code run or the function just exits?
thanks!
--
---
You received this message because you are subscribed to the Google Groups
web2py-users
well, just to understand better
lets say I have this:
def test(var):
if var:
redirect('x')
other code...
return
def test2():
Em domingo, 9 de junho de 2013 18h53min41s UTC-3, André Kablu escreveu:
just a question
if I have this code:
def test(var):
if var:
is it my web2py version which gets used?
My bad, I meant the web2py instance in pythonanywhere
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
I'm aware this might be rather a postgresql question but maybe someone
knows how to deal with it.
I defined 'city' table
db.define_table('city',
Field('id', length=8),
Field('country', length=2, unique=True),
Field('region', length=3),
Field('url', length=50),
Field('name', length=50),
Hi,
How an I do intersection?
The manual says:
Row objects can be combined at the Python level. Here we assume:
print rows1
person.name
Max
Tim
print rows2
person.name
John
Tim
You can do a union of the records in two set of rows:
rows3 = rows1 rows2
print rows3
name
Max
Tim
John
Tim
As explained in the
docshttp://web2py.com/books/default/chapter/29/04#HTTP-and-redirect,
redirect() is just a shortcut for raise HTTP(303, ...), which is an
exception, so control immediately moves from your app code back to the
framework (which catches exceptions and acts accordingly).
This works fine for defining another class like:
input id=test class=input-small type=text value= name=test
But not for defining size manually like:
input id=test size=30 type=text value= name=test
I think any CSS rule will take precedence over the size attribute, so
that's not going to
Hello guys, I'm the one responsible for this project, I intend to make it
multi language, is currently only in Portuguese.
2013/6/8 samuel bonilla pythonn...@gmail.com
Alan solo me gusta la aplicación, me parece interesante.
El 09/06/2013 08:32, Alan Etkin spame...@gmail.com escribió:
subj.
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hello. In a situation with two (or more) groups of users, for instance in
an application where companies post jobs, and job seekers search for jobs,
if I have two separate tables for companies and job seekers, how can I use
the authentication that is shipped with with web2py? Users sign up to
You can do this:
rows = [row for row in row1 if not row.id in row2.as_dict()]
On Sunday, 9 June 2013 18:15:03 UTC-5, webpypy wrote:
Hi,
How an I do intersection?
The manual says:
Row objects can be combined at the Python level. Here we assume:
print rows1person.name
Max
Tim
I build a application that have 2 AUTH objects...
I use 1 Auth object for the main site functionality that contains many
levels of users (using default tablename settings for auth)
and I made 1 more Auth table to use as SITE ADMIN, just to control main
site admin functions on a separated
The Auth system is really designed to have one instance (and one auth_user
table) per application. You best bet is probably to use a single user table
and just add a user_type field indicating the type of user. If you need
different profile fields for each type, you can include all the fields
You can't create two instances of Auth in the same db without renaming all
the Auth tables (otherwise, both instances will simply be accessing the
same set of tables). Another problem is that upon login, Auth stores the
user record and login information in session.auth -- so if you login with
Hi all,
I am new to Python and have a simple question. I have created a very simple
web form. I'd like to add a search button that takes whatever the user
inputs in the form and performs a google search query, and perhaps returns
the top 5 links into a text file to the user. How difficult is
Thanks again Anthony! It is a good alternative. ..
However It would be very good if we could use 2 auth...
As you can see I'd changed table names...
I'll study auth class in deep to see if i can extend it and change some
function to make it accept some parameter so it would be possible to set
Hi Massimo,
I think there is no 'not'.
am I right?
Regards,
Ashraf
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
locs=[row for row in dept_locs if row.id in todept_locs as_dict()]
is invalid syntax.
what is the problem?
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an
34 matches
Mail list logo