[web2py:28002] Re: Hacking the Windows version of web2py.py

2009-08-04 Thread mdipierro
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

[web2py:28001] WIKI in Manual

2009-08-04 Thread jayvandal
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.

[web2py:28000] Re: How to set http "keep-alive" parameter?

2009-08-04 Thread Yarko Tymciurak
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

[web2py:27999] Re: r1045 breaks some upload fields

2009-08-04 Thread Jose
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

[web2py:27998] Re: breadcrumb design

2009-08-04 Thread Richard
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

[web2py:27997] Re: How to properly remove a user in Auth.

2009-08-04 Thread Richard
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

[web2py:27996] Re: Fwd: My thoughts on web2py

2009-08-04 Thread Richard
> 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

[web2py:27995] Re: How to set http "keep-alive" parameter?

2009-08-04 Thread Fran
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 --~--~-~--~-

[web2py:27994] Re: How to set http "keep-alive" parameter?

2009-08-04 Thread 陶艺夫
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

[web2py:27993] Re: Hacking the Windows version of web2py.py

2009-08-04 Thread Crabby
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

[web2py:27992] Re: Fwd: My thoughts on web2py

2009-08-04 Thread JohnMc
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: > > >

[web2py:27991] Re: How to set http "keep-alive" parameter?

2009-08-04 Thread 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 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

[web2py:27990] Re: Default CRYPT() is unsecure

2009-08-04 Thread Jonathan Lundell
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

[web2py:27989] Re: Hacking the Windows version of web2py.py

2009-08-04 Thread mdipierro
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

[web2py:27988] Re: r1045 breaks some upload fields

2009-08-04 Thread Jonathan Lundell
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

[web2py:27987] Re: Ticket 127.0.0.1.2009- error

2009-08-04 Thread mdipierro
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

[web2py:27986] Re: How to set http "keep-alive" parameter?

2009-08-04 Thread mdipierro
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 --~--~-

[web2py:27985] Re: r1045 breaks some upload fields

2009-08-04 Thread mdipierro
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

[web2py:27984] Re: Fwd: My thoughts on web2py

2009-08-04 Thread mdipierro
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

[web2py:27983] Hacking the Windows version of web2py.py

2009-08-04 Thread Scott Hunter
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

[web2py:27982] Re: Fwd: My thoughts on web2py

2009-08-04 Thread Kuba Kucharski
+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

[web2py:27981] Re: Fwd: My thoughts on web2py

2009-08-04 Thread waTR
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"

[web2py:27980] Re: Ticket 127.0.0.1.2009-08-04.11-42-18.1144ad5e-5ded-48ca-8871-99bb6695e5c8

2009-08-04 Thread mdipierro
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

[web2py:27979] Re: Default CRYPT() is unsecure

2009-08-04 Thread mdipierro
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,

[web2py:27978] Ticket 127.0.0.1.2009- error

2009-08-04 Thread jayvandal
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.

[web2py:27977] Re: How to set http "keep-alive" parameter?

2009-08-04 Thread Jonathan Lundell
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

[web2py:27976] Re: r1045 breaks some upload fields

2009-08-04 Thread Jonathan Lundell
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

[web2py:27975] Re: How to set http "keep-alive" parameter?

2009-08-04 Thread Fran
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

[web2py:27974] Re: Authentication: login and registration

2009-08-04 Thread Fran
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

[web2py:27973] Re: How to set http "keep-alive" parameter?

2009-08-04 Thread Yarko Tymciurak
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

[web2py:27972] Re: Fwd: My thoughts on web2py

2009-08-04 Thread Fran
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 '

[web2py:27971] Re: Ticket 127.0.0.1.2009-08-04.11-42-18.1144ad5e-5ded-48ca-8871-99bb6695e5c8

2009-08-04 Thread Fran
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 --~--~-~--~~---

[web2py:27970] Re: Fwd: My thoughts on web2py

2009-08-04 Thread Pynthon
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 >

[web2py:27969] Re: Fwd: My thoughts on web2py

2009-08-04 Thread Iceberg
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

[web2py:27968] Re: Fwd: My thoughts on web2py

2009-08-04 Thread Alex Fanjul
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

[web2py:27967] Ticket 127.0.0.1.2009-08-04.11-42-18.1144ad5e-5ded-48ca-8871-99bb6695e5c8

2009-08-04 Thread jayvandal
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

[web2py:27966] Web2Py and Firefox 3.5 audio tag

2009-08-04 Thread BG
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

[web2py:27965] cron job website communication, find to find port?

2009-08-04 Thread Hasanat Kazmi
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 --~--~-~--~~~---~--~

[web2py:27964] Re: Ajax problem

2009-08-04 Thread Fran
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() {

[web2py:27963] Re: r1045 breaks some upload fields

2009-08-04 Thread Jonathan Lundell
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

[web2py:27962] Re: chage the sort order for generated selectbox

2009-08-04 Thread DenesL
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

[web2py:27961] Re: r1045 breaks some upload fields

2009-08-04 Thread Jose
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] > >    

[web2py:27959] Ajax problem

2009-08-04 Thread __Kyo__
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','

[web2py:27960] Re: Default CRYPT() is unsecure

2009-08-04 Thread Jonathan Lundell
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

[web2py:27958] Re: How to set http "keep-alive" parameter?

2009-08-04 Thread Jonathan Lundell
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

[web2py:27956] Re: getting login form to use the label "Username" rather than "Email"

2009-08-04 Thread Fred
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..

[web2py:27955] Re: r1045 breaks some upload fields

2009-08-04 Thread Fran
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' >          

[web2py:27957] Re: ldap-auth issue (solved)

2009-08-04 Thread Fran
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

[web2py:27954] Re: getting login form to use the label "Username" rather than "Email"

2009-08-04 Thread Fran
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

[web2py:27953] getting login form to use the label "Username" rather than "Email"

2009-08-04 Thread Fred
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

[web2py:27952] Re: r1045 breaks some upload fields

2009-08-04 Thread Jose
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] = ''

[web2py:27951] Re: r1045 breaks some upload fields

2009-08-04 Thread Jose
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

[web2py:27950] Authentication: login and registration

2009-08-04 Thread Johann Spies
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

[web2py:27949] Re: Default CRYPT() is unsecure

2009-08-04 Thread Rob Scheibel
>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

[web2py:27948] Re: Default CRYPT() is unsecure

2009-08-04 Thread mdipierro
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

[web2py:27947] Re: Image Manipulation

2009-08-04 Thread Pynthon
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

[web2py:27946] Re: Default CRYPT() is unsecure

2009-08-04 Thread Pynthon
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

[web2py:27945] Re: Fwd: My thoughts on web2py

2009-08-04 Thread Pynthon
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: > > > >

[web2py:27944] Re: Default CRYPT() is unsecure

2009-08-04 Thread mdipierro
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

[web2py:27943] Re: Auth based on UUID

2009-08-04 Thread mdipierro
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

[web2py:27942] Re: Image Manipulation

2009-08-04 Thread mdipierro
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?

[web2py:27941] Re: Fwd: My thoughts on web2py

2009-08-04 Thread mdipierro
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

[web2py:27940] Re: How to set http "keep-alive" parameter?

2009-08-04 Thread mdipierro
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

[web2py:27939] Re: Default CRYPT() is unsecure

2009-08-04 Thread Pynthon
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 >

[web2py:27938] Re: Default CRYPT() is unsecure

2009-08-04 Thread Rob Scheibel
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

[web2py:27937] Re: Auth based on UUID

2009-08-04 Thread vihang
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

[web2py:27936] Re: ldap-auth issue (solved)

2009-08-04 Thread Johann Spies
>> 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:

[web2py:27935] Re: Google seems to know Web2Py

2009-08-04 Thread dlypka
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

[web2py:27934] Image Manipulation

2009-08-04 Thread Pynthon
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

[web2py:27933] Re: Fwd: My thoughts on web2py

2009-08-04 Thread Pynthon
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) >

[web2py:27932] How to set http "keep-alive" parameter?

2009-08-04 Thread 陶艺夫
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

[web2py:27931] Re: ldap-auth issue

2009-08-04 Thread Johann Spies
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

[web2py:27930] Re: hidden fields

2009-08-04 Thread Fran
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

[web2py:27929] Re: ldap-auth issue

2009-08-04 Thread Fran
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

[web2py:27928] Re: ldap-auth issue

2009-08-04 Thread Johann Spies
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

[web2py:27927] Re: Auth based on UUID

2009-08-04 Thread mdipierro
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

[web2py:27926] chage the sort order for generated selectbox

2009-08-04 Thread David Zejda
-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

[web2py:27925] Auth based on UUID

2009-08-04 Thread vihang
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

[web2py:27924] Re: Fwd: My thoughts on web2py

2009-08-04 Thread mdipierro
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