This is the source of the web2py ajax function:
function ajax(u,s,t)
{
var
query="";
for(i=0; i0) query=query
+"&";
query=query+encodeURIComponent(s[i])+"="+encodeURIComponent
(document.getElementById(s[i]).value);
}
jQuery.ajax({type: "POST", url: u, data: query, success: function
(
Sorry. This is a bug. I will fix it later today.
On Aug 6, 8:11 pm, AchipA wrote:
> I might have missed a few classes, but where did the newfilename field
> go from SQLFORM's accepts/vars and why ? I know I can query it back
> from the DB but it's kind of awkward, having it returned by
> sqlform
Thx. But where'd you get this info from?
On Aug 6, 10:31 pm, Richard wrote:
> try auth.settings.expiration = X
>
> On Aug 7, 2:35 pm, rb wrote:
>
> > Section 4.8 from the Web2py Manual states that session data remains
> > until/unless the user deletes the session cookie or else the session
> >
Hi Bottiger,
When Auth was first developed was that if "username" is defined in a
custom "auth_user" table then it would be used.
I do not think we should modify the auth_user table in order to allow
an extension (openid) to work. I would prefer to create a mechanism of
hooks by which the extens
That code was very old so I cleaned it up a big. Anyway, your example
below should work and should have worked. What problems do you have?
On Aug 6, 9:20 pm, FERNANDO VILLARROEL wrote:
> Hello.
>
> I am trying to implementing the example pagination:
>
> http://www.web2py.com/AlterEgo/default/sho
How can i configure the Active directory authentification using CAS?
should i have to uncomment and edit the
""
auth.settings.login_methods.append(ldap_auth
(mode='ad',server='my.domain.controller',base_dn="ou=Users,dc=domain,dc=com",bind_dn="cn=Administrator,ou=Users,d
c=domain,dc=com",bind_pass=
Let me clarify here:
The session object never expires.
The Auth(entication) information stored inside a session object does
expire. This has to do with login/login not with session data.
Basically session contains session.auth and if Auth expires,
session.auth is deleted.
This should be better
I will take a patch for this.
Massimo
On Aug 7, 1:33 am, Jonathan Lundell wrote:
> On Aug 6, 2009, at 9:32 PM, DenesL wrote:
>
> > IS_EMAIL does not follow the RFC specs for valid email addresses
> > (seehttp://en.wikipedia.org/wiki/E-mail_address)
>
> > even a simple a...@b.com fails
>
> > it
On Aug 7, 2009, at 12:22 AM, mdipierro wrote:
>
> I will take a patch for this.
If nobody else gets to it first, I'll work up a patch over the weekend.
>
> Massimo
>
> On Aug 7, 1:33 am, Jonathan Lundell wrote:
>> On Aug 6, 2009, at 9:32 PM, DenesL wrote:
>>
>>> IS_EMAIL does not follow the RF
hi Alex,
I am now using this automatic breadcrumb function:
def breadcrumbs():
"Create breadcrumb links for current request"
# make links pretty by capitalizing and using 'home' instead of
'default'
pretty = lambda s: s.replace('default', 'home').replace('_', '
').capitalize()
m
consider also to change logic...
instead of calculating 50k age range every time that you need to see that
view, you could add an extra field containing the range... you could do add
an extra field telling when it will change range... then you could calculate
new range only on a fraction of the 50
Thank you!
I'll try the last method, it's more rational I think.
2009/8/7 Sebastian E. Ovide
> consider also to change logic...
>
> instead of calculating 50k age range every time that you need to see that
> view, you could add an extra field containing the range... you could do add
> an extra f
Hi, i am using a form_factory on GAE and i keep getting this error.
In FILE: /base/data/home/apps/thewallapp/1.335448138740622861/
applications/init/controllers/account.py
Traceback (most recent call last):
File "/base/data/home/apps/thewallapp/1.335448138740622861/gluon/
restricted.py", lin
If you only use this on GAE there is no problem. The problem is that
somehow you are not uploading the yourapp/databases folder on GAE. It
should be there althought it should be empty.
On Aug 7, 6:05 am, Delaney Burke wrote:
> Hi, i am using a form_factory on GAE and i keep getting this error.
>
On Aug 7, 8:19 am, max wrote:
> How can i configure the Active directory authentification using CAS?
> should i have to uncomment and edit the
> ""
> auth.settings.login_methods.append(ldap_auth
> (mode='ad',server='my.domain.controller',base_dn="ou=Users,dc=domain,dc=com",bind_dn="cn=Administrat
On Aug 6, 11:42 am, Ahmed Soliman wrote:
> 1. Change password still checks the password against the database, it
> should check binding to the LDAP instead.
> 2. We should add method to hook on change profile and change password to
> update the LDAP as well.
Definitely - patch welcom
thanks, fran
On 7 Aug., 14:10, Fran wrote:
> On Aug 7, 8:19 am, max wrote:
>
> > How can i configure the Active directory authentification using CAS?
> > should i have to uncomment and edit the
> > ""
> > auth.settings.login_methods.append(ldap_auth
> > (mode='ad',server='my.domain.controller',
2009/8/6 Yarko Tymciurak :
> On Thu, Aug 6, 2009 at 9:49 AM, Mladen Milankovic wrote:
>> {{=IMG(_src=URL(r=request, c='static', f='Tux.jpg'))}}
>>
>> Everything you want to write out in the view, from python code needs =
>> like: {{=variable}}
>
> Yes ... this will make more sense for example if
I realize that there are many place you *can* put things but I was
wondering if there is a best-practice or web2py convention I should
follow for where certain things belong.
In the controller, I am sure most people rely on custom functions for
various things. Where should these functions live?
On Aug 7, 3:03 pm, __future__ wrote:
> In the controller, I am sure most people rely on custom functions for
> various things. Where should these functions live? They don't seem
> like they belong in the controller. Should they go in a module?
If the function only applies to that Controller,
I have two image records and two comment records
I will try your code
Thanks ,
Jim
On Aug 6, 11:54 pm, jayvandal wrote:
> Error ticket for "images"
> Ticket 127.0.0.1.2009-08-06.23-39-06.cf3dcbd3-ce73-4175-8d61-
> ff5aca00c066
>
> Hello,
> I am reworking the tutorials in the web2py manual. In th
This is an excellent article on the traps to beware of when regex'ing
email address formats
http://www.regular-expressions.info/email.html
This may ignite a debate though :)
I favour this variation...
[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-
z0-9](?:[a-z0-9-]*[a-z0
On Aug 7, 2009, at 8:13 AM, Carl wrote:
>
> This is an excellent article on the traps to beware of when regex'ing
> email address formats
>
> http://www.regular-expressions.info/email.html
>
> This may ignite a debate though :)
A discussion, maybe. In the abstract, I like the idea of verifying t
You've convinced me that staying close to RFC is a "best choice" even
though we lose the opportunity for users to correct addresses at the
point of data entry.
nb the suggested regex in my last posting doesn't work well enough!
e.g., a...@domain.co.uk isn't matched
C
On Aug 7, 4:48 pm, Jonath
On Aug 6, 10:12 pm, mdipierro wrote:
> you can do it in your model?
> import datetime
> request.utcnow=datetime.datetime.utcnow()
Perfect, thanks :)
I'd suggest putting this into scaffolding app myself, but entirely
your call...
F
--~--~-~--~~~---~--~~
You recei
On Aug 6, 10:12 pm, mdipierro wrote:
> Why should I add when you can do it in your model?
So that it can be included in Auth without needing to subclass.
Seems like a good enough reason to me...
F
--~--~-~--~~~---~--~~
You received this message because you are s
Are you trying to write 50,000 rows to a single webpage without
paging? If so, you might find the bottleneck is in the browser trying
to render a table that large.
I ran the query below on a similar set of data, albeit in MS SQL
Server 2005 so I'm sure the SQL will vary from that of PostgreSQL
Hi folks,
I am developing on Mac Platform 10.4.11
With the GAE Laucher, but when I try to deploy my app to GAE
it seems the Laucher don't find the yaml
Here is the log error:
*** Running dev_appserver with the following flags:
--admin_console_server= --port=8081
Python command: /usr/local/bin/py
Massimo -
There is nonetheless the issue Bottiger points out that if "username" is
passed in a form to this function, it will fail - there should be some
reasonable behavior (as per the discussions here).
I think this is a separate issue from what extensions may want to do.
I think we should add
Whoever makes up this patch, since this is complicated enough,
can I ask you follow the commented regex style (re.X)
which is now used to validate paths;
see example starting on line 74 of main.py:
http://bazaar.launchpad.net/~mdipierro/web2py/devel/annotate/head%3A/gluon/main.py
Thanks,
- Yarko
even a commented out version of this in the scaffold, showing what you can
uncomment if you need utc might be useful.
On Fri, Aug 7, 2009 at 11:11 AM, Fran wrote:
>
> On Aug 6, 10:12 pm, mdipierro wrote:
> > Why should I add when you can do it in your model?
>
> So that it can be included in Au
New video on vimeo by mdpierro http://www.vimeo.com/5432441.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this
Thank you for you help!
I fetch all 5 records from database not for displaying in the browser.
I found the bottleneck was using python's 'for .. in ..' loops. I wrote a
record to a row of an Excel file(using xlwt) within every loop.
And I found it was unavoidable. Now for 5+ records, gen
Hi,
I tried your code an I got the same error. It pointed to the first
line of your code gave the same error ,
I guess the first record is 0 so the code is pointing to the first
record?
Thanks for your help
Jim
Error ticket for "images"
Ticket
127.0.0.1.2009-08-07.11-47-01.0a2ffb3a-0bf3-4565-88e2-
that seems to be saying request.args[0] is the problem - make sure you don't
have a typo in
your views/default/index.html; be sure you have the brackets properly
balanced in the
, args=[image.id]
part of the 5th line.
On Fri, Aug 7, 2009 at 1:54 PM, jayvandal wrote:
>
> Hi,
> I tried your
On Aug 7, 2009, at 10:04 AM, Yarko Tymciurak wrote:
> Whoever makes up this patch, since this is complicated enough,
> can I ask you follow the commented regex style (re.X)
> which is now used to validate paths;
>
> see example starting on line 74 of main.py:
> http://bazaar.launchpad.net/~mdipier
Hi, my app got an error in "db(db.person.birth_date>=_date)" , when the
_date had a value < '1900-01-01'. That's for python's strftime constraint.
I found chaging _date to _date.isoformat() would work, and I had to search
whole my app to make the change.
Or is there a better solution?
Thanks.
--~
On Fri, Aug 7, 2009 at 2:14 PM, Jonathan Lundell wrote:
> On Aug 7, 2009, at 10:04 AM, Yarko Tymciurak wrote:
>
> Whoever makes up this patch, since this is complicated enough,
> can I ask you follow the commented regex style (re.X)
> which is now used to validate paths;
>
> see example starting
Wow! You're preparing for dealing with some of the oldest living people on
earth here!
On Fri, Aug 7, 2009 at 2:22 PM, 陶艺夫 wrote:
> Hi, my app got an error in "db(db.person.birth_date>=_date)" , when the
> _date had a value < '1900-01-01'. That's for python's strftime constraint.
> I found chag
You need the source version to deploy on GAE. The binary versions do
not include the app.yaml file. Even if we did you would still need the
source version to run the google development server, something you
must do in order to build the index.yaml file. Moreover the binary
version only include the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello!
Is it possible to restrict or filter choices listed in a select box
generated by SQLFORM for a field referring to other table?
E.g. I have a field person_id with reference to person.id. I wish to
allow only persons, who meet some criteria acc
It's just a try, means nothing :)
But what if the date is not birth_date and really means something
2009/8/8, Yarko Tymciurak :
> Wow! You're preparing for dealing with some of the oldest living people on
> earth here!
>
> On Fri, Aug 7, 2009 at 2:22 PM, 陶艺夫 wrote:
>
>> Hi, my app got an e
Hi,
rows.response is now SQLite3.row but shut be list:
Manual Page 146:
Notice that an SQLRows object is a container for:
1 rows.colnames
2 rows.response
colnames is a list of the column names returned by the raw select.
response
is a list of tuples which containes the raw response of select, be
We should direct people to http://stackoverflow.com to answer
questions in order to boost traffic.
There is a bigger audience there and people regularly seeing Web2Py
being asked may stumble upon it. Google Groups is not a very
convenient way to find questions and answers.
--~--~-~--~
I was thinking it would take me a long time to figure out how to use
jquery for this application, but I guess it's been a while since I've
looked at the source because I think I can already spot what I need to
do. I should just be able to copy the function but change .value to
whatever tag attribu
Hi David,
use any query in combination with widget e.g.:
q=db.person.name.like('A%')
r=db(q).select(db.person.id,db.person.name)
db.table2.person_id.widget= lambda self,value: SELECT
(_name='person_id',*[OPTION(e.name,_value=e.id) for e in r])
you can also build the validator:
db.table2.person_
I have been checking the code.It seemed to bethe first record. Ihad
trouble trying to delete one record so ii DELETED THE DATABASE ising
the delete of default db. I reintered the database description and
entered two records. I deleted the then tried to enter the comment
records. I tried the upd
Could I have problems with Vista and web2py? I am having trouble in
WIKI in web2py manual with the index as I had in IMAGES??
JIM
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this
I'm not sure how you deleted the database, but you could have a confused
web2py - it keeps track of the state of migrations / creations of the tables
in the databases directory of your application; you wiill want to remocve
the *.table and *.log files from there; If you are using sqlite - the
def
What about starting a wiki on this? Just post everything that has been
achieved to-date re: specification ideas.
On Aug 6, 11:54 pm, mdipierro wrote:
> We talk about this over and over but no progress. It is not an issue
> of coding. We define a plugin as a piece of an application stored in:
>
Just tried to access web2py.com and was not up.
Tried using a proxy (guardster), same result.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegr
try www.web2py.com
On Fri, Aug 7, 2009 at 11:33 PM, b00m_chef wrote:
>
> Just tried to access web2py.com and was not up.
>
> Tried using a proxy (guardster), same result.
> >
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
Has anybody here tried using IronPython with Web2py? How did you get
it to work? When I try it, it gives the following error:
Traceback (most recent call last):
File "web2py.py", line 15, in web2py.py
File "C:\web2py\gluon\widget.py", line 18, in C:\web2py\gluon
\widget.py
ImportError: No m
Hi,
If I add the below I can login.
#Controller
def login:
return dict(form=auth.login())
#View
{{=form}}
I need to style the submit button and the email and username fields.
>From the controller..how to I add email and password as separate
fields and to custom submit button while keeping
I'm using OpenDNS and it looks like the DNS records are messed up.
If you visit http://140.192.37.194 it will work fine as usual.
On Aug 7, 9:35 pm, Yarko Tymciurak wrote:
> trywww.web2py.com
>
> On Fri, Aug 7, 2009 at 11:33 PM, b00m_chef wrote:
>
> > Just tried to access web2py.com and was no
55 matches
Mail list logo