Yes.
On Aug 4, 5:03 pm, Crabby wrote:
> Aha -- I think I need to tweak widget.pyc as well (to add the menu of
> IP addresses), but knowing that all this stuff is in library.zip was
> the piece I was missing.
>
> I assume I can just compile the corresponding ?.py (from the like-
> versioned sourc
Hi, I had troubles with images in Mnual so I went on to the wiki part
3.7. I am copying the code from the manual, but I seem to run into
errors that I don't understand so I can't correct them. Are these
examples outdated so I should try something else.
Jim
Error ticket for "wiki"
Ticket
127.0.0.
since this fails with (as I recall) with a specific file, and a specific
browser (mostly webkit based, e.g. either Chrome/Chromium, or Safari)
Someone should identify a known failing file, and share for testing.
Massimo: you will recall other issues cropped up before (e.g. pages not
always displ
On 4 ago, 18:16, mdipierro wrote:
> I believe this problem was fixed in 1.65.10. Am I wrong?
>
> Massimo
>
There is an instant I updated from the trunk (v1.65.11, r1156) and
this time works well.
Thank you
Jose
--~--~-~--~~~---~--~~
You received this message be
On Jul 17, 10:52 am, Alex Fanjul wrote:
> I agree with you Richard,
> In deed, in statusbar there is already a "kind of breadcrumb" but
> wihtout links...
>
> A vote for this inbuild functionallity...
> Otherwise, I bet that someone has a quick and simple idea to do this
> with one function and g
another issue I came across is that the deleted user can stay logged
in with their previous session cookie. Is there an efficient way to
get around this?
Richard
On Jul 19, 5:33 pm, Hans Donner wrote:
> Keep in mind if you reference to this user in other tables as well
> (your apps). If you mak
> Yeah maybe a complete web2py 2 rewrite. With nice and better coding...
I really REALLY hope not...
web2py is already an incredibly useful web framework and is getting
better each month with new features and bug fixes.
IMO investing energy in a rewrite could split the community and would
certain
On Aug 5, 1:10 am, 陶艺夫 wrote:
> You mean then the bug's gone in the newest version of CP?
Hopefully
> Can really CherryPy be used in a production environment? I'm a little
> confused now.
Works for me - either with Apache/WSGI or natively ona single-user
Win32 client.
F
--~--~-~--~-
You mean then the bug's gone in the newest version of CP? Can really
CherryPy be used in a production environment? I'm a little confused now.
2009/8/5 Fran
>
> On Aug 4, 10:17 pm, mdipierro wrote:
> > Can you give it a try? If it works I will test it too.
>
> I've never seen the error, so can't
Aha -- I think I need to tweak widget.pyc as well (to add the menu of
IP addresses), but knowing that all this stuff is in library.zip was
the piece I was missing.
I assume I can just compile the corresponding ?.py (from the like-
versioned source) and replace the corresponding element(s) of libr
Hmmm. My bigger question is, are you still looking for assistance or
do you have the book wrapped up?
On Aug 4, 7:42 am, mdipierro wrote:
> Almost done. 1-2 weeks.
>
> On Aug 4, 5:32 am, Pynthon wrote:
>
> > Nice, Massimo will there be a new book?
>
> > On 4 aug, 09:04, mdipierro wrote:
>
> >
On Aug 4, 10:17 pm, mdipierro wrote:
> Can you give it a try? If it works I will test it too.
I've never seen the error, so can't test to see if the error goes
away.
I have replaced wsgiserver.py with CP's wsgiserver\__init__.py
So far this is running fine on both my Windows PC & a Linux server
On Aug 4, 2009, at 2:06 PM, mdipierro wrote:
>
> I think the simples solution coule be:
> - add fixed 0.5 second delay to any login
I like that.
> - add two optional fields to db.auth_user that locks an account for 15
> minutes after 3 failed logins.
> Field('last_login')
> Field('failed_logins
I do not know what changes you need to make but you can change the
main.pyc in library.zip.
> In the source & Mac-standalone versions of web2py, one can (and I
> did :)) change/replace the file web2py.py in order to modify the
> server application. (In my case, I'm adding a list of server IPs to
On Aug 4, 2009, at 2:16 PM, mdipierro wrote:
>
> I believe this problem was fixed in 1.65.10. Am I wrong?
I don't have a test case; I've just been reading the source. But I
suspect that it's not fixed. Consider the flow when f is a
FieldStorage object with list = None:
> elif fi
Could you try replace your download function with
def download(): return response.download(request,db)
On Aug 4, 3:42 pm, jayvandal wrote:
> Hi.
> I am trying the "Images" in the manual and I am on page 61 .
> I tried to select all and copy the error info. Is there a better way
> to copy the er
Can you give it a try? If it works I will test it too.
On Aug 4, 3:22 pm, Fran wrote:
> On Aug 4, 1:42 pm, mdipierro wrote:
>
> > The cherrypy server has a timeout issue under some condition.
>
> I wonder if this changeset improves things?http://cherrypy.org/changeset/2483
>
> F
--~--~-
I believe this problem was fixed in 1.65.10. Am I wrong?
Massimo
On Aug 4, 3:23 pm, Jonathan Lundell wrote:
> On Aug 4, 2009, at 9:38 AM, Jonathan Lundell wrote:
>
>
>
>
>
> > On Aug 3, 2009, at 8:33 AM, Jose wrote:
>
> >> I have just tried this in Windows XP(r1153) + python 2.5.x
>
> >> db.def
This is a good point but I disagree and agree.
I disagree because I do not think we ever wrote messy code because we
needed to keep backward compatibility. So far we never had to
compromise much. Moreover backward compatibility is a strength of
web2py.
I agree because one day all existing databa
In the source & Mac-standalone versions of web2py, one can (and I
did :)) change/replace the file web2py.py in order to modify the
server application. (In my case, I'm adding a list of server IPs to
choose from and spawning an extra process; the latter could presumably
be done elsewhere, but it i
+1 Really bad idea. I have never seen even a shadow of reason for this. We
trust Massimo with his declaration. Please, try to understand. This is about
serious production environments, important applications and making money
using web2py. We could consider it if there was a real need. But there is
I don't feel it is necessary to re-write anything yet. There is a lot
of good in it as it is. Don't just give up on it when you run into a
few difficulties. We are not talking about anything that won't be
addressed either. It is more of an issue of how it is addressed, and
for all the "weaknesses"
The content is is applications/[yourapp]/errors/
127.0.0.1.2009-08-04.11-42-18.1144ad5e-5ded-48ca-8871-99bb6695e5c8
On Aug 4, 1:57 pm, Fran wrote:
> On Aug 4, 6:50 pm, jayvandal wrote:
>
> > I have an error in the IMAGES in your book. I am on page 60.
> > this is the
> > Ticket
> > 127.0.0.1.20
I think the simples solution coule be:
- add fixed 0.5 second delay to any login
- add two optional fields to db.auth_user that locks an account for 15
minutes after 3 failed logins.
Field('last_login')
Field('failed_logins')
Massimo
On Aug 4, 9:56 am, Jonathan Lundell wrote:
> On Aug 4, 2009,
Hi.
I am trying the "Images" in the manual and I am on page 61 .
I tried to select all and copy the error info. Is there a better way
to copy the error info?
Thanks
Error ticket for "images"
Ticket 127.0.0.1.2009-08-04.14-35-15.67e6ba82-76c8-4172-8868-
dfc459e24fd2
Error traceback
1.2.3.4.5.6.
On Aug 4, 2009, at 1:08 PM, Yarko Tymciurak wrote:
> On Tue, Aug 4, 2009 at 9:49 AM, Jonathan Lundell
> wrote:
>
> On Aug 4, 2009, at 5:42 AM, mdipierro wrote:
>
> > The cherrypy server has a simsout issue under some condition. It
> > always worked great for me (I tried 1GB successfully) It see
On Aug 4, 2009, at 9:38 AM, Jonathan Lundell wrote:
>
> On Aug 3, 2009, at 8:33 AM, Jose wrote:
>
>> I have just tried this in Windows XP(r1153) + python 2.5.x
>>
>> db.define_table('unatabla',
>> Field('nombre'),
>> Field('imagen', 'upload'),
>> )
>>
>> The following mistake takes is produce
On Aug 4, 1:42 pm, mdipierro wrote:
> The cherrypy server has a timeout issue under some condition.
I wonder if this changeset improves things?
http://cherrypy.org/changeset/2483
F
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On Aug 4, 2:26 pm, Johann Spies wrote:
> My next
> question comes from the fact that now anyone on the ldap-tree can
> login and then become a registered user.
I guess you can't move those users that you wish to login to be placed
in a specific OU so that the logins can be restricted to just tha
On Tue, Aug 4, 2009 at 9:49 AM, Jonathan Lundell wrote:
>
> On Aug 4, 2009, at 5:42 AM, mdipierro wrote:
>
> > The cherrypy server has a simsout issue under some condition. It
> > always worked great for me (I tried 1GB successfully) It seems to
> > depend on the client. What browser are you usin
On Aug 4, 7:30 pm, Pynthon wrote:
> Yeah maybe a complete web2py 2 rewrite. With nice and better coding...
I believe this is a bad idea as we really don't want to break existing
apps - this is a *key* strength of web2py & one many of it's adherents
really value. This is what justifies the term '
On Aug 4, 6:50 pm, jayvandal wrote:
> I have an error in the IMAGES in your book. I am on page 60.
> this is the
> Ticket
> 127.0.0.1.2009-08-04.11-42-18.1144ad5e-5ded-48ca-8871-99bb6695e5c8
You need to provide the ticket contents, not the link to the ticket...
F
--~--~-~--~~---
Yeah maybe a complete web2py 2 rewrite. With nice and better coding...
Alex Fanjul has a point IMO.
On 4 aug, 20:15, Iceberg wrote:
> Perhaps we will eventually have a web2py 2.0 in the way which Alex
> Fanjul suggests.
>
> Meanwhile, we can take closer look into those "many times" of "due to
>
Perhaps we will eventually have a web2py 2.0 in the way which Alex
Fanjul suggests.
Meanwhile, we can take closer look into those "many times" of "due to
backward compatibility" issue, and see what can be adjusted. We did
that before at least for IS_STRONG.
This time, for example, the datetime.u
Massimo,
Many times I have seen that, due to backward compatibility, we are
forcing to write "messy" code in web2py applitacations.
Evenmore some issues will never fix in the right way bacause of that...
Won't you consider/planning to do a breakpoint with a major version
web2py 2.0? and solve s
Hello,
I have an error in the IMAGES in your book. I am on page 60.
this is the
Ticket
127.0.0.1.2009-08-04.11-42-18.1144ad5e-5ded-48ca-8871-99bb6695e5c8
Jim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-us
Just wondering if anyone has a working example of using the HTML5 tags
enabled in Firefox 3.5. It should be quite simple but I just cannot
make it work.
I have tested the following:
- Having a file in /static and pointing the the src attribute to
that
- Streaming a file through a controlle
I have a website where my cron job (present in application/cron) calls
webservices hosted by localhost. I have the whole URL but except the
port at which the website is hosted. I don't want to hardcode port 80,
any idea how to do it?
Hasanat Kazmi
--~--~-~--~~~---~--~
On Aug 4, 3:50 pm, __Kyo__ wrote:
> $('#taxpayer_married').attr('onchange',
> "if($('#taxpayer_married').attr('checked'))
> $('#taxpayer_spouse_name__row').show();
> else $('#taxpayer_spouse_name__row').hide();");});
$('#taxpayer_married').change(function() {
On Aug 3, 2009, at 8:33 AM, Jose wrote:
> I have just tried this in Windows XP(r1153) + python 2.5.x
>
> db.define_table('unatabla',
>Field('nombre'),
>Field('imagen', 'upload'),
> )
>
> The following mistake takes is produced when I do submit:
>
> Error traceback
> Traceback (most recent
David,
you can use
SQLField('book', db.book, requires = \
IS_IN_DB(db, 'book.code', 'book.name', orderby=db.book.id))
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this g
On 4 ago, 14:35, Fran wrote:
> On Aug 4, 3:02 pm, Jose wrote:
>
> I also found the current code still broken, despite my patch to revert
> that issue being included.
>
>
>
> > This code works well:
> > elif field.type == 'upload':
> > f = self.vars[fieldname]
> >
1.-
I just want to test this code, but it doesn't run very well, it
doesn't show execute the ajax function. Do i need something to run
ajax code?, this code is taken from web2py manual.
Model
db=SQLDB('sqlite://db.db')
db.define_table('taxpayer',
SQLField('name'),
SQLField('married','
On Aug 4, 2009, at 6:01 AM, mdipierro wrote:
>
> One issue is how to implement this if we use the
> request.env.remote_addr then it does not work behind a proxy, if we
> use request.env.http_x_if_forwarded_for, it works only on apache and
> it can spoofed anyway.
I don't think we should be l
On Aug 4, 2009, at 5:42 AM, mdipierro wrote:
> The cherrypy server has a simsout issue under some condition. It
> always worked great for me (I tried 1GB successfully) It seems to
> depend on the client. What browser are you using? Can you try a
> different one.
If this is the same server that's
Perfect! Thank you.
--~--~-~--~~~---~--~~
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 group, send email to
web2py+unsubscr..
On Aug 4, 3:02 pm, Jose wrote:
I also found the current code still broken, despite my patch to revert
that issue being included.
> This code works well:
> elif field.type == 'upload':
> f = self.vars[fieldname]
> fd = fieldname + '__delete'
>
On Aug 4, 12:54 pm, Johann Spies wrote:
> ldap_initialize( ldaps://stbldap01.sun.ac.za:636/??base )
> Adding port=636 solved the problem:
> auth.settings.login_methods=[ldap_auth(server='stbldap01.sun.ac.za',
> port=636, base_dn='ou=users,O=SU', mode='cn', secure=True)]
I'll take this as a bug a
On Aug 4, 3:27 pm, Fred wrote:
> How can I get the login page (myapp/
> default/user/login) to use the label "Username" rather than "Email"?
db.auth_user.email.label = T('Username')
F
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
I'm using LDAP authentication where users login giving their username
(uid in LDAP) and password. How can I get the login page (myapp/
default/user/login) to use the label "Username" rather than "Email"?
I tried changing myapp/views/default/user.html to have the following
but it doesn't work righ
This code works well:
elif field.type == 'upload':
f = self.vars[fieldname]
fd = fieldname + '__delete'
if f == '':
if self.vars.get(fd, False) or not self.record:
fields[fieldname] = ''
On 3 ago, 15:49, Fran wrote:
>
> fixes it - patch sent to Massimo...
>
> F
Today I updated, the line 809 is corrected, but it continues producing
the mistake:
Traceback (most recent call last):
File "E:\web2py2\gluon\restricted.py", line 178, in restricted
exec ccode in environment
Fi
Fran has helped me to get ldap-authentication working. My next
question comes from the fact that now anyone on the ldap-tree can
login and then become a registered user.
I have the following model:
==
if request.env.web2py_runtime_gae:# if running on Googl
>From what I've noticed (in regards to numerous different web services)
it seems that the request IP can pretty much be spoofed if someone
really wants to - so I would use it with the assumption it may be
wrong (i.e. don't lock out the IP, but use it to slow down login
processing). I'd also vote t
One issue is how to implement this if we use the
request.env.remote_addr then it does not work behind a proxy, if we
use request.env.http_x_if_forwarded_for, it works only on apache and
it can spoofed anyway.
Ideas?
Massimo
On Aug 4, 7:50 am, Pynthon wrote:
> Ah, nevermind then...
>
> On 4
Thanks, I will give PIL a look!
Thank you very much!
On 4 aug, 14:44, mdipierro wrote:
> I guess you can using the Python Imagel Library (PIL). You may create
> an validator that watermarks on unpload. If you find out how to do it
> using PIL I can help with the validator.
>
> Massimo
>
> On Au
Ah, nevermind then...
On 4 aug, 14:47, mdipierro wrote:
> This can be added easily and it does not affect backward
> compatibility.
>
> Massimo
>
> On Aug 4, 7:37 am, Rob Scheibel wrote:
>
> > Very good points in this discussion. I would like to see the addition
> > of a processing delay added
Kool, I know it sounds greedy but do you need to buy the PDF again
or..?
Thanks for the fast support!
On 4 aug, 14:42, mdipierro wrote:
> Almost done. 1-2 weeks.
>
> On Aug 4, 5:32 am, Pynthon wrote:
>
> > Nice, Massimo will there be a new book?
>
> > On 4 aug, 09:04, mdipierro wrote:
>
> > >
This can be added easily and it does not affect backward
compatibility.
Massimo
On Aug 4, 7:37 am, Rob Scheibel wrote:
> Very good points in this discussion. I would like to see the addition
> of a processing delay added for numerous failed login attempts. This
> is what the larger sites are do
If you just add a
Field('uuid','string',default=str(uuid.uuid4()), writable=False)
It should do what you ask and you can use db.export_as_csv_field to
sync remote dbs.
On Aug 4, 6:59 am, vihang wrote:
> yes, its like a federated id. but the emails are used for a different
> purpose (avatars wh
I guess you can using the Python Imagel Library (PIL). You may create
an validator that watermarks on unpload. If you find out how to do it
using PIL I can help with the validator.
Massimo
On Aug 4, 5:39 am, Pynthon wrote:
> Hello
>
> Is it also possible to add watermarks on images with web2py?
Almost done. 1-2 weeks.
On Aug 4, 5:32 am, Pynthon wrote:
> Nice, Massimo will there be a new book?
>
> On 4 aug, 09:04, mdipierro wrote:
>
> > Changing now into utcnow would break backward compatibility.
>
> > I do agree with you that othen people may want to use
>
> > Field(,default=da
The cherrypy server has a simsout issue under some condition. It
always worked great for me (I tried 1GB successfully) It seems to
depend on the client. What browser are you using? Can you try a
different one.
Massimo
On Aug 4, 4:49 am, 陶艺夫 wrote:
> Hi,
> I don't wanna use another web server b
Well, I don't understand the whole topic but if it is insecure then
security goes forward backward compatible IMO.
On 4 aug, 14:37, Rob Scheibel wrote:
> Very good points in this discussion. I would like to see the addition
> of a processing delay added for numerous failed login attempts. This
>
Very good points in this discussion. I would like to see the addition
of a processing delay added for numerous failed login attempts. This
is what the larger sites are doing now - it slows down the dictionary
attacks by adding 1/2 a second to each successive bad login attempt
until you hit some ma
yes, its like a federated id. but the emails are used for a different
purpose (avatars which inturn use auth).. hence we need to have a uuid
to unify them all... maybe the issue I am facing is too specific to my
problem and but uuid (or similar global identifiers) would be
interesting addition as
>> auth.settings.login_methods=[ldap_auth(server='stbldap01.sun.ac.za',base_dn='ou=users,O=SU',
>> mode='cn', secure=True)]
$ ldapwhoami -H ldaps://stbldap01.sun.ac.za -D
'cn=jspies,ou=users,O=SU' -x -v -W -n
Enter LDAP Password:
ldap_initialize( ldaps://stbldap01.sun.ac.za:636/??base )
Result:
Yes, I will try to post and example tonight.
I believe your students will REALLY like this...
Here are a few DALnr snippets till then:
In gql.py
from google.appengine.ext import db as google_db
from google.appengine.ext.db import polymodel as pm # DLypka Mod to
support PolyModel
:
:
cl
Hello
Is it also possible to add watermarks on images with web2py?
Thanks
--~--~-~--~~~---~--~~
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 unsubsc
Nice, Massimo will there be a new book?
On 4 aug, 09:04, mdipierro wrote:
> Changing now into utcnow would break backward compatibility.
>
> I do agree with you that othen people may want to use
>
> Field(,default=datetime.utcnow())
>
> instead of
>
> Field(,default=request.now)
>
Hi,
I don't wanna use another web server but cherrypy, I think it is capable of
serving my site. I tested my app to download a 4.2M file through
response.stream(file_name), it always terminated halfway. Is this the case
of 'Keep-alive" time is not enougth? If it is, How can I set the parameter?
pyt
Apologies. I was testing from two different computers. On the one
(where the web2py server was running) it was working and I did not see
that the one from which I pasted the entries was failing. The
following worked (same string with a 'TLS_REQCERT allow' added to
/etc/ldap/ldap.conf):
$ ldapwh
On Aug 4, 12:28 am, mattynoce wrote:
> request.vars['hiddenfield'] = val
> immediately before the form.accepts part. i could confirm that it set
> properly and that request.vars found hiddenfield, but it still
> wouldn't update (even if i set db.table.hiddenfield.writable=True).
> something seems
On Aug 4, 10:09 am, Johann Spies wrote:
> ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
> Additional info: Unrecognized extended operation
> ldap_sasl_interactive_bind_s: Unknown authentication method (-6)
> I hope the information above will help.
We need a working string in order to kn
Thanks Fran for your reply.
2009/8/3 Fran :
>> db.Field("password",'password',readable=False, label="Password"),
>
> Add writable=False to make it not show in the register form.
Thanks. I am learning...
>
> My guess is that this is an LDAP failure.
> Try the LDAP login from the CLI on the same m
If it helps.
db.export_as_csv_file and db.import_as_csv_file can use uuid to sync
distinct databases.
But I am not sure what you need to do. Are you looking for federated
id?
Why not use email as uuid?
On Aug 4, 2:30 am, vihang wrote:
> Hello,
>
> I am currently working on an app which is dist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
I have two tables, table "book" with fields "code" and "name", filled
with values e.g.:
id codename
1 bz Book 1
2 f4r Other book
and the second table with field:
SQLField('book', db.book, requires = \
I
Hello,
I am currently working on an app which is distributed between
different nodes. The issue is that when it comes to app related dbs, I
am managing (somehow) using a seperate UUID column. But the Auth which
comes with web2py does not. any ideas... I want 'building my own auth'
as a last resor
Changing now into utcnow would break backward compatibility.
I do agree with you that othen people may want to use
Field(,default=datetime.utcnow())
instead of
Field(,default=request.now)
I will add a comment about this in the book.
Massimo
On Aug 3, 3:22 am, Armin Ronacher w
79 matches
Mail list logo