Ok, that works. Now I correctly get to my logon page at
/myapp/admin/user/login?_next=/myapp/admin/home
instead of "default\index". But if that logon fails, I get redirected
to
/myapp/admin/user/login
which shows the logon form but fails (goes to "default\index") if I
use a valid logon.
Someho
Thank you Massimo, that did it.
On Sat, Jan 2, 2010 at 10:28 PM, mdipierro wrote:
> Please upgrade to 1.74.5. It will not require functools.
>
> On Jan 2, 9:04 pm, Adnan Smajlovic wrote:
> > I apologize for beating this one, but any help would be appreciated since
> > I'm not in position to upg
Please upgrade to 1.74.5. It will not require functools.
On Jan 2, 9:04 pm, Adnan Smajlovic wrote:
> I apologize for beating this one, but any help would be appreciated since
> I'm not in position to upgrade to python 2.5 at the moment, and really want
> to try using web2py.
>
> I installed the h
I apologize for beating this one, but any help would be appreciated since
I'm not in position to upgrade to python 2.5 at the moment, and really want
to try using web2py.
I installed the hashlib on CENTOS 5.4 x86_64, then got the error that UUID
is missing. I used easy_install to install UUID and
I have updated the docstring and I have make a nonzero zero in trunk.
On Jan 2, 4:28 pm, "KONTRA, Gergely" wrote:
> > Please never assume that something that is not done by default cannot
> > be done.
>
> > db.whatever.partner.requires.zero="Please Select One"
>
> Again, where can I find info abo
You are right. The current documentation refers to the features that
existed on August 2009.
Features added after that are not yet documented. We are working on
it. If you want to submit a patch from the docstring I will be happy
to take it.
I also agree that zero!=None should be default. I can ch
> Please never assume that something that is not done by default cannot
> be done.
>
> db.whatever.partner.requires.zero="Please Select One"
Again, where can I find info about the zero argument?
It is mentioned at
http://www.web2py.com/examples/static/epydoc/web2py.gluon.validators.IS_IN_DB-class
Hi,
just to make sure I understand. Can you point me to the image blog
example?
When you edited db.py did you append the content or did you replace
it?
You are supposed to append it since db.py defines auth.
On Jan 2, 3:49 pm, joscha wrote:
> Hello,
>
> I am new to web2py. I am trying to foll
Hello,
I am new to web2py. I am trying to follow the documentation, but I
cannot get the image blog example to work. I copied the lines into the
db.py. If I select the database administration, I get the following
traceback:
Traceback (most recent call last):
File "C:\Users\sharky\Documents\_MEI
Here is a gmap plugin.
- install
- edit models/plugin_gmap.py to set the query for the points to be
shown on map (read example)
- add component to pages {{=LOAD('plugin_gmap')}}
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this g
well, you can do it with FROM (not SQLFORM.factory) but You would not
gain anything in your case.
About AJAX.
You could make something like
def ajax_user(): return auth() # instead of dict(form=auth())
and then in a page
{{=LOAD('default','ajax_user/register',ajax_trap=True)}}
you do not need
Thank you, and really really appreciate the response time for the post
(hardly 15min).
I thought it may be constructed using SQLFORM.factory (I tried
but...).
If this is the better way, I'm happy.
I have another problem with AJAX.
( You can see that menu Items loads asynchronously using ajax(u,s,t)
I cannot think of a better way. Nice site by the way. I would only
replace
{{=form.hidden_fields()}}
with
{{=form.custom.end}}
On Jan 2, 1:15 pm, "K.R.Arun" wrote:
> hi,
> I'm new to web2py and my first experience with it is fun.
> It's true that I can deve
Mind that unless the referenced table has a format='...', then
reference fields do not have a default validator. If they do not have
one, when you use a database that does provide referential integrity
you will run into problems because you will get an OperationalError
form the database. Web2py sho
hi,
I'm new to web2py and my first experience with it is fun.
It's true that I can develop fast but for now customization is pain in
some places.
For example, I like css over tables. And I have to add some fieldsets
to my form.
Form is generated from a table and using SQLForm(because many tasks
are
>> > On Jan 1, 9:48 am, pihentagy wrote:
>> > The sytnax is Field(name, type). The default type is a string. If you
>> > want it to be a reference it has to said explicitly. You do the same
>> > in Django. The validator is optional and, in fact, since 1.74 you get
>> > that validator by default if
If you created your test1 before upgrading, it will not change
appearence after upgrading BUT, if you make a test2 after upgrading,
it should look like a clone of the welcome app.
If it does not (and I would not why) remove all the *.tar and *.w2p in
the main web2py folder and try again.
You can e
> The one you want to download is 1.74.5 from this
> page:http://www.web2py.com/examples/default/download
>
> There are trunk version in launchpad (bzr) and google code (hg) but
> those only for developers. We stopped updating the subversion branch
> some time ago since we moved to Mercurial.
I t
> This is howhttp://127.0.0.1:8000/welcomeshould look like in 1.74.5
Right, but my test1 app doesn't look like that. I thought when you
created a new app it started out as a clone of the welcome app.
I guess not.
> Does it look different for you?
The welcome app looks as you indicated. My test
No problem. We are also learning GAE as we go, it is changing fast and
so is web2py.
On Jan 2, 11:07 am, Chad wrote:
> Thanks, that solved it. Also, thanks for the quick responses, I am
> just learning the framework so getting feedback so fast was awesome.
>
> On Jan 2, 12:36 am, mdipierro wrote
Thanks, that solved it. Also, thanks for the quick responses, I am
just learning the framework so getting feedback so fast was awesome.
On Jan 2, 12:36 am, mdipierro wrote:
> I think the problem is the following: You need to run the program with
> dev_appserver, register, login and create some p
The one you want to download is 1.74.5 from this page:
http://www.web2py.com/examples/default/download
There are trunk version in launchpad (bzr) and google code (hg) but
those only for developers. We stopped updating the subversion branch
some time ago since we moved to Mercurial.
On Jan 2, 10:3
A suggest for documentation: explicit that record argument can be the
rowid or the row object.
I had not understud it before.
By and new thanks.
leone
On 2 Gen, 17:48, leone wrote:
> Very simple!!!
> Thanks.
> leone
>
> On 2 Gen, 17:09, mdipierro wrote:
>
>
>
> > Invece di
>
> > form=crud.update
Very simple!!!
Thanks.
leone
On 2 Gen, 17:09, mdipierro wrote:
> Invece di
>
> form=crud.update(table,record_id)
>
> Try this:
>
> record=table[record_id]
> record.fieldname = 'newvalue'
> form=crud.update(table,record)
>
> On Jan 2, 9:51 am, leone wrote:
>
>
>
> > When SQLFORM is called with re
I downloaded web2py a couple days ago and began messing around with it
using the Scribd
version of the book to get started. I'm using Google Chrome on a
Mac. My admin pages
looked quite a bit different than the examples in the book. Thinking
I might have gotten an
old version (it was from Jan 20
Invece di
form=crud.update(table,record_id)
Try this:
record=table[record_id]
record.fieldname = 'newvalue'
form=crud.update(table,record)
On Jan 2, 9:51 am, leone wrote:
> When SQLFORM is called with record parm valorized, a row is loaded to
> be updated.
> I want set the value of a column b
Take a look at the highlighted lines:
http://github.com/mengu/web2py-screencast/blob/master/controllers/posts.py#L23,#L28
On Jan 2, 1:44 pm, leone wrote:
> Good morning.
>
> Using SQLFORM I must update a row with defined values that i want push
> in the input tags programmatically.
> There is a
When SQLFORM is called with record parm valorized, a row is loaded to
be updated.
I want set the value of a column by code BEFORE submit it so that it
is visible in input field.
Default doesn't work (it is not a new row...). How can I do? Is it
possible?
Thanks
leone
On 2 Gen, 16:37, mdipierro
I believe your code should be
def index():
group_id=request.args(0)
group=db.auth_group[group_id] # group chouse table
members = db(db.auth_membership.group_id ==group.id).select()
notmembers = db(db.auth_membership.group_id !=group.id).select()
return DIV(members,notmembers)
Logically there is a difference.
db.table.field.represent tells web2py how to represent the value of a
field (it assumes there is a value)
db.table.field.requires tells web2py what kind of values can be in a
field and therefore "suggests" a possible representation for the input
widget associated t
Sorry, I do not understand. Can you make an example?
On Jan 2, 5:44 am, leone wrote:
> Good morning.
>
> Using SQLFORM I must update a row with defined values that i want push
> in the input tags programmatically.
> There is a way?
>
> Thanks.
> leone
--
You received this message because you ar
On Jan 2, 4:47 am, pihentagy wrote:
> On Jan 1, 6:34 pm, mdipierro wrote:
>
> > On Jan 1, 9:48 am, pihentagy wrote:
> > The sytnax is Field(name, type). The default type is a string. If you
> > want it to be a reference it has to said explicitly. You do the same
> > in Django. The validator is
The format attribute was intoduced in 1.74 so it is not yet in the
official docs. It is just a shortcut really.
On Jan 2, 4:27 am, pihentagy wrote:
> On Jan 2, 12:04 am, mdipierro wrote:
>
> > I think this is what you looking for.
>
> >http://web2py.com/examples/static/epydoc/index.html
>
> Yes,
It is up again. Sorry.
On Jan 2, 3:05 am, KMax wrote:
> URL reply with:
> Service Temporarily Unavailable
>
> The server is temporarily unable to service your request due to
> maintenance downtime or capacity problems. Please try again later.
> Apache/2.2.9 (Ubuntu) mod_ssl/2.2.9 OpenSSL/0.9.8g S
I do not know about the other error. The problem is in saving the
session.
>From the error it looks like there is None in response.session_file
I do not see how this can happen unless it is manually set.
Massimo
On Jan 2, 1:07 am, weheh wrote:
> Yes, indeed, if I add to the user() controller the
Thanks for the links, I didn't know about planetplanet.
It would be nice to have all approved blog items listed in one place.
It might encourage more people to blog about Web2py if they knew that
others would easily find their work.
-D
--
You received this message because you are subscribed to th
Hello
Im working on plugin to manage group membership. Main idea is
following:
Some kind of view loading the manager (i guess this way):
=LOAD('plugin_membershipmanager',args=Group_id,ajax=True)
Plugin gets all members of group with id=Group_id, and gets all users
are not in group.
Im easyly sho
On Thu, Dec 31, 2009 at 3:57 PM, mdipierro wrote:
> Before
>
> db.oppty_main.origin_account_id.writable=False
>
> insert
>
> db.oppty_main.origin_account_id.represent=lambda id: SPAN(db.account
> [id].name)
>
Others my think differently, but I feel that the expected behavior
would be for the repr
Good morning.
Using SQLFORM I must update a row with defined values that i want push
in the input tags programmatically.
There is a way?
Thanks.
leone
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@
On Jan 1, 6:34 pm, mdipierro wrote:
> On Jan 1, 9:48 am, pihentagy wrote:
> The sytnax is Field(name, type). The default type is a string. If you
> want it to be a reference it has to said explicitly. You do the same
> in Django. The validator is optional and, in fact, since 1.74 you get
> that v
On Jan 2, 12:04 am, mdipierro wrote:
> I think this is what you looking for.
>
> http://web2py.com/examples/static/epydoc/index.html
Yes, looking for something like that.
BUT
This doc is not complete. I could not find, that even there is a
keyword arg 'format' for define_table.
See
http://127
I agree. The bottleneck would likely be the DB, not web2py or Django
or any other framework/language. Therefore, the key here is to use
caching and smart db design (plus some ajax to break big DB load tasks
down to smaller ones).
On Jan 1, 6:27 pm, mdipierro wrote:
> It really depends on what "
URL reply with:
Service Temporarily Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.
Apache/2.2.9 (Ubuntu) mod_ssl/2.2.9 OpenSSL/0.9.8g Server at www.web2py.com
Port 80
--
You received this message beca
43 matches
Mail list logo